/* Direction: patriotic field-grade tracker — deep navy-black ground, army olive and gold, saffron-white-green tricolour, condensed military display type */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #080d17;
  --surface: #121a2a;
  --surface-2: #1a2437;
  --border: #26334b;
  --border-strong: #52565d;
  --ink: #eef0e8;
  --muted: #9ea9ba;
  --accent: #8fa83c;
  --accent-hover: #a0b559;
  --accent-ink: #080d17;
  --accent-text: #b8cf6e;
  --accent-strong: #8fa83c;
  --accent-soft: #262f1f;
  --accent-border: #455328;
  --success: #8cc152;
  --success-ink: #ffffff;
  --success-soft: #253524;
  --success-strong: #8cc152;
  --warning: #e0b24a;
  --warning-ink: #ffffff;
  --warning-soft: #383122;
  --warning-strong: #e0b24a;
  --danger: #e8605a;
  --danger-ink: #ffffff;
  --danger-soft: #391f26;
  --danger-strong: #ea6d67;
  --chart-1: #8fa83c;
  --chart-2: #1ed4bd;
  --chart-3: #178ccd;
  --chart-4: #c09cfa;
  --chart-5: #c0597b;
  --chart-6: #f29f51;

  --x-gold: #e3b552;
  --x-flame: #ff8a1f;
  --x-blue: #6ea0d4;
  --x-saffron: #ff9933;
  --x-white: #f5f5f0;
  --x-green: #138808;
  --x-skin: #c79a74;
  --x-army: #5f6e33;
  --x-army-d: #424b24;
  --x-navy: #1d2d52;
  --x-navy-d: #131d38;
  --x-cap: #eef0ea;
  --x-iaf: #5d7ea8;
  --x-iaf-d: #405a7a;
  --x-med: #7a2b3c;
  --x-metal: #c6ccd6;
  --gradient-tricolour: linear-gradient(90deg, var(--x-saffron) 0 33.33%, var(--x-white) 33.33% 66.66%, var(--x-green) 66.66% 100%);
  --font-display: "Oswald", "Bebas Neue", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: 0.03em;
  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-input: 12px;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dcdddf;
  --border-strong: #b5b6b9;
  --ink: #080d17;
  --muted: #6b6e74;
  --accent: #8fa83c;
  --accent-hover: #7a8f33;
  --accent-ink: #080d17;
  --accent-text: #5e6f28;
  --accent-strong: #5e6f28;
  --accent-soft: #eff3e4;
  --accent-border: #cdd8a7;
  --success: #8cc152;
  --success-ink: #080d17;
  --success-soft: #f1f8ea;
  --success-strong: #557631;
  --warning: #e0b24a;
  --warning-ink: #080d17;
  --warning-soft: #fbf6e9;
  --warning-strong: #886d2d;
  --danger: #e8605a;
  --danger-ink: #080d17;
  --danger-soft: #fceceb;
  --danger-strong: #b44b46;
  --chart-1: #839b2d;
  --chart-2: #00a290;
  --chart-3: #187fba;
  --chart-4: #a783df;
  --chart-5: #b24d6f;
  --chart-6: #cd7c2a;
}

/* Mission Dashboard — patriotic field-grade look. Tokens only. */
@keyframes rise { from { opacity: .55; transform: translateY(14px); } }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 35% { transform: scale(1.1) rotate(-4deg); } 70% { transform: scale(.96) rotate(3deg); } }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); } }
@keyframes ring { from { stroke-dashoffset: var(--circ); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
html.reduced-motion *, html.reduced-motion *::before { animation: none !important; transition: none !important; }

/* full-screen photo background with a scrim so text stays readable */
.bg-photo { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--canvas); }
.bg-photo img { width: 100%; height: 100%; object-fit: cover; }
.bg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--canvas) 62%, transparent), color-mix(in srgb, var(--canvas) 86%, transparent)); }

.eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text); font-weight: 600; }
.text-warning { color: var(--warning); } .text-danger { color: var(--danger); }
.alert-err { border-color: var(--danger); }
.sec-h { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .08em; }
.sec-h::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--x-gold), transparent); opacity: .5; }

/* tap targets */
.btn, .btn-sm { min-height: 44px; }
.btn-icon { min-width: 44px; min-height: 44px; }
.input, .select { min-height: 44px; }

/* sticky top bar + tricolour */
.topwrap { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(14px); }
.topbar { display: flex; align-items: center; gap: .5rem; max-width: 42rem; margin: 0 auto; padding: .25rem .5rem .25rem 1rem; min-height: 56px; }
.brand { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; font-family: var(--font-display); letter-spacing: .09em; font-size: 1.05rem; white-space: nowrap; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; }
.brand-mark { color: var(--x-gold); display: inline-flex; }
.topdate { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.tricolour { height: 3px; background: var(--gradient-tricolour); }

/* glass cards */
.card { background: color-mix(in srgb, var(--surface) 74%, transparent); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--ink) 9%, var(--border)); border-radius: 20px; box-shadow: 0 12px 30px rgb(0 0 0 / .35), 0 0 26px color-mix(in srgb, var(--accent) 7%, transparent); animation: rise .5s ease both; }
.card:nth-of-type(2) { animation-delay: .05s; } .card:nth-of-type(3) { animation-delay: .1s; } .card:nth-of-type(4) { animation-delay: .15s; } .card:nth-of-type(n+5) { animation-delay: .2s; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.head-fig { flex: none; width: 92px; }
.head-fig .cut:has(.art-fit) { aspect-ratio: 4 / 3; width: 128px; margin-left: -36px; }

/* cut-outs */
.cut { display: block; position: relative; width: 100%; aspect-ratio: 5 / 6; pointer-events: none; }
.cut > svg, .cut > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.art .skin { fill: var(--x-skin); } .art .shade { fill: var(--canvas); opacity: .3; }
.art .gold { fill: var(--x-gold); } .art .white { fill: var(--x-cap); } .art .dark { fill: var(--x-navy-d); } .art .metal { fill: var(--x-metal); } .art .red { fill: var(--danger); }
.art .saf { fill: var(--x-saffron); } .art .wht { fill: var(--x-white); } .art .grn { fill: var(--x-green); }
.art .u1 { fill: var(--u1); } .art .u2 { fill: var(--u2); } .art .hat1 { fill: var(--h1); } .art .hat2 { fill: var(--h2); }
.art .strap { stroke: var(--u2, var(--x-army-d)); stroke-width: 3; fill: none; } .art .strapg { stroke: var(--x-gold); stroke-width: 3; fill: none; stroke-linecap: round; }
.art-army { --u1: var(--x-army); --u2: var(--x-army-d); --h1: var(--x-army); --h2: var(--x-army-d); }
.art-navy { --u1: var(--x-navy); --u2: var(--x-navy-d); --h1: var(--x-cap); --h2: var(--x-navy-d); }
.art-air { --u1: var(--x-iaf); --u2: var(--x-iaf-d); --h1: var(--x-iaf-d); --h2: var(--x-iaf); }
.art-med { --u1: var(--x-army); --u2: var(--x-army-d); --h1: var(--x-med); --h2: var(--x-army-d); }
.art .limb { stroke: var(--accent-text); stroke-width: 12; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art .fill-a { fill: var(--accent-text); } .art .speed { stroke: var(--x-gold); stroke-width: 4; stroke-linecap: round; opacity: .6; fill: none; } .art .ground { stroke: var(--border); stroke-width: 3; fill: none; }

/* hero */
.hero { position: relative; margin: 2rem 0 1.2rem; padding: 1.1rem 1rem; min-height: 190px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, var(--surface)), var(--surface) 72%); border: 1px solid color-mix(in srgb, var(--x-gold) 40%, var(--border)); box-shadow: 0 16px 36px rgb(0 0 0 / .4), 0 0 34px color-mix(in srgb, var(--x-gold) 12%, transparent); animation: rise .5s ease both; }
.hero { min-height: 0; display: flex; flex-direction: column; gap: .9rem; }
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.hero-txt { position: relative; z-index: 1; flex: 1; min-width: 0; }
.hero-h { margin-top: .3rem; font-family: var(--font-display); text-transform: uppercase; font-size: .78rem; line-height: 1.3; letter-spacing: .16em; color: var(--x-gold); font-weight: 500; }
.hero-quote { position: relative; z-index: 1; padding-top: .8rem; border-top: 1px solid color-mix(in srgb, var(--x-gold) 35%, transparent); }
.hero-quote .quote-t { font-size: 1.3rem; line-height: 1.3; margin: .4rem 0; }
.splash { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; padding: 1.2rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom)); overflow-y: auto; text-align: center; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--x-saffron) 30%, var(--canvas)), var(--canvas) 66%); animation: splashIn .5s ease both; }
@keyframes splashIn { from { opacity: .4; } }
.splash-img { flex: 1 1 0; min-height: 180px; width: min(34rem, 100%); display: flex; align-items: flex-end; justify-content: center; }
.splash-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 26px rgb(0 0 0 / .5)); }
.splash-mid { flex: none; padding: 1.2rem 0 1.6rem; animation: pop .7s ease both; }
.splash-jai { font-family: var(--font-display); text-transform: uppercase; font-size: 3.8rem; line-height: 1; letter-spacing: .06em; color: var(--x-gold); }
.splash-tag { margin-top: .6rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: 1.05rem; text-wrap: balance; }
.splash-bot { flex: none; width: min(26rem, 100%); }
.hero-chip { display: inline-block; margin-top: .8rem; padding: .35rem .7rem; border-radius: 99px; font-size: .75rem; border: 1px solid color-mix(in srgb, var(--x-gold) 55%, transparent); background: color-mix(in srgb, var(--x-gold) 12%, transparent); color: var(--x-gold); }
.hero-fig { position: relative; flex: none; width: 36%; aspect-ratio: 5 / 6; pointer-events: none; z-index: 2; margin-bottom: -1rem; }
.hero-fig::before { content: ""; position: absolute; inset: 6% -12% 0 -12%; background: radial-gradient(closest-side, color-mix(in srgb, var(--x-gold) 55%, transparent), transparent 72%); }
.hero-fig .cut { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .5)); }

/* tab bar */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.tabbar::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 2px; background: var(--gradient-tricolour); opacity: .8; }
.tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: .62rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.tab-item .icon { width: 1.3rem; height: 1.3rem; }
.tab-item:hover { color: var(--ink); }
.tab-item.is-active { color: var(--x-gold); }
.tab-item.is-active .icon { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--x-gold) 60%, transparent)); }
.tab-item:focus-visible, .act:focus-visible, .seg-b:focus-visible, .pwbtn:focus-visible, .chk:focus-visible, .salute-btn:focus-visible { outline: 2px solid var(--x-gold); outline-offset: 2px; }

/* segmented switch */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.seg-b { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 .85rem; border-radius: 11px; font-size: .8rem; font-weight: 600; color: var(--muted); background: none; border: 0; transition: background .15s, color .15s; }
.seg-b.on { background: var(--accent); color: var(--canvas); }

/* messages, quote, why */
.msg { padding: .75rem .9rem; border-radius: 12px; font-size: .9rem; border-left: 3px solid var(--muted); background: var(--surface-2); }
.msg-firm { border-color: var(--danger); } .msg-mid { border-color: var(--x-gold); } .msg-high { border-color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface-2)); }
.quote-card { display: flex; gap: .9rem; align-items: flex-end; }
.quote-fig { flex: none; width: 74px; }
.quote-t { margin: .3rem 0; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.why { display: flex; gap: .75rem; align-items: flex-end; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); }
.why-txt { flex: 1; min-width: 0; }
.why-fig { flex: none; width: 92px; margin: 0; text-align: center; }
.why-fig figcaption { margin-top: .15rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--x-gold); }
.mission { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); }
.callout { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 14px; font-size: .88rem; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.callout > .icon { flex: none; margin-top: 2px; color: var(--accent-text); }
.callout-warn { background: color-mix(in srgb, var(--warning) 12%, transparent); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.callout-warn > .icon { color: var(--warning); }
.callout-bad { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.callout-bad > .icon { color: var(--danger); }

/* vows */
.vow { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .4rem; padding: .9rem .8rem; border-radius: 20px; background: color-mix(in srgb, var(--surface) 74%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 9%, var(--border)); box-shadow: 0 10px 26px rgb(0 0 0 / .3); animation: rise .5s ease both; }
.vow > * { position: relative; z-index: 1; }
.vow > .wm { position: absolute; z-index: 0; right: -22px; bottom: -8px; width: 118px; opacity: .13; pointer-events: none; }
.vow.held { border-color: color-mix(in srgb, var(--success) 70%, var(--border)); }
.vow-t { font-family: var(--font-display); font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; }
.vow-n { display: flex; align-items: center; gap: .35rem; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.vow-n small { font-size: .7rem; color: var(--muted); font-family: var(--font-body); }
.vow-n .flame .icon { width: 1.5rem; height: 1.5rem; }
.vow-r { font-size: .72rem; color: var(--accent-text); }
.vow-b { width: 100%; min-height: 44px; font-size: .85rem; }
.vow-h { font-size: .66rem; line-height: 1.3; color: var(--muted); }

/* timetable blocks */
.blk { border: 1px solid var(--border); border-left-width: 4px; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(8px); border-radius: 18px; padding: .8rem .9rem; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.blk.is-past { opacity: .58; }
.blk.is-now { opacity: 1; border-color: var(--x-gold); box-shadow: 0 0 0 1px var(--x-gold), 0 0 28px color-mix(in srgb, var(--x-gold) 24%, transparent); }
.blk.s-done { border-left-color: var(--success); } .blk.s-partial { border-left-color: var(--x-gold); } .blk.s-missed { border-left-color: var(--danger); }
.blk-time { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.blk-title { font-weight: 600; margin-top: .1rem; }
.now-pill { display: inline-block; margin-left: .35rem; padding: 0 .45rem; border-radius: 99px; background: var(--x-gold); color: var(--canvas); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chip-cat { flex: none; font-size: .66rem; padding: .15rem .5rem; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); }
.blk-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .7rem; }
.act { display: flex; align-items: center; justify-content: center; gap: .3rem; min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: .82rem; font-weight: 600; transition: transform .1s, background .15s, color .15s; }
.act:hover { color: var(--ink); } .act:active { transform: scale(.96); }
.act .icon { width: 1rem; height: 1rem; }
.act.on.act-done { background: var(--success); border-color: var(--success); color: var(--canvas); }
.act.on.act-partial { background: var(--x-gold); border-color: var(--x-gold); color: var(--canvas); }
.act.on.act-missed { background: var(--danger); border-color: var(--danger); color: var(--canvas); }
.salute-btn { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; min-height: 44px; margin-top: .5rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--x-gold) 70%, transparent); background: color-mix(in srgb, var(--x-gold) 12%, transparent); color: var(--x-gold); font-weight: 600; font-size: .85rem; }
.salute-btn:active { transform: scale(.97); }
.salute-btn .icon { width: 1rem; height: 1rem; }
.chk { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: none; border: 0; cursor: pointer; color: var(--canvas); }
.chk::before { content: ""; grid-area: 1 / 1; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--border); transition: background .15s, border-color .15s; }
.chk:hover::before { border-color: var(--accent); }
.chk-on::before { background: var(--accent); border-color: var(--accent); }
.chk .icon { grid-area: 1 / 1; position: relative; width: 1rem; height: 1rem; }

/* score ring, stats, bars */
.ring-arc { animation: ring 1.1s ease-out both; }
.stat-l { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.stat-n { margin-top: .2rem; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: .3rem; }
.stat-s { margin-top: .15rem; font-size: .72rem; color: var(--muted); }
.bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--x-gold)); transition: width .5s ease; }
.bar-warn i { background: var(--warning); }
.insights { display: grid; gap: .6rem; list-style: none; padding: 0; }
.insights li { position: relative; padding-left: 1.1rem; font-size: .92rem; line-height: 1.45; }
.insights li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--x-gold); transform: rotate(45deg); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: .3rem; vertical-align: middle; }
.dot-present { background: var(--success); } .dot-absent { background: var(--danger); } .dot-holiday { background: var(--muted); }
.dot-g0 { background: var(--accent); } .dot-g1 { background: var(--x-flame); } .dot-g2 { background: var(--x-gold); } .dot-g3 { background: var(--x-blue); }
.exam-n { display: flex; align-items: baseline; gap: .25rem; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--x-gold); font-variant-numeric: tabular-nums; }
.exam-n small { font-size: .7rem; color: var(--muted); font-family: var(--font-body); }

/* streaks, ranks, flames */
.flame { color: var(--x-flame); display: inline-flex; }
.flame-off { color: var(--muted); opacity: .45; }
.flame .icon, .icon-lg { width: 1.9rem; height: 1.9rem; }
.stat-n .flame .icon { width: 1.5rem; height: 1.5rem; }
.streak.hot { border-color: color-mix(in srgb, var(--x-flame) 40%, var(--border)); }
.streak.hot .flame:not(.flame-off), .vow .flame:not(.flame-off) { animation: flicker 2.2s ease-in-out infinite; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--x-flame) 65%, transparent)); transform-origin: 50% 90%; }
.ins { display: block; width: 100%; height: 100%; }
.ins-bg { fill: var(--surface-2); stroke: var(--border); stroke-width: 2; }
.ins .gold { fill: var(--x-gold); }
.ins .chev { fill: none; stroke: var(--x-gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ins-big { flex: none; width: 46px; height: 46px; }
.ins-big .ins-bg { stroke: var(--x-gold); }
.rank-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--x-gold); font-size: .85rem; }
.ranks { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; list-style: none; padding: 0; }
.rk { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .62rem; color: var(--muted); opacity: .5; }
.rk .ins { width: 30px; height: 30px; }
.rk.on { opacity: 1; color: var(--x-gold); } .rk.on .ins-bg { stroke: var(--x-gold); }
.rk-new { animation: pop .9s ease both; }

/* PW */
.pwbtn { width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .9rem; transition: transform .1s, background .15s; }
.pwbtn:active { transform: scale(.96); }
.pwbtn-present.on, .pwbtn-present:hover { background: color-mix(in srgb, var(--success) 35%, var(--surface-2)); border-color: var(--success); }
.pwbtn-absent.on, .pwbtn-absent:hover { background: color-mix(in srgb, var(--danger) 40%, var(--surface-2)); border-color: var(--danger); }
.pwbtn-holiday.on, .pwbtn-holiday:hover { background: color-mix(in srgb, var(--muted) 30%, var(--surface-2)); border-color: var(--muted); }
.rchip { cursor: pointer; }
.rchip input { position: absolute; opacity: 0; pointer-events: none; }
.rchip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); font-size: .85rem; }
.rchip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); }
.rchip input:focus-visible + span { outline: 2px solid var(--x-gold); outline-offset: 2px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-inline: -8px; }
.cal-h { text-align: center; font-size: .68rem; color: var(--muted); padding-bottom: .15rem; }
.cal-c { aspect-ratio: 1; min-height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-size: .8rem; color: var(--muted); border: 1px solid transparent; }
a.cal-c:hover { border-color: var(--accent); }
.cal-future { opacity: .35; background: transparent; border: 1px dashed var(--border); }
.pw-present { background: color-mix(in srgb, var(--success) 40%, var(--surface-2)); color: var(--ink); }
.pw-absent { background: color-mix(in srgb, var(--danger) 50%, var(--surface-2)); color: var(--ink); }
.pw-holiday { background: color-mix(in srgb, var(--muted) 32%, var(--surface-2)); color: var(--ink); }
.cal-c.is-today { outline: 2px solid var(--x-gold); outline-offset: -2px; }
.cal-c.is-sel { border-color: var(--ink); }

/* train */
.wk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; border-radius: 10px; background: var(--surface-2); font-size: .68rem; }
.wk-d { font-family: var(--font-display); font-size: .85rem; } .wk-n { color: var(--muted); }
.wk.is-today { outline: 2px solid var(--x-gold); } .wk.full { background: color-mix(in srgb, var(--success) 30%, var(--surface-2)); }

/* goals, images */
.subj summary { display: flex; align-items: center; cursor: pointer; list-style: none; min-height: 44px; }
.subj summary::-webkit-details-marker { display: none; }
.slot-prev { flex: none; width: 64px; }
.login-fig { display: flex; justify-content: center; gap: .25rem; margin-bottom: 1.2rem; }
.login-fig .cut { width: 84px; }

/* footer */
.foot { margin-top: 2.5rem; text-align: center; }
.foot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; align-items: end; padding-inline: .25rem; border-bottom: 2px solid transparent; border-image: var(--gradient-tricolour) 1; }
.foot-fig { opacity: .92; }
.foot-line { margin-top: .9rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: .95rem; color: var(--x-gold); }
.credit { margin-top: .4rem; font-size: .62rem; line-height: 1.4; color: var(--muted); }

/* salute pop + celebration */
.salute-pop { position: fixed; z-index: 70; left: 50%; bottom: 5.5rem; width: min(22rem, calc(100% - 2rem)); transform: translateX(-50%); display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--x-gold); box-shadow: 0 16px 40px rgb(0 0 0 / .5), 0 0 30px color-mix(in srgb, var(--x-gold) 30%, transparent); animation: rise .35s ease both; }
.salute-fig { position: relative; flex: none; width: 60px; animation: bob 1.4s ease-in-out infinite; }
.salute-fig::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 2px solid var(--x-gold); animation: pulse 1.4s ease-out infinite; }
.salute-fig .cut { position: relative; }
.salute-pop p { font-size: .9rem; line-height: 1.35; }
.celebrate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgb(0 0 0 / .66); overflow: hidden; padding: 1rem; }
.celebrate-box { position: relative; text-align: center; padding: 1.6rem 1.4rem 1.4rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--x-gold); max-width: 21rem; width: 100%; box-shadow: 0 0 60px color-mix(in srgb, var(--x-gold) 30%, transparent); animation: pop .6s ease both; }
.celebrate-fig { width: 104px; margin: 0 auto .4rem; }
.celebrate-box h2 { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.05; text-transform: uppercase; color: var(--x-gold); letter-spacing: .05em; }
.celebrate-box .jai { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--accent-text); }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: fall 2.8s ease-in forwards; }
.confetti .c0 { background: var(--accent); } .confetti .c1 { background: var(--x-gold); } .confetti .c2 { background: var(--x-saffron); } .confetti .c3 { background: var(--x-white); } .confetti .c4 { background: var(--x-green); }
