:root {
    color-scheme: light;
    --ink: #2a2e33;
    --muted: #6b7178;
    --paper: #e6e8eb;
    --card: #ffffff;
    --line: #d5d8dc;
    --chrome: #3a3f45;
    --chrome-ink: #f4f5f6;
    --teal: #1aa3a1;
    --guide: #147673;
    --danger: #8a3030;
    --danger-bg: #f8e8e6;
    --ok: #e5f4f3;
    --sans: "Segoe UI", "Helvetica Neue", sans-serif;
    --mono: "Cascadia Code", "Segoe UI Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.45;
    overflow: hidden;
}

h1, h2, h3 { font-weight: 650; letter-spacing: 0; }
.crumb { margin: 0 0 0.35rem; font-size: 0.82rem; font-weight: 650; }
h1 { margin: 0 0 0.6rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--line); font-size: 1.15rem; color: #4b5158; }
h2 { margin: 1.1rem 0 0.55rem; font-size: 0.95rem; color: #3c4248; }
h3 { margin: 0.95rem 0 0.4rem; font-size: 0.9rem; color: #3c4248; }
h3 { margin: 1rem 0 0.35rem; font-size: 0.9rem; }
p { margin: 0.35rem 0; }

.app { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.sign-in-shell {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(720px 360px at 50% -12%, rgba(26, 163, 161, 0.16), transparent 62%),
        linear-gradient(180deg, #252a30 0%, #323940 100%);
}
.sign-in-stage {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0.75rem 1rem 1rem;
}
.sign-in-frame {
    width: min(24rem, 100%);
    display: grid;
    gap: 0.85rem;
    justify-items: stretch;
}
.sign-in-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    color: #f4f5f6;
}
.sign-in-mark {
    width: 2.75rem;
    height: 2.75rem;
    display: block;
    border-radius: 50%;
    flex: 0 0 auto;
}
.sign-in-product {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    line-height: 1.15;
}
.sign-in-product .brand-name {
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}
.sign-in-product-line {
    font-size: 0.92rem;
    font-weight: 450;
    letter-spacing: 0.04em;
    color: #aeb7bf;
}
.sign-in-panel {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1.25rem 1.2rem 1.3rem;
    box-shadow: 0 12px 28px rgba(10, 12, 14, 0.22);
}
.sign-in-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.3rem;
}
.sign-in-panel h1 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.1rem;
    color: var(--ink);
}
.sign-in-panel .lede { margin: 0 0 0.9rem; color: var(--muted); }
.sign-in-hint { margin-top: 0.75rem; font-size: 0.85rem; }
.sign-in-panel .people {
    max-width: none;
}
.sign-in-start { display: grid; gap: 0.85rem; margin: 0; }
.sign-in-start button {
    width: 100%;
    background: var(--guide);
    border-color: var(--guide);
}
.sign-in-start button:hover {
    background: #0f5f5d;
    border-color: #0f5f5d;
}
.sign-in-credit {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: #8f989f;
    text-align: left;
}
.sign-in-culture {
    flex: 0 0 auto;
    color: var(--muted);
}
.sign-in-culture .locale-globe:hover,
.sign-in-culture .locale-menu[open] > .locale-globe {
    color: var(--guide);
}
.sign-in-culture .locale-list {
    right: 0;
    left: auto;
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 8px 20px rgba(20, 24, 28, 0.12);
}
.sign-in-culture .locale-item {
    color: var(--ink);
}
.sign-in-culture .locale-item:hover:not(:disabled) {
    background: var(--ok);
}
.sign-in-culture .locale-item.is-current,
.sign-in-culture .locale-item:disabled {
    color: var(--guide);
}
.demo-accounts {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}
.demo-accounts summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--muted);
}
.demo-accounts[open] summary { margin-bottom: 0.55rem; }
.demo-accounts-body {
    display: grid;
    gap: 0.45rem;
    max-height: min(22rem, calc(100dvh - 17rem));
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    padding: 0.15rem 0.35rem 0.35rem 0;
    margin-right: -0.15rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #7a828a #e6e8eb;
    -webkit-overflow-scrolling: touch;
}
.demo-accounts-body::-webkit-scrollbar {
    width: 0.7rem;
}
.demo-accounts-body::-webkit-scrollbar-track {
    background: #e6e8eb;
    border-radius: 2px;
}
.demo-accounts-body::-webkit-scrollbar-thumb {
    background: #7a828a;
    border-radius: 2px;
    border: 2px solid #e6e8eb;
}
.demo-accounts-body > .lede {
    margin: 0;
    font-size: 0.82rem;
}
.demo-accounts .people-search { max-width: none; margin: 0; }
.demo-accounts .sign-in-start {
    gap: 0.45rem;
}
.demo-accounts .sign-in-start button.quiet {
    width: auto;
    justify-self: start;
}

.skip {
    position: absolute;
    left: 0.5rem;
    top: -3rem;
    z-index: 6;
    background: var(--card);
    color: var(--ink);
    padding: 0.4rem 0.55rem;
}

.skip:focus { top: 0.4rem; }

.chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: none;
    height: 42px;
    padding: 0 0.8rem;
    background: var(--chrome);
    color: var(--chrome-ink);
    z-index: 4;
}

.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 400; min-width: 0; }
.brand-name { letter-spacing: 0.01em; white-space: nowrap; }
.brand-ten { font-weight: 700; }
.tm { font-size: 0.62em; line-height: 0; margin-left: 0.06em; font-weight: 400; }
.mark { width: 26px; height: 26px; display: block; flex: none; }

.chrome-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    min-width: 0;
    font-size: 0.85rem;
}

.chrome-identity {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
    max-width: 16rem;
}

.chrome-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 450;
}

.chrome-org {
    flex: none;
    color: #aeb6bc;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.chrome-org::before {
    content: "·";
    margin-right: 0.4rem;
    opacity: 0.55;
}

.chrome-actions {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: none;
}

.chrome-user form { margin: 0; }

.locale {
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.locale-menu {
    position: relative;
    margin: 0;
}

.locale-menu > summary {
    list-style: none;
}

.locale-menu > summary::-webkit-details-marker {
    display: none;
}

.locale-globe,
.chrome-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: inherit;
    opacity: 0.72;
    cursor: pointer;
}

.locale-globe:hover,
.locale-menu[open] > .locale-globe,
.chrome-icon:hover {
    opacity: 1;
    color: #7ed9d6;
}

.locale-globe svg,
.chrome-icon svg {
    display: block;
}

.locale-list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 8;
    min-width: 9.5rem;
    margin: 0;
    padding: 0.3rem 0;
    list-style: none;
    background: #2f343a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 3px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.locale-list li {
    margin: 0;
}

.locale-item {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0.38rem 0.7rem;
    border: 0;
    background: transparent;
    color: #e8ecef;
    font: inherit;
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
}

.locale-item:hover:not(:disabled) {
    background: rgba(26, 163, 161, 0.18);
}

.locale-item.is-current,
.locale-item:disabled {
    color: #7ed9d6;
    cursor: default;
}

.locale-item-short {
    font-weight: 650;
    letter-spacing: 0.06em;
    min-width: 1.4rem;
}

.locale-item-label {
    opacity: 0.9;
}

.chrome-btn {
    background: transparent;
    color: var(--chrome-ink);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    padding: 0.25rem 0.55rem;
    font: inherit;
    font-weight: 450;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.workspace {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
}
.workspace:has(.sider) {
    grid-template-columns: 76px minmax(0, 1fr);
}

.sider {
    background: #f3f4f6;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0.25rem;
    overflow-x: hidden;
    overflow-y: auto;
}

a.nav-btn {
    width: 100%;
    min-width: 0;
    border-radius: 8px;
    padding: 0.25rem 0.15rem 0.35rem;
    color: #5c636a;
    font-size: 0.68rem;
    line-height: 1.15;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e4e6e9;
    color: #4d545b;
    display: grid;
    place-items: center;
}

.nav-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
a.nav-btn.active { color: #1d6f6d; font-weight: 700; }
a.nav-btn.active .nav-icon { background: var(--teal); color: white; }

.stage {
    background: var(--card);
    margin: 0.55rem;
    border: 1px solid var(--line);
    min-height: 0;
    overflow: auto;
    padding: 0.7rem 0.9rem 1.2rem;
}

.lede, .muted { color: var(--muted); }
a { color: var(--guide); }
button.linkish {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--guide);
    font: inherit;
    font-weight: inherit;
    text-align: inherit;
    cursor: pointer;
    text-decoration: underline;
}
code { font-family: var(--mono); font-size: 0.86em; }

label, legend { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.7rem; font-size: 0.82rem; font-weight: 650; }

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #f7f8f9;
    color: var(--ink);
    border-radius: 2px;
    padding: 0.38rem 0.55rem;
    font: inherit;
    font-weight: 450;
}
select {
    height: 2rem;
    padding-right: 1.7rem;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--guide) 50%), linear-gradient(135deg, var(--guide) 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 1px), calc(100% - 9px) calc(50% - 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
input[type="checkbox"], input[type="radio"] {
    width: auto;
    height: auto;
    padding: 0;
    background: white;
}

textarea { resize: vertical; min-height: 8rem; }

button {
    background: #16181b;
    color: white;
    border: 1px solid #16181b;
    border-radius: 2px;
    padding: 0.42rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:disabled { opacity: 0.5; cursor: not-allowed; }
button.is-working:disabled { opacity: 1; cursor: wait; background: var(--chrome); border-color: var(--chrome); color: var(--chrome-ink); }
button.quiet { background: white; color: var(--ink); border-color: var(--line); font-weight: 650; }
button.quiet:disabled { opacity: 1; color: var(--muted); background: #f3f4f5; border-color: var(--line); }
button.clear {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2rem;
    margin: 0;
    padding: 0 0.7rem;
    background: var(--ok);
    color: var(--guide);
    border: 1px solid var(--teal);
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}
button.clear::before {
    content: "×";
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}
button.clear:hover:not(:disabled) { background: #d4eeed; color: var(--guide); }
button.clear:disabled { opacity: 1; background: #f3f4f5; color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.figure { font-variant-numeric: tabular-nums lining-nums; }
.start-another { display: inline-block; }
.start-another:has(button:disabled) { cursor: not-allowed; }
.start-another button:disabled { pointer-events: none; }
.today-more { margin: 0.85rem 0 0.35rem; color: var(--muted); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}
h1:focus {
    outline: none;
}

fieldset.standard { border: 1px solid var(--line); border-radius: 2px; margin: 0.8rem 0; padding: 0.2rem 0.8rem 0.8rem; }
fieldset.standard legend { padding: 0; }

.check { font-weight: 500; flex-direction: row; align-items: center; gap: 0.4rem; }
.check input { width: auto; }

.banner, .error { border-radius: 2px; padding: 0.7rem 0.8rem; margin: 0.7rem 0; }
.banner { background: white; border: 1px solid var(--line); border-left: 3px solid var(--guide); }
.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #e4b2ad; }

blockquote, .reading {
    margin: 0.35rem 0 0.85rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--guide);
    background: #f7f8f9;
}

.review-activity,
.review-response {
    margin: 0.85rem 0;
    padding: 0.75rem 0.9rem 0.9rem;
    border: 1px solid var(--line);
    border-left-width: 3px;
}

.review-activity {
    background: #f7f8f9;
    border-left-color: #b7bcc2;
}

.review-response {
    background: var(--ok);
    border-left-color: var(--teal);
}

.review-record {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.5rem;
    margin: 0.15rem 0 0.85rem;
    padding: 0.6rem 0.85rem;
    background: white;
    border: 1px solid var(--line);
    border-left: 3px solid var(--guide);
}

.review-record div { min-width: 7rem; }
.review-record dt {
    margin: 0;
    color: var(--guide);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.review-record dd { margin: 0.12rem 0 0; font-weight: 650; }
.review-record time { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; }

.review-mark {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.review-activity h2 { margin-top: 0.15rem; }
.review-activity h3 {
    margin: 0.8rem 0 0.15rem;
    color: var(--guide);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.review-activity p:last-child { margin-bottom: 0; }
.review-response h2 { margin-top: 0; color: var(--guide); }
.review-response.settled { background: #f7f8f9; border-left-color: #b7bcc2; }
.review-response.settled h2 { color: #3c4248; }
.review-response blockquote { margin: 0.45rem 0 0; background: white; }

.steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0.15rem 0 0.85rem;
    padding: 2px;
    background: #f7f8f9;
    border: 1px solid var(--line);
    border-radius: 2px;
}
.steps li { margin: 0; padding: 0.38rem 0.7rem; border-radius: 2px; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.steps li.current { background: var(--guide); color: white; }
.steps li.done { background: white; color: var(--ink); }
.point-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.55rem 1rem; margin: 0.85rem 0 0.65rem; }
.point-panel-head h2 { margin: 0; }
.period-switch {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 2px;
    padding: 2px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 2px;
}
.period-switch button {
    margin: 0;
    min-height: 1.85rem;
    padding: 0 0.72rem;
    background: transparent;
    color: var(--ink);
    border: 0;
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.period-switch button:hover:not(.current) { background: var(--ok); color: var(--guide); }
.period-switch button.current { background: var(--guide); color: white; }
.period-switch button.current:hover { background: var(--guide); color: white; }
.point-combo { margin: 0 0 0.4rem; border: 1px solid var(--line); background: #f7f8f9; padding: 0.7rem 0.8rem 0.45rem; }
.point-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin: 0 0 0.15rem; padding: 0; color: var(--muted); font-size: 0.78rem; }
.point-legend li { display: flex; align-items: center; gap: 0.4rem; }
.point-swatch { display: inline-block; width: 1.05rem; }
.point-swatch.bar { height: 0.55rem; background: var(--teal); border-radius: 1px; opacity: 0.9; }
.point-swatch.line { height: 2px; background: #147673; position: relative; }
.point-swatch.line::after { content: ""; position: absolute; width: 0.38rem; height: 0.38rem; border-radius: 50%; background: #147673; border: 2px solid #f7f8f9; left: 0.28rem; top: -0.22rem; }
.point-chart-scroll { overflow-x: auto; }
.point-chart { display: block; width: 100%; height: auto; }
.point-chart .combo-grid { stroke: #e4e7ea; stroke-width: 1; }
.point-chart .combo-axis { stroke: #c5c9ce; stroke-width: 1; }
.point-chart .combo-bar { fill: var(--teal); opacity: 0.88; }
.point-chart .combo-bar.down { fill: #b42318; opacity: 1; }
.point-chart .combo-line { stroke: #147673; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.point-chart .combo-dot { fill: #147673; stroke: #f7f8f9; stroke-width: 2; }
.point-chart .combo-tick, .point-chart .combo-left, .point-chart .combo-right, .point-chart .combo-caption { font-family: var(--sans); }
.point-chart .combo-tick { fill: var(--muted); font-size: 11px; }
.point-chart .combo-left, .point-chart .combo-caption.combo-left { fill: #147673; font-size: 11px; }
.point-chart .combo-right, .point-chart .combo-caption.combo-right { fill: #1aa3a1; font-size: 11px; }
.point-chart .combo-caption { font-size: 10px; font-weight: 650; letter-spacing: 0.02em; }
.point-chart .combo-hit { fill: transparent; }
.point-chart .combo-col:hover .combo-hit { fill: rgba(26, 163, 161, 0.07); }
.point-chart .combo-tip { opacity: 0; pointer-events: none; }
.point-chart .combo-col:hover .combo-tip, .point-chart .combo-col:focus-within .combo-tip { opacity: 1; }
.point-chart .combo-tip-bg { fill: var(--chrome); }
.point-chart .combo-tip-title, .point-chart .combo-tip-added, .point-chart .combo-tip-total { font-family: var(--sans); font-size: 11px; fill: var(--chrome-ink); }
.point-chart .combo-tip-title { font-weight: 650; }
.point-chart .combo-tip-added, .point-chart .combo-tip-total { fill: #d5d8dc; }
.point-rules { list-style: none; margin: 0.35rem 0 0.8rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; max-width: none; }
.point-rules li { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0.45rem; padding: 0.65rem 0.75rem; border: 1px solid var(--line); background: #f7f8f9; }
.point-rules b { margin-top: auto; color: var(--guide); font-size: 1.15rem; font-weight: 650; line-height: 1; }
.today-metrics:has(.metric-meter) .metric { display: grid; grid-template-rows: 1.7rem 0.45rem auto; align-content: start; gap: 0.28rem; }
.today-metrics:has(.metric-meter) .metric-value { grid-row: 1; align-self: end; }
.today-metrics:has(.metric-meter) .metric-meter { grid-row: 2; align-self: center; margin: 0; }
.today-metrics:has(.metric-meter) .metric-label { grid-row: 3; }
.metric-meter { display: block; height: 0.28rem; background: var(--paper); border-radius: 2px; overflow: hidden; }
.metric-meter > span { display: block; height: 100%; background: var(--teal); border-radius: 2px; }
table.record td { vertical-align: baseline; }
table.record .record-pack { display: block; margin-top: 0.15rem; font-size: 0.82rem; }
td.when { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
th.num, td.num { text-align: right; white-space: nowrap; }
td.num { color: var(--guide); font-weight: 650; }
td.num.down { color: #b42318; }
a.action {
    display: inline-block;
    margin-top: 0.35rem;
    background: #16181b;
    color: white;
    border-radius: 2px;
    padding: 0.42rem 1rem;
    font-weight: 700;
    text-decoration: none;
}
a.action:hover { color: white; }
.today-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; margin: 0.15rem 0 0.85rem; }
.today-metrics.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; padding: 0.75rem 0.8rem 0.7rem; border: 1px solid var(--line); background: #f7f8f9; color: inherit; text-decoration: none; }
a.metric:hover { border-color: var(--teal); color: inherit; }
.metric-value { display: flex; align-items: baseline; gap: 0.35rem; font-size: 1.7rem; font-weight: 650; line-height: 1; color: var(--guide); }
.metric-value small { font-size: 0.9rem; font-weight: 650; color: var(--muted); }
.metric-label { color: var(--muted); font-size: 0.75rem; font-weight: 650; }
.metric-note { color: var(--ink); font-size: 0.78rem; line-height: 1.35; }
.move-list { margin: 0.2rem 0 1rem; }
.canon-check { margin: 0.2rem 0 1.1rem; }
.canon-check .lede { margin-bottom: 0.55rem; }
.canon-check form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.canon-check form label { flex: 1 1 16rem; }
.canon-words { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; width: 100%; margin: 0; padding: 0; }
.canon-words li { display: flex; align-items: center; gap: 0.35rem; border: 1px solid var(--line); padding: 0.15rem 0.45rem; }
.canon-hits, .canon-cites { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.canon-hits li, .canon-cites li { border-top: 1px solid var(--line); padding: 0.6rem 0; }
.canon-check .meta { display: block; color: var(--muted); font-size: 0.85rem; }
.compare-moves { list-style: none; margin: 0.2rem 0 1rem; padding: 0; }
.compare-moves li { display: flex; align-items: center; gap: 0.55rem; padding: 0.28rem 0; }
.today-next { border: 1px solid var(--line); border-left: 3px solid var(--teal); padding: 0.7rem 0.9rem 0.85rem; margin: 0 0 0.4rem; }
.today-kicker { margin: 0; color: var(--guide); font-size: 0.75rem; font-weight: 650; }
select.pack-choice { max-width: 22rem; }
.activity-rating { max-width: 36rem; }
.rating-scale { border: 0; margin: 0.95rem 0 0; padding: 0; max-width: 22rem; }
.rating-scale legend { display: block; margin: 0 0 0.4rem; padding: 0; font-size: 0.82rem; font-weight: 650; }
.rating-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; margin: 0; }
.rating-options label { flex-direction: row; justify-content: center; align-items: center; gap: 0.3rem; margin: 0; padding: 0.35rem 0.2rem; border: 1px solid var(--line); background: #f7f8f9; font-weight: 650; }
.rating-options label:has(input:checked) { background: var(--ok); border-color: var(--teal); color: var(--guide); }
.rating-options input { width: auto; margin: 0; }
.rating-ends { display: flex; justify-content: space-between; margin-top: 0.28rem; color: var(--muted); font-size: 0.75rem; }
.activity-rating textarea { min-height: 5.5rem; }
.rating-notes { list-style: none; margin: 0.35rem 0 1rem; padding: 0; }
.rating-notes li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.rating-notes span { font-weight: 650; }
.open-assignments { list-style: none; margin: 0.35rem 0 1rem; padding: 0; }
.open-assignments li { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.open-assignments .title { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.open-assignments .title .muted { margin-left: 0.45rem; color: var(--muted); font-size: 0.78rem; }
.open-assignments .title .activity-meta { margin: 0; font-size: 0.8rem; }
.open-assignments .state { flex: none; color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.open-assignments button { flex: none; }
.today-next h2 { margin-top: 0.2rem; }
.assigned-packs h2 { margin-top: 0.85rem; }
.pack-fold { border: 1px solid var(--line); border-left: 3px solid var(--teal); margin: 0 0 0.45rem; }
.pack-fold summary { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; cursor: pointer; list-style: none; }
.pack-fold summary::-webkit-details-marker { display: none; }
.pack-fold summary::before { content: ""; width: 0.4rem; height: 0.4rem; margin-top: -0.12rem; border-right: 1.5px solid var(--guide); border-bottom: 1.5px solid var(--guide); transform: rotate(-45deg); flex: none; }
.pack-fold[open] summary::before { margin-top: 0.15rem; transform: rotate(45deg); }
.pack-fold[open] summary { border-bottom: 1px solid var(--line); }
.pack-fold-title { flex: 1; min-width: 0; font-weight: 650; }
.pack-fold summary .start-another { flex: none; }
.pack-fold summary .start-another button { padding: 0.28rem 0.7rem; font-size: 0.82rem; }
.pack-fold-count { flex: none; color: var(--muted); font-size: 0.78rem; font-weight: 650; white-space: nowrap; }
.progress-pack > summary { flex-wrap: wrap; align-items: baseline; }
.progress-pack .pack-fold-count { white-space: normal; text-align: right; }
.activity-fold { margin: 0.85rem 0 0.15rem; }
.activity-fold > summary { cursor: pointer; font-weight: 650; font-size: 0.9rem; color: #3c4248; }
.activity-fold[open] > summary { margin-bottom: 0.35rem; }
.activity-fold > summary .muted { font-weight: 450; margin-left: 0.4rem; }
.pack-body { padding: 0.15rem 0.85rem 0.75rem; }
.pack-body h3 { margin: 0.95rem 0 0.4rem; font-size: 0.9rem; color: #3c4248; }
.pack-actions { margin-top: 0.7rem; }
.pack-actions p { margin: 0 0 0.4rem; color: var(--muted); }
.today-list { list-style: none; margin: 0; padding: 0; }
.today-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-width: 0; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.today-list li:last-child { border-bottom: 0; }
.today-list a { min-width: 0; }
.today-list .today-item { flex: 1; min-width: 0; }
.today-list .today-item a { font-weight: 650; }
.assign-open {
    margin: 0.85rem 0 0.2rem;
    padding: 0.7rem 0.85rem 0.8rem;
    background: white;
    border: 1px solid var(--line);
    border-left: 3px solid var(--guide);
}
.assign-open p:last-child { margin-bottom: 0; }
.assign-open ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
}
.assign-open button.person {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0;
    padding: 0.32rem 0.7rem;
    background: white;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 650;
}
.assign-open button.person span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 450;
}
.assign-open button.person:hover { border-color: var(--teal); }
.provision { margin: 1.35rem 0 0.2rem; padding-top: 0.15rem; border-top: 1px solid var(--line); }
.provision-layout { display: grid; grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); gap: 0.75rem; align-items: start; max-width: 52rem; }
.provision-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; max-height: 24rem; overflow: auto; }
.provision-find { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.person-find { margin: 0; }
.person-find input, .people-search input { background: white; text-transform: none; }
.people-search { max-width: 36rem; margin: 0.75rem 0 0; }
.provision-empty, .people-empty { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.82rem; }
.provision-people button { width: 100%; margin: 0; text-align: left; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; font-weight: 650; padding: 0.42rem 0.65rem; }
.provision-people button span { display: block; margin-top: 0.08rem; color: var(--muted); font-size: 0.75rem; font-weight: 450; letter-spacing: 0; text-transform: none; }
.provision-people button.is-set { background: var(--ok); border-color: var(--teal); color: var(--guide); }
.provision-people button.is-set span { color: var(--guide); }
.provision-card { margin: 0; padding: 0.75rem 0.9rem 0.95rem; border: 1px solid var(--line); border-left: 3px solid var(--guide); background: #f7f8f9; }
.provision-card h3 { margin-top: 0.1rem; }
.provision-card .muted { margin-top: 0; }
.provision-card fieldset .muted { margin: 0.65rem 0 0.1rem; font-size: 0.82rem; max-width: 36rem; }
.provision-tools { margin: 0 0 0.75rem; }
.provision-tools button { margin: 0; }
.provision-card input, .provision-card select { max-width: 24rem; background-color: white; text-transform: none; }
.provision-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.85rem; }
.provision-actions button { margin: 0; }
.audit-trail { display: grid; gap: 0.28rem; margin: 0.75rem 0 0.15rem; }
.audit-trail div { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); gap: 0.45rem; align-items: baseline; }
.audit-trail dt { margin: 0; color: var(--guide); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.audit-trail dd { margin: 0; font-variant-numeric: tabular-nums lining-nums; }
.audit-heading { margin: 0.85rem 0 0.35rem; color: var(--guide); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.audit-events { list-style: none; margin: 0 0 0.85rem; padding: 0; display: grid; gap: 0.35rem; max-height: 28rem; overflow: auto; }
.audit-events li { display: grid; gap: 0.12rem; }
.audit-events li span:first-child { font-variant-numeric: tabular-nums lining-nums; }
.activity-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0.2rem;
    margin: 0.2rem 0 0.65rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 550;
    line-height: 1.15rem;
}
.activity-meta .activity-level,
.activity-meta .activity-topics {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.activity-meta .activity-pack {
    color: var(--guide);
    font-weight: 650;
}
.activity-meta .activity-level {
    color: var(--guide);
    font-weight: 700;
}
.activity-meta .activity-level > span,
.activity-meta .activity-topic,
.activity-meta .activity-sep {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}
.activity-meta .activity-sep {
    color: var(--muted);
    font-weight: 400;
    user-select: none;
}
.help-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    margin: 0;
    padding: 0;
    color: var(--guide);
    border-radius: 999px;
    text-decoration: none;
    flex: none;
    line-height: 0;
}
.activity-meta .help-link {
    width: 0.95em;
    height: 0.95em;
}
.help-link svg {
    display: block;
    width: 100%;
    height: 100%;
    flex: none;
}
.help-link:hover,
.help-link:focus-visible {
    background: var(--ok);
    outline: none;
}
.help-field-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.selection-reason,
.help-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.back-row { margin: 0 0 0.65rem; }
.back-link { font-weight: 650; }
.help-index { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.65rem; }
.help-index a { font-weight: 700; }
.help-index p { margin: 0.2rem 0 0; color: var(--muted); }
.help-about { margin: 0 0 1.25rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-left: 3px solid var(--guide); background: #f7f8f9; }
.help-about .help-index { margin: 0; }
.help-related { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.help-body { max-width: 42rem; }
.challenge-mix dt { display: inline-flex; align-items: center; gap: 0.28rem; }
.activity-meta .activity-topic {
    color: var(--ink);
}
.activity-meta .activity-time {
    color: var(--muted);
    font-weight: 400;
}
.activity-meta .activity-topic + .activity-topic::before {
    content: "·";
    margin-right: 0.35rem;
    color: var(--muted);
    font-weight: 400;
}
.practice-time {
    display: grid;
    grid-template-columns: 3px minmax(0, 1fr);
    margin: 0.25rem 0 1rem;
    background: var(--card);
    border: 1px solid var(--line);
}
.practice-time-brand {
    background: var(--guide);
}
.practice-time-body {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem 0.9rem 0.8rem;
}
.practice-time-title {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--guide);
}
.practice-time-total {
    margin: 0;
    line-height: 1;
}
.practice-time-total .figure {
    color: var(--guide);
    font-size: 1.7rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums lining-nums;
}
.practice-time-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.4rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}
.practice-time-sep {
    color: var(--line);
}
.practice-time-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}
.practice-time-packs {
    display: grid;
    gap: 0.28rem;
    margin: 0.15rem 0 0;
    padding: 0;
    list-style: none;
}
.practice-time-packs > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    padding: 0.2rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
}
.practice-time-pack-title,
.practice-time-pack-context,
.practice-time-pack-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.practice-time-pack-context {
    color: var(--guide);
    font-weight: 650;
}
.practice-time-pack-current {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 550;
}
.practice-time-pack-mins {
    color: var(--guide);
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 650;
}
.practice-time-pack-count {
    color: var(--muted);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums lining-nums;
}
.practice-time-controls {
    display: grid;
    gap: 0.45rem;
    margin: 0.15rem 0 0;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
}
.practice-time-range {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
}
.practice-time-range-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
}
.practice-time-range-label {
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--guide);
}
.practice-time-range-mode {
    color: var(--muted);
    font-size: 0.82rem;
}
.practice-time-range-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.45rem 0.65rem;
}
.practice-time-field {
    display: grid;
    gap: 0.18rem;
    margin: 0;
}
.practice-time-field > span {
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--guide);
}
.practice-time-field input[type="date"],
.practice-time-pack-choice {
    margin: 0;
    min-width: 8.75rem;
    padding: 0.28rem 0.4rem;
    background: #f7f8f9;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
}
.practice-time-pack-choice {
    min-width: 12rem;
    max-width: 100%;
}
.practice-time-pack-choice.is-set {
    border-color: var(--guide);
}
.practice-time-field input[type="date"]:focus,
.practice-time-pack-choice:focus {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}
.practice-time-clear {
    margin: 0;
    align-self: end;
}
.submission-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
}
.submission-head .muted {
    font-weight: 500;
}

.today-item { display: grid; gap: 0.12rem; min-width: 0; }
.today-item .activity-meta { margin: 0; font-size: 0.82rem; }
.activity-choose .check { display: grid; gap: 0.15rem; }
.activity-choose .check .activity-meta { margin: 0; font-size: 0.8rem; font-weight: 500; }
.activity-choose .check .muted { font-size: 0.78rem; }
.challenge-mix { display: grid; gap: 0.35rem; margin: 0.75rem 0; }
.challenge-mix dt { margin: 0; color: var(--guide); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.challenge-mix dd { margin: 0; font-variant-numeric: tabular-nums lining-nums; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.choice-row button { margin: 0; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; font-weight: 650; }
.choice-row button.is-set { background: var(--ok); border-color: var(--teal); color: var(--guide); }
@media (max-width: 720px) {
    .provision-layout { grid-template-columns: 1fr; }
    .provision-people { max-height: none; }
}
.assign-open button.person.is-set {
    background: var(--ok);
    border-color: var(--teal);
    color: var(--guide);
}
.assign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem 1rem;
    align-items: end;
    max-width: 46rem;
    margin: 0.9rem 0 0.3rem;
}
.assign-grid label { margin-top: 0; }
.assign-grid select,
.assign-grid input { max-width: none; }
.assign-grid select.is-empty { color: var(--muted); }
.assign-grid select option { color: var(--ink); }
.assign-grid .assign-span { grid-column: 1 / -1; margin: 0; }
.assign-submit { display: flex; }
.assign-submit button { height: 2rem; margin: 0; padding-top: 0; padding-bottom: 0; }
.activity-choose > button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.85rem;
    background: white;
    color: var(--ink);
    border: 0;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 650;
    text-align: left;
}
.activity-choose > button::before { content: ""; width: 0.4rem; height: 0.4rem; margin-top: -0.12rem; border-right: 1.5px solid var(--guide); border-bottom: 1.5px solid var(--guide); transform: rotate(-45deg); flex: none; }
.activity-choose.is-open > button { border-bottom: 1px solid var(--line); }
.activity-choose.is-open > button::before { margin-top: 0.15rem; transform: rotate(45deg); }
.activity-choose .pack-fold-count { margin-left: auto; }
.activity-choose .pack-fold-count.is-set { color: var(--guide); }
.activity-multi-tools { display: flex; gap: 0.35rem; margin: 0.35rem 0 0.15rem; }
.activity-multi-tools button {
    height: 1.6rem;
    margin: 0;
    padding: 0 0.55rem;
    background: white;
    color: var(--guide);
    border: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.activity-multi-tools button:hover { border-color: var(--teal); background: var(--ok); }
.activity-choose ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    column-gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.activity-choose li { min-width: 0; }
.activity-choose .check { align-items: flex-start; margin: 0; padding: 0.38rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; font-weight: 650; }
.assign-sample { margin-top: 1.15rem; }
.assign-sample form { margin: 0.35rem 0 0.7rem; }
.assign-sample .lede { margin-top: 0.35rem; }
.today-list a.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; }
.today-list a.stack > span:first-child { font-size: 1rem; font-weight: 650; white-space: normal; }
.today-list a.stack .who { color: var(--muted); font-size: 0.75rem; font-weight: 450; }
.today-list span { flex: none; font-size: 0.78rem; white-space: nowrap; }
.today-list span.done { color: var(--muted); }
.today-list span.open { color: var(--guide); font-weight: 650; }
.queue { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.queue a { font-weight: 650; }

.progress-read { display: grid; grid-template-columns: 1fr; gap: 0.15rem; align-items: start; margin-top: 0.35rem; }
.progress-read .web-chart { margin: 0; }
.progress-read .web-chart svg { width: min(100%, 460px); }
.progress-parts { list-style: none; margin: 0; padding: 0; }
.progress-parts > li { display: grid; grid-template-columns: minmax(9.5rem, 1.35fr) auto auto minmax(4.6rem, auto); gap: 0.35rem 0.85rem; align-items: center; padding: 0.38rem 0; border-bottom: 1px solid var(--line); }
.progress-parts > li:last-child { border-bottom: 0; }
.progress-head { color: var(--muted); font-size: 0.72rem; font-weight: 650; white-space: nowrap; }
.progress-head span:nth-child(n+3) { text-align: right; }
.part-name { font-weight: 650; min-width: 0; }
.part-count { color: var(--muted); font-size: 0.78rem; white-space: nowrap; text-align: right; }
.part-wait { grid-column: 2 / -1; }
.sequence { list-style: none; margin: 0.35rem 0 1rem; padding: 0; display: grid; gap: 0.45rem; }
.sequence > li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-width: 0; }
.marks { list-style: none; display: flex; gap: 0.4rem; margin: 0; padding: 0; }
.marks li { display: flex; }
.harvey { width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 1.5px solid var(--guide); background: white; display: inline-block; position: relative; overflow: hidden; flex: none; box-sizing: border-box; }
.harvey::before { content: ""; position: absolute; inset: 0; background: var(--teal); }
.harvey-0::before { display: none; }
.harvey-1::before { clip-path: inset(0 50% 0 0); }
.harvey-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0.15rem 0 0.7rem; padding: 0; color: var(--muted); font-size: 0.78rem; }
.harvey-legend li { display: flex; align-items: center; gap: 0.35rem; }
.submissions { list-style: none; margin: 0.35rem 0 1rem; padding: 0; }
.submissions > li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.submissions a { font-weight: 650; }
.score-row { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin: 0.35rem 0 0.15rem; }
.score-line { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); font-size: 0.82rem; }
.fixture-note { margin: 0.1rem 0 0.85rem; color: var(--muted); font-size: 0.82rem; }
.score-sheet { list-style: none; margin: 0.15rem 0 0.35rem; padding: 0; max-width: 36rem; }
.score-sheet li { display: grid; grid-template-columns: minmax(0, 1.4fr) 5.5rem 5.5rem; gap: 0.35rem 0.75rem; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.score-sheet.single li { grid-template-columns: minmax(0, 1.4fr) 5.5rem; }
.score-sheet-head { color: var(--guide); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.score-mark { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; font-variant-numeric: tabular-nums lining-nums; }
.result-guide { margin: 0.15rem 0 0.85rem; padding: 0.7rem 0.85rem; max-width: 36rem; background: var(--ok); border: 1px solid var(--line); border-left: 3px solid var(--teal); }
.result-guide p { margin: 0; }
.result-status { margin: 0.15rem 0 0.35rem; color: var(--muted); max-width: 36rem; }
.result-status p { margin: 0.15rem 0; }
.record-case { margin-top: 1.35rem; padding-top: 0.2rem; border-top: 1px solid var(--line); }
.record-case h2 { margin: 0.95rem 0 0.3rem; color: var(--guide); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.feedback-notes { list-style: none; margin: 0.15rem 0 0.75rem; padding: 0; max-width: 36rem; }
.feedback-notes li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.feedback-notes span { display: block; margin-bottom: 0.15rem; color: var(--guide); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.periods { list-style: none; margin: 0.35rem 0 1rem; padding: 0; }
.periods li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 1.25rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.periods li > span:first-child { flex: 1 1 12rem; font-weight: 650; }
.period-delta { font-weight: 650; text-align: right; }
.period-delta.more { color: var(--guide); }
.period-delta.fewer { color: var(--ink); }
.period-delta.same { color: var(--muted); font-weight: 450; }
.trend { list-style: none; margin: 0.35rem 0 1rem; padding: 0; display: grid; gap: 0.45rem; }
.trend li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; }
.trend-track { height: 0.55rem; background: #f3f4f6; border: 1px solid var(--line); }
.trend-bar { display: block; height: 100%; background: var(--teal); }
.trend-count { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.web-chart { margin: 0.4rem 0 1rem; }
.web-chart svg { width: min(100%, 640px); height: auto; display: block; }
.web-ring { fill: none; stroke: #d5d8dc; stroke-width: 1; }
.web-axis { stroke: #c5c9ce; stroke-width: 1; }
.web-area-part { fill: rgba(196, 149, 58, 0.16); stroke: #b07d22; stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 4 3; }
.web-value-part { stroke: #c4953a; stroke-width: 2.5; }
.web-dot-part { fill: #b07d22; }
.web-area { fill: rgba(26, 163, 161, 0.18); stroke: #147673; stroke-width: 1.5; stroke-linejoin: round; }
.web-value { stroke: #1aa3a1; stroke-width: 2.5; }
.web-dot { fill: #147673; }
.web-label { fill: #2a2e33; font-size: 11px; font-family: var(--sans); }
.web-scale { fill: #6b7178; font-size: 10px; font-family: var(--sans); }
.web-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0.35rem 0 0; padding: 0; color: var(--muted); font-size: 0.78rem; }
.web-legend li { display: flex; align-items: center; gap: 0.35rem; }
.web-swatch { width: 0.85rem; height: 0.85rem; border-radius: 50%; flex: 0 0 auto; }
.web-swatch.full { background: #147673; }
.web-swatch.part { background: #b07d22; }
.web-chart figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 0.2rem; }

.people { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.4rem; max-width: 36rem; }
.people form { margin: 0; }
.people button { width: 100%; background: white; color: var(--ink); border-color: var(--line); font-weight: 650; text-align: left; }
.people button:hover { background: var(--ok); color: var(--guide); border-color: var(--teal); }

.compare-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0.55rem 0.7rem; align-items: end; margin: 0.35rem 0 0.8rem; }
.compare-form label { margin-top: 0; }
.compare-form select.is-empty { color: var(--muted); }
.compare-form select option { color: var(--ink); }
.compare-form button { height: 2rem; margin: 0; padding-top: 0; padding-bottom: 0; }
.lead-parts > li { grid-template-columns: minmax(9.5rem, 1.6fr) repeat(3, 4.4rem); }
.lead-parts .part-count, .lead-parts .progress-head span:nth-child(n+2) { text-align: right; }
.compare-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0.45rem 0 0.15rem; padding: 0; color: var(--muted); font-size: 0.78rem; }
.compare-legend li { display: flex; align-items: center; gap: 0.35rem; }
.compare-pop, .compare-mark-cell { text-align: center; }
.compare-mark { display: inline-flex; width: 1rem; height: 1rem; align-items: center; justify-content: center; }
.compare-mark svg { width: 0.95rem; height: 0.95rem; display: block; }
.compare-mark path { fill: currentColor; }
.compare-mark.up { color: #1c7c3a; }
.compare-mark.down { color: #b42318; }
.compare-mark.flat { color: var(--muted); font-size: 1rem; line-height: 1; font-weight: 650; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 0.4rem; }
caption { caption-side: top; text-align: left; color: var(--muted); padding: 0.2rem 0 0.35rem; }
th, td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.record-bar > .record-field { flex: 1 1 16rem; max-width: 22rem; }
.record-bar > .record-field select {
    width: 100%;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}
.record-bar > .record-field select.is-set { border-color: var(--teal); background-color: var(--ok); }
.record-bar > .record-field .pack-current {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2rem;
    padding: 0 0.55rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #f7f8f9;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}
.record-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0.35rem 0 0.65rem;
    padding: 0.65rem 0.8rem;
    background: white;
    border: 1px solid var(--line);
    border-left: 3px solid var(--guide);
}
.record-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1rem; margin: 0; }
.record-field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin: 0;
    min-width: 0;
    color: var(--guide);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.record-field-wide { flex: 1 1 14rem; max-width: 22rem; }
.record-tools input[type="search"] {
    width: 100%;
    height: 2rem;
    margin: 0;
    padding: 0 0.55rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: white;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
}
.record-tools select {
    width: 100%;
    min-width: 11rem;
    height: 2rem;
    margin: 0;
    padding: 0 1.7rem 0 0.55rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background-color: #f7f8f9;
    background-image: linear-gradient(45deg, transparent 50%, var(--guide) 50%), linear-gradient(135deg, var(--guide) 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 1px), calc(100% - 9px) calc(50% - 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
    appearance: none;
}
.record-tools select.is-set { border-color: var(--teal); background-color: var(--ok); }
.record-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 1rem;
    margin: 0.55rem 0 0;
}
.record-pager p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.record-pager-nav { display: flex; align-items: center; gap: 0.45rem; }
.record-pager-nav p { color: var(--ink); font-weight: 650; }
.record-pager .quiet { height: 2rem; margin: 0; padding: 0 0.8rem; }

footer {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    background: var(--chrome);
    color: #c8ccd1;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
}

footer p, footer form { margin: 0; }
footer form { display: flex; align-items: center; gap: 0.6rem; }

@media (max-width: 860px) {
    /* :has(.sider) is more specific than .workspace — override both so the rail sits on top. */
    .workspace,
    .workspace:has(.sider) {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }
    .sider {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.4rem 0.45rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    a.nav-btn {
        flex: 0 0 auto;
        width: auto;
        min-width: 4.25rem;
        padding: 0.2rem 0.45rem 0.3rem;
        font-size: 0.65rem;
    }
    .nav-icon {
        width: 32px;
        height: 32px;
    }
    .today-metrics { grid-template-columns: 1fr; }
    .record-field, .record-field-wide { flex: 1 1 100%; max-width: none; }
    .record-tools select { max-width: none; }
    .point-rules { grid-template-columns: 1fr 1fr; }
    .trend li, .sequence > li { grid-template-columns: 1fr; display: grid; }
    .progress-read { grid-template-columns: 1fr; }
    .progress-parts > li, .lead-parts > li { grid-template-columns: 1fr auto auto; }
    .compare-form { grid-template-columns: 1fr; }
    .part-name, .progress-head span:first-child { grid-column: 1 / -1; }
    .part-wait { grid-column: 1 / -1; }
    .stage { margin: 0; border-left: 0; border-right: 0; }
    .chrome { height: auto; min-height: 42px; padding: 0.35rem 0.8rem; gap: 0.65rem; }
    .chrome-identity { max-width: 9.5rem; }
    .chrome-org { display: none; }
    .chrome-user { gap: 0.55rem; }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}