/* theme-concepts.css -- the Theme Concepts gallery (Story 5717).

   Two halves:
     PAGE       the gallery's own chrome. It reads --pg-* variables with the house colors as
                defaults, so "Try on this page" can dress the chrome in a concept for a moment.
     SPECIMENS  the parts every concept is drawn with (.tcs ...). They read only --tc-*
                variables, which theme-concepts-data.js works out per concept and puts on the
                specimen's root element. A new kind of part goes here, never per concept.
   ASCII only. */

/* ============================== PAGE ============================== */
:root {
    --pg-page: #F2F2F4; --pg-surface: #FFFFFF; --pg-raised: #F8FAFC; --pg-ink: #111111; --pg-muted: #64748B;
    --pg-line: #E2E2E5; --pg-accent: #0A66C2; --pg-on-accent: #FFFFFF; --pg-head: #3C3C3C; --pg-head-bg: #3C3C3C;
    --pg-head-ink: #FFFFFF; --pg-font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
html, body { margin: 0; height: 100%; }
body { background: var(--pg-page); color: var(--pg-ink); font-family: var(--pg-font); }

.tc-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.tc-shell > #lwIconBand, .tc-headzone { flex: 0 0 auto; }
.lw-nav + .tc-headzone, .lw-nav + .ct-header { margin-top: 0; }

.ct-header.tc-header {
    background: var(--pg-head-bg); color: var(--pg-head-ink);
    padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 8px;
}
.tc-header h1 { margin: 0; font-size: 14pt; font-weight: 600; flex: 1 1 auto; min-width: 0; }
.tc-header button {
    background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.4); border-radius: 4px;
    padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.tc-header button:hover { background: rgba(255,255,255,.12); }
.tc-header .tc-compare-btn { background: var(--pg-accent); color: var(--pg-on-accent); border-color: var(--pg-accent); }
.tc-header .tc-compare-btn[hidden], .tc-trying[hidden] { display: none; }
.tc-trying {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
    background: rgba(255,255,255,.16); border-radius: 14px; padding: 3px 4px 3px 10px;
}
.tc-header .tc-trying button { padding: 2px 8px; font-size: 12px; border-radius: 10px; }

/* The roll-up under the header (Roll Up Tools): the summary line always shows, the tools roll away. */
.tc-roll {
    display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
    background: var(--pg-surface); color: var(--pg-muted); border: 0; border-bottom: 1px solid var(--pg-line);
    padding: 8px 16px; font: 13px var(--pg-font); text-align: left; cursor: pointer;
}
.tc-roll .tc-caret { width: 12px; color: var(--pg-muted); }
.tc-roll .tc-summary { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-tools {
    background: var(--pg-surface); border-bottom: 1px solid var(--pg-line);
    padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 10px;
}
.tc-shell.tc-rolled .tc-tools { display: none; }
.tc-tools input[type="search"] {
    display: block; width: 100%; box-sizing: border-box;
    font: 14px var(--pg-font); padding: 8px 12px; border: 1px solid var(--pg-line); border-radius: 18px;
    background: var(--pg-surface); color: var(--pg-ink);
}
.tc-tools .voice-mic-wrap { display: block; }
.tc-toolrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-toollabel { font-size: 12px; color: var(--pg-muted); font-weight: 600; margin-right: 2px; }
.tc-pill {
    background: var(--pg-raised); border: 1px solid var(--pg-line); color: var(--pg-ink);
    border-radius: 16px; padding: 5px 12px; font: 12px var(--pg-font); cursor: pointer;
}
.tc-pill.on { background: var(--pg-head); border-color: var(--pg-head); color: var(--pg-head-ink); }

.tc-tabs {
    display: flex; gap: 0; overflow-x: auto; background: var(--pg-surface); border-bottom: 1px solid var(--pg-line);
    scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 8px;
}
.tc-tabs::-webkit-scrollbar { display: none; }
.tc-tab {
    flex: 0 0 auto; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--pg-muted);
    padding: 10px 12px 8px; font: 600 13px var(--pg-font); cursor: pointer; white-space: nowrap;
}
.tc-tab .tc-n { font-weight: 400; opacity: .8; margin-left: 3px; }
.tc-tab.on { color: var(--pg-accent); border-bottom-color: var(--pg-accent); }

.tc-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 16px 40px; }
.tc-statusrow { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.tc-status { flex: 1 1 auto; color: var(--pg-muted); font-size: 13px; }
.tc-foldall {
    background: var(--pg-surface); border: 1px solid var(--pg-line); color: var(--pg-ink); border-radius: 6px;
    padding: 4px 10px; font: 13px var(--pg-font); cursor: pointer;
}
.tc-foldall[hidden] { display: none; }
.tc-empty { color: var(--pg-muted); font-style: italic; padding: 30px 6px; text-align: center; }

.tc-group { margin: 6px 0 14px; }
.tc-group-head {
    display: flex; align-items: center; gap: 8px; padding: 8px 4px; cursor: pointer;
    border-bottom: 1px solid var(--pg-line); font: 600 15px var(--pg-font); user-select: none;
}
.tc-group-head .tc-group-blurb { font-weight: 400; font-size: 12px; color: var(--pg-muted); flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-group-head .tc-n { font-size: 12px; font-weight: 600; color: var(--pg-muted); background: var(--pg-raised);
    border: 1px solid var(--pg-line); border-radius: 10px; padding: 0 8px; }
.tc-group.collapsed > .tc-group-body { display: none; }
.tc-chev { display: inline-block; width: 12px; color: var(--pg-muted); font-size: 12px; }
.tc-chev::before { content: "\25BE"; }
.collapsed > .tc-group-head .tc-chev::before, .collapsed > .tc-card-head .tc-chev::before { content: "\25B8"; }

.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-top: 10px; align-items: start; }

.tc-card {
    background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: 10px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.tc-card.is-compare { border-color: var(--pg-accent); box-shadow: 0 0 0 2px var(--pg-accent); }
.tc-card-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; cursor: pointer; user-select: none; }
.tc-card-name { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-dots { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.tc-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.tc-fam { font-size: 11px; color: var(--pg-muted); background: var(--pg-raised); border: 1px solid var(--pg-line);
    border-radius: 10px; padding: 0 7px; white-space: nowrap; }
.tc-star {
    background: none; border: 0; cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 4px;
    color: #a3a3a3; border-radius: 6px;
}
.tc-star[aria-pressed="true"] { color: #C9970A; }
.tc-star:disabled { opacity: .5; cursor: default; }
.tc-card.collapsed > .tc-card-body { display: none; }
.tc-card-body { padding: 0 10px 10px; }
.tc-mini-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 8px; text-align: left; }
.tc-mini-btn:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 2px; }
.tc-tagline { font-size: 13px; margin: 8px 0 4px; line-height: 1.4; }
.tc-origin { font-size: 12px; color: var(--pg-muted); margin: 2px 0 4px; }
.tc-origin b { font-weight: 600; color: var(--pg-ink); }
.tc-moods { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0; }
.tc-mood { font-size: 11px; background: var(--pg-raised); border: 1px solid var(--pg-line); border-radius: 10px; padding: 0 7px; color: var(--pg-muted); }
.tc-notepre { font-size: 12px; color: var(--pg-ink); background: #FFF8E1; border-left: 3px solid #C9970A; padding: 4px 8px; margin: 6px 0; border-radius: 0 4px 4px 0;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.tc-card-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tc-btn {
    background: var(--pg-surface); color: var(--pg-ink); border: 1px solid var(--pg-line); border-radius: 6px;
    padding: 6px 12px; font: 13px var(--pg-font); cursor: pointer;
}
.tc-btn:hover { background: var(--pg-raised); }
.tc-btn.primary { background: var(--pg-accent); color: var(--pg-on-accent); border-color: var(--pg-accent); }
.tc-cmp { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--pg-muted); margin-left: auto; cursor: pointer; padding: 4px 2px; }
.tc-cmp input { width: 16px; height: 16px; margin: 0; }

/* ---- the sheets: one concept's full example, and Compare ---- */
.tc-sheet-bg {
    position: fixed; inset: 0; background: rgba(20, 20, 28, 0.55); display: none;
    align-items: center; justify-content: center; z-index: 1000; padding: 16px; box-sizing: border-box;
}
.tc-sheet-bg.open { display: flex; }
.tc-sheet {
    width: min(1000px, 100%); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
    overflow: hidden; position: relative; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.4);
    border: 1px solid rgba(0,0,0,.2);
}
.tc-sheet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 64px 18px 22px; }
.tc-sheet .ed-sheet-x { color: var(--tc-ink, #6f6144); border-color: var(--tc-line, #d8c9a6); background: var(--tc-surface, transparent); }
.tc-sheet-actions {
    flex: 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center;
    padding: 10px 16px 14px; border-top: 1px solid var(--tc-line, #ddd); background: var(--tc-raised, #f6f6f6);
}
.tc-sheet-actions .tc-copied { font-size: 12px; color: var(--tc-ok); margin-right: auto; }
.tc-hero { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 6px; }
.tc-hero-text { flex: 1 1 320px; min-width: 0; }
.tc-hero h2 {
    margin: 4px 0 6px; font-family: var(--tc-font-head); font-weight: var(--tc-head-weight); font-variant: var(--tc-head-variant);
    font-style: var(--tc-head-style); font-size: 26px; line-height: 1.15; color: var(--tc-ink);
}
.tc-hero .tc-hero-tag { font-size: 15px; margin: 0 0 8px; }
.tc-hero .tc-hero-origin { font-size: 13px; color: var(--tc-muted); margin: 0 0 6px; }
.tc-hero .tc-star { font-size: 26px; }
.tc-hero .tc-star[aria-pressed="false"] { color: var(--tc-muted); }
.tc-sheet .tcs-chip.tc-mood { font-weight: 600; }
.tc-sec { border-top: 1px var(--tc-rule) var(--tc-line); margin-top: 14px; }
.tc-sec-head {
    display: flex; align-items: center; gap: 8px; padding: 10px 0 8px; cursor: pointer; user-select: none;
    font-family: var(--tc-font-head); font-weight: var(--tc-head-weight); font-variant: var(--tc-head-variant);
    font-style: var(--tc-head-style); font-size: 16px; color: var(--tc-ink);
}
.tc-sec-head .tc-chev { color: var(--tc-muted); }
.tc-sec.collapsed > .tc-sec-body { display: none; }
.collapsed > .tc-sec-head .tc-chev::before { content: "\25B8"; }
.tc-sec-body { padding-bottom: 4px; }
.tc-duo { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .tc-duo { grid-template-columns: 1.15fr 1fr; } }
.tc-specbox { border: 1px solid var(--tc-line); border-radius: var(--tc-radius); overflow: hidden; }
.tc-about p { margin: 0 0 8px; line-height: 1.55; }
.tc-about dl { margin: 0; }
.tc-about dt { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--tc-muted); font-weight: 600; margin-top: 8px; }
.tc-about dd { margin: 2px 0 0; }
.tc-note textarea {
    display: block; width: 100%; box-sizing: border-box; min-height: 90px; resize: vertical;
    font: 15px/1.45 var(--tc-font-body); color: var(--tc-ink); background: var(--tc-surface);
    border: var(--tc-border) solid var(--tc-line); border-radius: var(--tc-btn-radius); padding: 8px 10px;
}
.tc-note .voice-mic-wrap { display: block; }
.tc-note .tc-note-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.tc-note .tc-note-status { flex: 1 1 auto; font-size: 12px; color: var(--tc-muted); }

.tc-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tc-compare-col { border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,.15); }
.tc-compare-col .tc-cc-head { padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.tc-compare-col .tc-cc-name { flex: 1 1 auto; font-family: var(--tc-font-head); font-weight: var(--tc-head-weight); font-size: 16px; }
.tc-compare-col .tc-cc-strip { display: flex; height: 18px; }
.tc-compare-col .tc-cc-strip i { flex: 1 1 0; }
.tc-compare-col .tc-cc-foot { padding: 8px 12px 12px; font-size: 13px; }
.tc-compare-sheet { background: var(--pg-page); color: var(--pg-ink); }
.tc-compare-sheet .tc-sheet-actions { background: var(--pg-raised); border-top-color: var(--pg-line); }
.tc-compare-sheet h2 { margin: 0 0 12px; font-size: 20px; }

@media (max-width: 520px) {
    .tc-scroll { padding: 8px 10px 40px; }
    .tc-grid { grid-template-columns: 1fr; }
    .tc-sheet-bg { padding: 0; }
    .tc-sheet { width: 100%; height: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; border: 0; }
    .tc-sheet-scroll { padding: 16px 58px 14px 14px; }
    .tc-hero h2 { font-size: 22px; }
    .tc-sheet-actions { gap: 6px; padding: 8px 10px 12px; }
    .tc-sheet-actions .tcs-btn { font-size: 13px; padding: 5px 9px; }
}

/* ============================== SPECIMENS ============================== */
.tcs {
    --tc-pad: 12px;
    background-color: var(--tc-page); background-image: var(--tc-texture); background-size: var(--tc-texture-size);
    color: var(--tc-ink); font-family: var(--tc-font-body); font-size: var(--tc-size); line-height: 1.45;
}
.tcs.dn-airy { --tc-pad: 16px; }
.tcs.dn-compact { --tc-pad: 8px; line-height: 1.32; }
.tcs-mini { height: 200px; overflow: hidden; border-radius: 8px; font-size: 12px; border: 1px solid rgba(0,0,0,.1); }
.tcs-mini .tcs-pad { --tc-pad: 10px; }

.tcs-head {
    display: flex; align-items: center; gap: 8px; padding: 8px var(--tc-pad);
    background: var(--tc-head-bg); color: var(--tc-head-ink);
    font-family: var(--tc-font-head); font-weight: var(--tc-head-weight); text-transform: var(--tc-head-case);
    font-variant: var(--tc-head-variant); letter-spacing: var(--tc-head-track); font-style: var(--tc-head-style);
}
.tcs-head-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcs-head-lg { font-size: 1.25em; padding: 12px var(--tc-pad); }
.tcs-head-tools { display: inline-flex; gap: 6px; font-size: .72em; letter-spacing: normal; text-transform: none; font-variant: normal; font-style: normal; }
.tcs-dots { display: inline-flex; gap: 4px; }
.tcs-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .45; display: inline-block; }
.tcs.hs-rule .tcs-head { background: transparent; color: var(--tc-ink); border-bottom: 2px var(--tc-rule) var(--tc-line); }
.tcs.hs-band .tcs-head { border-bottom: 4px solid var(--tc-accent); }
.tcs.hs-stamped .tcs-head {
    border: var(--tc-border) solid var(--tc-ink); box-shadow: 3px 3px 0 var(--tc-ink);
    margin: 8px 10px 6px; border-radius: var(--tc-btn-radius);
}
.tcs.hs-masthead .tcs-head {
    background: transparent; color: var(--tc-ink); justify-content: center; text-align: center;
    border-top: 4px solid var(--tc-accent); border-bottom: 3px double var(--tc-ink); font-size: 1.15em;
}
.tcs.hs-masthead .tcs-head-title { flex: 0 1 auto; }
.tcs.hs-masthead .tcs-dots { display: none; }

.tcs-pad { padding: var(--tc-pad); }
.tcs-stack { display: flex; flex-direction: column; gap: 8px; }
.tcs-tabs {
    display: flex; gap: 2px; padding: 0 calc(var(--tc-pad) - 4px); background: var(--tc-surface);
    border-bottom: 1px solid var(--tc-line); font-family: var(--tc-font-head); overflow: hidden;
}
.tcs.hs-rule .tcs-tabs, .tcs.hs-masthead .tcs-tabs { background: transparent; }
.tcs-tab { padding: 6px 8px 5px; color: var(--tc-muted); border-bottom: 3px solid transparent; font-size: .92em; white-space: nowrap; }
.tcs-tab.on { color: var(--tc-ink); border-bottom-color: var(--tc-accent); font-weight: 700; }

.tcs-card {
    background: var(--tc-surface); border: var(--tc-border) solid var(--tc-line); border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow); padding: calc(var(--tc-pad) * .7) var(--tc-pad);
}
.tcs.dp-stamped .tcs-card, .tcs.dp-stamped .tcs-dialog, .tcs.dp-stamped .tcs-table { border-color: var(--tc-ink); }
.tcs.fx-stripes .tcs-stack { gap: 0; border: 1px solid var(--tc-line); }
.tcs.fx-stripes .tcs-card { border-radius: 0; box-shadow: none; border-width: 0 0 1px; }
.tcs.fx-stripes .tcs-card:nth-child(even) { background: var(--tc-raised); }
.tcs.fx-edges .tcs-card { border-left: 4px solid var(--tc-line); }
.tcs.fx-edges .tcs-card[data-status="warn"] { border-left-color: var(--tc-warn); }
.tcs.fx-edges .tcs-card[data-status="ok"] { border-left-color: var(--tc-ok); }
.tcs.fx-edges .tcs-card[data-status="open"] { border-left-color: var(--tc-accent); }
.tcs-card-top { display: flex; align-items: center; gap: 8px; }
.tcs-card-title { flex: 1 1 auto; min-width: 0; font-weight: 700; font-family: var(--tc-font-head); font-variant: var(--tc-head-variant);
    font-style: var(--tc-head-style); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcs-card-line { margin-top: 3px; font-size: .95em; }
.tcs-card-meta { color: var(--tc-muted); font-size: .85em; margin-top: 2px; }

.tcs-chip {
    display: inline-block; padding: 1px 8px; border-radius: var(--tc-chip-radius); background: var(--tc-chip);
    color: var(--tc-chip-ink); font-size: .78em; font-weight: 700; white-space: nowrap; font-family: var(--tc-font-body);
}
.tcs-chip.st-ok   { background: color-mix(in srgb, var(--tc-ok) 18%, var(--tc-surface));   color: var(--tc-ok); }
.tcs-chip.st-warn { background: color-mix(in srgb, var(--tc-warn) 18%, var(--tc-surface)); color: var(--tc-warn); }
.tcs-chip.st-bad  { background: color-mix(in srgb, var(--tc-bad) 18%, var(--tc-surface));  color: var(--tc-bad); }
.tcs.fx-tags .tcs-chip.st-ok   { background: var(--tc-ok);     color: var(--tc-surface); }
.tcs.fx-tags .tcs-chip.st-warn { background: var(--tc-warn);   color: var(--tc-surface); }
.tcs.fx-tags .tcs-chip.st-open { background: var(--tc-accent); color: var(--tc-on-accent); }
.tcs.fx-jewels .tcs-chip.st-ok   { background: #14532d; color: #bbf7d0; }
.tcs.fx-jewels .tcs-chip.st-warn { background: #7a1023; color: #ffd6dd; }
.tcs.dp-stamped .tcs-chip { border: 2px solid var(--tc-ink); }

.tcs-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 5px 12px;
    border: var(--tc-border) solid var(--tc-line); border-radius: var(--tc-btn-radius);
    background: var(--tc-surface); color: var(--tc-ink); font: inherit; font-size: .9em; font-weight: 600;
    white-space: nowrap; line-height: 1.3;
}
button.tcs-btn { cursor: pointer; }
.tcs-btn.primary { background: var(--tc-accent); color: var(--tc-on-accent); border-color: var(--tc-accent); }
.tcs-btn.danger { color: var(--tc-bad); border-color: var(--tc-bad); background: transparent; }
.tcs-btn.danger.solid { background: var(--tc-bad); color: #ffffff; }
.tcs-btn.tcs-btn-head { background: transparent; color: inherit; border-color: currentColor; }
.tcs.dp-stamped .tcs-btn { border-color: var(--tc-ink); box-shadow: 2px 2px 0 var(--tc-ink); }
.tcs.dp-inset .tcs-btn, .tcs.dp-inset .tcs-input { box-shadow: inset 0 1px 3px rgba(0,0,0,.22); }
.tcs.dp-glow .tcs-btn.primary { box-shadow: 0 0 12px color-mix(in srgb, var(--tc-accent) 60%, transparent); }
.tcs-btnrow { display: flex; gap: 8px; justify-content: flex-end; margin-top: var(--tc-pad); flex-wrap: wrap; align-items: center; }
.tcs-spacer { flex: 1 1 auto; }

.tcs-label {
    font-size: .74em; color: var(--tc-muted); text-transform: var(--tc-label-case); letter-spacing: .5px;
    margin: 8px 0 3px; font-weight: 700; font-family: var(--tc-font-label);
}
.tcs-input {
    background: var(--tc-surface); border: var(--tc-border) solid var(--tc-line); border-radius: var(--tc-btn-radius);
    padding: 6px 9px; color: var(--tc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tcs-select { display: flex; justify-content: space-between; gap: 6px; }
.tcs-caret { color: var(--tc-muted); }
.tcs-area { white-space: normal; min-height: 3.2em; }
.tcs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcs-checks { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.tcs-check, .tcs-toggle { display: inline-flex; align-items: center; gap: 6px; }
.tcs-check i { width: 14px; height: 14px; border: 2px solid var(--tc-accent); border-radius: 3px; display: inline-block; box-sizing: border-box; }
.tcs-check.on i { background: var(--tc-accent); box-shadow: inset 0 0 0 2px var(--tc-surface); }
.tcs-toggle i { width: 30px; height: 16px; border-radius: 8px; background: var(--tc-line); position: relative; display: inline-block; }
.tcs-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--tc-surface); }
.tcs-toggle.on i { background: var(--tc-accent); }
.tcs-toggle.on i::after { left: 16px; background: var(--tc-on-accent); }

.tcs-h1, .tcs-h2, .tcs-dialog-title {
    font-family: var(--tc-font-head); font-weight: var(--tc-head-weight); font-variant: var(--tc-head-variant);
    font-style: var(--tc-head-style); text-transform: var(--tc-head-case); letter-spacing: var(--tc-head-track);
}
.tcs-h1 { font-size: 1.6em; line-height: 1.2; margin: 0 0 6px; }
.tcs-h2 { font-size: 1.15em; margin: 10px 0 6px; }
.tcs-mini .tcs-h1 { font-size: 1.35em; }
.tcs-kicker { font-size: .74em; color: var(--tc-accent); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 4px; }
.tcs-byline { color: var(--tc-muted); font-style: italic; font-size: .88em; margin-bottom: 10px; }
.tcs-reading p { margin: 0 0 8px; }
.tcs-reading ul { margin: 0 0 8px; padding-left: 20px; }
.tcs-quote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--tc-accent); color: var(--tc-muted); font-style: italic; }
.tcs-link { color: var(--tc-accent); text-decoration: underline; }
.tcs-small { font-size: .82em; color: var(--tc-muted); }

.tcs-table {
    width: 100%; border-collapse: collapse; background: var(--tc-surface); border-radius: var(--tc-radius);
    overflow: hidden; box-shadow: var(--tc-shadow); border: var(--tc-border) solid var(--tc-line);
}
.tcs-table th {
    font-family: var(--tc-font-label); text-align: left; font-size: .74em; color: var(--tc-muted); text-transform: var(--tc-label-case); letter-spacing: .4px;
    padding: 6px 8px; border-bottom: 2px var(--tc-rule) var(--tc-line); font-family: var(--tc-font-head); font-weight: 700;
}
.tcs-table td { padding: 6px 8px; border-bottom: 1px var(--tc-rule) var(--tc-line); }
.tcs-table .r { text-align: right; }
.tcs-table .neg { color: var(--tc-bad); }
.tcs-table tfoot td { font-weight: 700; border-top: 2px solid var(--tc-ink); border-bottom: 0; }
.tcs-num { font-variant-numeric: tabular-nums; }
.tcs.num-mono .tcs-num { font-family: var(--tc-font-mono); }

.tcs-dialogs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding: var(--tc-pad); }
.tcs-dialog {
    background: var(--tc-surface); border: var(--tc-border) solid var(--tc-line); border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow); padding: 14px 16px;
}
.tcs-dialog-title { font-size: 1.1em; margin-bottom: 6px; }
.tcs-dialog-text { color: var(--tc-muted); }
.tcs-badge {
    display: inline-block; background: var(--tc-accent); color: var(--tc-on-accent); font-size: .7em; font-weight: 700;
    padding: 2px 10px; border-radius: var(--tc-chip-radius); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.tcs-row { padding: 6px 0; border-bottom: 1px var(--tc-rule) var(--tc-line); }
.tcs-row:last-child { border-bottom: 0; }
.tcs-row .tcs-label { margin: 0 0 2px; }
.tcs-frame .tcs-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.tcs-search { flex: 1 1 auto; color: var(--tc-muted); }
.tcs-group-head {
    font-weight: 700; font-family: var(--tc-font-head); padding: 4px 0 6px; margin-bottom: 8px;
    border-bottom: 1px var(--tc-rule) var(--tc-line); display: flex; gap: 6px; align-items: center;
}
.tcs-chev { color: var(--tc-muted); }
.tcs-count { font-size: .78em; background: var(--tc-chip); color: var(--tc-chip-ink); border-radius: var(--tc-chip-radius); padding: 0 7px; }
.tcs-status { color: var(--tc-muted); font-size: .85em; margin-top: 10px; }

.tcs-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tcs-swatch {
    display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--tc-line); border-radius: 8px;
    background: var(--tc-surface); color: var(--tc-ink); font: 12px var(--tc-font-body); cursor: pointer; text-align: left;
}
.tcs-swatch-chip { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(0,0,0,.18); flex: 0 0 auto; }
.tcs-swatch-name { flex: 1 1 auto; min-width: 0; }
.tcs-swatch-hex { font-family: var(--tc-font-mono); color: var(--tc-muted); font-size: 11px; }
.tcs-type-row { padding: 8px 0; border-bottom: 1px var(--tc-rule) var(--tc-line); }
.tcs-type-row:last-child { border-bottom: 0; }
.tcs-type-row .tcs-label { margin-top: 0; }
.tcs-type-head {
    font-family: var(--tc-font-head); font-weight: var(--tc-head-weight); font-variant: var(--tc-head-variant);
    text-transform: var(--tc-head-case); letter-spacing: var(--tc-head-track); font-style: var(--tc-head-style); font-size: 1.6em;
}
.tcs-type-body { font-size: 1.05em; }
.tcs-type-num { font-size: 1.05em; }
.tcs-crow { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 1px var(--tc-rule) var(--tc-line); }
.tcs-crow:last-child { border-bottom: 0; }
.tcs-cpair { display: inline-flex; width: 40px; height: 28px; align-items: center; justify-content: center; border-radius: 6px; font-weight: 700; border: 1px solid rgba(0,0,0,.15); grid-row: span 2; }
.tcs-cratio { font-family: var(--tc-font-mono); font-size: .9em; color: var(--tc-muted); }
.tcs-cverdict { font-weight: 700; font-size: .9em; grid-column: 2 / span 2; }
.tcs-crow.v-good  .tcs-cverdict { color: var(--tc-ok); }
.tcs-crow.v-large .tcs-cverdict { color: var(--tc-warn); }
.tcs-crow.v-faint .tcs-cverdict { color: var(--tc-bad); }
@media (max-width: 520px) { .tcs .hide-sm { display: none; } }
