/* RDPS Marks Studio - one stylesheet. Colours come from the RDPS logo
   (sky-blue globe #06A7E7, deep navy #0B3C5D) and are the same as the Excel theme. */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(../vendor/fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(../vendor/fonts/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../vendor/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../vendor/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/mukta-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/mukta-devanagari-600-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --blue: #06A7E7; --blue-2: #0590C8; --navy: #0B3C5D; --navy-2: #12507A;
  --tint: #E6F5FC; --tint-2: #F3FAFE; --bg: #F5F9FC; --card: #FFFFFF;
  --text: #1F2933; --muted: #5B6B79; --line: #DCEAF3; --line-2: #C9E3F2;
  --green: #1E8E5A; --green-bg: #E3F4EC; --amber: #B7791F; --amber-bg: #FDF3DC; --red: #C0392B; --red-bg: #FBE5E2;
  --shadow: 0 1px 2px rgba(11,60,93,.06), 0 8px 24px rgba(11,60,93,.07);
  --shadow-lg: 0 18px 50px rgba(11,60,93,.16);
  --radius: 14px; --radius-sm: 9px;
  --head: "Poppins", "Mukta", system-ui, "Segoe UI", sans-serif;
  --body: "Inter", "Mukta", system-ui, "Segoe UI", sans-serif;
  --fs: 15px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #2BB8F0; --blue-2: #49C3F3; --navy: #CFE9F7; --navy-2: #9FD3EE;
    --tint: #12324A; --tint-2: #0F2A3F; --bg: #08141F; --card: #0F2133;
    --text: #E4EDF5; --muted: #9BB0C3; --line: #1C3A52; --line-2: #24506F;
    --green: #44C08A; --green-bg: #12352A; --amber: #E8B04F; --amber-bg: #3A2D12; --red: #F07A6C; --red-bg: #3E1C19;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --shadow-lg: 0 18px 50px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #2BB8F0; --blue-2: #49C3F3; --navy: #CFE9F7; --navy-2: #9FD3EE;
  --tint: #12324A; --tint-2: #0F2A3F; --bg: #08141F; --card: #0F2133;
  --text: #E4EDF5; --muted: #9BB0C3; --line: #1C3A52; --line-2: #24506F;
  --green: #44C08A; --green-bg: #12352A; --amber: #E8B04F; --amber-bg: #3A2D12; --red: #F07A6C; --red-bg: #3E1C19;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --shadow-lg: 0 18px 50px rgba(0,0,0,.45);
  color-scheme: dark;
}
:root.present { --fs: 18px; }

* { box-sizing: border-box; }
html { font-size: var(--fs); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 60%),
                    radial-gradient(900px 400px at -10% 20%, color-mix(in srgb, var(--navy-2) 6%, transparent), transparent 60%);
  background-attachment: fixed; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; font-weight: 700; } h2 { font-size: 1.35rem; font-weight: 600; } h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 .8em; }
a { color: var(--blue-2); }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--blue) 30%, transparent); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .tiny { font-size: .78rem; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- splash */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, #0B3C5D 0%, #0A2F49 55%, #06506F 100%); color: #fff; transition: opacity .6s ease, visibility .6s; }
#splash.gone { opacity: 0; visibility: hidden; }
.splash-inner { text-align: center; position: relative; z-index: 2; padding: 16px; }
.splash-ring-wrap { position: relative; width: 196px; height: 196px; margin: 0 auto 10px; display: grid; place-items: center;
  animation: rise .7s ease calc(var(--d, 0s) + 0s) both; }
.splash-ring { position: absolute; inset: 0; width: 196px; height: 196px; transform: rotate(-90deg); overflow: visible; }
.splash-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.splash-ring .ring-bg { stroke: rgba(255,255,255,.10); }
.splash-ring .ring-seg { stroke: #7FD8FA; stroke-dasharray: 0 578; transition: stroke-dasharray .5s ease, stroke .4s; filter: drop-shadow(0 0 4px rgba(127,216,250,.6)); }
.splash-ring .ring-seg.done { stroke: #9BF0C4; }
.splash-badge { width: 132px; height: 132px; margin: 0 auto; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 20px 60px rgba(0,0,0,.35); animation: badge-in .9s cubic-bezier(.2,.9,.3,1.2) var(--d, 0s) both; }
#splash.got .splash-badge { animation: badge-in .9s cubic-bezier(.2,.9,.3,1.2) var(--d, 0s) both, gulp .45s ease both; }
.splash-motto { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 12px; }
.splash-motto .dev { font-family: Mukta, var(--body); font-weight: 600; font-size: 1.25rem; letter-spacing: .02em; color: #FFE9A8;
  clip-path: inset(0 100% 0 0); animation: write 1.3s steps(24, end) calc(var(--d, 0s) + .35s) forwards; }
.splash-motto .en { font-size: .78rem; opacity: 0; font-style: italic; animation: rise .6s ease calc(var(--d, 0s) + 1.5s) forwards; }
.splash-parts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 12px; animation: rise .7s ease calc(var(--d, 0s) + .7s) both; }
.splash-parts span { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); transition: background .3s, color .3s; }
.splash-parts span i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .3s; }
.splash-parts span.busy i { background: #7FD8FA; animation: pulse 1s infinite; }
.splash-parts span.done { background: rgba(155,240,196,.16); color: #CFFBE3; }
.splash-parts span.done i { background: #9BF0C4; animation: none; }
.splash-skip { position: absolute; right: 22px; bottom: 20px; z-index: 3; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 7px 16px; font-weight: 600; cursor: pointer; animation: rise .5s ease 1s both; }
.splash-skip:hover { background: rgba(255,255,255,.2); }
/* chalkboard (first visit only) */
.chalk { position: absolute; inset: 0; display: none; place-items: center; z-index: 4; pointer-events: none; }
.intro-first #splash .chalk { display: grid; animation: chalk-out .5s ease 2.85s forwards; }
.chalk-board { position: relative; width: min(360px, 84vw); padding: 22px 28px 26px; border-radius: 14px; background: #1F4D3A;
  border: 10px solid #8B5A2B; box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 24px 60px rgba(0,0,0,.45); font-family: "Segoe Print", "Comic Sans MS", cursive;
  color: #F4F1E6; animation: board-in .45s cubic-bezier(.2,.9,.3,1.2) both; }
.chalk-title { font-size: 1.05rem; opacity: .9; margin-bottom: 10px; text-align: center; clip-path: inset(0 100% 0 0); animation: write .5s steps(18, end) .25s forwards; }
.chalk-row { display: flex; justify-content: space-between; font-size: 1.35rem; line-height: 1.6; clip-path: inset(0 100% 0 0);
  animation: write .36s steps(10, end) calc(.55s + var(--i) * .32s) forwards; }
.chalk-row b { font-weight: 400; display: inline-block; color: #FFF7C2; }
.chalk-row b.fly { transition: transform .7s cubic-bezier(.5,0,.7,.4), opacity .7s ease; opacity: 0; }
.chalk-dust { position: absolute; inset: auto 12px 6px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); filter: blur(2px); }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes board-in { from { transform: scale(.85) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes chalk-out { to { opacity: 0; transform: scale(.96); } }
@keyframes gulp { 40% { transform: scale(1.12); } }
.intro-first #splash { --d: 2.9s; }
.intro-first #splash .splash-school { animation-delay: calc(var(--d) + .35s); }
.intro-first #splash .splash-title { animation-delay: calc(var(--d) + .5s); }
.intro-first #splash .splash-bar { animation-delay: calc(var(--d) + .65s); }
.intro-first #splash .splash-note { animation-delay: calc(var(--d) + .8s); }
.intro-first #splash .splash-badge img { animation-delay: calc(var(--d) + .5s); }
/* welcome card */
.welcome { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100vw - 32px));
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px 18px;
  animation: welcome-in .55s cubic-bezier(.2,.9,.3,1.15) both; }
.welcome.out { animation: welcome-out .35s ease forwards; }
.welcome h3 { margin: 0 0 2px; font-size: 1.15rem; }
.welcome p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.welcome .x { position: absolute; right: 10px; top: 8px; background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
@keyframes welcome-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes welcome-out { to { opacity: 0; transform: translate(-50%, 18px); } }
.splash-badge img { width: 112px; height: 112px; animation: globe-turn 2.4s ease-in-out .5s both; }
#splash { --d: 0s; }
.splash-school { font-family: var(--head); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; opacity: .75;
  animation: rise .7s ease .35s both; }
.splash-title { font-family: var(--head); font-weight: 700; font-size: 2.6rem; margin: 4px 0 18px; animation: rise .7s ease .5s both; }
.splash-title span { color: #7FD8FA; }
.splash-bar { width: 240px; height: 5px; margin: 0 auto; border-radius: 9px; background: rgba(255,255,255,.15); overflow: hidden; animation: rise .7s ease .65s both; }
.splash-bar i { display: block; height: 100%; width: 8%; background: linear-gradient(90deg, #06A7E7, #7FD8FA); border-radius: 9px; transition: width .4s ease; }
.splash-note { margin-top: 10px; font-size: .82rem; opacity: .7; animation: rise .7s ease .8s both; }
.splash-orbs i { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .18; background: radial-gradient(circle, #06A7E7, transparent 70%); animation: float 9s ease-in-out infinite; }
.splash-orbs i:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -100px; }
.splash-orbs i:nth-child(2) { width: 300px; height: 300px; right: -80px; bottom: -60px; animation-delay: -3s; }
.splash-orbs i:nth-child(3) { width: 180px; height: 180px; right: 22%; top: 12%; animation-delay: -6s; }
@keyframes badge-in { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes globe-turn { 0% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -24px); } }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px 22px;
  background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.brand-badge { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(11,60,93,.12); transition: transform .3s; }
.brand:hover .brand-badge { transform: rotate(-8deg) scale(1.05); }
.brand-badge img { width: 34px; height: 34px; }
.brand-text { font-family: var(--head); font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.brand-text b { font-weight: 700; color: var(--blue); }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; text-decoration: none; color: var(--muted);
  font-weight: 500; font-size: .93rem; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { background: var(--tint-2); color: var(--navy); }
.nav a.active { background: var(--tint); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line-2); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .2s; }
.icon-btn:hover { background: var(--tint); } .icon-btn:active { transform: scale(.92); }
.icon-btn.on { background: var(--navy); color: var(--card); }
:root[data-theme="dark"] .icon-btn .sun, :root:not([data-theme="dark"]) .icon-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .icon-btn .sun { display: block; } :root:not([data-theme]) .icon-btn .moon { display: none; } }
.menu-btn { display: none; }
.engine-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.engine-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 25%, transparent); animation: pulse 1.2s infinite; }
.engine-chip.ready i { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); animation: none; }
.engine-chip.error i { background: var(--red); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------------------------------------------------------------- layout */
main { width: 100%; max-width: 1260px; margin: 0 auto; padding: 26px 22px 40px; flex: 1; outline: none; }
.page { animation: page-in .35s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
  transition: box-shadow .25s, transform .25s; min-width: 0; }
.card.lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 22px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px;
  border-radius: 11px; border: 1px solid transparent; font-weight: 600; font-size: .93rem; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .2s, box-shadow .2s, opacity .2s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #13B3F0, #0698D3); color: #fff; box-shadow: 0 6px 16px rgba(6,167,231,.32); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(6,167,231,.42); }
.btn-navy { background: #0B3C5D; color: #fff; }
:root[data-theme="dark"] .btn-navy { background: #1C5A83; }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--navy); }
.btn-ghost:hover { background: var(--tint-2); }
.btn-soft { background: var(--tint); color: var(--navy); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-sm { padding: 6px 11px; font-size: .84rem; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; border-radius: 13px; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); animation: ripple .55s ease-out; pointer-events: none; }
.btn-ghost .ripple, .btn-soft .ripple { background: color-mix(in srgb, var(--blue) 25%, transparent); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.link-btn { background: none; border: none; color: var(--blue-2); cursor: pointer; padding: 0; font-weight: 600; }

/* ---------------------------------------------------------------- form controls */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span:first-child, .label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
input[type=text], input[type=number], input[type=search], select, textarea { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--card); transition: border-color .2s, box-shadow .2s; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select.sel-sm, input.sel-sm { padding: 5px 26px 5px 9px; font-size: .86rem; border-radius: 8px; }
.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle i { width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.toggle input:checked + i { background: var(--blue); } .toggle input:checked + i::after { transform: translateX(16px); }
.seg { display: inline-flex; background: var(--tint-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: none; background: none; padding: 6px 13px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--muted); font-size: .88rem; }
.seg button.on { background: var(--card); color: var(--navy); box-shadow: 0 1px 4px rgba(11,60,93,.14); }

/* ---------------------------------------------------------------- stepper */
.stepper { display: flex; gap: 0; margin: 4px 0 24px; counter-reset: s; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: .9rem; position: relative; cursor: default; }
.step:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line-2); margin: 0 12px; border-radius: 2px; transition: background .4s; }
.step .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line-2); font-family: var(--head); transition: all .35s; flex: none; }
.step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.done:not(:last-child)::after { background: var(--green); }
.step.now .dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 20%, transparent); }
.step.now { color: var(--navy); }
.step.clickable { cursor: pointer; }

/* ---------------------------------------------------------------- drop zone */
.drop { display: block; position: relative; border: 2px dashed var(--line-2); border-radius: 18px; padding: 38px 20px; text-align: center; background: var(--card);
  transition: border-color .25s, background .25s, transform .25s; cursor: pointer; overflow: hidden; }
.drop:hover { border-color: var(--blue); }
.drop.over { border-color: var(--blue); background: var(--tint-2); transform: scale(1.01); }
.drop .drop-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: var(--tint); color: var(--blue); transition: transform .3s; }
.drop.over .drop-icon { transform: translateY(-6px) scale(1.08); }
.drop .drop-icon svg { width: 32px; height: 32px; }
.drop h3 { margin-bottom: 4px; }
.drop input { display: none; }
.formats { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.formats span { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--tint); color: var(--navy); letter-spacing: .03em; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); animation: drop-in .45s cubic-bezier(.2,.9,.3,1.15) both; }
.file-row .ficon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--navy); font-size: .68rem; font-weight: 800; flex: none; }
.file-row .fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes drop-in { from { transform: translateY(-14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- KPIs */
.kpi { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px; box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), #7FD8FA); }
.kpi .v { font-family: var(--head); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.kpi .l { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.kpi .s { font-size: .8rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 560px; background: var(--card); }
table.t { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
table.t th { position: sticky; top: 0; z-index: 1; background: var(--navy); color: #fff; text-align: left; font-weight: 600; padding: 9px 11px; white-space: nowrap; font-size: .8rem; }
:root[data-theme="dark"] table.t th { background: #163E5C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) table.t th { background: #163E5C; } }
table.t td { padding: 8px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t tr:nth-child(even) td { background: var(--tint-2); }
table.t tbody tr { transition: background .15s; }
table.t tbody tr:hover td { background: var(--tint); }
table.t td.num, table.t th.num { text-align: right; }
table.t td.wrap { white-space: normal; min-width: 260px; }
.t-scroll-note { font-size: .78rem; color: var(--muted); margin-top: 6px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.b-strong { background: var(--green-bg); color: var(--green); } .b-weak { background: var(--amber-bg); color: var(--amber); }
.b-att { background: var(--red-bg); color: var(--red); } .b-track { background: var(--tint); color: var(--navy); }
.b-leave { background: var(--tint-2); color: var(--muted); border: 1px dashed var(--line-2); }
.b-err { background: var(--red-bg); color: var(--red); } .b-warn { background: var(--amber-bg); color: var(--amber); } .b-info { background: var(--tint); color: var(--navy); }
.b-ok { background: var(--green-bg); color: var(--green); }
.pct-cell { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.pct-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.pct-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), #7FD8FA); }

/* ---------------------------------------------------------------- check screen */
.sheet-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.sheet-card + .sheet-card { margin-top: 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--tint-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sheet-head .t { font-weight: 700; color: var(--navy); }
.sheet-body { padding: 14px 16px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.map-col { border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.map-col.unsure { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 15%, transparent); }
.map-col.ign { opacity: .62; }
.map-col .h { font-weight: 700; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-col .sam { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 2px 0 7px; font-family: ui-monospace, Consolas, monospace; }
.map-col .why { font-size: .76rem; color: var(--amber); margin-top: 6px; }
.map-col select { margin-top: 5px; }
.pending { border-left: 4px solid var(--amber); background: var(--amber-bg); color: var(--text); padding: 12px 14px; border-radius: 10px; }
.issue { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--line); animation: drop-in .35s ease both; }
.issue:last-child { border-bottom: none; }
.issue .where { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.issue .fix { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.issue .fix input { width: 90px; }
.preview-grid { overflow: auto; max-height: 220px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.preview-grid table { font-size: .76rem; border-collapse: collapse; }
.preview-grid td { border: 1px solid var(--line); padding: 3px 7px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.preview-grid tr.hdr td { background: var(--tint); font-weight: 700; color: var(--navy); }
.preview-grid td.rn { color: var(--muted); background: var(--tint-2); }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: none; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; white-space: nowrap; }
.tabs button.on { color: var(--navy); }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--blue); animation: grow .3s ease; }
@keyframes grow { from { transform: scaleX(.2); } to { transform: none; } }
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 380px; }

/* ---------------------------------------------------------------- report card (screen) */
.rc { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.rc-top { display: flex; align-items: center; gap: 14px; background: #0B3C5D; color: #fff; padding: 16px 20px; }
.rc-top .brand-badge { width: 52px; height: 52px; } .rc-top .brand-badge img { width: 46px; height: 46px; }
.rc-top h2 { color: #fff; margin: 0; font-size: 1.2rem; } .rc-top p { margin: 0; opacity: .75; font-size: .82rem; }
.rc-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rc-info div span { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rc-info div b { font-weight: 600; }
.rc-body { padding: 16px 20px; }
.rc-overall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0; }
.rc-overall div { background: var(--tint-2); border-radius: 12px; padding: 10px; text-align: center; border-top: 3px solid var(--blue); }
.rc-overall b { display: block; font-family: var(--head); font-size: 1.35rem; color: var(--navy); }
.rc-overall span { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.remarks li { margin: 4px 0; }

/* ---------------------------------------------------------------- chat */
.chat { display: grid; grid-template-rows: 1fr auto; height: calc(100vh - 230px); min-height: 460px; }
.chat-log { overflow-y: auto; padding: 6px 4px 14px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 92%; animation: msg-in .3s ease both; }
.msg.me { align-self: flex-end; background: linear-gradient(180deg, #13B3F0, #0698D3); color: #fff; padding: 10px 15px; border-radius: 16px 16px 4px 16px; box-shadow: 0 6px 16px rgba(6,167,231,.25); }
.msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); padding: 14px 16px; border-radius: 16px 16px 16px 4px; box-shadow: var(--shadow); width: 92%; }
.msg.bot .how { font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line-2); margin-top: 10px; padding-top: 8px; }
.msg.bot .understood { font-size: .76rem; color: var(--muted); margin-bottom: 6px; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin: 0 2px; animation: bounce 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-input { display: flex; gap: 8px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.chat-input input { border: none; box-shadow: none !important; font-size: 1rem; }
.chat-input .seg { flex-wrap: nowrap; }
.mic { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--tint); color: var(--navy); cursor: pointer; display: grid; place-items: center; position: relative; transition: background .2s, transform .15s; flex: none; }
.mic:active { transform: scale(.93); }
.mic.rec { background: var(--red); color: #fff; }
.mic.rec::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--red); animation: ring 1.2s infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 4px; border-radius: 3px; background: var(--red); height: 6px; transition: height .08s; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 6px 13px; font-size: .85rem; cursor: pointer; color: var(--navy); transition: background .2s, transform .15s, border-color .2s; }
.chip:hover { background: var(--tint); border-color: var(--blue); transform: translateY(-1px); }

/* ---------------------------------------------------------------- toasts & modal */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-lg); animation: toast-in .4s cubic-bezier(.2,.9,.3,1.2) both; font-size: .9rem; }
.toast.ok { border-left-color: var(--green); } .toast.err { border-left-color: var(--red); } .toast.warn { border-left-color: var(--amber); }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateX(40px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(5,20,32,.5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.modal { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; padding: 24px; animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* ---------------------------------------------------------------- loaders + success */
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--line) 0%, var(--tint-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #7FD8FA); border-radius: 8px; transition: width .3s; }
.success { width: 76px; height: 76px; margin: 0 auto 10px; }
.success circle { stroke: var(--green); stroke-width: 3; fill: var(--green-bg); }
.success path { stroke: var(--green); stroke-width: 4; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .6s .25s ease forwards; }
.success { width: 76px; height: 76px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse-once { animation: pulse-btn 1.4s ease 2; }
@keyframes pulse-btn { 0%, 100% { box-shadow: 0 6px 16px rgba(6,167,231,.32); } 50% { box-shadow: 0 0 0 10px rgba(6,167,231,.12), 0 6px 16px rgba(6,167,231,.32); } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; color: var(--line-2); margin-bottom: 8px; }
.note { font-size: .84rem; color: var(--muted); background: var(--tint-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.note b { color: var(--navy); }
.hint-step { display: flex; gap: 12px; align-items: flex-start; }
.hint-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--navy); font-weight: 700; display: grid; place-items: center; flex: none; }

/* ---------------------------------------------------------------- presentation mode */
#pointer-halo { position: fixed; z-index: 95; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(6,167,231,.28), rgba(6,167,231,.08) 60%, transparent 70%); border: 2px solid rgba(6,167,231,.55);
  opacity: 0; transition: opacity .2s, transform .12s; }
:root.present #pointer-halo { opacity: 1; }
:root.present #pointer-halo.click { transform: scale(.7); }
.tour-mask { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.tour-hole { position: fixed; z-index: 86; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(5,20,32,.55), 0 0 0 3px #06A7E7; transition: all .45s cubic-bezier(.2,.9,.3,1); pointer-events: none; }
.tour-tip { position: fixed; z-index: 87; max-width: 340px; background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-lg); animation: pop .3s ease; }
.tour-tip h3 { margin-bottom: 6px; }

/* ---------------------------------------------------------------- print (report cards) */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; color: #1F2933; font-family: var(--body); }
  .pc { page-break-after: always; break-after: page; }
  .pc:last-child { page-break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.pc { font-size: 10.5pt; }
.pc-top { display: flex; align-items: center; gap: 14px; background: #0B3C5D; color: #fff; padding: 12px 16px; border-radius: 10px; }
.pc-top img { width: 58px; height: 58px; background: #fff; border-radius: 50%; padding: 3px; }
.pc-top h1 { color: #fff; font-size: 16pt; margin: 0; } .pc-top p { margin: 0; font-size: 9pt; opacity: .8; }
.pc-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px; margin: 12px 2px; font-size: 9.5pt; }
.pc-info span { display: block; color: #5B6B79; font-size: 7.5pt; font-weight: 700; text-transform: uppercase; }
.pc table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.pc th { background: #0B3C5D; color: #fff; padding: 6px; text-align: left; }
.pc td { padding: 5px 6px; border-bottom: 1px solid #DCEAF3; }
.pc tr:nth-child(even) td { background: #F3FAFE; }
.pc .ov { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0; }
.pc .ov div { background: #E6F5FC; border-top: 3px solid #06A7E7; border-radius: 8px; padding: 6px; text-align: center; }
.pc .ov b { display: block; font-size: 13pt; color: #0B3C5D; } .pc .ov span { font-size: 7pt; color: #5B6B79; font-weight: 700; text-transform: uppercase; }
.pc .charts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-top: 8px; }
.pc .charts svg { width: 100%; height: auto; stroke: none; fill: initial; }
.pc .rem { font-size: 9pt; } .pc .rem li { margin: 2px 0; }
.pc .foot-note { font-size: 7.5pt; color: #5B6B79; margin-top: 8px; border-top: 1px solid #DCEAF3; padding-top: 6px; display: flex; justify-content: space-between; }
.pc .sign { display: flex; justify-content: space-between; margin-top: 28px; font-size: 8.5pt; color: #5B6B79; }
.pc .sign span { border-top: 1px solid #9DB4C7; padding-top: 4px; min-width: 140px; text-align: center; }

/* ---------------------------------------------------------------- "?" explainers */
.qmark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--blue);
  background: var(--card); color: var(--blue-2); font: 700 .74rem/1 var(--head); cursor: pointer; vertical-align: middle; flex: none;
  transition: background .2s, color .2s, transform .15s; padding: 0; margin-left: 2px; }
.qmark:hover { background: var(--blue); color: #fff; transform: scale(1.1); }
.qmark.static { cursor: default; }
.kpi .l .qmark { width: 16px; height: 16px; font-size: .64rem; }
.modal:has(.ex-player) { max-width: 760px; }
.modal .ex-player { width: 100%; }
.ex-videobox video { width: 100%; border-radius: 14px; background: #0B3C5D; display: block; aspect-ratio: 16 / 9; }
.ex-mode button { font-size: .8rem; padding: 5px 10px; }
.ex-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.ex-head h2 { margin: 0; }
.ex-stage { position: relative; border-radius: 16px; background: linear-gradient(160deg, var(--tint-2), var(--tint)); border: 1px solid var(--line);
  min-height: 250px; padding: 22px 20px 16px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.ex-stage::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 18%, transparent), transparent 70%); }
.ex-visual { position: relative; min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ex-visual.in > * { animation: ex-in .55s cubic-bezier(.2,.9,.3,1.1) both; }
.ex-visual.in > *:nth-child(2) { animation-delay: .15s; } .ex-visual.in > *:nth-child(3) { animation-delay: .3s; }
.ex-caption { position: relative; margin: 14px 0 0; font-size: 1.02rem; color: var(--text); text-align: center; line-height: 1.5; }
.ex-caption.in { animation: ex-cap .5s ease both; }
@keyframes ex-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ex-cap { from { opacity: 0; } to { opacity: 1; } }
.ex-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.ex-flow > * { animation: ex-in .5s cubic-bezier(.2,.9,.3,1.1) both; }
.ex-flow > *:nth-child(2) { animation-delay: .12s; } .ex-flow > *:nth-child(3) { animation-delay: .24s; } .ex-flow > *:nth-child(4) { animation-delay: .36s; }
.ex-flow > *:nth-child(5) { animation-delay: .48s; } .ex-flow > *:nth-child(6) { animation-delay: .6s; } .ex-flow > *:nth-child(n+7) { animation-delay: .72s; }
.ex-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2);
  font-weight: 600; font-size: .88rem; color: var(--navy); box-shadow: 0 2px 6px rgba(11,60,93,.08); }
.ex-chip.ok { background: var(--green-bg); color: var(--green); border-color: transparent; }
.ex-chip.warn { background: var(--amber-bg); color: var(--amber); border-color: transparent; }
.ex-chip.muted { color: var(--muted); border-style: dashed; }
.ex-chip.pulse, .ex-box.pulse { animation: ex-pulse 1.4s ease-in-out infinite; }
@keyframes ex-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--amber) 25%, transparent); } }
.ex-box { padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; color: var(--navy);
  text-align: center; box-shadow: var(--shadow); }
.ex-box small { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ex-box.pop { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent), var(--shadow); }
.ex-box.big { font-size: 1.25rem; padding: 18px 24px; }
.ex-box.good { color: var(--green); border-color: var(--green); }
.ex-num { font-family: var(--head); font-size: 1.35rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.ex-arrow { font-size: 1.3rem; color: var(--blue); font-weight: 700; }
.ex-cross { color: var(--red); font-weight: 700; text-decoration: line-through; }
.ex-bar { display: grid; grid-template-columns: 110px 1fr 54px; align-items: center; gap: 10px; width: min(420px, 100%); font-size: .86rem; }
.ex-bar span { color: var(--text); font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-bar i { height: 12px; border-radius: 8px; background: var(--line); position: relative; overflow: hidden; }
.ex-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, var(--blue), #7FD8FA);
  animation: ex-grow 1s cubic-bezier(.2,.8,.3,1) both .2s; }
.ex-bar.good i::after { background: linear-gradient(90deg, var(--green), #7ED9A9); }
.ex-bar.weak i::after { background: linear-gradient(90deg, var(--amber), #F5C978); }
.ex-bar.bad i::after { background: linear-gradient(90deg, var(--red), #EE8E84); }
.ex-bar b { font-variant-numeric: tabular-nums; color: var(--navy); }
@keyframes ex-grow { from { width: 0; } }
.ex-table { border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  font-size: .86rem; box-shadow: var(--shadow); }
.ex-table td { padding: 6px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.ex-table tr.h td { background: var(--navy); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .ex-table tr.h td { color: var(--card); }
.ex-table tr.hl td { background: color-mix(in srgb, var(--blue) 14%, var(--card)); font-weight: 700; animation: ex-pulse-row 1.6s ease-in-out infinite; }
@keyframes ex-pulse-row { 50% { background: color-mix(in srgb, var(--blue) 26%, var(--card)); } }
.ex-controls { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ex-dots { display: flex; gap: 6px; margin-left: 6px; }
.ex-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--line-2); cursor: pointer; padding: 0; transition: transform .2s, background .2s; }
.ex-dots button.on { background: var(--blue); transform: scale(1.3); }
.ex-progress { flex: 1; min-width: 80px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ex-progress i { display: block; height: 100%; width: 0; background: var(--blue); }
.ex-text { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--card); }
.ex-text summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.ex-text ol { margin: 8px 0 0; padding-left: 20px; font-size: .9rem; }
.ex-text li { margin: 4px 0; color: var(--muted); transition: color .3s; }
.ex-text li.now { color: var(--text); font-weight: 500; }
.ex-area { margin-bottom: 26px; }
.ex-area h2 { margin-bottom: 12px; }
.ex-list { margin: 0; padding-left: 20px; color: var(--text); } .ex-list li { margin: 4px 0; }

/* ---------------------------------------------------------------- teachers */
.class-pick { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.cp-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cp-row > b { width: 38px; color: var(--navy); font-size: .86rem; }
.cp { display: inline-flex; cursor: pointer; }
.cp input { display: none; }
.cp span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; color: var(--muted); transition: all .15s; }
.cp input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.mini-kpi { text-align: center; padding: 6px 12px; border-radius: 12px; background: var(--tint-2); border: 1px solid var(--line); }
.mini-kpi b { display: block; font-family: var(--head); font-size: 1.15rem; color: var(--navy); }
.mini-kpi span { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; gap: 4px; align-items: center; }
.mini-kpi span .qmark { width: 15px; height: 15px; font-size: .6rem; }
.t-card .table-wrap { max-height: 280px; margin-top: 10px; }
.int-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.slot-tag { font-size: .68rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
.empty { padding: 18px; text-align: center; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) { .g5 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; top: 61px; left: 0; right: 0; flex-direction: column; background: var(--card); border-bottom: 1px solid var(--line); padding: 10px; transform: translateY(-120%); transition: transform .3s; box-shadow: var(--shadow-lg); }
  .nav.open { transform: none; }
  .g2, .g3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .engine-chip span { display: none; }
  .rc-info { grid-template-columns: repeat(2, 1fr); } .rc-overall { grid-template-columns: repeat(3, 1fr); }
  .chat { height: calc(100vh - 200px); }
}
@media (max-width: 640px) {
  main { padding: 18px 16px 30px; } .topbar { padding: 10px 16px; gap: 10px; }
  .brand-text { display: none; } h1 { font-size: 1.5rem; }
  .g5, .g4 { grid-template-columns: repeat(2, 1fr); }
  .stepper .step span.lbl { display: none; }
  .issue { grid-template-columns: 1fr; }
  .card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-first #splash .chalk { display: none; } .intro-first #splash { --d: 0s; }
  .splash-motto .dev { clip-path: none; } .splash-motto .en { opacity: .8; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- teachers v3 */
.t-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.t-step { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.t-step > b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--navy); font-family: var(--head); flex: none; transition: background .3s, color .3s; }
.t-step.done > b { background: var(--green); color: #fff; }
.t-step.done > b::after { content: "✓"; font-size: .8rem; margin-left: 2px; }
.t-step h4 { margin: 0; font-size: .95rem; } .t-step span { font-size: .78rem; color: var(--muted); }
.t-ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; color: #fff; font-family: var(--head);
  background: linear-gradient(135deg, var(--blue), var(--navy-2)); }
.t-ava.big { width: 48px; height: 48px; font-size: 1.2rem; }
.t-list { max-height: 420px; overflow: auto; padding-right: 4px; }
.t-tabs { margin: 4px 0 0; } .t-tabs button { font-size: .95rem; padding: 8px 18px; }
.t-subj { margin: 28px 0 12px; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.t-subj::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.t-card { display: flex; flex-direction: column; gap: 10px; }
.t-head { display: flex; gap: 12px; align-items: center; } .t-head h3 { margin: 0; }
.t-line { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--tint-2); border-left: 3px solid var(--blue); font-size: .92rem; }
.t-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.t-kpi { text-align: center; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); }
.t-kpi b { display: block; font-family: var(--head); font-size: 1.25rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.t-kpi span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.t-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.t-charts .wide { grid-column: 1 / -1; }
.t-charts h4, .t-card > h4 { margin: 0 0 4px; font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.chart-box.sm { height: 190px; }
.t-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.t-secs > div { padding: 8px 10px; border-radius: 10px; background: var(--tint-2); display: flex; flex-direction: column; }
.t-secs span { font-size: .78rem; color: var(--muted); }
.t-more summary { cursor: pointer; color: var(--blue-2); font-weight: 600; font-size: .88rem; }
.t-more[open] summary { margin-bottom: 8px; }
.t-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.t-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.kpi.good::before { background: linear-gradient(90deg, var(--green), #7ED9AE); } .kpi.good .v { color: var(--green); }
.kpi.warn::before { background: linear-gradient(90deg, var(--amber), #F5CD7A); } .kpi.warn .v { color: var(--amber); }
@media (max-width: 760px) {
  .t-steps { grid-template-columns: 1fr; } .t-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .t-charts { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- check step (simple) */
.check-head { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.check-head h2 { margin: 0 0 2px; font-size: 1.25rem; } .check-head p { margin: 0; color: var(--muted); }
.check-head .ch-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.check-head.ok .ch-ico { background: var(--green-bg); color: var(--green); font-weight: 800; }
.check-head.warn { border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); } .check-head.warn .ch-ico { background: var(--amber-bg); }
.rd-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.rd-card.needs { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 12%, transparent); }
.rd-top { display: flex; gap: 12px; align-items: center; }
.rd-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); font-size: 1.2rem; flex: none; }
.rd-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.rd-facts span { font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: var(--tint-2); border: 1px solid var(--line); color: var(--navy); }
.rd-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .rd-line > b { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.chip-s { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--navy); font-weight: 600; }
.rd-qs { display: flex; flex-direction: column; gap: 8px; }
.ask-q { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); }
.ask-q select, .ask-q input { max-width: 260px; }
.rd-more summary { cursor: pointer; color: var(--blue-2); font-size: .86rem; font-weight: 600; }
.rd-more[open] summary { margin-bottom: 10px; }
.rd-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line-2); }
.ask-kind .btn { justify-content: flex-start; text-align: left; width: 100%; gap: 8px; padding: 12px 14px; }
.ask-kind .btn:hover { border-color: var(--blue); background: var(--tint-2); }
.ask-kind .btn.likely { border-color: var(--blue); }
