/* The Shell's parts of a member's pages (W7A, W8A; docs/decisions.md D61, D81), from the member space's mock
   (docs/design/member-space/ad/ad.css): the home's greeting beside its one card, its two columns of panels, a panel's
   head and body, the countdown to the exam, the subjects' bars against the pass rule. On the kit's tokens alone, so
   they follow light, dark and the colour style. A module's own parts carry its prefix (prc-, rdr-, stu-). */
:root { --shl-accent: var(--cc-accent-text, var(--cc-ink)); }

/* the home: the greeting and the hero card, then the columns */
.shl-hero { position: relative; padding-block: 56px 48px; overflow: hidden; border-bottom: 1px solid var(--cc-line-soft); }
.shl-hero > .cw-wrap { position: relative; }
.shl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.shl-hero-grid.is-alone { grid-template-columns: minmax(0, 1fr); }
.shl-hero .cw-page-title { font-size: clamp(34px, 3.9vw, 50px); }
.shl-hero .cw-lead { margin: 20px 0 0; max-width: 540px; }
.shl-main { padding-block: 40px 56px; }
.shl-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }

/* a panel: a card with a head (title, a line under it, an action) and a body */
.shl-panel { overflow: hidden; }
.shl-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; padding: 20px 22px 0; }
.shl-title { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.shl-sub { font-size: 13.5px; color: var(--cc-muted); margin: 3px 0 0; }
.shl-body { padding: 16px 22px 22px; }
.shl-body > :last-child { margin-bottom: 0; }
.shl-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* a subject's card: its name beside its ring (the share mastered, W8), its figures under it; a topic's line, its share */
.shl-subject-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.shl-ring { --p: 0; position: relative; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--shl-accent) calc(var(--p) * 1%), var(--cc-hover) 0); display: grid; place-items: center; }
.shl-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--cc-surface); }
.shl-ring b { position: relative; font-family: var(--cc-font-mono); font-size: 12px; font-weight: 600; }
.shl-ring.is-under { background: conic-gradient(var(--cc-warn) calc(var(--p) * 1%), var(--cc-hover) 0); }
.shl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--cc-line-soft); }
.shl-facts > span { display: flex; flex-direction: column; }
.shl-facts small { font-size: 11.5px; color: var(--cc-muted); }
.shl-facts b { font-family: var(--cc-font-mono); font-size: 14px; font-weight: 600; }
.shl-topic-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; }
.shl-share { display: inline-flex; align-items: center; gap: 10px; min-width: 9rem; }
.shl-share .cc-meter { flex: 1 1 auto; width: 6rem; height: 4px; }
.shl-share .cc-meter > span { background: var(--shl-accent); }
.shl-share .cc-meter.is-under > span { background: var(--cc-warn); }

/* two views of one panel, chosen by two radios drawn as a segmented switch (no script): the first view the first radio's */
.shl-views { position: relative; }
.shl-views > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shl-views > label { display: inline-flex; padding: 5px 12px; margin: 0 2px 14px 0; font-size: 13px; font-weight: 500; color: var(--cc-muted); border: 1px solid var(--cc-line); border-radius: 999px; cursor: pointer; }
.shl-views > input:checked + label { color: var(--cc-inv-fg); background: var(--cc-inv-bg); border-color: var(--cc-inv-bg); }
.shl-views > input:focus-visible + label { outline: 2px solid var(--shl-accent); outline-offset: 2px; }
.shl-views > .shl-view { display: none; }
.shl-views > input:nth-of-type(1):checked ~ .shl-view:nth-of-type(1), .shl-views > input:nth-of-type(2):checked ~ .shl-view:nth-of-type(2) { display: block; }

/* the countdown to the exam */
.shl-count { position: relative; padding: 26px 28px 24px; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-r-xl); box-shadow: var(--cc-shadow-lg); }
.shl-count-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.shl-count-n { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.shl-count-n b { font-size: clamp(76px, 8.4vw, 116px); font-weight: 600; letter-spacing: -.065em; line-height: .86; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }
.shl-count-n span { font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--cc-muted); max-width: 9ch; }
.shl-count-when { margin: 16px 0 2px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.shl-count-facts { margin: 0 0 18px; font-family: var(--cc-font-mono); font-size: 11.5px; color: var(--cc-muted); }
.shl-rule { display: flex; gap: 10px; margin: 0; padding-top: 16px; border-top: 1px solid var(--cc-line-soft); font-size: 13px; color: var(--cc-muted); }
.shl-rule .bi { color: var(--cc-ink); }
/* the links under the hero card, where else the sitting is told of (Journey's Examenul, D32) */
.shl-count-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }

/* the subjects against the pass rule: a bar a subject, its minimum and the overall share marked */
.shl-subjs { display: grid; }
.shl-subj { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) 4.6rem; align-items: center; gap: 8px 20px; padding: 12px 0; border-top: 1px solid var(--cc-line-soft); }
.shl-subj:first-child { border-top: 0; padding-top: 4px; }
.shl-subj-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.shl-subj-name small { display: block; margin-top: 2px; font-family: var(--cc-font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--cc-muted); }
.shl-bar { position: relative; height: 10px; border-radius: 99px; background: var(--cc-hover); }
.shl-bar > i { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 99px; background: var(--shl-accent); }
.shl-bar.is-under > i { background: var(--cc-warn); }
.shl-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--cc-ink); opacity: .5; }
.shl-mark.is-min { background: var(--cc-bad); opacity: .85; }
.shl-val { text-align: right; font-family: var(--cc-font-mono); font-size: 12px; color: var(--cc-muted); white-space: nowrap; }
.shl-val b { font-size: 15px; font-weight: 600; color: var(--cc-ink); }

/* a short list of lines in a panel */
.shl-list { list-style: none; margin: 0; padding: 0; display: grid; }
.shl-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--cc-line-soft); }
.shl-list > li:first-child { border-top: 0; padding-top: 0; }
.shl-big { font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }

/* a member's page (W7A's group 2; docs/decisions.md D64): its head (crumbs, title, lead, actions, figures), its
   sections and their heads, cards of a choice, a note, a finding form, chips */
.shl-pagehead { position: relative; padding-block: 44px 32px; overflow: hidden; border-bottom: 1px solid var(--cc-line-soft); }
.shl-pagehead > .cw-wrap { position: relative; }
.shl-pagehead-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.shl-pagehead .cw-page-title { font-size: clamp(30px, 3.5vw, 44px); margin-top: 12px; }
.shl-pagehead .cw-lead { margin: 14px 0 0; max-width: 620px; font-size: 16.5px; }
.shl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--cc-muted); }
.shl-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--cc-line-strong); }
.shl-crumbs a { color: var(--cc-muted); }
.shl-crumbs a:hover { color: var(--cc-ink); }
.shl-kpis { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.shl-kpis li { display: flex; flex-direction: column; }
.shl-kpis b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.shl-kpis span { font-size: 12.5px; color: var(--cc-muted); }
.shl-section { padding-block: 40px 8px; scroll-margin-top: calc(var(--cw-header-h, 64px) + 64px); }
.shl-section:last-child { padding-bottom: 56px; }
.shl-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.shl-section-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.shl-section-head p { margin: 4px 0 0; font-size: 14px; color: var(--cc-muted); max-width: 640px; }
.shl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.shl-cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shl-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-r-lg); color: var(--cc-ink); transition: border-color .2s, transform .35s var(--cc-ease), box-shadow .2s; }
a.shl-card:hover { border-color: var(--cc-line-strong); box-shadow: var(--cc-shadow-md); transform: translateY(-2px); text-decoration: none; color: var(--cc-ink); }
.shl-card .cc-tile { margin-bottom: 10px; }
.shl-card h3 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; }
.shl-card p { margin: 0; font-size: 14px; color: var(--cc-muted); }
.shl-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--cc-muted); }
.shl-card.is-ink { background: var(--cc-inv-bg); border-color: var(--cc-inv-bg); color: var(--cc-inv-fg); }
.shl-card.is-ink h3 { color: var(--cc-inv-fg); }
.shl-card.is-ink p, .shl-card.is-ink .shl-card-foot { color: color-mix(in srgb, var(--cc-inv-fg) 78%, transparent); }
.shl-card.is-ink .cc-tile { background: color-mix(in srgb, var(--cc-inv-fg) 14%, transparent); color: var(--cc-inv-fg); }
.shl-card.is-ink a:not(.btn) { color: var(--cc-inv-fg); }
.shl-card.is-ink .shl-list > li { border-color: color-mix(in srgb, var(--cc-inv-fg) 18%, transparent); }
.shl-note { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--cc-r); background: var(--cc-sunken); border: 1px solid var(--cc-line-soft); font-size: 13.5px; color: var(--cc-muted); }
.shl-note .bi { color: var(--cc-ink); margin-top: 1px; }
.shl-find { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) auto; align-items: end; gap: 12px; }
.shl-pop { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shl-pop a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-surface); font-size: 13px; color: var(--cc-ink); }
.shl-pop a:hover { border-color: var(--cc-line-strong); text-decoration: none; }
.shl-pop a span { font-family: var(--cc-font-mono); font-size: 11px; color: var(--cc-muted); }
.shl-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.shl-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shl-choice label { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; padding: 8px 14px; border: 1px solid var(--cc-line); border-radius: var(--cc-r); background: var(--cc-surface); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.shl-choice input:checked + label { background: var(--cc-inv-bg); border-color: var(--cc-inv-bg); color: var(--cc-inv-fg); }
.shl-choice input:focus-visible + label { outline: 2px solid var(--shl-accent); outline-offset: 2px; }

/* W8A (docs/decisions.md D81): the parts the mock's pages share, translated from its ad.css */
:root { --shl-flag: #e0b24a; }
[data-bs-theme="dark"] { --shl-flag: #9a5c06; }

/* the footer, one line (the site's override of the kit's) */
.shl-footer nav { align-items: center; }
.shl-footer-menu ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }

/* an article's text: the portal's caret kept in the text for the highlights' offsets, hidden; its index raised */
.rdr-caret { display: none; }

/* the home's head: its actions, then the figures as the mock's row, the hero ending on them */
.shl-hero .shl-actions { margin-top: 28px; }
.shl-hero.has-stats { padding-bottom: 0; }
.shl-hero .cw-stats { margin-top: 52px; }
.shl-hero .cw-stat { padding-bottom: 26px; }
.shl-hero .cw-stat-v { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.shl-hero .cw-stat-v small { font-size: .42em; font-weight: 500; letter-spacing: -.01em; color: var(--cc-muted); }
.shl-stat-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }

/* a choice of a few, as the kit's segmented control: radios, the chosen one raised (no script) */
.shl-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--cc-hover); }
.shl-seg > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shl-seg > label { padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--cc-muted); cursor: pointer; }
.shl-seg > label:hover { color: var(--cc-ink); }
.shl-seg > input:checked + label { color: var(--cc-ink); background: var(--cc-surface); box-shadow: var(--cc-shadow); }
[data-bs-theme="dark"] .shl-seg > input:checked + label { background: var(--cc-line); }
.shl-seg > input:focus-visible + label { outline: 2px solid var(--shl-accent); outline-offset: 1px; }
.shl-seg.is-sm > label { padding: 4px 10px; font-size: 12.5px; }

/* five cards a row (the subjects), scrolling sideways below a desk's width; a ring on an ink card */
.shl-cards.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shl-card.is-ink .shl-ring { background: conic-gradient(var(--cc-inv-fg) calc(var(--p) * 1%), color-mix(in srgb, var(--cc-inv-fg) 18%, transparent) 0); }
.shl-card.is-ink .shl-ring::before { background: var(--cc-inv-bg); }
.shl-card.is-ink .shl-facts { border-color: color-mix(in srgb, var(--cc-inv-fg) 18%, transparent); }
.shl-card.is-ink .shl-facts small, .shl-card.is-ink .font-monospace { color: color-mix(in srgb, var(--cc-inv-fg) 72%, transparent); }
[data-bs-theme="dark"] .shl-card.is-ink .shl-facts small, [data-bs-theme="dark"] .shl-card.is-ink .font-monospace,
[data-bs-theme="dark"] .shl-card.is-ink p, [data-bs-theme="dark"] .shl-card.is-ink .shl-card-foot { color: var(--cc-inv-fg); }

/* the countdown's session chosen: the sessions offered as the choice's pills (W8A's Q217; D83) */
.shl-count-top .badge { font-weight: 500; }
.shl-prepare { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0 0 18px; }
.shl-prepare fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.shl-prepare legend { float: none; width: auto; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; }
.shl-prepare .shl-choice label { min-width: 0; padding: 6px 12px; font-size: 13.5px; font-weight: 500; }
.shl-prepare > .btn { min-height: 35px; }
.shl-prepare-more { margin: -6px 0 18px; font-size: 13px; }
.shl-prepare-more > summary { color: var(--cc-muted); cursor: pointer; }
.shl-prepare-more[open] > summary { margin-bottom: 12px; }
.shl-prepare-more .shl-prepare { margin-bottom: 0; }

/* a panel's foot: a line and its link, on the sunken ground */
.shl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 22px; border-top: 1px solid var(--cc-line-soft); background: var(--cc-sunken); font-size: 13px; color: var(--cc-muted); }
.shl-foot .cw-link, .shl-foot .cw-link-btn { font-size: 13.5px; }
.shl-foot form { margin: 0; }
form.shl-foot { margin: 0; }
.shl-foot .cw-link-btn.cw-link { color: var(--cc-ink); font-weight: 500; }
.shl-mono { font-family: var(--cc-font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* two views of a panel chosen in its head, as the kit's segmented switch: two radios first in the panel (no script) */
.shl-switch > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shl-switch .nav-segment > label { position: relative; z-index: 1; padding: 4px 10px; font-size: 12.5px; font-weight: 500; color: var(--cc-muted); border-radius: 7px; white-space: nowrap; cursor: pointer; }
.shl-switch .nav-segment > label:hover { color: var(--cc-ink); }
.shl-switch > input:nth-of-type(1):checked ~ .shl-head .nav-segment > label:nth-of-type(1),
.shl-switch > input:nth-of-type(2):checked ~ .shl-head .nav-segment > label:nth-of-type(2) { color: var(--cc-ink); background: var(--cc-surface); box-shadow: var(--cc-shadow); }
[data-bs-theme="dark"] .shl-switch > input:nth-of-type(1):checked ~ .shl-head .nav-segment > label:nth-of-type(1),
[data-bs-theme="dark"] .shl-switch > input:nth-of-type(2):checked ~ .shl-head .nav-segment > label:nth-of-type(2) { background: var(--cc-hover); }
.shl-switch > input:nth-of-type(1):focus-visible ~ .shl-head .nav-segment > label:nth-of-type(1),
.shl-switch > input:nth-of-type(2):focus-visible ~ .shl-head .nav-segment > label:nth-of-type(2) { outline: 2px solid var(--shl-accent); outline-offset: 1px; }
.shl-switch > input:nth-of-type(1):checked ~ * .shl-in-2, .shl-switch > input:nth-of-type(2):checked ~ * .shl-in-1 { display: none !important; }

/* the legend under the subjects' bars */
.shl-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--cc-muted); }
.shl-legend li { display: inline-flex; align-items: center; gap: 8px; }
.shl-legend i { display: inline-block; width: 2px; height: 14px; border-radius: 2px; background: var(--cc-ink); opacity: .5; }
.shl-legend i.is-min { background: var(--cc-bad); opacity: .85; }
.shl-legend i.is-under { width: 14px; height: 8px; border-radius: 99px; background: var(--cc-warn); opacity: 1; }

/* lines in a panel, two a row where they are topics; a topic: its name, its share and a line under it on a meter */
.shl-lines { list-style: none; margin: 0; padding: 0; }
.shl-lines > li { padding: 12px 0; border-top: 1px solid var(--cc-line-soft); }
.shl-lines > li:first-child { border-top: 0; padding-top: 2px; }
.shl-lines.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.shl-lines.is-grid > li:nth-child(2) { border-top: 0; padding-top: 2px; }
.shl-topic { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; }
.shl-topic b, .shl-topic a { font-size: 14px; font-weight: 500; color: var(--cc-ink); }
.shl-topic .shl-mono { font-size: 11.5px; color: var(--cc-muted); }
.shl-topic .shl-pct { grid-row: 1; grid-column: 2; font-family: var(--cc-font-mono); font-size: 13px; font-weight: 600; }
.shl-topic .cc-meter { grid-column: 1 / -1; height: 4px; margin-top: 6px; }
.shl-topic .cc-meter > span { background: var(--cc-warn); }
.shl-change { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.shl-change b { display: block; font-size: 14px; font-weight: 500; }
.shl-change b a { color: var(--cc-ink); }
.shl-change span { display: block; font-size: 13px; color: var(--cc-muted); }
.shl-change time { font-family: var(--cc-font-mono); font-size: 11.5px; color: var(--cc-muted); white-space: nowrap; }

/* the attempt in progress: the dark card and its answer sheet, a row a subject */
.shl-live { position: relative; padding: 22px; border-radius: var(--cc-r-lg); background: var(--cc-inv-bg); color: var(--cc-inv-fg); box-shadow: var(--cc-shadow-lg); overflow: hidden; }
.shl-live .cc-eyebrow { display: flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--cc-inv-fg) 68%, transparent); }
.shl-live h2 { margin: 10px 0 2px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; color: var(--cc-inv-fg); }
.shl-live-meta { margin: 0; font-size: 13.5px; color: color-mix(in srgb, var(--cc-inv-fg) 72%, transparent); }
.shl-live .cc-live { background: var(--shl-flag); }
.shl-live > .btn { width: 100%; }
.shl-live-more { margin: 14px 0 0; font-size: 13px; }
.shl-live-more a { color: color-mix(in srgb, var(--cc-inv-fg) 86%, transparent); }
.shl-sheet { display: grid; gap: 8px; margin: 20px 0 14px; }
.shl-sheet-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: center; gap: 8px; }
.shl-sheet-row > span { font-family: var(--cc-font-mono); font-size: 10px; letter-spacing: .06em; color: color-mix(in srgb, var(--cc-inv-fg) 62%, transparent); }
.shl-sheet-row.is-alone { grid-template-columns: minmax(0, 1fr); }
.shl-cells { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.shl-cells i { aspect-ratio: 1; max-width: 100%; border-radius: 2px; background: color-mix(in srgb, var(--cc-inv-fg) 14%, transparent); }
.shl-cells i.is-a { background: color-mix(in srgb, var(--cc-inv-fg) 80%, transparent); }
.shl-cells i.is-f { box-shadow: inset 0 0 0 2px var(--shl-flag); }
.shl-cells i.is-c { background: transparent; box-shadow: inset 0 0 0 1.5px var(--cc-inv-fg); }
.shl-sheet-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 12px; color: color-mix(in srgb, var(--cc-inv-fg) 72%, transparent); }
.shl-sheet-key li { display: inline-flex; align-items: center; gap: 6px; }
.shl-sheet-key i { width: 10px; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--cc-inv-fg) 80%, transparent); }
.shl-sheet-key i.is-f { background: transparent; box-shadow: inset 0 0 0 2px var(--shl-flag); }
.shl-sheet-key i.is-e { background: color-mix(in srgb, var(--cc-inv-fg) 14%, transparent); }
/* the card wide (Simulări): its words beside the sheet */
.shl-live.is-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 24px 40px; padding: 28px 30px; }
.shl-live.is-wide .shl-sheet { margin: 0; }
.shl-live.is-wide .shl-live-meta { max-width: 52ch; }
.shl-live.is-wide .shl-sheet-key { margin-bottom: 20px; }
@media (max-width: 991.98px) { .shl-live.is-wide { grid-template-columns: minmax(0, 1fr); padding: 22px; } }

/* in the dark theme the card's ground is light: its small words at full strength, for their contrast */
[data-bs-theme="dark"] .shl-live .cc-eyebrow, [data-bs-theme="dark"] .shl-live-meta, [data-bs-theme="dark"] .shl-sheet-key,
[data-bs-theme="dark"] .shl-sheet-row > span, [data-bs-theme="dark"] .shl-live-more a { color: var(--cc-inv-fg); }

/* a chart in a panel; a table reaching the panel's edges; a score */
.shl-chart { height: 228px; margin: 8px 0 6px; }
.shl-table { overflow-x: auto; margin: 6px -22px -22px; }
.shl-table .table { margin: 0; }
.shl-table .table > :not(caption) > * > * { padding: 12px 22px 12px 0; }
.shl-table .table > :not(caption) > * > *:first-child { padding-left: 22px; }
.shl-table td { white-space: nowrap; font-size: 14px; }
.shl-score { font-family: var(--cc-font-mono); font-weight: 600; }
.shl-score span { font-weight: 400; color: var(--cc-muted); }

/* a card of one line: its tile, its title and what it holds, its action (until W11's plan of the day takes them in) */
.shl-task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 22px; }
.shl-task-title { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--bs-heading-color); }
.shl-task-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--cc-muted); }
.shl-task .shl-actions { flex-wrap: nowrap; gap: 8px; }
.shl-task form { margin: 0; }

/* the tutor's last exchange, its source and its box */
.shl-chat { gap: 12px; }
.shl-chat .cw-bubble { font-size: 14px; }
.shl-chat .cw-bubble.is-bot > div { max-width: 100%; }
.shl-chat .avatar { font-size: 12px; font-weight: 600; }
.shl-cite { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 8px; border-radius: 6px; background: var(--cc-surface); border: 1px solid var(--cc-line); font-family: var(--cc-font-mono); font-size: 11.5px; color: var(--shl-accent); }
.shl-ai { display: flex; align-items: center; gap: 6px; margin: 2px 0 0 32px; font-size: 11.5px; color: var(--cc-muted); }
.shl-ask { display: flex; gap: 8px; margin-top: 16px; }
.shl-ask .form-control { font-size: 14px; padding: 8px 12px; }

@media (max-width: 1199.98px) {
  .shl-cards.is-5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
  .shl-cards.is-5 > * { scroll-snap-align: start; }
}
@media (max-width: 991.98px) {
  .shl-cards.is-3 { grid-template-columns: minmax(0, 1fr); }
  .shl-hero { padding-top: 36px; }
  .shl-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767.98px) {
  .shl-subj { grid-template-columns: minmax(0, 1fr) auto; }
  .shl-bar { grid-column: 1 / -1; grid-row: 2; }
  .shl-count { padding: 22px 20px 20px; }
  .shl-head { padding-left: 18px; padding-right: 18px; }
  .shl-body { padding-left: 18px; padding-right: 18px; }
  .shl-find { grid-template-columns: minmax(0, 1fr); }
  .shl-pagehead { padding-top: 32px; }
  .shl-lines.is-grid { grid-template-columns: minmax(0, 1fr); }
  .shl-lines.is-grid > li:nth-child(2) { border-top: 1px solid var(--cc-line-soft); padding-top: 12px; }
  .shl-hero .cw-stats { margin-top: 36px; }
  .shl-foot, .shl-task { padding-left: 18px; padding-right: 18px; }
  .shl-task { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .shl-task > .cc-tile { display: none; }
  .shl-task > .shl-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .shl-table { margin-left: -18px; margin-right: -18px; }
  .shl-table .table > :not(caption) > * > *:first-child { padding-left: 18px; }
}
@media print {
  .shl-hero { padding-block: 0 16px; }
}

/* Contul meu (W8A's Q213; the mock's cont.html): the member's initials and name, a side menu to the panels, a setting a
   row (what it is on the left, its control on the right) */
.shl-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 12px; }
.shl-profile .cw-page-title { margin: 0; font-size: clamp(28px, 3vw, 38px); }
.shl-profile .cw-lead { margin: 4px 0 0; font-size: 15px; }
.shl-initials { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--cc-inv-bg); color: var(--cc-inv-fg); font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.shl-settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 32px 64px; }
.shl-settings-nav { position: sticky; top: 84px; }
.shl-settings-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shl-settings-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; color: var(--cc-muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.shl-settings-nav a:hover, .shl-settings-nav a:focus-visible { background: var(--cc-hover); color: var(--cc-ink); }
.shl-settings-body { display: grid; gap: 24px; min-width: 0; }
.shl-settings-body > section { scroll-margin-top: 84px; }
.shl-setrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 12px 24px; padding: 16px 0; margin: 0; border-top: 1px solid var(--cc-line-soft); }
.shl-setrow:first-child { border-top: 0; padding-top: 2px; }
.shl-setrow > div:first-of-type b { display: block; font-size: 14.5px; font-weight: 500; }
.shl-setrow > div:first-of-type span { display: block; font-size: 13px; color: var(--cc-muted); margin-top: 2px; }
.shl-setrow-fields { min-width: 0; }
.shl-setrow-fields details > summary { list-style: none; display: inline-flex; }
.shl-setrow-fields details > summary::-webkit-details-marker { display: none; }
.shl-setrow-fields .shl-list > li { display: grid; gap: 2px; justify-content: stretch; }
@media (max-width: 991.98px) {
  .shl-settings { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .shl-settings-nav { position: static; }
  .shl-settings-nav ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .shl-setrow { grid-template-columns: minmax(0, 1fr); }
}

/* a starter card (W11A's Q252; docs/decisions.md D103): its tag, the line at its foot; on a phone, shortened to its
   first lines, a card whose source is empty hidden */
.shl-starter-tag { display: inline-flex; align-items: center; gap: 5px; }
/* the sign-in screens in the site's frame (W12's task 1): a panel in the middle, beside it on the way in what an account
   holds */
.shl-auth { padding-block: 48px 72px; }
.shl-auth-grid { display: grid; gap: 32px; max-width: 460px; margin-inline: auto; }
.shl-auth-grid.has-side { max-width: 1000px; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); align-items: center; }
.shl-auth-body { padding: 32px 28px; }
.shl-auth-side { padding: 8px 8px 8px 24px; }
/* a red outline button read on the dark page (W12's Q272: Bootstrap's red is 4.07:1 on it) */
[data-bs-theme="dark"] .btn-outline-danger { --bs-btn-color: #f1868f; --bs-btn-border-color: #f1868f; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #dc3545; --bs-btn-hover-border-color: #dc3545; }
/* a text Citire ușoară reshapes (reading.css; W12's Q272): the question of the day's */
.shl-readable.is-stem { font-size: 1.25rem; }
/* Notificări's two channels a kind, as the mock's (W12's Q266); the app offered on Spațiul meu (Q267) */
.shl-chans { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.shl-install { margin-top: 16px; }
.shl-install-icon { border-radius: 12px; flex: 0 0 48px; }
/* the mark's cap in a face or a tile (shell::site/partials/cap; W12's Q268) */
.avatar > .shl-cap, .cc-tile > .shl-cap { width: 58%; height: 58%; }
.shl-auth-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; font-size: 13px; color: var(--cc-muted); }
.shl-auth-or::before, .shl-auth-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--cc-line); }
@media (max-width: 991.98px) {
  .shl-auth-grid.has-side { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .shl-auth-side { padding: 0 4px; }
}
@media (max-width: 575.98px) {
  .shl-auth { padding-block: 24px 48px; }
  .shl-auth-body { padding: 24px 18px; }
}
/* a legal document and its acceptance (W12's task 2) */
.shl-legal { padding-block: 40px 72px; }
.shl-legal-body { font-size: 15.5px; line-height: 1.7; }
.shl-legal-body h2 { font-size: 18px; margin: 28px 0 10px; }
.shl-legal-body h3 { font-size: 16px; margin: 20px 0 8px; }
.shl-legal-body ul, .shl-legal-body ol { padding-left: 1.3em; }
/* the unsubscribe page (W11A's task 7): a panel alone in the middle */
.shl-unsubscribe { padding-block: 56px 72px; }
.shl-unsubscribe .shl-body { padding: 36px 28px; }
.shl-starter-foot { display: grid; gap: 2px; margin: 12px 0 0; font-size: 12.5px; color: var(--cc-muted); }
.shl-starter-foot b { font-weight: 600; color: var(--cc-ink); }
@media (max-width: 767.98px) {
  .shl-starter-rest, .shl-starter.is-waiting, .shl-starter .shl-starter-foot { display: none !important; }
}
/* the side's cards two by two on a tablet: never a half-empty screen */
@media (min-width: 768px) and (max-width: 991.98px) {
  .shl-col.is-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the phone's bar (W28's task 4; Q329; D124), as the mock's app-tabs (ad/app.css): the path's tabs fixed at the foot
   below a tablet's width, over a space kept for it under the footer; the drawer opens above it */
.shl-tabs, .shl-tabs-space { display: none; }
@media (max-width: 767.98px) {
  .shl-tabs-space { display: block; height: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .shl-tabs { position: fixed; inset: auto 0 0; z-index: 1035; display: grid; grid-template-columns: repeat(var(--shl-tabs, 5), minmax(0, 1fr)); padding: 6px 4px env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--cc-surface) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--cc-line); }
  .shl-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-height: 50px; padding-top: 4px; font-size: 11px; font-weight: 500; line-height: 1.2; color: var(--cc-muted); text-decoration: none; text-align: center; border-radius: var(--cc-r-sm); }
  .shl-tabs a .bi { font-size: 22px; line-height: 1.1; }
  .shl-tabs a[aria-current] { color: var(--cc-accent-text, var(--cc-ink)); font-weight: 600; }
  .shl-tabs a:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--cc-ring); }
}
@media print {
  .shl-tabs, .shl-tabs-space { display: none !important; }
}

/* the account's menu by its headings (V9E's task 13; docs/decisions.md D83): the dropdown a little wider and rounder, a
   heading a group in small capitals, compact rows with their icons in the muted ink, Ieșiți apart; the phone's drawer
   the same groups as rows, in place of a button a link */
.shl-account-menu { min-width: 288px; padding: 6px; border-radius: 16px; box-shadow: var(--cc-shadow-lg); }
.shl-account-menu .cw-account-me { padding: 10px 10px 8px; }
.shl-account-menu .dropdown-divider { margin: 6px 4px; }
.shl-account-group + .shl-account-group { margin-top: 2px; }
.shl-account-group-label { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--cc-muted); }
.shl-account-menu .dropdown-item { gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: 14px; }
.shl-account-menu .dropdown-item > .bi { width: 18px; flex: none; text-align: center; font-size: 15px; color: var(--cc-muted); }
.shl-account-menu .dropdown-item:hover > .bi, .shl-account-menu .dropdown-item:focus-visible > .bi { color: inherit; }
.shl-account-groups { display: grid; gap: 2px; }
.shl-account-groups .shl-account-group-label { padding: 14px 6px 4px; }
.shl-account-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 10px; color: inherit; font-size: 15px; text-decoration: none; }
.shl-account-row:hover, .shl-account-row:focus-visible { background: var(--cc-hover); color: inherit; }
.shl-account-row > .bi { width: 20px; flex: none; text-align: center; font-size: 16px; color: var(--cc-muted); }

/* the new member's card, lower right (V9E's task 16; docs/decisions.md D86): above the phone's bar where it is drawn */
.shl-video-card { position: fixed; right: 20px; bottom: 20px; z-index: 1030; display: flex; gap: 12px; align-items: flex-start; width: min(340px, calc(100vw - 32px)); padding: 16px 44px 16px 16px; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: 16px; box-shadow: var(--cc-shadow-lg); }
.shl-video-card[hidden] { display: none; }
.shl-video-card-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--cc-soft-bg); color: var(--cc-soft-ink); font-size: 20px; }
.shl-video-card-title { margin: 0; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.shl-video-card-text { margin: 4px 0 10px; font-size: 13px; line-height: 1.45; color: var(--cc-muted); }
.shl-video-card .btn > .bi { margin-right: 4px; }
.shl-video-card-close { position: absolute; top: 6px; right: 6px; margin: 0; }
@media (max-width: 767.98px) { .shl-tabs ~ .shl-video-card { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); right: 16px; } }

/* V23 (D174): a figure's or a signal's photographs, „Pe apă”, and an animation beside a signal, each closed at first so
   that nothing of them loads until opened (the phone's data); the drawing's space is the Reader's (reader.css) */
.nv-photos > summary, .nv-animations > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--cc-accent, #0e4c7a); list-style-position: inside; }
.nv-photos > summary .bi, .nv-animations > summary .bi { margin-right: 4px; }
.nv-photo img, .nv-photo video { max-width: 640px; border-radius: 6px; background: var(--cc-canvas); }
.nv-photo figcaption small a { color: inherit; text-decoration: underline; }
