/* ============================================================
   Elvora by Le Rosie Switzerland — screens
   ============================================================ */

/* ---------------- login ---------------- */
.login { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; color: #fff;
  background: radial-gradient(120% 90% at 80% 0%, rgba(201,162,39,.28), transparent 55%), linear-gradient(165deg, #12335b 0%, #0b1f3b 45%, #061120 100%);
}
.login-inner { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: calc(var(--safe-t) + 40px) 26px calc(var(--safe-b) + 26px); }
.login .crest-lg { width: 74px; height: 84px; margin-bottom: 18px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); animation: rise .6s var(--ease) both; }
.login .eyebrow { color: var(--gold-400); }
.login h1 { font-size: 32px; margin: 8px 0 6px; color: #fff; letter-spacing: -.02em; }
.login .lede { font-size: 13.5px; color: rgba(255,255,255,.66); max-width: 30ch; }
.login-panel { margin-top: auto; padding-top: 30px; }
.login-card { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 18px; backdrop-filter: blur(10px); }
.login-card .field label { color: rgba(255,255,255,.6); }
.login-card .input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; letter-spacing: .08em; }
.login-card .input::placeholder { color: rgba(255,255,255,.32); }
.otp-row { display: flex; gap: 8px; }
.otp-row input { flex: 1; height: 50px; text-align: center; font-size: 19px; font-weight: 700; letter-spacing: .04em; padding: 0; }
.login .fineprint { font-size: 11px; color: rgba(255,255,255,.4); text-align: center; margin-top: 16px; line-height: 1.5; }
.login .fineprint b { color: rgba(255,255,255,.62); }
.trust-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.5); justify-content: center; margin-top: 14px; }
.trust-row svg { width: 13px; height: 13px; color: var(--gold-400); }
.login .demo-note { display: inline-flex; align-items: center; gap: 6px; background: rgba(201,162,39,.14); border: 1px solid rgba(201,162,39,.3); color: var(--gold-200); padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; margin-top: 12px; }

/* ---------------- home ---------------- */
.home-greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 10px 2px 0; }
.home-greet .eyebrow { display: flex; align-items: center; gap: 6px; }
.home-greet h1 { font-size: 25px; margin-top: 2px; }
.home-greet .date-pill { font-size: 11px; font-weight: 650; color: var(--ink-mute); text-align: right; line-height: 1.3; }
.home-greet .date-pill b { display: block; color: var(--ink-soft); font-size: 12.5px; }

.weather-line { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-mute); margin-top: 4px; }
.weather-line svg { width: 14px; height: 14px; color: var(--gold-600); }

.emg-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px; border-radius: 16px;
  color: #fff; background: linear-gradient(135deg, #d13a30 0%, #94150f 100%);
  box-shadow: 0 16px 30px -20px rgba(179, 38, 30, .9);
  animation: rise .4s var(--ease) both, breathe 2.6s ease-in-out infinite;
}
.emg-banner .emg-icon { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.emg-banner .emg-icon svg { width: 18px; height: 18px; }
.emg-banner b { display: block; font-size: 13px; letter-spacing: .01em; }
.emg-banner p { font-size: 12px; color: rgba(255,255,255,.86); margin-top: 2px; line-height: 1.45; }
.emg-banner .emg-time { font-size: 10px; color: rgba(255,255,255,.6); margin-top: 5px; display: block; }
.emg-banner::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.18) 50%, transparent 80%);
  transform: translateX(-100%); animation: sweep 4s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.summary-card { background: linear-gradient(160deg, var(--gold-100), var(--paper) 65%); border: 1px solid rgba(201,162,39,.28); }
.summary-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.summary-top .spark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-500); color: #231a06; flex: none; }
.summary-top .spark svg { width: 18px; height: 18px; }
.summary-top b { font-size: 14px; }
.summary-top span { font-size: 11px; color: var(--ink-mute); display: block; }
.summary-items { display: flex; flex-direction: column; gap: 7px; }
.summary-item { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.summary-item .num { width: 19px; height: 19px; border-radius: 6px; background: var(--paper); border: 1px solid rgba(201,162,39,.3); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--gold-600); flex: none; }
.summary-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px dashed rgba(201,162,39,.32); }
.summary-foot .tiny { color: var(--ink-mute); }
.summary-foot .link { font-size: 12px; font-weight: 700; color: var(--gold-600); display: inline-flex; align-items: center; gap: 3px; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.quick-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 12px 11px; border-radius: 16px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); text-align: left;
  transition: transform .18s var(--ease), border-color .18s;
}
.quick-tile:active { transform: scale(.96); border-color: var(--line-strong); }
.quick-tile .qi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.quick-tile .qi svg { width: 16.5px; height: 16.5px; }
.quick-tile b { font-size: 11.5px; font-weight: 650; letter-spacing: -.005em; line-height: 1.25; }
.quick-tile span { font-size: 9.5px; color: var(--ink-mute); margin-top: -4px; }
.qi.gold { background: var(--gold-100); color: var(--gold-600); }
.qi.blue { background: var(--info-bg); color: var(--info); }
.qi.green { background: var(--ok-bg); color: var(--ok); }
.qi.red { background: var(--danger-bg); color: var(--danger); }
.qi.violet { background: var(--violet-bg); color: var(--violet); }
.qi.teal { background: var(--teal-bg); color: var(--teal); }

/* house */
.house-list { display: flex; flex-direction: column; gap: 10px; }
.house-row { display: flex; align-items: center; gap: 10px; }
.house-row .crest-dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 11px; font-weight: 700; flex: none; }
.house-row .h-meta { flex: 1; min-width: 0; }
.house-row .h-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.house-row .h-top b { font-size: 12.5px; font-weight: 650; }
.house-row .h-top span { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.house-row .h-top span b { font-size: 12px; color: var(--ink); }
.house-row .bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.house-row .bar i { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: growBar .7s var(--ease) both; }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.house-row.lead .h-top b::after { content: "★"; color: var(--gold-500); font-size: 10px; margin-left: 4px; vertical-align: top; }

.star-card { display: flex; gap: 12px; align-items: center; background: linear-gradient(140deg, #fff7df, var(--paper)); border-color: rgba(201,162,39,.3); }
[data-theme="dark"] .star-card { background: linear-gradient(140deg, var(--gold-100), var(--paper) 70%); }
.star-card .avatar { border-color: var(--gold-500); }
.star-card .star-meta { flex: 1; min-width: 0; }
.star-card .star-meta b { font-size: 14px; display: block; }
.star-card .star-meta span { font-size: 11.5px; color: var(--ink-soft); }
.star-card .trophy { width: 30px; height: 30px; border-radius: 10px; background: var(--gold-500); color: #231a06; display: grid; place-items: center; flex: none; }
.star-card .trophy svg { width: 16px; height: 16px; }

/* feed */
.feed-filter { display: flex; gap: 7px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; }
.feed-filter::-webkit-scrollbar { display: none; }
.feed-filter .chip { flex: none; height: 29px; font-size: 11.5px; padding: 0 11px; background: transparent; }
.feed-filter .chip.active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); box-shadow: 0 6px 14px -10px rgba(13,36,68,.9); }
[data-theme="dark"] .feed-filter .chip.active { background: var(--gold-500); border-color: var(--gold-500); color: #17130a; }

.feed { display: flex; flex-direction: column; gap: 10px; }
.feed-card {
  position: relative;
  display: flex; gap: 12px;
  padding: 13px 14px 12px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), border-color .18s;
  text-align: left; width: 100%;
}
.feed-card:active { transform: scale(.985); }
.feed-card.unread { border-left: 3px solid var(--gold-500); }
.feed-card.urgent { border-left: 3px solid var(--danger); }
.feed-card .ftype {
  flex: none; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
}
.feed-card .ftype svg { width: 17px; height: 17px; }
.ftype.hw { background: var(--info-bg); color: var(--info); }
.ftype.circular { background: var(--gold-100); color: var(--gold-600); }
.ftype.announcement { background: var(--violet-bg); color: var(--violet); }
.ftype.attendance { background: var(--danger-bg); color: var(--danger); }
.ftype.event { background: var(--teal-bg); color: var(--teal); }
.ftype.exam { background: var(--warn-bg); color: var(--warn); }
.feed-card .fbody { flex: 1; min-width: 0; }
.feed-card .fmeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.feed-card .fmeta .who { font-size: 10.5px; font-weight: 650; color: var(--ink-mute); letter-spacing: .02em; text-transform: uppercase; }
.feed-card .fmeta .dotsep { width: 2.5px; height: 2.5px; border-radius: 50%; background: var(--ink-mute); opacity: .5; }
.feed-card .fmeta time { font-size: 10.5px; color: var(--ink-mute); }
.feed-card h4 { font-family: var(--font-sans); font-size: 13.5px; font-weight: 650; line-height: 1.35; margin: 3px 0 3px; letter-spacing: -.005em; display: flex; align-items: center; gap: 6px; }
.feed-card h4 svg { width: 12px; height: 12px; flex: none; }
.feed-card p { font-size: 12px; color: var(--ink-soft); line-height: 1.45; }
.feed-card .fbot { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.feed-card .fbot .badge { height: 20px; font-size: 9.5px; }
.feed-card .attach-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--ink-mute); background: var(--paper-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px 6px; }
.feed-card .attach-pill svg { width: 11px; height: 11px; }
.feed-card .chev { align-self: center; color: var(--ink-mute); flex: none; }
.feed-card .chev svg { width: 15px; height: 15px; }
.feed-card.completed h4 { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* memories */
.mem-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 8px; scrollbar-width: none; }
.mem-strip::-webkit-scrollbar { display: none; }
.mem {
  position: relative; flex: none; width: 148px; height: 104px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; align-items: flex-end; padding: 9px; text-align: left;
  transition: transform .2s var(--ease);
}
.mem:active { transform: scale(.97); }
.mem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,30,.05) 30%, rgba(6,16,30,.78)); }
.mem .mem-label { position: relative; z-index: 2; color: #fff; font-size: 10.5px; font-weight: 650; line-height: 1.25; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mem .mem-label span { display: block; font-size: 8.5px; font-weight: 500; opacity: .72; }
.mem .mem-art { position: absolute; inset: 0; }
.mem .mem-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 70% 15%, rgba(255,255,255,.35), transparent 60%); }

/* ---------------- academics ---------------- */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 13px; margin-top: 12px; }
.seg button {
  flex: 1; height: 34px; border-radius: 10px; font-size: 12.5px; font-weight: 650; color: var(--ink-mute);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: all .22s var(--ease);
}
.seg button svg { width: 14px; height: 14px; }
.seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .seg button[aria-selected="true"] { background: var(--navy-600); color: #fff; }

.acad-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ring { position: relative; width: 52px; height: 52px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 52px; height: 52px; }
.ring .ring-bg { fill: none; stroke: var(--line); stroke-width: 5; }
.ring .ring-fg { fill: none; stroke: var(--gold-500); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.acad-top .at-meta { flex: 1; min-width: 0; }
.acad-top .at-meta b { font-size: 14px; display: block; }
.acad-top .at-meta span { font-size: 11.5px; color: var(--ink-mute); }
.acad-top .day-chip { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-600); background: var(--gold-100); border-radius: 8px; padding: 4px 7px; }

.hw-list { display: flex; flex-direction: column; gap: 9px; }
.hw-card { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.hw-card.done { background: var(--paper-2); }
.hw-card.done .hw-title { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; }
.hw-card .hw-main { flex: 1; min-width: 0; }
.hw-card .hw-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.hw-subject { font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; }
.hw-subject i { width: 6px; height: 6px; border-radius: 2px; background: currentColor; display: inline-block; }
.hw-card .hw-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; margin: 1px 0 5px; letter-spacing: -.005em; }
.hw-card .hw-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 10.5px; color: var(--ink-mute); }
.hw-card .hw-meta .att { display: inline-flex; align-items: center; gap: 3px; }
.hw-card .hw-meta .att svg { width: 11px; height: 11px; }
.hw-card .hw-actions { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.hw-card .doubt-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.hw-card .doubt-chip svg { width: 11px; height: 11px; }

.check {
  position: relative; flex: none; width: 26px; height: 26px; border-radius: 9px;
  border: 2px solid var(--line-strong); background: var(--paper);
  display: grid; place-items: center; margin-top: 1px;
  transition: all .24s var(--ease); color: transparent;
}
.check svg { width: 15px; height: 15px; }
.check:active { transform: scale(.88); }
.check[aria-checked="true"] { background: var(--ok); border-color: var(--ok); color: #fff; animation: checkPop .42s var(--ease-spring); }
.check[aria-checked="true"] svg path { stroke-dasharray: 30; animation: drawCheck .32s var(--ease) .04s both; }
@keyframes checkPop { 0% { transform: scale(.7); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* timetable */
.day-switch { display: flex; gap: 6px; overflow-x: auto; margin: 12px -18px 0; padding: 0 18px 4px; scrollbar-width: none; }
.day-switch::-webkit-scrollbar { display: none; }
.day-btn {
  flex: none; width: 46px; height: 56px; border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-mute);
  transition: all .2s var(--ease);
}
.day-btn span { font-size: 9.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.day-btn b { font-size: 16px; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.day-btn .d-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500); margin-top: 1px; opacity: 0; }
.day-btn.today .d-dot { opacity: 1; }
.day-btn[aria-selected="true"] { background: var(--navy-700); border-color: var(--navy-700); color: rgba(255,255,255,.7); box-shadow: 0 10px 20px -14px rgba(13,36,68,.9); }
.day-btn[aria-selected="true"] b { color: #fff; }
[data-theme="dark"] .day-btn[aria-selected="true"] { background: var(--gold-500); border-color: var(--gold-500); color: rgba(23,19,10,.65); }
[data-theme="dark"] .day-btn[aria-selected="true"] b { color: #17130a; }

.periods { display: flex; flex-direction: column; margin-top: 14px; }
.period { display: flex; gap: 12px; min-height: 64px; }
.period .p-time { width: 52px; flex: none; text-align: right; padding-top: 3px; }
.period .p-time b { display: block; font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.period .p-time span { font-size: 9.5px; color: var(--ink-mute); }
.period .p-rail { position: relative; width: 14px; flex: none; display: flex; justify-content: center; }
.period .p-rail::before { content: ""; position: absolute; top: 14px; bottom: -2px; width: 2px; background: var(--line); }
.period:last-child .p-rail::before { display: none; }
.period .p-node { position: relative; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); margin-top: 7px; }
.period.current .p-node { background: var(--gold-500); border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201,162,39,.2); }
.period.now .p-card { border-color: rgba(201,162,39,.5); background: linear-gradient(160deg, var(--gold-100), var(--paper) 80%); }
.period .p-card { flex: 1; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 8px; }
.period .p-top { display: flex; align-items: center; gap: 6px; }
.period .p-top b { font-size: 13px; font-weight: 650; flex: 1; }
.period .p-top .badge { height: 18px; font-size: 9px; padding: 0 6px; }
.period .p-sub { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--ink-mute); margin-top: 2px; }
.period .p-sub svg { width: 11px; height: 11px; }
.period.break-row .p-card { background: var(--paper-2); border-style: dashed; padding: 8px 12px; }
.period.break-row .p-card b { font-size: 11px; font-weight: 600; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }

.exam-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 17px 18px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, rgba(201,162,39,.32), transparent 55%), linear-gradient(150deg, #183d66, #0b1f3b);
  box-shadow: 0 20px 40px -28px rgba(7,21,40,.9); }
.exam-hero .eh-top { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.exam-hero h2 { color: #fff; font-size: 22px; margin: 5px 0 0; }
.exam-hero .eh-sub { font-size: 12px; color: rgba(255,255,255,.66); margin-top: 3px; }
.countdown { display: flex; gap: 7px; margin-top: 14px; }
.cd-unit { flex: 1; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.1); border-radius: 11px; padding: 7px 4px; text-align: center; }
.cd-unit b { display: block; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; color: #fff; letter-spacing: -.02em; }
.cd-unit span { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.exam-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.exam-row { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.exam-row .e-date { flex: none; width: 42px; text-align: center; border-right: 1px solid var(--line); padding-right: 10px; }
.exam-row .e-date b { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1; }
.exam-row .e-date span { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); }
.exam-row .e-meta { flex: 1; min-width: 0; }
.exam-row .e-meta b { display: block; font-size: 13px; }
.exam-row .e-meta span { font-size: 10.5px; color: var(--ink-mute); }
.exam-row .pdf-btn { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); }
.exam-row .pdf-btn svg { width: 16px; height: 16px; }

/* ---------------- calendar ---------------- */
.cal { padding: 14px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-family: var(--font-display); font-size: 17px; }
.cal-nav { display: flex; gap: 2px; }
.cal-nav button { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-mute); }
.cal-nav button:active { background: var(--line); }
.cal-nav svg { width: 16px; height: 16px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.cal-week span { text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12.5px; font-weight: 500; color: var(--ink);
  transition: background .18s, color .18s;
}
.cal-day.mute { color: var(--ink-mute); opacity: .38; }
.cal-day.today { color: var(--gold-600); font-weight: 750; }
.cal-day[aria-selected="true"] { background: var(--navy-700); color: #fff; font-weight: 700; box-shadow: 0 8px 16px -12px rgba(13,36,68,.9); }
[data-theme="dark"] .cal-day[aria-selected="true"] { background: var(--gold-500); color: #17130a; }
.cal-day .marks { display: flex; gap: 2px; height: 4px; align-items: center; }
.cal-day .marks i { width: 4px; height: 4px; border-radius: 50%; }
.cal-day[aria-selected="true"] .marks i { background: #fff !important; opacity: .9; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--ink-mute); font-weight: 600; }
.cal-legend i { width: 6px; height: 6px; border-radius: 2px; }

.agenda { display: flex; flex-direction: column; gap: 8px; }
.agenda-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 13px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-align: left; width: 100%; }
.agenda-item .a-bar { width: 4px; align-self: stretch; border-radius: 99px; flex: none; }
.agenda-item .a-body { flex: 1; min-width: 0; }
.agenda-item .a-body b { font-size: 13px; display: block; line-height: 1.35; }
.agenda-item .a-body span { font-size: 11px; color: var(--ink-mute); }
.agenda-item .a-time { font-size: 10px; font-weight: 650; color: var(--ink-soft); white-space: nowrap; padding-top: 2px; }
.agenda-empty { padding: 22px; text-align: center; color: var(--ink-mute); font-size: 12px; border: 1px dashed var(--line-strong); border-radius: 14px; }

.event-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; }
.event-row + .event-row { border-top: 1px solid var(--line); }
.event-row .e-thumb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; font-family: var(--font-display); }
.event-row .e-thumb b { font-size: 15px; line-height: 1; }
.event-row .e-thumb span { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.event-row .e-info { flex: 1; min-width: 0; }
.event-row .e-info b { font-size: 13px; display: block; }
.event-row .e-info span { font-size: 11px; color: var(--ink-mute); }
.event-row .go { color: var(--ink-mute); }
.event-row .go svg { width: 15px; height: 15px; }

/* ---------------- profile / ID ---------------- */
.profile-head { display: flex; align-items: center; gap: 13px; padding: 6px 2px 0; }
.profile-head .avatar { box-shadow: 0 10px 22px -14px rgba(7,21,40,.8); }
.profile-head .p-meta { flex: 1; min-width: 0; }
.profile-head .p-meta h2 { font-size: 21px; }
.profile-head .p-meta span { font-size: 12px; color: var(--ink-mute); }
.profile-head .p-meta .badges { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }

.id-card {
  position: relative; overflow: hidden;
  border-radius: 20px; color: #fff;
  padding: 16px;
  background: radial-gradient(110% 120% at 92% 4%, rgba(201,162,39,.4), transparent 55%), linear-gradient(160deg, #143a63, #0a1c33 70%);
  box-shadow: 0 24px 46px -26px rgba(7,21,40,.9);
  border: 1px solid rgba(201,162,39,.22);
}
.id-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}
.id-card .id-top { display: flex; align-items: center; gap: 10px; }
.id-card .id-crest { width: 30px; height: 34px; }
.id-card .id-school b { display: block; font-family: var(--font-display); font-size: 13px; letter-spacing: .02em; }
.id-card .id-school span { font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.id-card .id-top .badge { margin-left: auto; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.8); }
.id-card .id-body { display: flex; gap: 13px; margin-top: 16px; align-items: center; }
.id-card .id-photo { width: 62px; height: 74px; border-radius: 10px; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-size: 25px; font-weight: 700; color: #fff; background: linear-gradient(150deg, #2a5b93, #173c69); border: 1px solid rgba(255,255,255,.24); }
.id-card .id-details { flex: 1; min-width: 0; }
.id-card .id-details h3 { font-size: 19px; color: #fff; line-height: 1.15; }
.id-card .id-details > span { font-size: 10.5px; color: rgba(255,255,255,.6); }
.id-card .id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin-top: 10px; }
.id-card .id-grid div { min-width: 0; }
.id-card .id-grid dt { font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.id-card .id-grid dd { margin: 0; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-card .id-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.id-card .id-qr { width: 58px; height: 58px; border-radius: 8px; background: #fff; padding: 4px; flex: none; }
.id-card .id-qr canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.id-card .id-sign { flex: 1; }
.id-card .id-sign .sig { font-family: var(--font-display); font-style: italic; font-size: 16px; color: rgba(255,255,255,.9); opacity: .85; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 3px; }
.id-card .id-sign span { font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.id-card.flip { animation: idFlip .5s var(--ease) both; }
@keyframes idFlip { from { transform: perspective(900px) rotateY(-14deg) scale(.98); opacity: .7; } to { transform: none; opacity: 1; } }

.att-strip { display: flex; gap: 5px; }
.att-cell { flex: 1; height: 34px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: var(--paper-2); border: 1px solid var(--line); }
.att-cell b { font-size: 9.5px; font-weight: 700; }
.att-cell span { font-size: 7.5px; color: var(--ink-mute); text-transform: uppercase; }
.att-cell.present { background: var(--ok-bg); border-color: rgba(28,122,88,.14); color: var(--ok); }
.att-cell.absent { background: var(--danger-bg); border-color: rgba(179,38,30,.16); color: var(--danger); }
.att-cell.holiday { background: var(--paper-2); color: var(--ink-mute); }
.att-cell.leave { background: var(--warn-bg); border-color: rgba(154,98,8,.16); color: var(--warn); }
.att-cell.today-att { box-shadow: inset 0 0 0 1.5px currentColor; }

.list-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; width: 100%; text-align: left; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row .lr-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.list-row .lr-icon svg { width: 16px; height: 16px; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-main b { display: block; font-size: 13px; font-weight: 600; }
.list-row .lr-main span { font-size: 11px; color: var(--ink-mute); display: block; }
.list-row .lr-end { flex: none; display: flex; align-items: center; gap: 6px; color: var(--ink-mute); }
.list-row .lr-end svg { width: 15px; height: 15px; }

.status-pill { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; }
.status-pill.pending { background: var(--warn-bg); color: var(--warn); }
.status-pill.approved { background: var(--ok-bg); color: var(--ok); }
.status-pill.rejected { background: var(--danger-bg); color: var(--danger); }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* gate pass */
.pass {
  position: relative; overflow: hidden; border-radius: 20px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.pass .pass-top { padding: 16px; background: linear-gradient(160deg, var(--navy-700), #081a30); color: #fff; position: relative; }
.pass .pass-top .badge { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.15); color: #fff; }
.pass .pass-top h3 { color: #fff; font-size: 19px; margin-top: 8px; }
.pass .pass-top p { font-size: 11.5px; color: rgba(255,255,255,.62); }
.pass .pass-qr { padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pass .pass-qr .qr-frame { padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 8px 20px -14px rgba(0,0,0,.5); }
.pass .pass-qr canvas { width: 168px; height: 168px; display: block; image-rendering: pixelated; }
.pass .pass-qr .code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; font-weight: 700; }
.pass .pass-qr .cap { font-size: 10px; color: var(--ink-mute); text-align: center; }
.pass .pass-details { padding: 0 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pass .pass-details dt { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.pass .pass-details dd { margin: 1px 0 0; font-size: 11.5px; font-weight: 600; }
.pass .pass-cut { position: relative; height: 0; border-top: 1px dashed var(--line-strong); margin: 0 16px; }
.pass .pass-cut::before, .pass .pass-cut::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); }
.pass .pass-cut::before { left: -25px; }
.pass .pass-cut::after { right: -25px; }

.countdown-strip { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 650; color: var(--danger); background: var(--danger-bg); border-radius: 10px; padding: 7px 10px; }
.countdown-strip svg { width: 13px; height: 13px; }
.countdown-strip b { font-variant-numeric: tabular-nums; font-size: 12px; }

/* ---------------- staff + shared ---------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 11px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.stat span { font-size: 9.5px; color: var(--ink-mute); font-weight: 600; letter-spacing: .02em; }
.stat.gold { background: linear-gradient(160deg, var(--gold-100), var(--paper)); border-color: rgba(201,162,39,.26); }
.stat.gold b { color: var(--gold-600); }

.teacher-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 17px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, rgba(201,162,39,.28), transparent 55%), linear-gradient(150deg, #163d66, #08182b); box-shadow: 0 20px 40px -28px rgba(7,21,40,.9); }
.teacher-hero h2 { color: #fff; font-size: 21px; margin-top: 4px; }
.teacher-hero p { font-size: 12px; color: rgba(255,255,255,.66); margin-top: 2px; }
.teacher-hero .t-actions { display: flex; gap: 8px; margin-top: 14px; }
.teacher-hero .t-actions .btn { flex: 1; height: 40px; font-size: 12.5px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: #fff; }
.teacher-hero .t-actions .btn.gold { background: linear-gradient(160deg, var(--gold-400), var(--gold-600)); color: #211905; border-color: transparent; }

.quick-staff { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.staff-tile { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 15px; background: var(--paper); border: 1px solid var(--line); text-align: left; transition: transform .18s var(--ease); }
.staff-tile:active { transform: scale(.97); }
.staff-tile .si { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.staff-tile .si svg { width: 18px; height: 18px; }
.staff-tile b { display: block; font-size: 12.5px; font-weight: 650; line-height: 1.25; }
.staff-tile span { font-size: 10px; color: var(--ink-mute); }

.roster { display: flex; flex-direction: column; }
.roster-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; width: 100%; text-align: left; }
.roster-row + .roster-row { border-top: 1px solid var(--line); }
.roster-row .r-main { flex: 1; min-width: 0; }
.roster-row .r-main b { display: block; font-size: 13px; font-weight: 600; }
.roster-row .r-main span { font-size: 10.5px; color: var(--ink-mute); }
.roster-row .r-statuses { display: flex; gap: 3px; flex: none; }
.r-status { width: 30px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 700; border: 1px solid var(--line); color: var(--ink-mute); background: var(--paper-2); transition: all .18s var(--ease); }
.r-status[data-state="present"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.r-status[data-state="absent"] { background: var(--danger); border-color: var(--danger); color: #fff; }
.r-status[data-state="late"] { background: var(--warn); border-color: var(--warn); color: #fff; }
.roster-summary { display: flex; gap: 14px; padding: 10px 0 2px; }
.roster-summary div { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-mute); }
.roster-summary i { width: 7px; height: 7px; border-radius: 50%; }
.roster-summary b { color: var(--ink); font-size: 12px; }

.attach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.attach-card { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); text-align: left; }
.attach-card .ac-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--paper); border: 1px solid var(--line); color: var(--danger); }
.attach-card .ac-icon svg { width: 15px; height: 15px; }
.attach-card .ac-icon.yt { color: #d33; }
.attach-card b { display: block; font-size: 10.5px; font-weight: 650; line-height: 1.2; }
.attach-card span { font-size: 9px; color: var(--ink-mute); }

.upload-zone { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 18px; text-align: center; background: var(--paper-2); transition: all .2s; }
.upload-zone:active { background: var(--gold-100); border-color: var(--gold-500); }
.upload-zone svg { width: 24px; height: 24px; color: var(--ink-mute); margin-bottom: 6px; }
.upload-zone b { display: block; font-size: 12.5px; }
.upload-zone span { font-size: 10.5px; color: var(--ink-mute); }
.file-pill { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px; background: var(--gold-100); border: 1px solid rgba(201,162,39,.3); font-size: 11.5px; font-weight: 600; }
.file-pill svg { width: 15px; height: 15px; color: var(--gold-600); }

.sos-panel { border-radius: 18px; padding: 15px; background: linear-gradient(150deg, #40100d, #6d1712); color: #fff; border: 1px solid rgba(255,140,130,.25); }
.sos-panel .sos-head { display: flex; align-items: center; gap: 9px; }
.sos-panel .sos-head .sos-dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.sos-panel .sos-head b { font-size: 14px; display: block; }
.sos-panel .sos-head span { font-size: 10.5px; color: rgba(255,255,255,.55); }
.sos-panel p { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 9px; line-height: 1.5; }
.sos-panel .btn { background: #fff; color: #9a1d16; border: 0; }

.trend { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 10px; }
.trend i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--gold-400), var(--gold-600)); opacity: .85; animation: growUp .6s var(--ease) both; transform-origin: bottom; }
@keyframes growUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.trend-labels { display: flex; gap: 5px; margin-top: 5px; }
.trend-labels span { flex: 1; text-align: center; font-size: 8px; color: var(--ink-mute); }

/* detail sheet */
.detail-hero { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; }
.detail-hero .ftype { width: 42px; height: 42px; border-radius: 12px; }
.detail-hero .ftype svg { width: 20px; height: 20px; }
.detail-hero .d-meta { flex: 1; min-width: 0; }
.detail-hero h3 { font-size: 18px; line-height: 1.3; }
.detail-hero span { font-size: 11px; color: var(--ink-mute); }
.detail-body { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }
.detail-body p + p { margin-top: 9px; }
.detail-actions { display: flex; gap: 8px; margin-top: 16px; }
.detail-actions .btn { flex: 1; }
.translate-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--gold-100); border: 1px solid rgba(201,162,39,.26); margin-top: 14px; }
.translate-bar span { font-size: 11px; font-weight: 600; color: var(--gold-600); }
.translate-bar button { font-size: 11px; font-weight: 700; color: var(--gold-600); display: inline-flex; align-items: center; gap: 4px; }
.translate-bar button svg { width: 13px; height: 13px; }
.translate-bar .lang-chip { height: 26px; padding: 0 8px; font-size: 10.5px; font-weight: 700; border-radius: 8px; background: transparent; border: 1px solid rgba(201,162,39,.35); color: var(--gold-600); display: inline-flex; align-items: center; }
.translate-bar .lang-chip.active { background: var(--gold-600); border-color: var(--gold-600); color: #fff; }
[data-theme="dark"] .translate-bar .lang-chip { border-color: rgba(201,162,39,.4); }
[data-theme="dark"] .translate-bar .lang-chip.active { background: var(--gold-500); border-color: var(--gold-500); color: #17130a; }
.hi-text { font-family: var(--font-sans); line-height: 1.8; }

/* notifications */
.notif-row { display: flex; gap: 11px; padding: 12px 13px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); width: 100%; text-align: left; align-items: flex-start; position: relative; }
.notif-row.unread { background: color-mix(in srgb, var(--gold-100) 45%, var(--paper)); border-color: rgba(201,162,39,.24); }
.notif-row .n-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.notif-row .n-icon svg { width: 16px; height: 16px; }
.notif-row .n-main { flex: 1; min-width: 0; }
.notif-row .n-main b { font-size: 12.5px; display: block; line-height: 1.35; }
.notif-row .n-main p { font-size: 11px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }
.notif-row .n-main time { font-size: 9.5px; color: var(--ink-mute); margin-top: 4px; display: block; }
.notif-row .n-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); position: absolute; top: 14px; right: 13px; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery-tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: flex-end; padding: 9px; border: 1px solid var(--line); }
.gallery-tile.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,30,0) 40%, rgba(6,16,30,.72)); }
.gallery-tile .g-label { position: relative; z-index: 2; color: #fff; font-size: 10.5px; font-weight: 650; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.gallery-tile .g-label span { display: block; font-size: 8.5px; opacity: .7; font-weight: 500; }
.gallery-tile .g-count { position: absolute; top: 7px; right: 7px; z-index: 2; font-size: 8.5px; font-weight: 700; color: #fff; background: rgba(6,16,30,.45); backdrop-filter: blur(6px); border-radius: 999px; padding: 3px 6px; }

/* achievement */
.ach-card { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); align-items: center; }
.ach-card .a-medal { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: #231a06; font-family: var(--font-display); font-weight: 700; font-size: 16px; box-shadow: 0 8px 16px -10px rgba(201,162,39,.9); }
.ach-card .a-main { flex: 1; min-width: 0; }
.ach-card .a-main b { display: block; font-size: 13px; }
.ach-card .a-main span { font-size: 11px; color: var(--ink-mute); display: block; line-height: 1.35; }

/* misc page bits */
.page-title { padding: 2px 2px 4px; }
.page-title h1 { font-size: 24px; }
.page-title p { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv dt { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.kv dd { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; }

.hint-band { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: 11px; line-height: 1.45; }
.hint-band svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }

.offline-bar { display: flex; align-items: center; gap: 7px; justify-content: center; padding: 5px; background: var(--warn-bg); color: var(--warn); font-size: 10.5px; font-weight: 650; }
.offline-bar svg { width: 12px; height: 12px; }

/* ============================================================
   Additions — hero stats, PDF page, exit motion, misc
   ============================================================ */
.hero-stats { display: flex; align-items: stretch; margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .14); position: relative; z-index: 2; }
.hero-stats > div { flex: 1; min-width: 0; padding-right: 8px; }
.hero-stats > div + div { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .12); }
.hero-stats b { display: block; font-size: 15px; font-weight: 650; color: #fff; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats span { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .52); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.screen.leaving { animation: screenOut .23s var(--ease) both; }
@keyframes screenOut { to { transform: translateX(26px); opacity: 0; } }

.success-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; margin: 0 auto; box-shadow: 0 12px 24px -14px rgba(28, 122, 88, .9); animation: checkPop .5s var(--ease-spring) both; }
.success-check svg { width: 28px; height: 28px; stroke-width: 2.4; }

.pdf-page { position: relative; overflow: hidden; background: #fffdf8; color: #1b2433; border-radius: 14px; padding: 26px 22px 34px; box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .5); border: 1px solid #e8e2d5; min-height: 480px; }
.pdf-crest { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.pdf-crest img { width: 34px; height: 39px; }
.pdf-crest b { font-family: var(--font-display); font-size: 12px; letter-spacing: .18em; }
.pdf-crest span { font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase; color: #8b8477; }
.pdf-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 11px; }
.pdf-table th { text-align: left; background: #f5f1e6; padding: 6px 8px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.pdf-table td { padding: 6px 8px; border-bottom: 1px solid #ece6d9; color: #39465a; }
.pdf-sign { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-end; }
.pdf-sign .sig { font-family: var(--font-display); font-style: italic; font-size: 16px; border-bottom: 1px solid #d8d2c4; padding: 0 12px 2px; }
.pdf-sign span { font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; color: #8b8477; margin-top: 3px; }
.pdf-watermark { position: absolute; right: -10px; bottom: 60px; font-family: var(--font-display); font-size: 48px; color: rgba(13, 36, 68, .05); transform: rotate(-18deg); letter-spacing: .1em; pointer-events: none; }

button.id-card { display: block; width: 100%; text-align: left; font: inherit; }
.card.tap { text-align: left; }
.quick-tile b, .quick-tile span { text-align: left; }
.child-pill span { white-space: nowrap; }
.hatch { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 6px, transparent 6px 12px); }

@media (max-height: 700px) {
  .login-inner { padding-top: calc(var(--safe-t) + 20px); }
  .login h1 { font-size: 27px; }
}

/* button text alignment + banner */
.emg-banner { text-align: left; }
.emg-banner > svg { width: 16px; height: 16px; align-self: center; opacity: .8; }

/* gallery photo texture */
.gallery-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(120% 90% at 15% 8%, rgba(255,255,255,.35), transparent 55%),
  radial-gradient(80% 70% at 85% 100%, rgba(0,0,0,.4), transparent 60%),
  repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 1.5px, transparent 1.5px 26px);
  mix-blend-mode: screen; opacity: .9; pointer-events: none; }
.gallery-tile.wide::before { background:
  radial-gradient(90% 120% at 20% 10%, rgba(255,255,255,.4), transparent 55%),
  radial-gradient(60% 80% at 90% 90%, rgba(0,0,0,.45), transparent 65%),
  repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1.5px, transparent 1.5px 30px); }

.pdf-label { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: #8b8477; margin-bottom: 2px; }
.pdf-stamp { position: absolute; right: 18px; bottom: 96px; transform: rotate(-11deg); border: 2.5px solid rgba(28, 122, 88, .45); color: rgba(28, 122, 88, .55); font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .18em; padding: 3px 12px; border-radius: 6px; }
