/* Shalvit Online School — app pages (sign-in, register, dashboard and
   the signed-in sections). Companion to style.css: the same approved
   app design (cream ground, Baloo 2 + Nunito, amber-ringed surfaces,
   glossy dashboard tiles). No build step. */

.auth-wrap { max-width: 560px; margin: 0 auto; padding: 28px 20px 64px; }
.dash-wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px 64px; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; padding: 26px;
  box-shadow: 0 12px 28px -16px rgba(180, 110, 10, .35);
}
.panel h1 { font-size: 1.8rem; margin: 0 0 6px; font-weight: 800; }
.panel .sub { color: var(--dim); line-height: 1.6; margin: 0 0 18px; }

.field { margin: 0 0 16px; }
.field label { display: block; font-size: .92rem; font-weight: 700; font-family: var(--font-display); color: var(--text); margin: 0 0 6px; }
.field .hint { font-weight: 600; color: var(--dim); font-size: .85rem; font-family: var(--font-body); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 16px; font-size: 1rem;
  border: 1px solid var(--border); background: var(--surface-warm); color: var(--text);
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; background: #fff; }

/* Password show/hide eye — behaviour: /assets/pw-toggle.js (shared helper).
   The button sits inside the field's right edge; the input keeps its full
   width and gains right padding so typed text never runs under the eye. */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 58px; }
.pw-eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border: none; border-radius: 12px;
  background: transparent; color: var(--teal); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pw-eye:hover { background: var(--surface-warm); }
.pw-eye:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.pw-eye svg { width: 24px; height: 24px; display: block; }
.pw-eye .pw-icon-shut { display: none; }
.pw-eye[aria-pressed="true"] .pw-icon-open { display: none; }
.pw-eye[aria-pressed="true"] .pw-icon-shut { display: block; }

/* "Forgot password?" — quiet link-button under the password field
   (sign-in mode only; the page script hides it in create mode). */
.forgot-row { margin: -8px 0 14px; text-align: right; }
.forgot-link {
  background: none; border: none; padding: 10px 4px; cursor: pointer;
  color: var(--teal-deep); font-weight: 700; font-size: .92rem;
  font-family: inherit; text-decoration: underline;
}
.forgot-link:hover { color: var(--teal); }
.forgot-link:disabled { opacity: .55; cursor: default; }

.btn.block { display: block; width: 100%; text-align: center; border: 1px solid #fcd34d; cursor: pointer; }
.btn.small { padding: 11px 18px; font-size: .92rem; cursor: pointer; }
button.btn { font-family: var(--font-display); }
.btn:disabled { opacity: .55; cursor: default; }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  background: #ffffff; color: var(--text); font-weight: 700; font-size: 1rem; font-family: var(--font-display);
  border: 1px solid var(--border); box-shadow: 0 4px 12px -6px rgba(120, 70, 5, .35);
}
.btn-google:hover { background: var(--surface-warm); }
.btn-google .g { font-family: var(--font-display); font-weight: 800; color: #d97706; font-size: 1.15rem; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--dim); font-size: .88rem; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.mode-row { display: flex; gap: 8px; margin: 0 0 16px; }
.mode-row button {
  flex: 1; padding: 10px; border-radius: 999px; cursor: pointer; font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  background: var(--surface-warm); color: var(--dim); border: 2px solid var(--border);
}
.mode-row button.on { background: var(--teal); color: #fff; font-weight: 800; border-color: var(--teal); }

.msg { border-radius: 16px; padding: 13px 16px; line-height: 1.55; font-size: .96rem; margin: 0 0 16px; display: none; }
.msg.show { display: block; }
.msg.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.msg.notice { background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; }
.msg.good { background: #f0fdf9; border: 1px solid #99f6e4; color: #134e4a; }
.msg a { color: #115e59; font-weight: 800; }

/* Registration doors */
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0 0 18px; }
.door-card {
  position: relative; display: block; cursor: pointer; border-radius: 24px; padding: 18px;
  background: var(--surface); border: 2px solid var(--border);
  transition: transform .3s cubic-bezier(.22, .9, .3, 1), box-shadow .3s ease;
}
.door-card input { position: absolute; opacity: 0; pointer-events: none; }
.door-card h3 { color: var(--text); margin: 0 0 6px; font-size: 1.08rem; font-weight: 800; }
.door-card p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--dim); }
.door-card p strong { color: var(--text); }
.door-card:hover { border-color: #fbbf24; transform: translateY(-2px); }
.door-card.selected, .door-card:has(input:checked) {
  border-color: var(--teal); background: #f0fdf9;
  box-shadow: 0 0 0 1px var(--teal) inset, 0 10px 20px -12px rgba(15, 118, 110, .4);
}

.child-block { border: 1px dashed #f59e0b; background: var(--surface-warm); border-radius: 16px; padding: 14px; margin: 0 0 12px; }
.child-block .row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.child-block .field { margin: 0; }
.link-btn { background: none; border: none; color: var(--teal); cursor: pointer; font-size: .92rem; font-weight: 700; font-family: var(--font-display); padding: 10px 2px; }
.link-btn.danger { color: #dc2626; }

/* Dashboard */
.dash-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-radius: 28px; padding: 22px 24px; margin: 0 0 10px;
  background: linear-gradient(120deg, #042f2e, #115e59 55%, #0f766e);
  color: #fff; box-shadow: 0 16px 30px -16px rgba(4, 47, 46, .55);
  position: relative; overflow: hidden;
}
.dash-head::after {
  content: ""; position: absolute; inset: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  animation: dashSheen 7s ease-in-out infinite; pointer-events: none;
}
.dash-head h1 { font-size: 1.9rem; margin: 0; margin-right: auto; color: #fff; font-weight: 800; }
.dash-head .btn.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.dash-head .btn.ghost:hover { background: rgba(255,255,255,.2); }
.pill {
  display: inline-block; background: #f59e0b; color: #1c1917; font-weight: 800;
  border-radius: 999px; padding: 4px 12px; font-size: .85rem; text-transform: capitalize;
  font-family: var(--font-display);
}
section.dash-block { margin: 30px 0; }
section.dash-block > h2 { font-size: 1.4rem; margin: 0 0 12px; font-weight: 800; }
section.dash-block > h3 { font-weight: 800; }
.item-list { display: grid; gap: 10px; }
.item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 15px 18px; line-height: 1.6;
  box-shadow: 0 1px 3px rgba(120, 70, 5, .05);
}
.item .t { font-weight: 700; color: var(--text); font-family: var(--font-display); font-size: 1.02rem; }
.item .t a { color: var(--teal); text-decoration: none; }
.item .t a:hover { text-decoration: underline; }
.item .d { color: var(--dim); font-size: .93rem; }
#hub-block .item {
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 22px -14px rgba(120, 70, 5, .35);
  transition: transform .3s cubic-bezier(.22, .9, .3, 1);
}
@media (hover: hover) { #hub-block .item:hover { transform: translateY(-3px); } }
.empty-note {
  background: #fffbeb; border: 1px dashed #f59e0b;
  border-radius: 16px; padding: 14px 16px; color: #57534e; line-height: 1.6;
}
.refcode { font-family: var(--font-display); letter-spacing: 1px; color: #115e59; font-weight: 800; }

/* Premium lift (2026-11-14, owner maturity pass): every card on the
   inner pages gets the glossy treatment the hub cards already had —
   inset highlight, warm depth shadow, gentle hover lift. Same frozen
   palette; only finish changes. */
.item {
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 22px -14px rgba(120, 70, 5, .35);
  transition: transform .3s cubic-bezier(.22, .9, .3, 1), box-shadow .3s ease;
}
@media (hover: hover) { .item:hover { transform: translateY(-2px); } }
section.dash-block > h2 { padding-bottom: 10px; border-bottom: 2px solid #fde68a; }
.tbl-wrap { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 24px -16px rgba(120, 70, 5, .35); }
.empty-note { background: linear-gradient(120deg, #fffbeb, #fff7ed); }

/* Accordion sections (2026-11-14, owner order: "every connected section
   hidden in a button — click opens, click again closes"). Shared by the
   member dashboard; behaviour: /assets/accordion.js. The owner page
   keeps its own inline variant of the same pattern. */
.acc-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 16px 20px; margin: 0 0 10px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(120deg, #ffffff, #fff7ed);
  border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 18px -12px rgba(120, 70, 5, .4);
  transition: background .25s ease, transform .25s ease;
}
.acc-btn::after {
  content: "▾"; margin-left: auto; font-size: 1.05rem; color: var(--accent-deep);
  transition: transform .25s ease;
}
.acc-btn.open { background: linear-gradient(120deg, #f59e0b, #fbbf24); color: #1c1917; border-color: #f59e0b; font-weight: 800; }
.acc-btn.open::after { content: "▴"; color: #1c1917; }
.acc-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.acc-panel { margin: 0 0 22px; animation: accIn .28s ease; }
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* At-a-glance subscriptions strip (dashboard, always visible). */
.glance { margin: 26px 0 6px; }
.glance > h2 { font-size: 1.4rem; margin: 0 0 4px; font-weight: 800; padding-bottom: 10px; border-bottom: 2px solid #fde68a; }
.glance .sub { color: var(--dim); margin: 0 0 14px; line-height: 1.6; }
.glance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.glance-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--accent);
  border-radius: 20px; padding: 16px 18px; line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 24px -14px rgba(120, 70, 5, .4);
}
.glance-card .t { font-weight: 700; font-family: var(--font-display); font-size: 1.02rem; color: var(--text); }
.glance-card .d { color: var(--dim); font-size: .92rem; }
.glance-card .days { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--teal-deep); margin-top: 6px; }
.glance-card.ended { border-left-color: #d6d3d1; background: #fafaf9; }
.glance-card.ended .days { color: #78716c; font-size: 1.05rem; }
.glance-free {
  background: linear-gradient(120deg, #fffbeb, #fff7ed); border: 1px dashed #f59e0b;
  border-radius: 16px; padding: 14px 16px; color: #57534e; line-height: 1.6;
}

/* My Class hero panel (dashboard, starts open). */
.myclass-panel {
  border-radius: 24px; padding: 22px;
  background: linear-gradient(120deg, #042f2e, #115e59 55%, #0f766e);
  color: #fff; box-shadow: 0 16px 30px -16px rgba(4, 47, 46, .55);
}
.myclass-panel p { margin: 0 0 16px; line-height: 1.65; color: #ecfdf5; }
.myclass-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.myclass-actions .btn.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.myclass-actions .btn.ghost:hover { background: rgba(255,255,255,.2); }

/* Account menu (2026-11-14, owner order: a proper Menu ▾ in the account).
   Behaviour: /assets/account-menu.js — renders only for signed-in members. */
.acct-menu { position: relative; margin-left: auto; z-index: 60; align-self: center; }
.acct-menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(120deg, #f59e0b, #fbbf24); color: #1c1917;
  border: 1px solid #f59e0b; font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  box-shadow: 0 10px 20px -10px rgba(180, 110, 10, .65);
}
.acct-menu-btn .acct-arrow { font-size: .95rem; line-height: 1; }
.acct-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(430px, calc(100vw - 24px));
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 30px 50px -20px rgba(120, 70, 5, .45); padding: 14px;
  animation: accIn .25s ease;
}
.acct-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acct-group { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 8px 2px 0; }
.acct-item {
  display: block; padding: 11px 13px; border-radius: 14px; text-decoration: none;
  background: var(--surface-warm); border: 1px solid var(--border); color: var(--text);
}
.acct-item:hover { border-color: #f59e0b; background: #fffbeb; }
.acct-item .l { display: block; font-family: var(--font-display); font-weight: 700; font-size: .98rem; }
.acct-item .s { display: block; color: var(--dim); font-size: .8rem; line-height: 1.45; margin-top: 2px; }
.acct-item .on-pill {
  display: inline-block; margin-top: 6px; background: #f0fdf9; color: #115e59;
  border: 1px solid #99f6e4; border-radius: 999px; padding: 1px 9px;
  font-size: .72rem; font-weight: 800; font-family: var(--font-display);
}
.acct-item.here { border-color: var(--teal); background: #f0fdf9; }
.acct-menu-foot { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acct-menu-foot .who { color: var(--dim); font-size: .85rem; }
@media (max-width: 700px) {
  .acct-menu { margin: 8px 4px 10px auto; }
  .site-head { flex-wrap: wrap; }
  .acct-menu-panel { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; max-height: 70vh; overflow: auto; }
  .acct-menu-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .dash-head::after { animation: none; }
  #hub-block .item { transition: none; }
  #hub-block .item:hover { transform: none; }
  .item, .acc-btn, .acc-panel, .acct-menu-panel { transition: none; animation: none; }
  .item:hover { transform: none; }
}

@media (max-width: 560px) {
  .child-block .row { grid-template-columns: 1fr; }
  .dash-head { padding: 18px; }
  .dash-head h1 { font-size: 1.5rem; }
}

/* ── Inner shell (2026-11-14, owner order: "Inside signed account
   dashboard experience should be different from outside homepage,
   separate it properly" + acceptance bar: "more dope and premium than
   the first one"). Session-driven by /assets/inner-shell.js: only a
   signed-in member's pages gain body.inner, the deepened header and
   the member strip — guests keep the public face exactly as before.
   Frozen palette only: cream, warm surface, gold, teal. ── */
body.inner { background: linear-gradient(180deg, #ffedd5 0, var(--surface-warm) 220px, var(--bg) 560px); }
.site-head.inner-head {
  background: linear-gradient(120deg, rgba(255, 247, 237, .98), rgba(255, 251, 235, .96));
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 14px 30px -18px rgba(180, 110, 10, .55);
}
.site-head.inner-head img.logo { box-shadow: 0 4px 12px -4px rgba(180, 110, 10, .5); border-color: var(--accent); }
.site-head.inner-head .brand-sub::after { content: " · Member area"; color: var(--accent-deep); }
.site-head.inner-head nav a { border-radius: 999px; padding: 9px 14px; }
.site-head.inner-head nav a:hover { background: #fff; box-shadow: 0 4px 10px -6px rgba(120, 70, 5, .35); }
.member-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  width: min(1040px, calc(100% - 40px)); margin: 18px auto 0; padding: 13px 18px;
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  color: #ecfdf5; border: 1px solid #0b4f4a; border-radius: 20px;
  box-shadow: 0 18px 34px -18px rgba(17, 94, 89, .7), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.member-strip img { width: 40px; height: 40px; border-radius: 11px; background: #fff; object-fit: cover; padding: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); flex: none; }
.member-strip .ms-house { display: block; font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #fcd34d; }
.member-strip .ms-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; color: #fff; line-height: 1.2; }
.member-strip .ms-role {
  background: var(--accent); color: #1c1917; border-radius: 999px; padding: 3px 11px;
  font-size: .74rem; font-weight: 800; font-family: var(--font-display); text-transform: capitalize; white-space: nowrap;
}
.member-strip .ms-tag { margin-left: auto; font-size: .85rem; font-weight: 700; color: #ccfbf1; }
.member-strip .ms-owner-btn {
  margin-left: auto; background: var(--accent); color: #1c1917; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem;
  padding: 11px 18px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
}
.member-strip .ms-owner-btn:hover { background: #fbbf24; }
@media (max-width: 560px) {
  .member-strip { padding: 11px 14px; gap: 10px; }
  .member-strip .ms-tag { display: none; }
}
/* My University-Level (inner) — faculty group heads + state chips. */
.fac-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.fac-head h3 { margin: 0; font-size: 1.18rem; }
.state-chip {
  display: inline-block; border-radius: 999px; padding: 2px 11px; font-size: .76rem; font-weight: 800;
  font-family: var(--font-display); background: #f0fdf9; color: var(--teal-deep); border: 1px solid #99f6e4;
}
.state-chip.locked { background: var(--surface-warm); color: #92400e; border-color: #fcd34d; }
@media (prefers-reduced-motion: reduce) {
  .member-strip, .site-head.inner-head { transition: none; }
}

/* Dashboard simplicity pass (owner order 2026-11-14 ~04:37): the five
   per-arm enrolment lists now live under ONE "Everything I have joined"
   button, grouped by plain sub-headings. */
.joined-head { margin: 18px 0 8px; font-size: 1.02rem; font-weight: 800; color: var(--teal-deep); border-bottom: 2px solid var(--border); padding-bottom: 5px; }
#panel-joined > div:first-of-type .joined-head { margin-top: 4px; }

/* ── Slim top layer + unified inner gloss (2026-11-14, owner order
   ~05:03 WAT: "That boat that carries dashboard and everything —
   remove it or carry it upward… few things should be in that upper
   layer… clean glossy button that is so nice… everything more
   premium"). The header now carries crest + wordmark + two quick
   links (Dashboard · My Class) + the Menu ▾; every destination lives
   in the menu. Buttons across the house share ONE glossy finish:
   gold gradient primary, teal secondary, white-gloss ghost, inset
   highlight, soft depth shadow, a true pressed state. Frozen palette
   only — every colour below already existed in the palette. ── */
.site-head .quick-nav { gap: 10px; }
.site-head .quick-nav a { padding: 10px 16px; }
body.inner .site-head { padding-top: 8px; padding-bottom: 8px; }
body.inner .member-strip { margin-top: 14px; }
body.inner .btn {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 18px -8px rgba(245, 158, 11, .55);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
body.inner .btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 8px -4px rgba(245, 158, 11, .5); }
body.inner .btn.teal {
  background: linear-gradient(to bottom, #0f766e, #115e59);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 18px -8px rgba(15, 118, 110, .55);
}
body.inner .btn.ghost {
  background: linear-gradient(to bottom, #ffffff, #fff7ed);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 14px -8px rgba(15, 118, 110, .35);
}
body.inner .btn.ghost:hover { background: #f0fdf9; }
/* On the deep-teal heads (dashboard greeting, My Class hero) ghost
   buttons keep their translucent-white form, above the gloss rules. */
body.inner .dash-head .btn.ghost, body.inner .myclass-panel .btn.ghost {
  background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none;
}
body.inner .dash-head .btn.ghost:hover, body.inner .myclass-panel .btn.ghost:hover { background: rgba(255,255,255,.2); }
.acct-menu-btn { transition: transform .15s ease, box-shadow .2s ease; }
.acct-menu-btn:active { transform: translateY(1px); box-shadow: 0 4px 10px -6px rgba(180, 110, 10, .65); }
.acct-item { transition: background .2s ease, border-color .2s ease, transform .15s ease; }
.acct-item:active { transform: translateY(1px); }
.acc-btn:active { transform: translateY(1px); }
/* The one Explore door on the dashboard carries full prominence. */
#explore-strip .btn.explore-btn { font-size: 1.06rem; padding: 14px 28px; }
@media (prefers-reduced-motion: reduce) {
  body.inner .btn, .acct-menu-btn, .acct-item, .acc-btn { transition: none; }
  body.inner .btn:active, .acct-menu-btn:active, .acct-item:active, .acc-btn:active { transform: none; }
}

/* Timetable preset chips (owner order 2026-11-14 ~17:25 WAT): the chip
   holding the member's own time stands lit amber, so the time they set
   shows in the boxes as well as in the time box — dashboard editor
   (.btn chips) and register editor (.link-btn chips) alike. */
.btn.tt-chip-on, .link-btn.tt-chip-on {
  background: linear-gradient(120deg, #f59e0b, #fbbf24);
  color: #1c1917; border-color: #f59e0b; font-weight: 800;
  border-radius: 999px; padding: 6px 12px;
}

/* ── Class reminders on/off switch (owner order 2026-11-14 ~18:51 WAT:
   reminders ON by default for every new account, with a proper sliding
   toggle beside the bell card — slide right = ON, slide left = OFF.
   Frozen palette: teal track when on, warm cream track with a gold knob
   when off. Behaviour: /assets/push-reminders.js. ── */
.reminders-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.switch { position: relative; display: inline-block; flex: none; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-track {
  display: block; width: 56px; height: 32px; border-radius: 999px;
  background: var(--surface-warm); border: 2px solid var(--border);
  box-shadow: inset 0 1px 3px rgba(120, 70, 5, .18);
  transition: background .22s ease, border-color .22s ease;
}
.switch-knob {
  display: block; width: 24px; height: 24px; margin: 2px; border-radius: 50%;
  background: linear-gradient(to bottom, #fbbf24, var(--accent-deep));
  box-shadow: 0 2px 5px rgba(120, 70, 5, .35);
  transition: transform .22s ease, background .22s ease;
}
.switch input:checked + .switch-track { background: linear-gradient(120deg, var(--teal-deep), var(--teal)); border-color: var(--teal-deep); }
.switch input:checked + .switch-track .switch-knob { transform: translateX(24px); background: #fff; }
.switch input:disabled + .switch-track { opacity: .55; }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--accent); outline-offset: 2px; }
.reminders-word { font-family: var(--font-display); font-weight: 700; font-size: .98rem; }
@media (prefers-reduced-motion: reduce) {
  .switch-track, .switch-knob { transition: none; }
}

/* ── INNER PREMIUM — DEEP NAVY LUXURY (owner order 2026-11-19:
   "if outside can be dope, inside should be more dope… another
   heaven when a member logs in… clean, trimmed, sparkling — golden,
   navy blue with gold"). The inside of the house now speaks the same
   navy-and-gold language as the approved Deep Navy Luxury homepage,
   one register richer: a deep-navy ceremony at the threshold (header,
   member strip, greeting panel), gold rules and glints, editorial
   serif display heads, and the school's sections carried in clean
   white boxes with navy-to-gold top bars on the warm cream ground.
   Everything is scoped to body.inner — the shell session marks a
   signed-in member's pages only, so the public face is untouched —
   and every colour is inside the frozen palette (the navy family
   #172554 / #1e3a8a / #1e40af with its pale blues was already part
   of it). Restyle only: no markup, wording, link or behaviour in
   this layer — the same house, dressed for the evening. ── */

/* The threshold ground: candlelight gold over deep navy at the top
   of the page, dissolving through pale blue into the warm cream the
   rest of the house stands on. */
body.inner {
  background:
    radial-gradient(ellipse 90% 340px at 50% 0, rgba(252, 211, 77, .16), rgba(252, 211, 77, 0) 70%),
    linear-gradient(180deg, #172554 0, #1e3a8a 320px, #dbeafe 580px, #fffbeb 820px);
  background-color: #fffbeb;
}

/* The header joins the navy: same cut as the homepage's Deep Navy
   curtain — navy gradient, white wordmark, gold sub-line, glass
   pills with gold hairlines, the current room lit in gold, and the
   fine gold rule running underneath. */
.site-head.inner-head {
  background: linear-gradient(120deg, #172554, #1e3a8a 70%, #172554);
  border-bottom: none;
  box-shadow: 0 16px 30px -22px rgba(23, 37, 84, .8);
}
.site-head.inner-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(to right, #b45309, #f59e0b 30%, #fcd34d 50%, #f59e0b 70%, #b45309);
}
.site-head.inner-head img.logo {
  border-color: #fcd34d;
  box-shadow: 0 0 0 3px rgba(252, 211, 77, .35), 0 2px 8px rgba(0, 0, 0, .35);
}
.site-head.inner-head .brand .brand-name { color: #ffffff; }
.site-head.inner-head .brand .brand-sub { color: #fcd34d; }
.site-head.inner-head .brand-sub::after { content: " · Member area"; color: #fde68a; }
.site-head.inner-head nav a {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(252, 211, 77, .25);
  color: #dbeafe;
}
.site-head.inner-head nav a:hover {
  background: rgba(255, 255, 255, .16); color: #ffffff;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .45);
}
.site-head.inner-head nav a.here {
  background: linear-gradient(to bottom, #fbbf24, #f59e0b 55%, #d97706);
  border-color: #fcd34d; color: #172554;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4);
}

/* The account Menu ▾ panel: a gold-framed card with navy group
   heads; the room you are standing in reads in pale navy. */
body.inner .acct-menu-panel {
  border-color: #fcd34d;
  box-shadow: 0 30px 50px -20px rgba(23, 37, 84, .5);
}
body.inner .acct-group { color: #1e3a8a; }
body.inner .acct-item.here { border-color: #1e3a8a; background: #eff6ff; }
body.inner .acct-item .on-pill { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }

/* The member strip — the felt threshold of the house — turns into
   a deep-navy panel with a gold frame and three quiet star glints
   in its top corner. The crest sits in a gold ring; the member's
   role rides in a gold pill with navy letters. */
body.inner .member-strip {
  background:
    radial-gradient(circle at 88% 18%, rgba(252, 211, 77, .30), rgba(252, 211, 77, 0) 4px),
    radial-gradient(circle at 94% 64%, rgba(252, 211, 77, .20), rgba(252, 211, 77, 0) 3px),
    radial-gradient(circle at 79% 82%, rgba(252, 211, 77, .15), rgba(252, 211, 77, 0) 3px),
    linear-gradient(120deg, #172554, #1e3a8a 60%, #1e40af);
  color: #dbeafe;
  border: 1px solid rgba(252, 211, 77, .55);
  box-shadow: 0 22px 38px -18px rgba(23, 37, 84, .65), inset 0 1px 0 rgba(255, 255, 255, .22);
}
body.inner .member-strip img {
  border: 2px solid #fcd34d;
  box-shadow: 0 0 0 3px rgba(252, 211, 77, .3), 0 2px 6px rgba(0, 0, 0, .3);
}
body.inner .member-strip .ms-role {
  background: linear-gradient(to bottom, #fbbf24, #f59e0b 55%, #d97706);
  color: #172554;
}
body.inner .member-strip .ms-tag { color: #fde68a; }
body.inner .member-strip .ms-owner-btn {
  background: linear-gradient(to bottom, #fbbf24, #f59e0b 55%, #d97706);
  color: #172554;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
body.inner .member-strip .ms-owner-btn:hover { background: linear-gradient(to bottom, #fcd34d, #fbbf24 55%, #f59e0b); }

/* A school notice pinned above the dashboard joins the navy too
   (its inline teal is overridden here, inside the member area only). */
body.inner #member-notice {
  background: linear-gradient(120deg, #172554, #1e3a8a) !important;
  border: 1px solid rgba(252, 211, 77, .5);
  box-shadow: 0 14px 26px -14px rgba(23, 37, 84, .55);
}

/* The greeting panel: deep navy luxury — a gold top rule, quiet
   star glints, the member's name in the editorial serif the
   homepage hero wears, and gold-framed glass buttons. */
body.inner .dash-head {
  background:
    radial-gradient(circle at 90% 16%, rgba(252, 211, 77, .28), rgba(252, 211, 77, 0) 4px),
    radial-gradient(circle at 95% 62%, rgba(252, 211, 77, .18), rgba(252, 211, 77, 0) 3px),
    radial-gradient(circle at 84% 86%, rgba(252, 211, 77, .13), rgba(252, 211, 77, 0) 3px),
    linear-gradient(120deg, #172554, #1e3a8a 58%, #1e40af);
  border: 1px solid rgba(252, 211, 77, .5);
  box-shadow: 0 22px 40px -18px rgba(23, 37, 84, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}
body.inner .dash-head::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, #b45309, #f59e0b, #fcd34d, #f59e0b, #b45309);
}
body.inner .dash-head h1 { font-family: Georgia, "Times New Roman", serif; letter-spacing: .01em; }
body.inner .dash-head h1 .gold { color: #fcd34d; }
body.inner .dash-head .btn.ghost, body.inner .myclass-panel .btn.ghost { border-color: rgba(252, 211, 77, .55); }
body.inner #account-line { color: #ffffff; }

/* Band intro lines (owner report 2026-11-19, Payments page): the
   paragraph standing directly under the .dash-head band — and the
   Help & Support section head — sits on the navy page gradient in
   colours made for cream (.small is var(--dim) #78716c), so it
   washed out and could not be read. On the band, intro text takes
   white and its links take the band's own gold. Scoped to the
   lines that stand on the band: nothing inside a card or further
   down the page (where the gradient has faded to cream) changes.
   Help & Support's long .small after its section head is NOT
   recoloured: it stands in the gradient's pale fade, where its
   cream-made colour is the readable one. */
body.inner .dash-head + .small,
body.inner .dash-head + .small + .small { color: #ffffff; }
body.inner .dash-head + .small strong,
body.inner .dash-head + .small + .small strong { color: #ffffff; }
body.inner .dash-head + .small a,
body.inner .dash-head + .small + .small a { color: #fcd34d; }
body.inner .dash-wrap > .section-head h1 { color: #ffffff; }
body.inner .dash-wrap > .section-head p { color: #ffffff; }

/* Pills (role, notice badges) take the pressed-gold finish with
   navy letters. */
body.inner .pill {
  background: linear-gradient(to bottom, #fbbf24, #f59e0b 55%, #d97706);
  color: #172554;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35);
}

/* The always-visible dashboard sections (At a glance, Notice board,
   Class reminders, Start here) are carried in clean white boxes —
   a navy-to-gold top bar, a gold hairline frame, a soft navy depth
   shadow — so the layman reads the house room by room. */
body.inner .glance {
  position: relative; overflow: hidden;
  background: #ffffff; border: 1px solid #fde68a; border-radius: 26px;
  padding: 24px 22px 20px; margin: 26px 0 18px;
  box-shadow: 0 18px 34px -20px rgba(23, 37, 84, .35), 0 2px 6px rgba(120, 70, 5, .05), inset 0 1px 0 rgba(255, 255, 255, .6);
}
body.inner .glance::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(to right, #172554, #f59e0b, #fcd34d);
}
body.inner .glance > h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #172554; border-bottom: 2px solid #fde68a;
}
body.inner .glance p a:not(.btn) { color: #1e3a8a; font-weight: 700; }

/* At-a-glance cards: warm white with a gold spine and the days-left
   figure in deep navy. */
body.inner .glance-card {
  background: linear-gradient(180deg, #ffffff, #fffbeb);
  border-color: #fde68a; border-left: 6px solid #f59e0b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 24px -14px rgba(23, 37, 84, .35);
}
body.inner .glance-card .days { color: #172554; }
body.inner .glance-free {
  background: linear-gradient(120deg, #fffbeb, #fef3c7);
  border-color: #f59e0b; color: #57534e;
}

/* Every card in the house: gold hairline frame, navy-tinted depth;
   card titles link in navy and warm to gold on hover. */
body.inner .item {
  border-color: #fde68a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 22px -14px rgba(23, 37, 84, .32);
}
body.inner .item .t a { color: #1e3a8a; }
body.inner .item .t a:hover { color: #b45309; }
body.inner .refcode { color: #1e3a8a; }
body.inner .joined-head { color: #172554; border-bottom: 2px solid #fde68a; }

/* Section heads across the member pages take the editorial serif
   and deep navy, over the same gold rule as the boxes. */
body.inner section.dash-block > h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #172554;
}

/* The accordion doors: a white-gold closed door; opened, the door
   itself turns deep navy with a gold chevron — you can see the
   room you are standing in from across the page. */
body.inner .acc-btn {
  background: linear-gradient(120deg, #ffffff, #fff7ed);
  border-color: #fcd34d; color: #172554;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 20px -12px rgba(23, 37, 84, .35);
}
body.inner .acc-btn::after { color: #b45309; }
body.inner .acc-btn.open {
  background: linear-gradient(120deg, #172554, #1e3a8a 65%, #1e40af);
  color: #ffffff; border-color: #172554;
  box-shadow: 0 14px 26px -14px rgba(23, 37, 84, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
}
body.inner .acc-btn.open::after { content: "▴"; color: #fcd34d; }

/* The My Class hero panel joins the greeting panel in navy, with
   the same gold top rule and glints; its words rest in pale blue. */
body.inner .myclass-panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 90% 16%, rgba(252, 211, 77, .28), rgba(252, 211, 77, 0) 4px),
    radial-gradient(circle at 95% 62%, rgba(252, 211, 77, .18), rgba(252, 211, 77, 0) 3px),
    radial-gradient(circle at 84% 86%, rgba(252, 211, 77, .13), rgba(252, 211, 77, 0) 3px),
    linear-gradient(120deg, #172554, #1e3a8a 58%, #1e40af);
  border: 1px solid rgba(252, 211, 77, .5);
  box-shadow: 0 22px 40px -18px rgba(23, 37, 84, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}
body.inner .myclass-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, #b45309, #f59e0b, #fcd34d, #f59e0b, #b45309);
}
body.inner .myclass-panel p { color: #dbeafe; }

/* The one Explore door keeps its full gold prominence, with a
   deeper ceremonial shadow. */
body.inner #explore-strip .btn.explore-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 16px 28px -12px rgba(180, 110, 10, .6);
}

/* The foot of the house closes in navy, mirroring the homepage —
   gold rule on top, white school name in serif, pale-blue words,
   the crest in its gold ring. */
body.inner footer {
  background: linear-gradient(120deg, #172554, #1e3a8a 70%, #172554);
  border-top: 3px solid #d97706;
  color: #bfdbfe;
}
body.inner footer .foot-name { color: #ffffff; font-family: Georgia, "Times New Roman", serif; }
body.inner footer .foot-brand img {
  border-color: #fcd34d;
  box-shadow: 0 0 0 3px rgba(252, 211, 77, .3), 0 2px 6px rgba(0, 0, 0, .3);
}
body.inner footer a { color: #fcd34d; }

@media (max-width: 560px) {
  body.inner .glance { padding: 19px 16px 16px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  body.inner .glance, body.inner .member-strip, body.inner .dash-head, body.inner .myclass-panel { transition: none; }
}

/* ── Slim member top bar (owner order 2026-11-19 ~13:18 WAT: the
   signed-in curtain of loose buttons "is too down, it almost shed
   half of the screen — take it up; only three things can be there:
   the Home, My Class and the Menu; the other things put them into
   the Menu, so the up can be free to have full frame screen").
   Behaviour: /assets/account-menu.js adds .slim-bar and rebuilds
   the nav (Home · My Class) for signed-in members only — guests
   never match these rules, so the public header is untouched.
   One compact single row: crest + wordmark + two pills + Menu ▾,
   every control the same 44px height, nothing touching, at phone,
   tablet, desktop and TV widths. Frozen palette only. ── */
.site-head.slim-bar {
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 12px;
  box-shadow: 0 14px 26px -20px rgba(120, 70, 5, .5);
}
.site-head.slim-bar:not(.inner-head) { border-bottom: 3px solid #f59e0b; }
.site-head.inner-head.slim-bar { border-bottom: none; }
.site-head.slim-bar img.logo { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.site-head.slim-bar .brand { margin-right: 0; flex: none; }
.site-head.slim-bar .brand .brand-name { font-size: .98rem; }
.site-head.slim-bar nav.slim-nav { flex-wrap: nowrap; gap: 8px; margin-left: auto; }
.site-head.slim-bar nav.slim-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 15px; font-size: .92rem;
}
.site-head.slim-bar:not(.inner-head) nav.slim-nav a {
  background: #ffffff; border: 1px solid #fde68a; color: #292524;
  box-shadow: 0 4px 10px -6px rgba(120, 70, 5, .35);
}
.site-head.slim-bar:not(.inner-head) nav.slim-nav a.here {
  background: linear-gradient(to bottom, #fbbf24, #f59e0b 55%, #d97706);
  border-color: #fcd34d; color: #1c1917;
}
.site-head.slim-bar .acct-menu { margin: 0; flex: none; }
.site-head.slim-bar .acct-menu-btn { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
@media (max-width: 700px) {
  .site-head.slim-bar .acct-menu-panel { top: 70px; }
}
@media (max-width: 560px) {
  .site-head.slim-bar { gap: 6px; padding: 8px 10px; }
  .site-head.slim-bar .brand { display: none; }
  .site-head.slim-bar img.logo { width: 38px; height: 38px; border-radius: 10px; }
  .site-head.slim-bar nav.slim-nav { gap: 6px; }
  .site-head.slim-bar nav.slim-nav a { padding: 8px 12px; font-size: .9rem; }
  .site-head.slim-bar .acct-menu-btn { padding: 8px 14px; }
}
@media (min-width: 1100px) {
  .site-head.slim-bar { padding: 10px 22px; }
  .site-head.slim-bar nav.slim-nav a { padding: 9px 18px; }
}
