/* Content Refiner Tools: tool UI. Colours and fonts follow Elementor Site Settings (global colours / fonts). */
.crt {
	--crt-ink: var(--e-global-color-primary, #33401F);
	--crt-muted: var(--e-global-color-secondary, #6E6B58);
	--crt-text: var(--e-global-color-text, #33362A);
	--crt-accent: var(--e-global-color-accent, #C9CF9C);
	--crt-bg: var(--e-global-color-crbg, #F2EDE1);
	--crt-surface: var(--e-global-color-crsurface, #FAF7F0);
	--crt-line: var(--e-global-color-crline, #DCD3BF);
	--crt-soft: var(--e-global-color-crsoft, #E8E1D0);
	--crt-warn: #B8A56A;
	--crt-bad: #8C7B45;
	--crt-good: #5C6B2E;
	--crt-sans: var(--e-global-typography-text-font-family, "Geist"), "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--crt-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--crt-r-lg: 24px;
	--crt-r: 16px;
	--crt-r-sm: 10px;
	font-family: var(--crt-sans);
	color: var(--crt-text);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.crt *, .crt *::before, .crt *::after { box-sizing: border-box; }
.crt button, .crt [type=button], .crt input, .crt select, .crt textarea { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; }
.crt .crt-btn:focus { background: transparent; color: var(--crt-muted); border-color: transparent; }
.crt .crt-btn.is-solid:focus { background: var(--crt-ink); color: #FAF7F0; }
.crt .crt-run:focus, .crt .crt-run:hover { background: var(--crt-accent); color: var(--crt-ink); }
.crt .crt-chip:focus { background: var(--crt-surface); color: var(--crt-ink); border-color: var(--crt-line); }
.crt .crt-manual button:focus, .crt .crt-manual button:hover { color: var(--crt-ink); }
.crt .crt-app { display: grid; gap: 18px; align-items: start; }
.crt .crt-app[data-layout="side"] { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); }
.crt .crt-app[data-layout="split"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.crt .crt-app[data-layout="stack"] { grid-template-columns: minmax(0, 1fr); }
.crt .crt-app[data-layout="side"] .crt-res { position: sticky; top: 96px; }
.crt .crt-pane { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Fields */
.crt .crt-areas { display: grid; gap: 14px; }
.crt .crt-areas.is-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crt .crt-app[data-layout="side"] .crt-areas.is-multi, .crt .crt-app[data-layout="split"] .crt-areas.is-multi { grid-template-columns: 1fr; }
.crt .crt-field, .crt .crt-output, .crt .crt-panel, .crt .crt-meter, .crt .crt-note, .crt .crt-empty, .crt .crt-skel {
	background: var(--crt-surface); border: 1px solid var(--crt-line); border-radius: var(--crt-r-lg);
}
.crt .crt-field { display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.crt .crt-field:focus-within { border-color: var(--crt-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--crt-accent) 55%, transparent); }
.crt .crt-field__head, .crt .crt-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 10px 18px; min-height: 52px; flex-wrap: wrap; }
.crt .crt-field__head label, .crt .crt-label { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--crt-ink); }
.crt .crt-field textarea, .crt .crt-output textarea {
	display: block; width: 100%; resize: vertical; border: 0; outline: 0; background: transparent; box-shadow: none;
	padding: 4px 18px 16px; margin: 0; font: inherit; font-size: 16px; line-height: 1.65; color: var(--crt-ink); min-height: 120px; border-radius: 0;
}
.crt .crt-field textarea::placeholder { color: color-mix(in srgb, var(--crt-muted) 70%, transparent); }
.crt textarea.is-mono, .crt .crt-output textarea.is-mono { font-family: var(--crt-mono); font-size: 14px; line-height: 1.6; tab-size: 4; }
.crt .crt-field__foot { padding: 8px 18px; border-top: 1px solid var(--crt-soft); font-family: var(--crt-mono); font-size: 12px; color: var(--crt-muted); min-height: 34px; }
.crt .crt-field__foot:empty { display: none; }
.crt .crt-output { overflow: hidden; }
.crt .crt-output textarea { background: color-mix(in srgb, var(--crt-bg) 60%, var(--crt-surface)); border-top: 1px solid var(--crt-soft); padding-top: 14px; }

.crt .crt-opts { display: flex; flex-wrap: wrap; gap: 10px 12px; padding: 14px; background: var(--crt-soft); border-radius: var(--crt-r-lg); align-items: flex-end; }
.crt .crt-opt { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 160px; }
.crt .crt-opt.is-wide { flex-basis: 100%; }
.crt .crt-opt.is-check { flex: 0 1 auto; min-width: 0; justify-content: center; min-height: 44px; }
.crt .crt-opt > label, .crt .crt-opt__label { font-size: 12px; font-weight: 600; color: var(--crt-muted); letter-spacing: .02em; }
.crt .crt-opt input[type=text], .crt .crt-opt input[type=number], .crt .crt-select select {
	width: 100%; height: 44px; border: 1px solid var(--crt-line); border-radius: 12px; background: var(--crt-surface);
	padding: 0 14px; font: inherit; font-size: 15px; color: var(--crt-ink); outline: 0; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.crt .crt-opt input:focus, .crt .crt-select select:focus { border-color: var(--crt-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crt-accent) 60%, transparent); }
.crt .crt-select { position: relative; }
.crt .crt-select select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.crt .crt-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.8px solid var(--crt-ink); border-bottom: 1.8px solid var(--crt-ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.crt .crt-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--crt-surface); border: 1px solid var(--crt-line); border-radius: 14px; }
.crt .crt-seg label { position: relative; cursor: pointer; flex: 1 1 auto; }
.crt .crt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.crt .crt-seg span { display: block; text-align: center; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--crt-muted); white-space: nowrap; transition: background .15s, color .15s; }
.crt .crt-seg label:hover span { color: var(--crt-ink); background: var(--crt-soft); }
.crt .crt-seg input:checked + span { background: var(--crt-ink); color: #FAF7F0; }
.crt .crt-seg input:focus-visible + span { outline: 2px solid var(--crt-ink); outline-offset: 2px; }

.crt .crt-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--crt-ink); user-select: none; }
.crt .crt-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.crt .crt-switch i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--crt-line); flex: none; transition: background .2s; }
.crt .crt-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FAF7F0; box-shadow: 0 1px 2px rgba(51, 64, 31, .25); transition: transform .2s; }
.crt .crt-switch input:checked + i { background: var(--crt-ink); }
.crt .crt-switch input:checked + i::after { transform: translateX(16px); background: var(--crt-accent); }
.crt .crt-switch input:focus-visible + i { outline: 2px solid var(--crt-ink); outline-offset: 2px; }

/* Buttons */
.crt .crt-mini { display: flex; gap: 4px; flex-wrap: wrap; }
.crt .crt-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid transparent; background: transparent; color: var(--crt-muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; line-height: 1; transition: background .15s, color .15s, transform .1s; }
.crt .crt-btn svg { width: 15px; height: 15px; }
.crt .crt-btn:hover { background: var(--crt-soft); color: var(--crt-ink); }
.crt .crt-btn:active { transform: translateY(1px); }
.crt .crt-btn.is-solid { background: var(--crt-ink); color: #FAF7F0; }
.crt .crt-btn.is-solid:hover { background: color-mix(in srgb, var(--crt-ink) 85%, #FAF7F0); color: #FAF7F0; }
.crt .crt-btn:focus-visible, .crt .crt-run:focus-visible, .crt .crt-chip:focus-visible { outline: 2px solid var(--crt-ink); outline-offset: 2px; }
.crt .crt-actions { display: flex; align-items: center; gap: 14px; }
.crt .crt-run { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px 0 22px; border: 0; border-radius: 99px; background: var(--crt-accent); color: var(--crt-ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crt-ink) 12%, transparent); transition: transform .12s, box-shadow .2s; }
.crt .crt-run svg { width: 18px; height: 18px; }
.crt .crt-run:hover { box-shadow: inset 0 0 0 1px var(--crt-ink), 0 10px 24px -12px color-mix(in srgb, var(--crt-ink) 60%, transparent); }
.crt .crt-run:active { transform: scale(.98); }
.crt .crt-kbd { font-family: var(--crt-mono); font-size: 12px; color: var(--crt-muted); padding: 4px 8px; border: 1px solid var(--crt-line); border-radius: 8px; }

/* Stats */
.crt .crt-stats { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; }
.crt .crt-stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px; background: var(--crt-surface); border: 1px solid var(--crt-line); border-radius: var(--crt-r); min-width: 0; }
.crt .crt-stat__v { font-family: var(--crt-mono); font-size: 22px; font-weight: 500; color: var(--crt-ink); letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.crt .crt-stat__l { font-size: 12.5px; color: var(--crt-muted); font-weight: 500; }
.crt .crt-stat__s { font-size: 12px; color: var(--crt-muted); opacity: .85; }
.crt .crt-stat.is-hero { grid-column: 1 / -1; background: var(--crt-ink); border-color: var(--crt-ink); padding: 22px 22px 18px; }
.crt .crt-stat.is-hero .crt-stat__v { color: var(--crt-accent); font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; }
.crt .crt-stat.is-hero .crt-stat__l { color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.crt .crt-stat.is-hero .crt-stat__s { color: rgba(255, 255, 255, .6); }
.crt .crt-stat.is-ok .crt-stat__s, .crt .crt-stat.is-add .crt-stat__v { color: var(--crt-good); }
.crt .crt-stat.is-warn .crt-stat__s { color: #8C7B45; }
.crt .crt-stat.is-del .crt-stat__s, .crt .crt-stat.is-del .crt-stat__v { color: var(--crt-bad); }
.crt .crt-stat.is-hero.is-ok .crt-stat__s { color: var(--crt-accent); }
.crt .crt-stat.is-hero.is-warn .crt-stat__s { color: #DCCB97; }
.crt .crt-stat.is-hero.is-del .crt-stat__s, .crt .crt-stat.is-hero.is-del .crt-stat__v { color: #DCCB97; }

/* Panels */
.crt .crt-panel { overflow: hidden; }
.crt .crt-panel__head { border-bottom: 1px solid var(--crt-soft); }
.crt .crt-panel__body { padding: 16px 18px 18px; overflow-wrap: anywhere; }
.crt .crt-panel.is-flush .crt-panel__body { padding: 0; }
.crt .crt-muted { color: var(--crt-muted); }
.crt .crt-marked { white-space: pre-wrap; font-size: 16px; line-height: 1.8; color: var(--crt-ink); max-height: 460px; overflow: auto; }
.crt .crt-marked mark { background: #E3E6CB; color: inherit; padding: 1px 2px; border-radius: 4px; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--crt-ink) 18%, transparent); }
.crt mark.is-warn, .crt .crt-legend .is-warn::before { background: #EFE6CC; }
.crt mark.is-bad, .crt mark.is-over, .crt .crt-legend .is-bad::before { background: #E2D3AA; }
.crt mark.is-pick, .crt mark.is-change, .crt .crt-legend .is-pick::before { background: #DDE1C4; }
.crt mark.k0, .crt .crt-key.k0 { background: #DDE1C4; } .crt mark.k1, .crt .crt-key.k1 { background: #E8E1D0; } .crt mark.k2, .crt .crt-key.k2 { background: #E5D9BD; }
.crt mark.k3, .crt .crt-key.k3 { background: #D6CBB2; } .crt mark.k4, .crt .crt-key.k4 { background: #E9ECD6; } .crt mark.k5, .crt .crt-key.k5 { background: #ECE3BF; }
.crt .crt-key { padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.crt .crt-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--crt-muted); padding: 10px 18px; }
.crt .crt-panel__head .crt-legend { padding: 0; }
.crt .crt-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--crt-soft); }

/* Tables */
.crt .crt-table-wrap { overflow: auto; max-height: 520px; }
.crt .crt-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; border: 0; }
.crt .crt-table th { position: sticky; top: 0; background: var(--crt-surface); text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--crt-muted); padding: 10px 18px; border: 0; border-bottom: 1px solid var(--crt-line); white-space: nowrap; }
.crt .crt-table td { padding: 10px 18px; border: 0; border-bottom: 1px solid var(--crt-soft); vertical-align: top; color: var(--crt-ink); background: transparent; }
.crt .crt-table tr:last-child td { border-bottom: 0; }
.crt .crt-table tbody tr:hover td { background: color-mix(in srgb, var(--crt-bg) 70%, transparent); }
.crt .crt-table td.is-num { font-family: var(--crt-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.crt .crt-table tr.is-on td { background: color-mix(in srgb, var(--crt-accent) 45%, transparent); }

/* Bars */
.crt .crt-bars { display: flex; flex-direction: column; gap: 9px; }
.crt .crt-bar { display: grid; grid-template-columns: minmax(70px, 30%) 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.crt .crt-bar__l { color: var(--crt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crt .crt-bar__t { height: 8px; background: var(--crt-soft); border-radius: 99px; overflow: hidden; }
.crt .crt-bar__t i { display: block; height: 100%; width: var(--w); background: var(--crt-ink); border-radius: 99px; transition: width .35s cubic-bezier(.2, .7, .2, 1); }
.crt .crt-bar.is-bad .crt-bar__t i { background: var(--crt-bad); }
.crt .crt-bar.is-you .crt-bar__t i { background: var(--crt-accent); box-shadow: inset 0 0 0 1px var(--crt-ink); }
.crt .crt-bar__v { font-family: var(--crt-mono); font-size: 12.5px; color: var(--crt-muted); white-space: nowrap; }
.crt .crt-bars.is-cols { flex-direction: row; align-items: flex-end; gap: 4px; height: 190px; }
.crt .crt-bars.is-cols .crt-bar { display: flex; flex-direction: column-reverse; flex: 1; height: 100%; gap: 6px; align-items: center; }
.crt .crt-bars.is-cols .crt-bar__t { width: 100%; height: 100%; display: flex; align-items: flex-end; background: transparent; border-radius: 6px; }
.crt .crt-bars.is-cols .crt-bar__t i { width: 100%; height: var(--w); border-radius: 6px 6px 3px 3px; min-height: 2px; }
.crt .crt-bars.is-cols .crt-bar__v { display: none; }
.crt .crt-bars.is-cols .crt-bar__l { font-family: var(--crt-mono); font-size: 11px; color: var(--crt-muted); }

/* Meter */
.crt .crt-meter { padding: 16px 18px; }
.crt .crt-meter__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.crt .crt-meter__v { font-family: var(--crt-mono); font-size: 13px; color: var(--crt-muted); }
.crt .crt-meter__v b { font-size: 22px; color: var(--crt-ink); font-weight: 500; letter-spacing: -.02em; }
.crt .crt-meter__track { position: relative; height: 12px; margin: 12px 0 10px; background: var(--crt-soft); border-radius: 99px; overflow: hidden; }
.crt .crt-meter__track i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--crt-ink); border-radius: 99px; transition: width .35s cubic-bezier(.2, .7, .2, 1), background .2s; }
.crt .crt-meter.is-ok .crt-meter__track i { background: var(--crt-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crt-ink) 30%, transparent); }
.crt .crt-meter.is-warn .crt-meter__track i { background: var(--crt-warn); }
.crt .crt-meter.is-over .crt-meter__track i { background: var(--crt-bad); }
.crt .crt-meter__track em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--crt-ink); z-index: 2; opacity: .55; }
.crt .crt-meter__sub { font-size: 13px; color: var(--crt-muted); }
.crt .crt-meter.is-over .crt-meter__sub { color: var(--crt-bad); font-weight: 500; }

/* Checks */
.crt .crt-checks { list-style: none; margin: 0; padding: 6px 0; }
.crt .crt-checks li { display: flex; gap: 12px; padding: 10px 18px; align-items: flex-start; margin: 0; }
.crt .crt-checks li + li { border-top: 1px solid var(--crt-soft); }
.crt .crt-checks i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--crt-soft); color: var(--crt-muted); margin-top: 1px; }
.crt .crt-checks i svg { width: 14px; height: 14px; }
.crt .crt-checks .is-pass i { background: var(--crt-accent); color: var(--crt-ink); }
.crt .crt-checks .is-fail i { background: #E2D3AA; color: #6B6330; }
.crt .crt-checks .is-warn i { background: #EFE6CC; color: #6B6330; }
.crt .crt-checks b { display: block; font-size: 14.5px; font-weight: 600; color: var(--crt-ink); }
.crt .crt-checks span { display: block; font-size: 13.5px; color: var(--crt-muted); }
.crt .crt-score { font-family: var(--crt-mono); font-size: 13px; }

/* Notes */
.crt .crt-note { display: flex; gap: 12px; padding: 14px 18px; font-size: 14px; color: var(--crt-ink); align-items: flex-start; }
.crt .crt-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--crt-muted); }
.crt .crt-note.is-ok { background: color-mix(in srgb, var(--crt-accent) 22%, var(--crt-surface)); border-color: color-mix(in srgb, var(--crt-accent) 80%, var(--crt-ink)); }
.crt .crt-note.is-ok svg { color: var(--crt-good); }
.crt .crt-note.is-warn { background: #F6F0DF; border-color: #DCCB97; }
.crt .crt-note.is-warn svg { color: #8C7B45; }
.crt .crt-note.is-error { background: #F1E9D3; border-color: #D6C391; }
.crt .crt-note.is-error svg { color: var(--crt-bad); }
.crt .crt-note code, .crt code { font-family: var(--crt-mono); font-size: .92em; background: var(--crt-soft); padding: 1px 6px; border-radius: 6px; }

/* Chips */
.crt .crt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.crt .crt-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--crt-line); border-radius: 99px; background: var(--crt-surface); color: var(--crt-ink); font: inherit; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.crt .crt-chip small { font-family: var(--crt-mono); font-size: 11px; color: var(--crt-muted); }
.crt .crt-chip:hover { background: var(--crt-ink); color: #FAF7F0; border-color: var(--crt-ink); }
.crt .crt-chip:hover small { color: var(--crt-accent); }
.crt .crt-chip:active { transform: scale(.97); }
.crt .crt-chip.is-dupe { border-color: #DCCB97; background: #F6F0DF; }

/* Empty / loading */
.crt .crt-empty { border-style: dashed; padding: 40px 26px; text-align: center; color: var(--crt-muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.crt .crt-empty__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--crt-accent); color: var(--crt-ink); display: grid; place-items: center; }
.crt .crt-empty__icon svg { width: 24px; height: 24px; }
.crt .crt-empty p { margin: 0; max-width: 34ch; font-size: 14.5px; }
.crt .crt-skel { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.crt .crt-skel i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--crt-soft), color-mix(in srgb, var(--crt-soft) 40%, #FAF7F0), var(--crt-soft)); background-size: 200% 100%; animation: crt-sk 1.2s linear infinite; }
.crt .crt-skel i:nth-child(2) { width: 80%; } .crt .crt-skel i:nth-child(3) { width: 60%; }
.crt .crt-skel span { font-size: 13px; color: var(--crt-muted); }
@keyframes crt-sk { to { background-position: -200% 0; } }

/* Toast */
.crt-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #33401F; color: #FAF7F0; font: 500 14px/1 "Geist", system-ui, sans-serif; padding: 13px 18px; border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 99999; box-shadow: 0 16px 40px -16px rgba(51, 64, 31, .5); }
.crt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Diff */
.crt .crt-diff { width: 100%; border-collapse: collapse; font-family: var(--crt-mono); font-size: 13px; line-height: 1.6; margin: 0; border: 0; table-layout: fixed; }
.crt .crt-diff td { padding: 2px 10px; vertical-align: top; white-space: pre-wrap; word-break: break-word; border: 0; color: var(--crt-ink); background: transparent; }
.crt .crt-diff td.ln { width: 46px; color: var(--crt-muted); text-align: right; user-select: none; background: var(--crt-bg); font-size: 12px; }
.crt .crt-diff td.sg { width: 22px; color: var(--crt-muted); user-select: none; }
.crt .crt-diff tr.is-del td:not(.ln), .crt .crt-diff td.is-del { background: #F1E9D3; }
.crt .crt-diff tr.is-add td:not(.ln), .crt .crt-diff td.is-add { background: #E9ECD6; }
.crt .crt-diff td.is-empty { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--crt-soft) 6px 7px); }
.crt .crt-diff del, .crt .crt-diff-inline del { background: #E2D3AA; text-decoration: line-through; text-decoration-color: rgba(107, 99, 48, .5); border-radius: 3px; color: inherit; }
.crt .crt-diff ins, .crt .crt-diff-inline ins { background: #C9CF9C; text-decoration: none; border-radius: 3px; color: inherit; }
.crt .crt-diff-inline { padding: 16px 18px; white-space: pre-wrap; font-size: 15px; line-height: 1.8; color: var(--crt-ink); }
.crt .crt-diff.is-split td:nth-child(2) { border-right: 1px solid var(--crt-line); }

/* Outline / TOC */
.crt .crt-outline, .crt .crt-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.crt .crt-h { display: flex; gap: 10px; align-items: center; padding: 8px 12px; margin-left: calc(var(--l) * 22px); border-radius: 12px; background: var(--crt-bg); flex-wrap: wrap; }
.crt .crt-h__tag { font-family: var(--crt-mono); font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--crt-ink); color: var(--crt-accent); }
.crt .crt-h__t { color: var(--crt-ink); font-size: 14.5px; }
.crt .crt-h__f { font-size: 12px; color: #6B6330; margin-left: auto; }
.crt .crt-h.is-flag { background: #F1E9D3; }
.crt .crt-toc li { margin-left: calc(var(--l) * 20px); display: flex; gap: 8px; font-size: 15px; }
.crt .crt-toc li span { font-family: var(--crt-mono); color: var(--crt-muted); font-size: 13px; }
.crt .crt-toc a { color: var(--crt-ink); text-decoration: underline; text-decoration-color: var(--crt-line); text-underline-offset: 3px; }

/* SERP */
.crt .crt-serp-wrap { background: #FAF7F0; border-radius: 16px; padding: 4px; }
.crt .crt-serp { font-family: Arial, sans-serif; max-width: 652px; padding: 6px 0; }
.crt .crt-serp.is-mobile { max-width: 380px; padding: 16px; border-radius: 16px; box-shadow: 0 1px 6px rgba(46, 52, 36, .28); }
.crt .crt-serp__site { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.crt .crt-serp__fav { width: 28px; height: 28px; border-radius: 50%; background: #EFEADD; border: 1px solid #DCD3BF; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #3F4232; flex: none; }
.crt .crt-serp__site b { display: block; font-size: 14px; font-weight: 400; color: #2E3424; line-height: 20px; }
.crt .crt-serp__site small { display: block; font-size: 12px; color: #55574A; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px; }
.crt .crt-serp__title { font-size: 20px; line-height: 26px; color: #33401F; margin: 0 0 4px; white-space: nowrap; overflow: hidden; }
.crt .crt-serp.is-mobile .crt-serp__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 18px; line-height: 24px; }
.crt .crt-serp__desc { font-size: 14px; line-height: 22px; color: #55574A; }
.crt .crt-serp.is-mobile .crt-serp__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.crt .crt-serp__date { color: #7A7A66; }
.crt .crt-serp__rating { font-size: 14px; color: #7A7A66; margin-bottom: 2px; }
.crt .crt-serp__stars { color: #8C7B45; letter-spacing: 1px; }

/* Social previews */
.crt .crt-plat { display: flex; flex-direction: column; }
.crt .crt-plat__row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr minmax(110px, auto); gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--crt-soft); }
.crt .crt-plat__row:last-child { border-bottom: 0; }
.crt .crt-plat__name b { display: block; font-size: 14.5px; color: var(--crt-ink); font-weight: 600; }
.crt .crt-plat__name small { display: block; font-size: 12px; color: var(--crt-muted); }
.crt .crt-plat__track { position: relative; height: 10px; background: var(--crt-soft); border-radius: 99px; overflow: hidden; }
.crt .crt-plat__track i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--crt-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crt-ink) 25%, transparent); border-radius: 99px; transition: width .3s; }
.crt .crt-plat__row.is-warn .crt-plat__track i { background: var(--crt-warn); }
.crt .crt-plat__row.is-over .crt-plat__track i { background: var(--crt-bad); }
.crt .crt-plat__track em { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--crt-ink); opacity: .5; }
.crt .crt-plat__num { font-family: var(--crt-mono); font-size: 13px; color: var(--crt-muted); text-align: right; }
.crt .crt-plat__num b { color: var(--crt-ink); font-weight: 500; }
.crt .crt-plat__num small { display: block; font-size: 11.5px; }
.crt .crt-plat__row.is-over .crt-plat__num small { color: var(--crt-bad); }
.crt .crt-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-family: var(--crt-mono); font-size: 12.5px; }
.crt .crt-pill.is-ok { background: #DDE1C4; } .crt .crt-pill.is-bad { background: #E2D3AA; color: #6B6330; }
.crt .crt-ig, .crt .crt-li, .crt .crt-yt { max-width: 420px; margin: 0 auto; background: #FAF7F0; border: 1px solid #E3DCCB; border-radius: 18px; overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1F2614; }
.crt .crt-ig__img { aspect-ratio: 4 / 4; background: radial-gradient(120% 90% at 20% 10%, #C9CF9C 0, transparent 55%), radial-gradient(100% 80% at 90% 90%, #DDE1C4 0, transparent 60%), #E8E1D0; }
.crt .crt-ig__bar { display: flex; gap: 14px; padding: 10px 14px 4px; font-size: 20px; }
.crt .crt-ig__cap { padding: 4px 14px 16px; font-size: 14px; line-height: 1.45; }
.crt .crt-ig__more, .crt .crt-li__more { color: #7A7A66; cursor: default; }
.crt .crt-li { max-width: 560px; }
.crt .crt-li__head { display: flex; gap: 10px; padding: 14px 16px 6px; align-items: center; }
.crt .crt-li__av { width: 44px; height: 44px; border-radius: 50%; background: #33401F; color: #C9CF9C; display: grid; place-items: center; font-weight: 700; }
.crt .crt-li__head b { display: block; font-size: 14px; } .crt .crt-li__head small { display: block; font-size: 12px; color: #6B6A55; }
.crt .crt-li__body { padding: 6px 16px 18px; font-size: 14px; line-height: 1.5; }
.crt .crt-yt { max-width: 560px; padding: 14px; display: flex; flex-direction: column; gap: 16px; background: #FAF7F0; }
.crt .crt-yt__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg, #33401F 0%, #3D4A25 60%, #C9CF9C 140%); }
.crt .crt-yt__thumb span { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .8); color: #FAF7F0; font-size: 12px; font-weight: 600; padding: 1px 5px; border-radius: 4px; }
.crt .crt-yt__thumb.is-sm { width: 168px; flex: none; border-radius: 8px; }
.crt .crt-yt__meta { padding-top: 10px; }
.crt .crt-yt__title { font-size: 16px; font-weight: 600; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.crt .crt-yt__title.is-sm { font-size: 14px; line-height: 20px; }
.crt .crt-yt small { color: #6B6A55; font-size: 12.5px; }
.crt .crt-yt__row { display: flex; gap: 10px; }
.crt .crt-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: t; }
.crt .crt-thread li { padding: 14px 16px; border: 1px solid var(--crt-line); border-radius: 16px; background: var(--crt-bg); }
.crt .crt-thread p { margin: 0 0 6px; white-space: pre-wrap; color: var(--crt-ink); }
.crt .crt-thread small { font-family: var(--crt-mono); font-size: 12px; color: var(--crt-muted); }
.crt .crt-fold { margin: 0; font-size: 14px; line-height: 1.6; color: var(--crt-ink); }

/* Creative output */
.crt .crt-prompt { margin: 0 0 14px; padding: 22px 24px; border-radius: 20px; background: var(--crt-ink); color: #FAF7F0; }
.crt .crt-prompt:last-child { margin-bottom: 0; }
.crt .crt-prompt figcaption { font-family: var(--crt-mono); font-size: 12px; color: var(--crt-accent); margin-bottom: 8px; }
.crt .crt-prompt blockquote { margin: 0; padding: 0; border: 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; letter-spacing: -.01em; color: #FAF7F0; font-style: normal; }
.crt .crt-prompt__c { margin: 12px 0 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.crt .crt-idea { padding: 20px 22px; border: 1px solid var(--crt-line); border-radius: 20px; background: var(--crt-bg); margin-bottom: 12px; }
.crt .crt-idea:last-child { margin-bottom: 0; }
.crt .crt-idea__g { display: inline-block; font-family: var(--crt-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--crt-ink); color: var(--crt-accent); }
.crt .crt-idea p { font-size: 17px; line-height: 1.5; color: var(--crt-ink); margin: 12px 0; }
.crt .crt-idea dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 13.5px; }
.crt .crt-idea dt { color: var(--crt-muted); } .crt .crt-idea dd { margin: 0; color: var(--crt-ink); }
.crt .crt-snippet { border: 1px solid #DCD3BF; border-radius: 12px; padding: 16px 18px; font-family: Arial, sans-serif; color: #2E3424; max-width: 640px; }
.crt .crt-snippet__q { font-size: 18px; margin-bottom: 8px; color: #2E3424; }
.crt .crt-snippet p, .crt .crt-snippet li, .crt .crt-snippet td, .crt .crt-snippet th { font-size: 14px; line-height: 22px; }
.crt .crt-snippet table { border-collapse: collapse; } .crt .crt-snippet td, .crt .crt-snippet th { border: 1px solid #DCD3BF; padding: 4px 10px; text-align: left; }
.crt .crt-formula { font-family: var(--crt-mono); font-size: 15px; color: var(--crt-ink); margin: 0 0 6px; }
.crt .crt-pre { font-family: var(--crt-mono); font-size: 13px; margin: 0; white-space: pre; overflow: auto; color: var(--crt-ink); background: transparent; padding: 0; border: 0; }
.crt .crt-caret { color: var(--crt-bad); }
.crt .crt-url { font-family: var(--crt-mono); font-size: 13px; color: var(--crt-muted); word-break: break-all; }
.crt .crt-url b { color: var(--crt-ink); font-weight: 600; }
.crt .crt-manual { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.crt .crt-manual button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--crt-line); border-radius: 14px; background: var(--crt-surface); font: inherit; font-size: 14px; color: var(--crt-ink); cursor: pointer; line-height: 1.4; transition: background .15s, border-color .15s; }
.crt .crt-manual i { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--crt-line); display: grid; place-items: center; color: transparent; }
.crt .crt-manual i svg { width: 13px; height: 13px; }
.crt .crt-manual button.is-on { background: color-mix(in srgb, var(--crt-accent) 30%, var(--crt-surface)); border-color: color-mix(in srgb, var(--crt-accent) 70%, var(--crt-ink)); }
.crt .crt-manual button.is-on i { background: var(--crt-ink); border-color: var(--crt-ink); color: var(--crt-accent); }
.crt .crt-prose { font-size: 15.5px; line-height: 1.65; color: var(--crt-ink); }
.crt .crt-prose h1, .crt .crt-prose h2, .crt .crt-prose h3 { line-height: 1.2; margin: 1em 0 .4em; color: var(--crt-ink); }
.crt .crt-prose h1 { font-size: 1.8em; } .crt .crt-prose h2 { font-size: 1.4em; } .crt .crt-prose h3 { font-size: 1.15em; }
.crt .crt-prose pre { background: var(--crt-ink); color: #ECE7DA; padding: 14px; border-radius: 12px; overflow: auto; font-size: 13px; }
.crt .crt-prose pre code { background: transparent; color: inherit; padding: 0; }
.crt .crt-prose table { border-collapse: collapse; width: 100%; } .crt .crt-prose td, .crt .crt-prose th { border: 1px solid var(--crt-line); padding: 6px 10px; }
.crt .crt-prose blockquote { border-left: 3px solid var(--crt-accent); margin: 0; padding: 4px 16px; color: var(--crt-muted); }
.crt .crt-prose img { max-width: 100%; }
.crt .crt-prose ul, .crt .crt-prose ol { padding-left: 1.4em; }

/* Whitespace */
.ws-view { font-family: var(--crt-mono); font-size: 14px; line-height: 1.75; padding: 14px 0; max-height: 520px; overflow: auto; color: var(--crt-ink); }
.crt .ws-line { display: flex; white-space: pre-wrap; word-break: break-all; }
.crt .ws-ln { flex: none; width: 44px; text-align: right; padding-right: 14px; color: var(--crt-muted); user-select: none; font-size: 12px; }
.crt .ws-c { flex: 1; padding-right: 16px; }
.crt .ws { color: #A19E88; }
.crt .ws.tab { display: inline-block; min-width: 2.5em; color: #5C6B2E; }
.crt .ws.nl { color: #C2BCA8; }
.crt .ws.nb { color: #8C7B45; background: #F3EBD5; border-radius: 3px; }
.crt .ws.uni { color: #6B6330; background: #EFE9DA; border-radius: 3px; }
.crt .ws.zw { font-size: 10px; font-weight: 700; color: #FAF7F0; background: var(--crt-bad); border-radius: 3px; padding: 0 3px; vertical-align: 1px; }
.crt .ws.cr { color: #8C7B45; }
.crt .ws.is-trail { background: #E2D3AA; color: #6B6330; border-radius: 2px; }

/* Responsive */
@media (max-width: 960px) {
	.crt .crt-app[data-layout="side"], .crt .crt-app[data-layout="split"] { grid-template-columns: minmax(0, 1fr); }
	.crt .crt-app[data-layout="side"] .crt-res { position: static; }
	.crt .crt-areas.is-multi { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.crt { font-size: 14.5px; }
	.crt .crt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.crt .crt-stat__v { font-size: 19px; }
	.crt .crt-opt { flex-basis: 100%; }
	.crt .crt-field__head { padding: 10px 10px 8px 14px; }
	.crt .crt-field textarea { padding: 4px 14px 14px; }
	.crt .crt-mini .crt-btn span { display: none; }
	.crt .crt-mini .crt-btn { width: 34px; padding: 0; justify-content: center; }
	.crt .crt-mini .crt-btn.is-solid { width: auto; padding: 0 12px; }
	.crt .crt-mini .crt-btn.is-solid span { display: inline; }
	.crt .crt-plat__row { grid-template-columns: 1fr auto; }
	.crt .crt-plat__track { grid-column: 1 / -1; grid-row: 2; }
	.crt .crt-bar { grid-template-columns: minmax(60px, 34%) 1fr auto; }
	.crt .crt-table th, .crt .crt-table td { padding: 9px 12px; }
	.crt .crt-run { width: 100%; justify-content: center; }
	.crt .crt-kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.crt *, .crt-toast { transition: none !important; animation: none !important; }
}
