/* Academy demo. rem only; colours as tokens with a dark variant. */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f4f4f8;
  --line: #e6e6ee;
  --line-strong: #d3d3de;
  --text: #1b1b25;
  --muted: #61637a;
  --faint: #8c8ea3;
  --accent: #6d3fe0;
  --accent-soft: #f0eafe;
  --accent-ink: #5427c4;
  --ok: #0f9f6e;
  --ok-soft: #e4f6ef;
  --warn: #b45309;
  --warn-soft: #fef3e0;
  --bad: #e1365b;
  --bad-soft: #fdeaef;
  --c-blue: #2f6bff; --c-violet: #7c4dff; --c-amber: #f59e0b; --c-coral: #f05a6e; --c-green: #12a37a; --c-teal: #14a8b8;
  --radius: 0.75rem;
}
:root[data-theme="dark"] {
  --bg: #101016;
  --surface: #191921;
  --surface-2: #20202a;
  --line: #2c2c38;
  --line-strong: #3b3b4a;
  --text: #ededf4;
  --muted: #a0a2b6;
  --faint: #757790;
  --accent: #a58bff;
  --accent-soft: #2a2245;
  --accent-ink: #c4b3ff;
  --accent-text: #160f2c;
  --ok: #3ccf9b;
  --ok-soft: #12302a;
  --warn: #fbbf24;
  --warn-soft: #3a2c10;
  --bad: #ff7a93;
  --bad-soft: #3a1720;
}
[hidden] { display: none !important; }
.k-pill.accent { color: var(--accent-ink); }

/* ---------- Shell ---------- */
.ac-brand { all: unset; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.ac-brand .ms { color: var(--accent); font-size: 1.5rem; }
.ac-me { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.8125rem; white-space: nowrap; }
.ac-me .k-avatar { width: 1.875rem; height: 1.875rem; }
@media (max-width: 40rem) { .ac-me .nm { display: none; } }
.ac-tabs { position: sticky; top: 3.5rem; z-index: 19; display: flex; gap: 0.25rem; padding: 0.375rem var(--gutter) 0; background: var(--surface); border-bottom: 0.0625rem solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ac-tabs button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.8rem; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 0.15rem solid transparent; }
.ac-tabs button:hover { color: var(--text); }
.ac-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.ac-tabs .ms { font-size: 1.125rem; }
.ac-tabs .cnt { font-size: 0.7rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border-radius: 1rem; padding: 0.05rem 0.45rem; min-width: 1.3rem; text-align: center; }
.ac-tabs .cnt:empty { display: none; }
.ac-tabs button.on .cnt { background: var(--accent-soft); color: var(--accent-ink); }
.ac-wrap { width: 100%; max-width: 75rem; margin: 0 auto; padding: 1.25rem var(--gutter) 4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.ac-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.ac-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ac-hello h1 { font-size: 1.45rem; letter-spacing: -0.01em; }
.ac-hello p { color: var(--muted); margin-top: 0.2rem; }
.ac-section { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.4rem; }
.ac-section h2 { font-size: 1.05rem; }
.ac-section small { color: var(--muted); }
.ac-hint { color: var(--muted); font-size: 0.82rem; }

/* tiles */
.ac-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 0.6rem; }
.ac-tile { background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; }
.ac-tile b { display: block; font-size: 1.5rem; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.ac-tile span { font-size: 0.78rem; color: var(--muted); }
.ac-tile.alarm b { color: var(--bad); }
.ac-tile.good b { color: var(--ok); }
.ac-tile b small { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* course icon */
.ac-ic { width: 2.6rem; height: 2.6rem; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.ac-ic .ms { font-size: 1.5rem; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.ac-ic.sm { width: 1.6rem; height: 1.6rem; border-radius: 0.4rem; }
.ac-ic.sm .ms { font-size: 1rem; }
.ac-ic.lg { width: 3rem; height: 3rem; }
.ac-ic.lg .ms { font-size: 1.8rem; }
.c-blue { background: var(--c-blue); } .c-violet { background: var(--c-violet); } .c-amber { background: var(--c-amber); } .c-coral { background: var(--c-coral); } .c-green { background: var(--c-green); } .c-teal { background: var(--c-teal); }

/* cards */
.ac-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.8rem; }
.ac-card { background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; cursor: pointer; transition: border-color .12s, transform .12s; min-width: 0; }
.ac-card:hover { border-color: var(--line-strong); transform: translateY(-0.0625rem); }
.ac-card .top { display: flex; gap: 0.7rem; align-items: flex-start; }
.ac-card h3 { font-size: 0.98rem; line-height: 1.3; }
.ac-meta { color: var(--muted); font-size: 0.78rem; display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.15rem; }
.ac-meta .ms { font-size: 0.9rem; vertical-align: -0.15rem; }
.ac-card p { font-size: 0.84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-bar { height: 0.4rem; border-radius: 1rem; background: var(--surface-2); overflow: hidden; }
.ac-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .5s ease; }
.ac-bar.done i { background: var(--ok); }
.ac-card .bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; flex-wrap: wrap; }
.ac-chip { font-size: 0.7rem; font-weight: 700; border-radius: 1rem; padding: 0.15rem 0.55rem; white-space: nowrap; background: var(--surface-2); color: var(--muted); display: inline-flex; align-items: center; gap: 0.25rem; }
.ac-chip .ms { font-size: 0.85rem; }
.ac-chip.late { background: var(--bad-soft); color: var(--bad); }
.ac-chip.soon { background: var(--warn-soft); color: var(--warn); }
.ac-chip.done { background: var(--ok-soft); color: var(--ok); }
.ac-chip.draft { background: var(--surface-2); color: var(--muted); }
.ac-chip.published { background: var(--ok-soft); color: var(--ok); }
.ac-src { font-size: 0.72rem; color: var(--faint); }

/* journeys */
.ac-journeys { display: grid; gap: 0.8rem; }
.ac-journey { background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.9rem 1rem; }
.ac-journey.locked { opacity: 0.72; }
.ac-journey .head { display: flex; gap: 0.7rem; align-items: flex-start; }
.ac-journey .head h3 { font-size: 1rem; }
.ac-journey .head p { color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
.ac-journey .head .right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; flex: none; margin-left: auto; }
.ac-journey .ac-bar { margin: 0.7rem 0 0.5rem; }
.ac-steps { display: grid; gap: 0.15rem; }
.ac-step { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.45rem; border-radius: var(--radius-sm); font-size: 0.86rem; cursor: pointer; width: 100%; }
.ac-step:hover { background: var(--surface-2); }
.ac-step[aria-disabled="true"] { cursor: default; }
.ac-step[aria-disabled="true"]:hover { background: none; }
.ac-step .nr { width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ac-step.done .nr { background: var(--ok-soft); color: var(--ok); }
.ac-step.busy .nr { background: var(--accent-soft); color: var(--accent-ink); }
.ac-step .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-step small { color: var(--muted); font-size: 0.74rem; white-space: nowrap; }
.ac-step .ms { font-size: 1rem; }
@media (max-width: 34rem) { .ac-step small .opt { display: none; } }

/* catalogue toolbar */
.ac-toolbar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ac-toolbar .k-search { flex: 1 1 14rem; max-width: 22rem; }
.ac-toolbar .k-select { min-width: 12rem; }
.ac-toolbar .grow { flex: 1; }

/* ---------- Player ---------- */
.ac-back { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 0.2rem; color: var(--muted); font-size: 0.85rem; padding: 0.3rem 0.4rem; border-radius: var(--radius-sm); align-self: flex-start; }
.ac-back:hover { background: var(--surface-2); color: var(--text); }
.ac-chead { display: flex; gap: 0.8rem; align-items: center; }
.ac-chead h1 { font-size: 1.35rem; letter-spacing: -0.01em; }
.ac-split { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 60rem) { .ac-split { grid-template-columns: 1fr; } }
.ac-side { background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 7.25rem; }
@media (max-width: 60rem) { .ac-side { position: static; } }
.ac-side .prog { padding: 0.8rem 1rem 0.3rem; font-size: 0.8rem; color: var(--muted); }
.ac-side .prog .ac-bar { margin-top: 0.45rem; }
.ac-lessons { padding: 0.3rem 0.5rem 0.6rem; display: flex; flex-direction: column; }
.ac-lesson { all: unset; box-sizing: border-box; display: flex; width: 100%; align-items: center; gap: 0.5rem; font-size: 0.86rem; padding: 0.5rem 0.55rem; border-radius: var(--radius-sm); cursor: pointer; }
.ac-lesson:hover { background: var(--surface-2); }
.ac-lesson.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ac-lesson .st { color: var(--muted); font-size: 1.15rem; }
.ac-lesson .st.ok { color: var(--ok); }
.ac-lesson .kind { margin-left: auto; color: var(--muted); font-size: 1rem; }
.ac-content { background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.5rem 1.4rem; min-width: 0; position: relative; overflow: hidden; }
@media (max-width: 40rem) { .ac-content { padding: 1rem; } }
.ac-content > h2 { font-size: 1.2rem; }
.ac-lmeta { color: var(--muted); font-size: 0.8rem; margin: 0.25rem 0 1rem; display: flex; gap: 0.75rem; }
.ac-lmeta .ms { font-size: 0.95rem; vertical-align: -0.15rem; }
.ac-text { font-size: 0.95rem; line-height: 1.65; max-width: 46rem; }
.ac-text p { margin: 0 0 0.8rem; }
.ac-text h3 { font-size: 1rem; margin: 1.1rem 0 0.35rem; }
.ac-text ul { margin: 0 0 0.8rem 1.3rem; padding: 0; }
.ac-text li { margin-bottom: 0.3rem; }
.ac-text table { border-collapse: collapse; margin: 0.6rem 0 1rem; font-size: 0.88rem; width: 100%; }
.ac-text th, .ac-text td { border: 0.0625rem solid var(--line); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
.ac-text th { background: var(--surface-2); font-weight: 600; }
.ac-tablewrap { overflow-x: auto; }
.ac-callout { display: flex; gap: 0.6rem; align-items: flex-start; background: var(--accent-soft); color: var(--text); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; margin: 0.4rem 0 1rem; }
.ac-callout .ms { color: var(--accent); }
.ac-callout p { margin: 0; }
.ac-demo-note { font-size: 0.78rem; color: var(--faint); margin-top: 0.5rem; display: flex; gap: 0.35rem; align-items: center; }
.ac-demo-note .ms { font-size: 0.95rem; }
.ac-actions { display: flex; gap: 0.5rem; align-items: center; justify-content: space-between; margin-top: 1.4rem; padding-top: 1rem; border-top: 0.0625rem solid var(--line); flex-wrap: wrap; }
.ac-actions .right { display: flex; gap: 0.5rem; align-items: center; margin-left: auto; flex-wrap: wrap; }
.ac-done-btn { color: var(--ok) !important; pointer-events: none; }

/* fake video */
.ac-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg, #2b1a66, #1c3d8f 60%, #0f6a7a); color: #fff; margin-bottom: 1rem; user-select: none; }
.ac-reels { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6%; opacity: 0.35; }
.ac-reels i { display: block; width: 14%; aspect-ratio: 1; border-radius: 50%; border: 0.5rem solid rgb(255 255 255 / 70%); box-shadow: inset 0 0 0 1.4rem rgb(255 255 255 / 12%); }
.ac-video.playing .ac-reels i { animation: reel 2.4s linear infinite; }
@keyframes reel { to { transform: rotate(360deg); } }
.ac-reels i::after { content: ''; display: block; width: 30%; height: 30%; margin: 35%; border-radius: 50%; background: rgb(255 255 255 / 60%); }
.ac-play { all: unset; cursor: pointer; position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #2b1a66; display: grid; place-items: center; box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 35%); transition: transform .15s; }
.ac-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.ac-play .ms { font-size: 2.6rem; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48; }
.ac-video.playing .ac-play { opacity: 0; pointer-events: none; }
.ac-video.playing:hover .ac-play { opacity: 1; pointer-events: auto; }
.ac-cap { position: absolute; left: 50%; bottom: 3rem; transform: translateX(-50%); background: rgb(0 0 0 / 62%); padding: 0.35rem 0.75rem; border-radius: 0.4rem; font-size: 0.9rem; max-width: 86%; text-align: center; }
.ac-cap:empty { display: none; }
.ac-vbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.8rem; background: linear-gradient(transparent, rgb(0 0 0 / 55%)); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.ac-vbar .track { flex: 1; height: 0.25rem; border-radius: 1rem; background: rgb(255 255 255 / 30%); overflow: hidden; }
.ac-vbar .track i { display: block; height: 100%; width: 0; background: #fff; }
.ac-vtitle { position: absolute; left: 0.9rem; top: 0.7rem; font-weight: 600; font-size: 0.85rem; opacity: 0.9; }

/* quiz */
.ac-q { border: 0.0625rem solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1rem; margin-bottom: 0.7rem; }
.ac-q > b { display: block; margin-bottom: 0.5rem; font-size: 0.95rem; }
.ac-opt { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.65rem; border: 0.0625rem solid var(--line); border-radius: var(--radius-sm); margin: 0.3rem 0; cursor: pointer; font-size: 0.9rem; }
.ac-opt:hover { background: var(--surface-2); }
.ac-opt input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--accent); flex: none; }
.ac-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.ac-opt.good { border-color: var(--ok); background: var(--ok-soft); }
.ac-opt.bad { border-color: var(--bad); background: var(--bad-soft); }
.ac-opt .mark { margin-left: auto; font-size: 1.1rem; }
.ac-opt.good .mark { color: var(--ok); } .ac-opt.bad .mark { color: var(--bad); }
.ac-why { font-size: 0.84rem; color: var(--muted); margin-top: 0.45rem; display: flex; gap: 0.35rem; }
.ac-why .ms { font-size: 1rem; }
.ac-result { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; display: flex; gap: 0.8rem; align-items: center; }
.ac-result.ok { background: var(--ok-soft); color: var(--ok); }
.ac-result.no { background: var(--bad-soft); color: var(--bad); }
.ac-result .ms { font-size: 2rem; }
.ac-result b { font-size: 1.15rem; display: block; }
.ac-result small { color: var(--text); opacity: 0.8; }

/* completion */
.ac-finish { text-align: center; padding: 2.4rem 1rem 1.6rem; position: relative; }
.ac-finish > .ms { font-size: 3.5rem; color: var(--ok); font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48; }
.ac-finish h2 { margin: 0.5rem 0 0.3rem; font-size: 1.35rem; }
.ac-finish p { color: var(--muted); margin: 0 0 1.1rem; }
.ac-finish .k-row { justify-content: center; }
.ac-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ac-confetti i { position: absolute; top: -1rem; width: 0.5rem; height: 0.85rem; border-radius: 0.125rem; animation: fall var(--t, 2.2s) cubic-bezier(.2,.6,.4,1) var(--d, 0s) forwards; opacity: 0; }
@keyframes fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx, 0), 26rem) rotate(var(--rot, 360deg)); } }
@media (prefers-reduced-motion: reduce) { .ac-confetti { display: none; } .ac-video.playing .ac-reels i { animation: none; } }

/* certificate */
.ac-cert { background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 3rem 3.5rem; position: relative; overflow: hidden; aspect-ratio: 1.414; display: flex; flex-direction: column; justify-content: center; max-width: 60rem; width: 100%; margin: 0 auto; }
.ac-cert::before { content: ''; position: absolute; inset: 0.9rem; border: 0.125rem solid var(--accent-soft); border-radius: calc(var(--radius) - 0.4rem); pointer-events: none; }
.ac-cert::after { content: ''; position: absolute; right: -6rem; top: -6rem; width: 18rem; height: 18rem; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; }
.ac-cert .brand { display: flex; align-items: center; gap: 0.5rem; color: var(--accent); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; }
.ac-cert .brand .ms { font-size: 1.4rem; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.ac-cert .over { margin-top: 2rem; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.ac-cert h1 { font-size: 2.4rem; margin: 0.3rem 0 0.2rem; letter-spacing: -0.02em; }
.ac-cert .for { color: var(--muted); font-size: 0.95rem; }
.ac-cert h2 { font-size: 1.4rem; margin: 0.5rem 0 0; color: var(--accent-ink); }
.ac-cert .meta { display: flex; gap: 2.5rem; margin-top: 2.2rem; flex-wrap: wrap; font-size: 0.85rem; }
.ac-cert .meta span { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.15rem; }
.ac-cert .seal { position: absolute; right: 3rem; bottom: 2.6rem; width: 6rem; height: 6rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ac-cert .seal .ms { font-size: 3.4rem; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48; }
@media (max-width: 45rem) { .ac-cert { padding: 1.6rem 1.4rem; aspect-ratio: auto; } .ac-cert h1 { font-size: 1.7rem; } .ac-cert .seal { position: static; margin-top: 1.2rem; width: 4rem; height: 4rem; } .ac-cert .seal .ms { font-size: 2.2rem; } }
.ac-cert-actions { display: flex; gap: 0.5rem; justify-content: flex-end; max-width: 60rem; width: 100%; margin: 0 auto; flex-wrap: wrap; }
@media print {
  body * { visibility: hidden; }
  .ac-cert, .ac-cert * { visibility: visible; }
  .ac-cert { position: absolute; left: 0; top: 0; border: 0; box-shadow: none; max-width: none; }
  @page { size: A4 landscape; margin: 1.25rem; }
}

/* ---------- Admin ---------- */
.ac-subnav { display: inline-flex; border: 0.0625rem solid var(--line); border-radius: 2rem; padding: 0.15rem; background: var(--surface); align-self: flex-start; flex-wrap: wrap; }
.ac-subnav button { all: unset; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--muted); padding: 0.35rem 0.85rem; border-radius: 2rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.ac-subnav button .ms { font-size: 1rem; }
.ac-subnav button.on { background: var(--accent-soft); color: var(--accent-ink); }
.ac-chart { display: flex; flex-direction: column; gap: 0.55rem; }
.ac-crow { display: grid; grid-template-columns: minmax(8rem, 15rem) minmax(0, 1fr) 3.2rem; gap: 0.75rem; align-items: center; font-size: 0.84rem; }
.ac-crow .lbl { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.ac-crow .lbl span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-stack { display: flex; height: 0.9rem; border-radius: 0.3rem; overflow: hidden; background: var(--surface-2); }
.ac-stack i { display: block; height: 100%; transition: width .6s ease; }
.ac-stack .s-done { background: var(--ok); } .ac-stack .s-busy { background: var(--accent); } .ac-stack .s-late { background: var(--bad); } .ac-stack .s-open { background: var(--line-strong); }
.ac-crow .pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) { .ac-crow { grid-template-columns: 1fr 2.8rem; } .ac-crow .ac-stack { grid-column: 1 / -1; grid-row: 2; } }
.ac-legend { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--muted); }
.ac-legend span::before { content: ''; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 0.15rem; margin-right: 0.3rem; vertical-align: -0.05rem; background: var(--line-strong); }
.ac-legend .l-done::before { background: var(--ok); } .ac-legend .l-busy::before { background: var(--accent); } .ac-legend .l-late::before { background: var(--bad); }
.ac-person { display: flex; align-items: center; gap: 0.55rem; }
.ac-person small { display: block; color: var(--muted); font-size: 0.74rem; }
.ac-person .me { font-size: 0.65rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 1rem; padding: 0.05rem 0.4rem; margin-left: 0.3rem; }
.ac-mini { display: inline-block; width: 5.5rem; height: 0.35rem; border-radius: 1rem; background: var(--surface-2); vertical-align: middle; margin-right: 0.4rem; overflow: hidden; }
.ac-mini i { display: block; height: 100%; background: var(--accent); }
.ac-st { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; }
.ac-st .ms { font-size: 1rem; }
.ac-st.ok { color: var(--ok); } .ac-st.late { color: var(--bad); } .ac-st.busy { color: var(--accent); } .ac-st.idle { color: var(--muted); }
.k-table tr.click { cursor: pointer; }
.ac-detail td { background: var(--surface-2) !important; }
.ac-detail .it { display: flex; gap: 0.6rem; align-items: center; padding: 0.3rem 0; font-size: 0.84rem; }
.ac-detail .it b { flex: 1; font-weight: 600; }
.ac-pick { max-height: 15rem; overflow: auto; border: 0.0625rem solid var(--line); border-radius: var(--radius-sm); padding: 0.3rem 0.4rem; }
.ac-pick label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; padding: 0.3rem 0.35rem; border-radius: 0.35rem; cursor: pointer; }
.ac-pick label:hover { background: var(--surface-2); }
.ac-pick input { accent-color: var(--accent); margin: 0; }
.ac-pick small { margin-left: auto; color: var(--muted); font-size: 0.74rem; }
.ac-json { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.75rem; min-height: 13rem; }
.ac-msg { border-radius: var(--radius-sm); padding: 0.55rem 0.8rem; font-size: 0.84rem; }
.ac-msg.ok { background: var(--ok-soft); color: var(--ok); }
.ac-msg.err { background: var(--bad-soft); color: var(--bad); }
dialog.k-dialog.wide { width: min(38rem, 94vw); }
