:root {
  --ink: #101828;
  --muted: #667085;
  --line: #E6E8EE;
  --canvas: #F4F5F7;
  --card: #FFFFFF;
  --accent: #0F3D38;
  --accent-soft: #E7F3F1;
  --md-sys-color-primary: #0F3D38;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #E7F3F1;
  --md-sys-color-on-primary-container: #0F3D38;
  --md-sys-color-secondary: #8A6114;
  --md-sys-color-surface: #F4F5F7;
  --md-sys-color-surface-container: #EEF0F3;
  --md-sys-color-surface-container-high: #E8EAEE;
  --md-sys-color-on-surface: #101828;
  --md-sys-color-on-surface-variant: #667085;
  --md-sys-color-outline: #D0D5DD;
  --md-sys-color-error: #B42318;
  --md-sys-color-ok: #067647;
  --radius: 12px;
  --elev-1: 0 1px 2px rgba(16,24,40,.04);
  --elev-2: 0 1px 2px rgba(16,24,40,.06);
  --elev-3: 0 8px 24px rgba(16,24,40,.12);
  --bar-h: 56px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: #E8EAEE;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
a { color: inherit; }
button, input { font: inherit; }

.device {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (min-width: 520px) {
  body { padding: 28px 0; }
  .device {
    min-height: min(860px, calc(100vh - 56px));
    height: min(860px, calc(100vh - 56px));
    border-radius: 16px;
    border: 1px solid #E1E3E8;
    box-shadow: 0 16px 40px rgba(16,24,40,.08);
  }
}
@media (display-mode: standalone) {
  body { padding: 0; background: var(--md-sys-color-surface); }
  .device {
    max-width: none; height: 100dvh; min-height: 100dvh;
    border-radius: 0; box-shadow: none;
  }
}

/* AppBar */
.appbar {
  flex-shrink: 0;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 10px;
  min-height: var(--bar-h);
}
.appbar-row { display: flex; align-items: center; gap: 10px; }
.appbar-text { flex: 1; min-width: 0; }
.appbar-text small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.appbar-text b { display: block; font-size: 16px; font-weight: 650; line-height: 1.3; }
.bar-av {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  color: var(--ink); text-decoration: none; background: #F2F4F7; flex-shrink: 0;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { background: #E8EAEE; }

/* Body */
.body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
.body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.sec { margin: 16px 2px 8px; font-size: 12px; font-weight: 650; color: var(--muted); }

.dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.page-tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 12px; text-decoration: none; border-radius: 14px; padding: 14px;
  min-height: 124px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--elev-1);
}
.page-tile:active { background: #F8F9FB; }
.page-tile .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.page-tile .ico svg { width: 20px; height: 20px; }
.page-tile b { display: block; font-size: 14px; font-weight: 650; color: var(--ink); }
.page-tile span { display: block; font-size: 12px; color: var(--muted); opacity: 1; margin-top: 3px; font-weight: 500; }
.page-tile.wide { grid-column: 1 / -1; min-height: 76px; flex-direction: row; align-items: center; }
.t-teal, .t-gold, .t-rose, .t-blue, .t-violet, .t-ink, .t-navy, .t-green, .t-orange { background: #fff; }
.t-teal .ico { background: #E7F3F1; color: #0F6E64; }
.t-gold .ico { background: #FBF4E4; color: #8A6114; }
.t-rose .ico { background: #FDECEC; color: #B42318; }
.t-blue .ico { background: #EAF1FE; color: #175CD3; }
.t-violet .ico { background: #F3EEFB; color: #6941C6; }
.t-ink .ico { background: #F2F4F7; color: #344054; }
.t-navy .ico { background: #E8F1F8; color: #184E77; }
.t-green .ico { background: #E7F6EE; color: #067647; }
.t-orange .ico { background: #FEF4E8; color: #B54708; }
.contact-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.phone-num { direction: ltr; text-align: right; font-size: 1.15rem; font-weight: 800; margin: 8px 0 0; letter-spacing: .04em; }
.btn.wa { background: #128C7E; color: #fff; }
.btn.call { background: var(--md-sys-color-primary); color: #fff; }
.auth-contact {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; font-weight: 800; color: var(--md-sys-color-primary); text-decoration: none;
}
.auth-contact svg { width: 20px; height: 20px; }
.chip.wait { background: #fef3c7; color: #92400e; }
.chip.ok { background: #c4eedc; color: var(--md-sys-color-ok); }
.chip.off { background: #e0e7ff; color: #3730a3; }
.body input.field, .body select.field, .body textarea.field {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 15px; direction: rtl; text-align: right; font: inherit;
}
.body input.field:focus, .body select.field:focus, .body textarea.field:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,61,56,.12);
}
.body textarea.field { min-height: 88px; resize: vertical; }

.req-box { padding: 8px 0 14px; border-bottom: 1px solid rgba(111,121,119,.18); }
.req-box:last-child { border-bottom: 0; padding-bottom: 0; }
.req-box h2 { margin: 0 0 4px; font-size: 15px; }
.track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 12px 0 4px;
}
.track-step { text-align: center; position: relative; }
.track-step::before {
  content: ''; position: absolute; top: 11px; left: 0; right: 50%; height: 3px;
  background: #d7d3cc;
}
.track-step::after {
  content: ''; position: absolute; top: 11px; right: 0; left: 50%; height: 3px;
  background: #d7d3cc;
}
.track-step:first-child::before { display: none; }
.track-step:last-child::after { display: none; }
.track-step.done::before, .track-step.done::after,
.track-step.on::before { background: #006A62; }
.track-step.fail::before, .track-step.fail::after { background: #BA1A1A; }
.track-dot {
  width: 22px; height: 22px; border-radius: 50%; margin: 0 auto 6px;
  background: #d7d3cc; color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; position: relative; z-index: 1;
}
.track-step.done .track-dot { background: #006A62; }
.track-step.on .track-dot { background: #006A62; box-shadow: 0 0 0 4px #9CF2E7; }
.track-step.fail .track-dot { background: #BA1A1A; }
.track-lab { font-size: 10px; font-weight: 800; color: #6F7977; line-height: 1.3; }
.track-step.done .track-lab, .track-step.on .track-lab { color: #006A62; }
.track-step.fail .track-lab { color: #BA1A1A; }
.track-msg { font-size: 13px; font-weight: 800; margin: 8px 0 0; color: #006A62; }
.track-msg.fail { color: #BA1A1A; }

/* FAB */
.fab {
  position: absolute; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border: 0; border-radius: 16px;
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container);
  box-shadow: var(--elev-3); display: grid; place-items: center; cursor: pointer; z-index: 21;
}
.fab:active { transform: scale(.96); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 650;
  cursor: pointer; text-decoration: none; background: var(--accent);
  color: #fff; box-shadow: none;
}
.btn:active { transform: scale(.99); }
.btn.full { width: 100%; }
.btn.tonal { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.btn.text { background: transparent; color: var(--accent); box-shadow: none; padding: 8px 12px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; box-shadow: none; margin-bottom: 10px;
}
.card.elev { background: #fff; box-shadow: none; }
.card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 650; }

.hero {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; margin-bottom: 12px;
  display: flex; gap: 12px; align-items: center;
}
.hero .av, .hero img {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 650; flex-shrink: 0;
}
.hero h1 { margin: 0 0 2px; font-size: 1.05rem; font-weight: 650; }
.hero p { margin: 0; color: var(--muted); font-size: 13px; opacity: 1; }
.hero .sn { direction: ltr; display: inline-block; color: var(--muted); font-size: 12px; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: none;
}
.stat span { display: block; font-size: 12px; color: var(--md-sys-color-on-surface-variant); font-weight: 700; }
.stat b { display: block; font-size: 1.25rem; margin-top: 6px; }
.stat.ok b { color: var(--md-sys-color-ok); }
.stat.bad b { color: var(--md-sys-color-error); }
.stat.pri { background: var(--md-sys-color-primary); color: #fff; }
.stat.pri span { color: #c5ebe6; }

.list { display: flex; flex-direction: column; gap: 2px; }
.tile {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid rgba(111,121,119,.18);
}
.tile:last-child { border-bottom: 0; }
.lead {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container);
  font-weight: 800; flex-shrink: 0; font-size: 13px;
}
.lead svg { width: 20px; height: 20px; }
.lead.warn { background: #ffdad6; color: #410002; }
.tile-body { flex: 1; min-width: 0; }
.tile-body b { display: block; font-size: 14px; }
.tile-body span { display: block; font-size: 12px; color: var(--md-sys-color-on-surface-variant); }
.chip {
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px; flex-shrink: 0;
}
.chip.ok { background: #c4eedc; color: var(--md-sys-color-ok); }
.chip.due { background: #ffdad6; color: var(--md-sys-color-error); }

.bar { height: 8px; background: var(--md-sys-color-surface-container); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: var(--md-sys-color-primary); border-radius: 99px; }

.att3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.att3 div { border-radius: 16px; padding: 12px 6px; text-align: center; font-weight: 800; background: var(--md-sys-color-surface-container); }
.att3 .k { display: block; font-size: 11px; font-weight: 700; opacity: .75; }
.att3 .p { background: #c4eedc; color: var(--md-sys-color-ok); }
.att3 .l { background: #d4e3ff; color: #0b57d0; }
.att3 .a { background: #ffdad6; color: var(--md-sys-color-error); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: #ffdad6; color: var(--md-sys-color-error); padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; direction: ltr; }
.muted { color: var(--md-sys-color-on-surface-variant); font-size: 13px; line-height: 1.6; }
.err, .okmsg { border-radius: 12px; padding: 12px; margin-bottom: 12px; font-weight: 700; }
.err { background: #ffdad6; color: #410002; }
.okmsg { background: #c4eedc; color: #002114; }
.file { display: none; }
.foot { text-align: center; color: var(--md-sys-color-outline); font-size: 11px; margin: 16px 0 8px; }

/* Collage GridView */
.masonry {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.m-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: none;
  min-height: 110px;
}
.m-tile.wide { grid-column: 1 / -1; }
.m-tile .pad { padding: 14px; }
.m-tile h3 { margin: 0 0 4px; font-size: 15px; }
.m-tile p { margin: 0; font-size: 13px; color: var(--md-sys-color-on-surface-variant); }
.m-tile.pri { background: var(--md-sys-color-primary); color: #fff; }
.m-tile.pri p { color: #c5ebe6; }
.m-tile.gold { background: linear-gradient(160deg, #8B6914, #C9A227); color: #fff; }
.m-tile.gold p { color: #fff4d2; }
.m-tile.photo img, .m-tile.photo .ph {
  width: 100%; height: 220px; object-fit: cover; display: grid; place-items: center;
  background: var(--md-sys-color-surface-container); font-size: 64px;
}
.m-tile.photo .cap { padding: 10px 14px 14px; font-weight: 800; }

/* Schedule */
.day-card { margin-bottom: 10px; }
.day-card h3 {
  margin: 0 0 8px; font-size: 13px; font-weight: 650; color: var(--ink);
  background: transparent; display: block; padding: 0;
}
.lesson { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lesson:last-child { border-bottom: 0; }
.ln {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; font-weight: 650; font-size: 12px; flex-shrink: 0;
}
.lt { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.now-mark { display: none; }
.lesson.now {
  background: var(--accent-soft);
  margin: 0 -8px;
  padding: 8px;
  border-radius: 10px;
  border-bottom-color: transparent;
  cursor: pointer;
}
.lesson.now .now-mark {
  display: inline-flex; align-items: center; gap: 6px;
  margin-inline-start: 8px; font-style: normal; font-size: 11px; font-weight: 700; color: #B42318;
  text-decoration: none; position: relative; z-index: 2;
  padding: 6px 8px;
}
.now-dot {
  width: 12px; height: 12px; border-radius: 50%; background: #e11d48; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(225,29,72,.55);
  animation: now-pulse 1.5s ease-out infinite;
}
@keyframes now-pulse {
  70% { box-shadow: 0 0 0 6px rgba(225,29,72,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); }
}
.day-card.today h3:after { content: ' · ئەمڕۆ'; color: var(--accent); font-weight: 650; }

label { display: block; font-size: 12px; font-weight: 800; color: var(--md-sys-color-on-surface-variant); margin: 12px 0 6px; }
.field {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 16px;
  direction: ltr; text-align: center;
}
.field:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,61,56,.12); }
.hint { font-size: 12px; color: var(--md-sys-color-on-surface-variant); line-height: 1.7; margin: 10px 0 16px; }

/* Login — IT institute */
.is-auth { background: #E8EAEE; }
.is-auth .device, .auth-device { background: #F4F5F7; }
.auth {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  min-height: 0; position: relative; overflow-y: auto; scrollbar-width: none;
  padding: 24px 0;
}
.auth::-webkit-scrollbar { width: 0; height: 0; display: none; }
.auth-bg { display: none; }
.auth-hero {
  position: relative; z-index: 1;
  padding: 8px 28px 4px; color: var(--ink); text-align: center;
}
.auth-hero .mark {
  width: 64px; height: 64px; margin: 0 auto 12px; display: block;
  border-radius: 16px; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.auth-chip {
  display: inline-block; margin-bottom: 8px; padding: 3px 8px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 650; letter-spacing: .08em;
}
.auth-hero h1 { margin: 0 0 4px; font-size: 1.25rem; line-height: 1.4; font-weight: 650; }
.auth-hero p { margin: 0; color: var(--muted); line-height: 1.6; opacity: 1; }
.auth-en {
  font-size: 11px !important; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted) !important; opacity: 1 !important; margin-bottom: 2px !important;
}
.auth-sheet {
  position: relative; z-index: 1;
  margin: 16px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: var(--elev-1);
}
.is-auth .auth-sheet label { color: var(--muted); }
.is-auth .auth-sheet .field {
  background: #fff; color: var(--ink);
  border-radius: 10px; border: 1px solid var(--line);
  font-family: inherit; letter-spacing: 0;
}
.is-auth .auth-sheet .field:focus {
  background: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,61,56,.12);
}
.is-auth .auth-sheet .field::placeholder { color: #98A2B3; }
.auth-go {
  margin-top: 16px;
  background: var(--accent) !important;
  box-shadow: none !important;
}
.is-auth .auth-contact { color: var(--accent); margin-top: 14px; }
.pwa-install {
  margin-top: 10px;
  background: #fff !important;
  color: var(--accent) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.auth-ios {
  margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.6;
}
.is-auth .err {
  background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA;
}

.motion {
  display: grid; grid-template-columns: 118px 1fr; gap: 10px; margin-bottom: 12px;
  animation: rise .55s cubic-bezier(.2,.8,.2,1) both;
}
.dash .page-tile { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.dash .page-tile:nth-child(2) { animation-delay: .04s; }
.dash .page-tile:nth-child(3) { animation-delay: .08s; }
.dash .page-tile:nth-child(4) { animation-delay: .12s; }
.dash .page-tile:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.ring-card, .bars {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px;
}
.ring-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring { width: 72px; height: 72px; transform: rotate(-90deg); }
.ring .val { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s cubic-bezier(.22,.8,.3,1); }
.motion.go .ring .val { stroke-dashoffset: var(--off); }
.ring-card b { display: block; margin-top: 4px; font-size: 18px; font-weight: 650; }
.ring-card span, .ring-card small { display: block; color: var(--muted); font-size: 11px; }
.mbar { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 8px; margin-bottom: 8px; }
.mbar:last-child { margin-bottom: 0; }
.mbar span { font-size: 12px; color: var(--muted); }
.mbar b { font-size: 13px; }
.mbar .track { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mbar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: #0F6E64; transition: width 1s cubic-bezier(.22,.8,.3,1);
}
.mbar.leave i { background: #175CD3; }
.mbar.absent i { background: #B42318; }
.motion.go .mbar i { width: var(--w); }
.set-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.set-card h2 { margin: 0 0 4px; font-size: 16px; }
.themes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.themes button {
  border: 1px solid var(--line); background: #F8F9FB; color: var(--ink);
  border-radius: 10px; padding: 12px 6px; font: inherit; font-weight: 650; cursor: pointer;
}
.themes button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.push-toggle {
  width: 100%; margin-top: 12px; border: 1px solid var(--line); background: #F8F9FB; color: var(--ink);
  border-radius: 10px; padding: 12px; font: inherit; font-weight: 650; cursor: pointer;
}
.push-toggle.on { background: var(--accent); color: #fff; border-color: var(--accent); }

html[data-theme="dark"] {
  --ink: #F2F4F7;
  --muted: #98A2B3;
  --line: #2C3340;
  --canvas: #12151C;
  --card: #1A1F29;
  --accent: #8ED9CF;
  --accent-soft: #1C3330;
  --md-sys-color-primary: #8ED9CF;
  --md-sys-color-on-primary: #062E2B;
  --md-sys-color-primary-container: #1C3330;
  --md-sys-color-on-primary-container: #D7F4F0;
  --md-sys-color-surface: #12151C;
  --md-sys-color-surface-container: #1A1F29;
  --md-sys-color-surface-container-high: #232936;
  --md-sys-color-on-surface: #F2F4F7;
  --md-sys-color-on-surface-variant: #98A2B3;
  --md-sys-color-outline: #3A4250;
  --md-sys-color-error: #FDA29B;
  --md-sys-color-ok: #75E0A7;
}
html[data-theme="dark"] body,
html[data-theme="dark"].is-auth { background: #0C0E13; }
html[data-theme="dark"] .device,
html[data-theme="dark"] .is-auth .device,
html[data-theme="dark"] .auth-device { background: var(--canvas); border-color: #2C3340; }
html[data-theme="dark"] .bar-av { background: #1C3330; color: #8ED9CF; }
html[data-theme="dark"] .appbar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .card.elev,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-tile,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .ring-card,
html[data-theme="dark"] .bars,
html[data-theme="dark"] .set-card,
html[data-theme="dark"] .auth-sheet,
html[data-theme="dark"] .m-tile { background: var(--card); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .t-teal,
html[data-theme="dark"] .t-gold,
html[data-theme="dark"] .t-rose,
html[data-theme="dark"] .t-blue,
html[data-theme="dark"] .t-violet,
html[data-theme="dark"] .t-ink,
html[data-theme="dark"] .t-navy,
html[data-theme="dark"] .t-green,
html[data-theme="dark"] .t-orange { background: var(--card); }
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .themes button { background: #232936; color: var(--ink); }
html[data-theme="dark"] .themes button.on,
html[data-theme="dark"] .push-toggle.on { background: var(--accent); color: #062E2B; }
html[data-theme="dark"] .push-toggle { background: #232936; color: var(--ink); }
html[data-theme="dark"] .field,
html[data-theme="dark"] .body input.field,
html[data-theme="dark"] .body select.field,
html[data-theme="dark"] .body textarea.field,
html[data-theme="dark"] .is-auth .auth-sheet .field { background: #12151C; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .page-tile b,
html[data-theme="dark"] .hero h1 { color: var(--ink); }
html[data-theme="dark"] .btn { background: var(--accent); color: #062E2B; }
