:root {
  --navy: #0c2744;
  --navy-2: #16375d;
  --saffron: #c96a12;
  --green: #1d6b3a;
  --gold: #a68445;
  --ink: #1c2430;
  --muted: #5d6b7c;
  --line: #e4d8c4;
  --paper: #f6f1e7;
  --card: rgba(255, 252, 247, 0.94);
  --danger: #8d2433;
  --ok: #1d6b3a;
  --shadow: 0 18px 50px rgba(18, 24, 20, 0.18);
  font-family: "Nirmala UI", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--navy-2); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.tricolor { display: flex; height: 4px; }
.tricolor i { flex: 1; display: block; }
.tricolor i:nth-child(1) { background: #ff8a00; }
.tricolor i:nth-child(2) { background: #fff; }
.tricolor i:nth-child(3) { background: #138a36; }

.login-body { min-height: 100vh; background: #1a120c; color: white; }
.login-history {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.login-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(8, 18, 28, 0.78) 0%, rgba(8, 18, 28, 0.42) 42%, rgba(255, 246, 234, 0.62) 100%);
}
.login-top, .login-wrap, .login-foot, .otp-board { position: relative; z-index: 2; }
.login-top { display: flex; gap: 14px; align-items: center; padding: 18px 7vw 0; }
.login-top img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); object-fit: cover; background: white; }
.login-top strong { display: block; font-size: 14px; letter-spacing: .04em; }
.login-top span { color: rgba(255,255,255,.8); font-size: 13px; }
.login-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: calc(100vh - 130px); padding: 24px 7vw 40px; }
.eyebrow { letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: #f0c27a; margin: 0 0 8px; }
.login-copy h1 { font-size: 46px; line-height: 1.15; margin: 0 0 8px; font-weight: 700; }
.login-copy p { font-size: 18px; max-width: 36rem; color: rgba(255,255,255,.88); }
.login-card { background: var(--card); color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.login-card h2 { margin: 0 0 4px; font-size: 22px; }
.tabs { display: flex; gap: 8px; margin: 14px 0; }
.tabs button { flex: 1; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--navy); color: white; border-color: var(--navy); }
label { display: block; font-size: 13px; margin: 10px 0 4px; color: var(--muted); }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9d0c2; border-radius: 10px; background: white; }
input[type="checkbox"] { width: auto; }
textarea { min-height: 80px; }
.primary { background: var(--saffron); color: white; border: 0; border-radius: 10px; padding: 11px 14px; cursor: pointer; width: 100%; margin-top: 12px; font-weight: 700; }
.ghost, a.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; text-decoration: none; }
.captcha { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 12px; padding: 8px; border: 1px solid #d9d0c2; border-radius: 12px; background: rgba(255,255,255,.86); }
.captcha img { width: 132px; height: 44px; display: block; border-radius: 8px; background: #fff; }
.captcha-refresh { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #9a3412; background: #fff; border: 1px solid #d9d0c2; text-decoration: none; }
.captcha-refresh svg { width: 16px; height: 16px; }
.captcha input { width: 100%; margin: 0; }
.captcha .muted { grid-column: 1 / -1; margin: 0; }
.error { background: #fde8ea; color: var(--danger); padding: 8px 10px; border-radius: 8px; }
.ok { background: #e5f6ea; color: var(--ok); padding: 8px 10px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; }
.login-foot { padding: 0 7vw 18px; color: rgba(255,255,255,.8); font-size: 13px; }
.otp-board { display: grid; grid-template-columns: 300px 1fr; max-width: 860px; margin: 18px auto 28px; background: #fffdf8; color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); min-height: 480px; }
.otp-side { background: #0c2744; color: white; padding: 32px 26px 18px; display: flex; flex-direction: column; border-top: 4px solid var(--saffron); }
.otp-side h2 { margin: 0 0 8px; font-size: 28px; }
.otp-side p { margin: 0; color: rgba(255,255,255,.9); }
.otp-art { margin-top: auto; width: 100%; height: auto; }
.otp-main { padding: 42px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fffdf8; }
.otp-main h2 { margin: 0 0 22px; font-size: 26px; color: var(--navy); }
.otp-boxes { display: flex; gap: 10px; }
.otp-box { width: 48px; height: 54px; padding: 0; text-align: center; font-size: 22px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.otp-box:focus { border-color: var(--saffron); outline: none; box-shadow: 0 0 0 1px var(--saffron); }
.otp-wait { margin: 18px 0 4px; font-size: 15px; color: var(--navy); }
.otp-wait b, .otp-wait button { color: var(--saffron); font-weight: 700; }
.otp-wait button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 15px; }
.otp-main .primary { width: min(280px, 100%); margin-top: 16px; border-radius: 8px; background: #c5cad3; }
.otp-main .primary:not(:disabled) { background: var(--saffron); }
.otp-back { margin-top: 14px; font-size: 13px; }
.noscript { background: #fff4d6; color: #6a4b00; padding: 8px; border-radius: 8px; }

.shell { height: calc(100vh - 4px); min-height: 0; display: grid; grid-template-columns: 250px 1fr; }
.side { background: var(--navy); color: white; padding: 18px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100%; overflow: hidden; }
.side-nav { flex: 1 1 auto; min-height: 0; overflow: auto; }
.live-strip { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.site-foot { flex: 0 0 auto; background: var(--navy); border-top: 0; color: #d5e2f2; padding: 8px 16px; z-index: 4; }
.site-foot .muted { color: #d5e2f2; }
body.has-foot .sso-float { bottom: 78px; }
.live-board { display: flex; gap: 8px; flex: 0 0 auto; }
.live-count { display: flex; align-items: baseline; gap: 6px; background: #fffdf8; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.live-count b { font-size: 15px; line-height: 1; color: var(--navy); }
.live-count span { color: var(--muted); font-size: 12px; }
.live-people { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; overflow-x: auto; flex: 1 1 auto; min-width: 0; padding-bottom: 2px; }
.live-people a { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px 2px 2px; color: inherit; text-decoration: none; }
.live-people .avatar { width: 22px; height: 22px; flex-basis: 22px; }
.live-people span { display: flex; flex-direction: column; line-height: 1.15; }
.live-people strong { font-size: 12px; font-weight: 700; }
.live-people small { color: var(--muted); font-size: 10px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #1d6b3a; flex: 0 0 6px; }
.sso-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin-top: 14px; }
.sso-app { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--navy); background: white; border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px 14px; box-shadow: 0 6px 16px rgba(18, 24, 20, .05); }
.sso-app img { width: 100%; height: 96px; object-fit: contain; background: #fff7ee; border-radius: 12px; padding: 10px; }
.sso-app span { font-size: 14px; font-weight: 700; line-height: 1.35; }
.sso-app small { color: var(--muted); font-size: 12px; font-weight: 600; }
.sso-float { position: fixed; right: 18px; bottom: 18px; z-index: 20; }
.sso-float summary { list-style: none; width: 74px; height: 74px; padding: 6px; border-radius: 18px; background: #ffe6c7; border: 1px solid #f0c48a; box-shadow: 0 10px 24px rgba(12, 39, 68, .18); cursor: pointer; }
.sso-float summary::-webkit-details-marker { display: none; }
.sso-float summary img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sso-panel { position: absolute; right: 0; bottom: 86px; width: min(380px, calc(100vw - 36px)); max-height: min(72vh, 560px); overflow: auto; background: #ffe6c7; border: 1px solid #f0c48a; border-radius: 16px; box-shadow: 0 18px 40px rgba(12, 39, 68, .2); padding: 16px; }
.sampark-menu h2 { margin: 0 0 8px; color: var(--navy); font-size: 22px; }
.sampark-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #9a3412; }
.sampark-menu form { display: grid; gap: 6px; margin-top: 12px; }
.sampark-menu label { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--navy); }
.sampark-menu .primary { width: 100%; margin-top: 8px; }
.spk { margin: -20px; display: flex; flex-direction: column; min-height: 100%; background: var(--paper); color: var(--ink); }
.spk-top { display: flex; align-items: center; gap: 16px; background: var(--navy); color: #F8FAFC; padding: 10px 16px; }
.spk-brand { display: flex; align-items: baseline; gap: 10px; flex: 1 1 auto; min-width: 0; padding: 0; }
.spk-kicker { margin: 0; color: #f0c48a; font-weight: 700; letter-spacing: .04em; font-size: 13px; white-space: nowrap; }
.spk-title { margin: 0; font-size: 16px; font-weight: 700; white-space: nowrap; }
.spk-scope { margin: 0; color: #d5e2f2; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spk-nav { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.spk-nav form { margin: 0; }
.spk button.spk-btn, .spk a.spk-btn { display: inline-block; width: auto; box-sizing: border-box; border: 0; border-radius: 8px; background: var(--navy-2); color: #fff; font-weight: 700; padding: 8px 12px; margin: 0; text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap; }
.spk button.spk-btn.primary { background: var(--saffron); }
.spk button.spk-btn:disabled { opacity: .45; cursor: default; }
.spk-main { flex: 1; min-width: 0; padding: 16px; }
.spk-card { background: white; border: 1px solid var(--line); border-radius: 14px; }
.spk-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px 8px; }
.spk-head h1, .spk-sethead h1 { margin: 0; font-size: 22px; color: var(--navy); }
.spk-dept, .spk-step { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.spk-out { display: inline-flex; gap: 8px; align-items: center; margin: 8px 0 0; padding: 4px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.spk-out b { color: var(--muted); font-size: 11px; }
.spk-meter { text-align: right; }
.spk-gear { display: inline-flex; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; border-radius: 8px; overflow: hidden; }
.spk-gear i { width: 4px; background: var(--saffron); }
.spk-gear span { padding: 8px 14px; }
.spk-pct { margin: 8px 0 0; color: var(--saffron); font-size: 26px; font-weight: 700; }
.spk-elapsed { margin: 0; color: var(--muted); font-size: 12px; }
.spk-bar { height: 12px; margin: 0 16px 14px; background: #efe4d0; border-radius: 999px; overflow: hidden; }
.spk-bar span { display: block; height: 100%; background: var(--saffron); }
.spk-label { margin: 0 0 8px; padding: 10px 16px 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.spk-pad .spk-label, .spk-sethead .spk-label { padding: 0; }
.spk-pipe { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; padding: 0 10px 12px; }
.spk-step { text-align: center; }
.spk-step b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; background: #efe4d0; color: var(--muted); font-size: 11px; border-radius: 6px; }
.spk-step span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.spk-step.on b { background: var(--saffron); color: #fff; }
.spk-step.on span { color: var(--navy); }
.spk-step.done b { background: var(--green); color: #fff; }
.spk-step.done span { color: var(--green); }
.spk-strip { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.spk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 0; flex: 1.2 1 420px; }
.spk-stat { padding: 10px 12px; }
.spk-stat small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.spk-stat strong { display: block; margin-top: 2px; font-size: 22px; color: var(--navy); }
.spk-toggle { display: flex; flex: 1.4 1 420px; min-width: 0; }
.spk-toggle > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; flex: 1 1 0; min-width: 0; }
.spk-toggle > div + div { border-top: 0; border-left: 1px solid var(--line); }
.spk-toggle strong { display: block; font-size: 14px; color: var(--navy); }
.spk-toggle span { display: block; color: var(--muted); font-size: 12px; }
.spk-pair { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 0; padding: 2px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.spk-pair form { margin: 0; display: flex; }
.spk button.spk-choice { width: auto; height: 20px; margin: 0; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; font-size: 11px; font-weight: 700; line-height: 1; cursor: pointer; }
.spk button.spk-choice.off { color: #c0392b; }
.spk button.spk-choice.on { color: #1d6b3a; }
.spk button.spk-choice.off.picked, .spk button.spk-choice.off.picked:disabled { background: #c0392b; color: #fff; opacity: 1; }
.spk button.spk-choice.on.picked, .spk button.spk-choice.on.picked:disabled { background: #1d6b3a; color: #fff; opacity: 1; }
.spk-log { margin-top: 12px; }
.spk-loghead { display: flex; justify-content: space-between; padding: 12px 14px 6px; }
.spk-loghead span { color: var(--muted); font-size: 13px; }
.spk-console { margin: 0 12px 12px; background: var(--navy); color: #e7eef7; padding: 12px; min-height: 120px; border-radius: 10px; font-family: Consolas, ui-monospace, monospace; font-size: 12px; }
.spk-console p { margin: 0 0 4px; }
.spk-console span { color: #d5e2f2; }
.spk-console .lg-ok { color: #8fd0a8; }
.spk-console .lg-warn { color: #f0c48a; }
.spk-console .lg-error { color: #f3b4bc; }
.spk-sethead, .spk-pad { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 8px; }
.spk-pad { display: block; }
.spk-hint, .spk-syncnote { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.spk-authrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.spk-authrow .spk-hint { flex: 1 1 100%; margin: 0; }
.spk button.spk-sync, .spk a.spk-sync, .spk button.spk-save, .spk a.spk-save, .spk a.spk-cancel { width: auto; margin: 0; border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; text-decoration: none; }
.spk button.spk-sync, .spk a.spk-sync { background: var(--navy); color: #fff; padding: 8px 14px; }
.spk button.spk-save, .spk a.spk-save { background: var(--saffron); color: #fff; padding: 8px 16px; }
.spk a.spk-cancel { background: #efe4d0; color: var(--navy); padding: 8px 16px; }
.spk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spk-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.spk .checks { max-height: 240px; }
.spk input, .spk select { border-color: var(--line); border-radius: 8px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 12px; max-height: 220px; overflow: auto; margin: 8px 0 14px; }
.checks label { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.ework { min-width: 2200px; }
.ework td, .ework th { white-space: nowrap; }
.sampark-total td { font-weight: 700; background: #f3ecdf; }
.side-mark { flex: 0 0 auto; margin-top: auto; padding-top: 18px; }
.side-mark img { display: block; width: 100%; height: auto; }
.side-mark span { display: block; margin-top: 6px; text-align: center; font-size: 11px; letter-spacing: .04em; color: #d5e2f2; }
.brand { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: white; }
.brand strong { display: block; font-size: 14px; }
.brand span { font-size: 12px; color: #d5e2f2; }
.side a { display: flex; align-items: center; gap: 8px; color: #e7eef7; text-decoration: none; padding: 9px 10px; border-radius: 8px; margin-bottom: 4px; }
.side a:hover, .side a.active { background: rgba(255,255,255,.1); }
.nav-ico, .ico { width: 18px; height: 18px; flex: 0 0 18px; }
.ghost, .primary, .act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
a.primary { width: auto; margin-top: 0; text-decoration: none; padding: 8px 12px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acts form { margin: 0; }
.act { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: white; color: var(--navy); text-decoration: none; font-size: 13px; cursor: pointer; }
.act .ico { width: 15px; height: 15px; flex-basis: 15px; }
.act.danger { color: var(--danger); border-color: #f0c4c8; background: #fff7f8; }
.badge.off { background: #f8d6da; color: var(--danger); }
.main { min-width: 0; min-height: 0; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: white; border-bottom: 1px solid var(--line); }
a.who { display: flex; align-items: center; gap: 8px; text-align: right; color: inherit; text-decoration: none; }
a.who:hover strong { text-decoration: underline; }
.who strong { display: block; }
.who span { color: var(--muted); font-size: 13px; }
.person { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.person span { display: flex; flex-direction: column; line-height: 1.25; }
.person small { color: var(--muted); font-size: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #f4efe6; flex: 0 0 36px; border: 1px solid #e4d8c4; }
.avatar.lg { width: 56px; height: 56px; flex-basis: 56px; }
.avatar.xl { width: 128px; height: 128px; flex-basis: 128px; border: 3px solid var(--saffron); }
.profile-sheet { display: grid; grid-template-columns: 240px 1fr; background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 18px; }
.profile-side { background: #0c2744; color: #f6f1e7; padding: 28px 18px; text-align: center; }
.profile-side .avatar { margin: 0 auto 14px; display: block; cursor: pointer; }
.profile-side p { margin: 12px 0 0; color: rgba(255,255,255,.75); font-size: 13px; }
.file-pick, button.file-pick { display: inline-block; margin: 4px 4px 0; background: var(--saffron); color: white; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit; font-size: 13px; }
.file-pick input { display: none; }
.crop-sheet { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(12, 39, 68, .72); }
.crop-sheet[hidden] { display: none; }
.crop-card { width: min(420px, 100%); background: #fffdf8; color: var(--ink); border-radius: 18px; padding: 18px 18px 16px; box-shadow: var(--shadow); }
.crop-card h2 { margin: 0 0 4px; }
.crop-frame { position: relative; width: 280px; height: 280px; margin: 12px auto; border-radius: 16px; overflow: hidden; background: #0c2744; touch-action: none; cursor: grab; }
.crop-frame canvas { display: block; width: 280px; height: 280px; }
.crop-frame::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 80px rgba(12, 39, 68, .38); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; color: var(--navy); }
.crop-zoom input { width: auto; flex: 1; }
.crop-actions { display: flex; justify-content: flex-end; gap: 8px; }
.crop-actions .primary { width: auto; margin: 0; }
.profile-fields { display: grid; grid-template-columns: 110px 1fr 110px 1fr; gap: 12px 12px; align-items: center; padding: 22px 22px 26px; }
.profile-fields h2, .profile-fields .wide { grid-column: 1 / -1; }
.profile-fields h2 { margin: 6px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.profile-fields label { margin: 0; }
.profile-fields input[type="hidden"] { display: none; }
.profile-fields .primary { width: auto; justify-self: start; }
.profile-card { display: flex; gap: 16px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.profile-card h1 { margin: 0; }
.profile-card .post { margin: 2px 0; color: var(--saffron); font-weight: 700; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.facts p { margin: 0; }
.facts span { display: block; color: var(--muted); font-size: 12px; }
.content { padding: 20px; flex: 1 1 auto; min-height: 0; overflow: auto; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats.letters { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; }
.stat { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 8px; background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; overflow: hidden; box-shadow: 0 4px 12px rgba(18, 24, 20, .04); transition: transform .16s ease, box-shadow .16s ease; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(12, 39, 68, .1); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.stat-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #f4efe6; color: var(--accent); }
.stat-ico .ico { width: 14px; height: 14px; }
.stat em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); opacity: 0; transition: opacity .16s ease; }
.stat:hover em { opacity: 1; }
.stat b { font-size: 22px; line-height: 1; color: var(--navy); }
.stat > span { color: var(--muted); font-size: 12px; }
.stat small { color: var(--accent); font-size: 11px; font-weight: 700; }
.stat .bar { display: block; height: 3px; margin-top: 6px; border-radius: 99px; background: #efe6d8; }
.stat .bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.stat.works { --accent: #0c2744; }
.stat.moving { --accent: #c96a12; }
.stat.moving .stat-ico { background: #fde7d4; }
.stat.done { --accent: #1d6b3a; }
.stat.done .stat-ico { background: #e5f6ea; }
.stat.late { --accent: #8d2433; }
.stat.late .stat-ico { background: #fde8ea; }
.tile, .card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
a.tile { display: block; text-decoration: none; color: inherit; }
.tile b { display: block; font-size: 28px; color: var(--navy); }
.badge.in { background: #e7eef7; color: var(--navy); }
.badge.out { background: #fde7d4; color: #9a3412; }
.letter-kind { display: flex; gap: 8px; margin: 8px 0 14px; }
.letter-kind label { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.letter-kind input { width: auto; }
.letter-print { background: #f6f1e7; margin: 0; }
.letter-paper { max-width: 780px; margin: 24px auto; background: white; padding: 40px 46px; color: #1c1915; }
.letter-paper header { display: flex; gap: 14px; align-items: center; border-bottom: 4px solid #0c2744; padding-bottom: 12px; }
.letter-paper header img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.letter-paper header strong, .letter-paper header span { display: block; }
.letter-paper header em { margin-left: auto; font-style: normal; font-weight: 700; color: #c96a12; }
.letter-meta { display: flex; justify-content: space-between; margin-top: 18px; }
.letter-subject { font-weight: 700; }
.letter-body { min-height: 160px; line-height: 1.6; white-space: pre-wrap; }
.letter-sign { margin-top: 48px; }
.noprint { max-width: 780px; margin: 16px auto 0; display: flex; gap: 12px; align-items: center; }
@media print {
  .noprint { display: none !important; }
  .letter-print { background: white; }
  .letter-paper { margin: 0; max-width: none; }
}
.tile span { color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.scheme-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; margin-top: 14px; }
.scheme-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; text-decoration: none; color: inherit; background: white; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(18, 24, 20, .05); }
.scheme-card img { width: 100%; height: 84px; object-fit: contain; background: #fff7ee; }
.scheme-card div { padding: 7px 8px 8px; }
.scheme-card strong { display: block; font-size: 13px; line-height: 1.35; color: var(--navy); }
.scheme-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.scheme-card { transition: transform .15s ease, box-shadow .15s ease; }
.scheme-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 24, 20, .08); }
.cards .scheme-card { flex-direction: row; align-items: center; }
.cards .scheme-card img { width: 44px; height: 44px; flex: 0 0 44px; margin: 8px 0 8px 10px; border-radius: 8px; }
.cards .scheme-card div { padding: 10px 12px 10px 10px; }
.scheme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.scheme-tile { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; overflow: hidden; border-radius: 16px; text-decoration: none; color: inherit; background: white; border: 1px solid var(--line); border-left: 6px solid var(--tile, var(--saffron)); box-shadow: 0 8px 20px rgba(18, 24, 20, .06); }
.scheme-tile img { width: 52px; height: 52px; flex: 0 0 52px; object-fit: contain; padding: 10px; border-radius: 14px; background: #f6f1e8; }
.scheme-tile div { padding: 2px 0 0; }
.sheet { overflow-x: auto; margin: 8px 0 22px; }
.sheet table { min-width: 720px; }
.scheme-tile strong { display: block; font-size: 16px; line-height: 1.35; color: var(--navy); }
.scheme-tile span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.hero-row { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; margin: 14px 0; }
.hero-row img { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; }
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.places figure { margin: 0; }
.places img { height: 110px; width: 100%; object-fit: cover; border-radius: 10px; }
.places figcaption { font-size: 12px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px; vertical-align: top; font-size: 14px; }
th { background: #f3ecdf; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #efe4d0; font-size: 12px; }
.badge.late, .badge.critical, .badge.delayed { background: #f8d6da; color: var(--danger); }
.badge.early, .badge.on_time, .badge.on_track { background: #d9f2e2; color: var(--ok); }
.badge.watch { background: #fff1cc; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.filters input, .filters select, .filters .primary { width: auto; margin-top: 0; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.muted { color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.warn { background: #fff6e5; border: 1px solid #efd3a0; padding: 10px 12px; border-radius: 10px; }
a.block-card, a.work-card { display: block; text-decoration: none; color: inherit; }
.block-tiles { display: flex; gap: 8px; margin-top: 14px; padding: 4px 0 12px; }
a.block-card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 0 0 10px; overflow: hidden; border-radius: 16px; border: 1px solid #ece6f4; border-bottom: 5px solid var(--band, var(--saffron)); background: white; box-shadow: 0 8px 18px rgba(18, 24, 20, .08); transition: transform .15s ease, box-shadow .15s ease; }
.block-photo { display: block; height: 86px; background: color-mix(in srgb, var(--band) 16%, #f4efe6); }
.block-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.block-band { display: flex; align-items: center; justify-content: center; height: 32px; background: var(--band, var(--navy)); color: white; }
a.block-card strong { display: block; margin-top: 8px; padding: 0 8px; font-size: 15px; line-height: 1.25; text-align: center; color: var(--navy); }
a.block-card em { display: block; margin-top: 2px; padding: 0 8px; font-style: normal; font-size: 11px; text-align: center; color: var(--muted); }
a.block-card .place-stats { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 0 6px; font-size: 11px; color: #3c4654; }
a.block-card .place-stats span { display: flex; align-items: center; gap: 6px; }
a.block-card .dot.wait { background: #3b6fd8; }
a.block-card:hover, a.work-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 24, 20, .08); }
.work-list { display: grid; gap: 12px; }
.work-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 10px; }
.work-card strong { display: block; color: var(--navy); font-size: 17px; line-height: 1.35; }
.work-card .meta { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.point-stats { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.point-stats span, .dots { display: inline-flex; align-items: center; gap: 6px; }
.dot, .dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #e7dfd2; }
.dot.done, .dots i.on { background: #1d6b3a; }
.dot.now { background: #c96a12; box-shadow: 0 0 0 3px rgba(201, 106, 18, .18); }
.dots { margin-top: 8px; }
.rail { display: flex; list-style: none; margin: 14px 0 0; padding: 0; }
.rail li { flex: 1; position: relative; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.25; }
.rail li i { width: 14px; height: 14px; margin: 0 auto 6px; border-radius: 50%; display: block; background: #f4efe6; border: 2px solid #d9cbb4; position: relative; z-index: 1; }
.rail li::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: #e4d8c4; z-index: 0; }
.rail li:first-child::before { display: none; }
.rail li.done i { background: #1d6b3a; border-color: #1d6b3a; }
.rail li.now i { background: white; border-color: #c96a12; box-shadow: 0 0 0 4px rgba(201, 106, 18, .2); }
.rail li.done::before, .rail li.now::before { background: #1d6b3a; }
.rail li.now span { color: var(--navy); font-weight: 700; }
.rail-note { margin: 8px 0 0; color: var(--danger); font-size: 13px; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: #e4d8c4; }
.timeline li:last-child::before { display: none; }
.timeline .mark { position: absolute; left: 0; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: white; border: 3px solid #1d6b3a; }
.timeline li:first-child .mark { border-color: #c96a12; box-shadow: 0 0 0 4px rgba(201, 106, 18, .16); }
.point { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.point strong { display: block; color: var(--navy); }
.point .meta { color: var(--muted); font-size: 13px; }
.note-row { margin-top: 6px; }
.editor { border: 1px solid #d9d0c2; border-radius: 14px; background: white; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.editor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; background: #f6f0e4; border-bottom: 1px solid var(--line); }
.editor-tools > button { width: 32px; height: 32px; border: 1px solid transparent; border-radius: 8px; background: white; color: var(--navy); cursor: pointer; font-weight: 700; }
.editor-tools > button:hover { border-color: #d9cbb4; }
.editor-body { min-height: 150px; padding: 12px; outline: none; }
.editor-body:focus { box-shadow: inset 0 0 0 2px rgba(12, 39, 68, .12); }
.editor-body table, .note-html table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.editor-body td, .editor-body th, .note-html td, .note-html th { border: 1px solid #d9d0c2; padding: 6px; min-width: 36px; }
.editor-body img, .note-html img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; }
.note-html { margin-top: 8px; }
.lang-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 2px; background: #efe4d2; border: 1px solid #d9cbb4; border-radius: 999px; }
.lang-switch button { width: auto; height: 24px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer; display: inline-flex; flex-direction: row; align-items: center; gap: 3px; padding: 0 8px; }
.lang-switch .glyph { width: auto; height: auto; border-radius: 0; display: inline; background: transparent; font-size: 12px; font-weight: 700; }
.lang-switch span { font-size: 11px; letter-spacing: .02em; font-weight: 700; }
.lang-switch button[data-lang="hi"][aria-pressed="true"] { background: #9a3412; color: white; }
.lang-switch button[data-lang="en"][aria-pressed="true"] { background: var(--navy); color: white; }
.lang-switch button[aria-pressed="true"] .glyph { background: transparent; color: inherit; }

@media (max-width: 980px) {
  .login-wrap, .shell, .hero-row, .split, .grid, .stats, .stats.letters, .cards, .scheme-grid, .places, .otp-board, .profile-sheet, .facts { grid-template-columns: 1fr; }
  .live-strip { flex-wrap: wrap; }
  .live-people { flex-basis: 100%; }
  body.has-foot .site-foot { position: fixed; left: 0; right: 0; bottom: 0; }
  body.has-foot .content { padding-bottom: 96px; }
  .profile-fields { grid-template-columns: 1fr; }
  .login-copy h1 { font-size: 34px; }
  .side { position: static; height: auto; overflow: visible; }
  .side-nav { overflow: visible; flex: none; }
  .shell { display: block; height: auto; }
  .main { height: auto; overflow: visible; display: block; }
  .content { overflow: visible; }
  .block-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spk-top { flex-wrap: wrap; }
  .spk-brand { flex-wrap: wrap; }
  .spk-scope { white-space: normal; }
  .spk-strip { flex-direction: column; }
  .spk-pipe, .spk-stats, .spk-two { grid-template-columns: 1fr 1fr; }
  .spk-toggle { flex-direction: column; }
  .spk-toggle > div { align-items: flex-start; flex-direction: column; }
  .spk-toggle > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
