:root {
  /* Bright, single light theme. One colour per idea: sun = bagless, coral = games, sky = multimedia, leaf = projects.
     Layout idea: centred, mirrored sections (heading on the axis, grids of equal cards, 50/50 splits). */
  --ink: #23262f;
  --ink-soft: #555b69;
  --paper: #ffffff;
  --wash: #f4f5f9;
  --line: #e3e5ec;
  --sun: #ee3424;
  --sun-wash: #fdebe8;
  --sky: #1d36a8;
  --sky-deep: #13298f;
  --sky-wash: #e8ebf8;
  --coral: #d42a1c;
  --coral-deep: #b01d12;
  --coral-wash: #fce4e1;
  --leaf: #2a8048;
  --leaf-deep: #1e6a3a;
  --leaf-wash: #e3f1e7;
  --display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  --shadow: 0 18px 40px -22px rgba(35, 38, 47, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 20% 20%, var(--sun-wash) 0 18%, transparent 19%),
    radial-gradient(circle at 82% 78%, var(--sky-wash) 0 22%, transparent 23%),
    var(--paper);
  transition: opacity .45s ease, visibility .45s ease;
  animation: loader-fallback .01s linear 1.2s forwards;
}
.loader-box { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 20px; }
.loader-mark { width: 92px; height: 92px; animation: mark-bob 1.2s ease-in-out infinite; }
.loader-name { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.loader-dots { display: flex; gap: 10px; }
.loader-dots span { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); animation: dot-hop .9s ease-in-out infinite; }
.loader-dots span:nth-child(2) { background: var(--coral); animation-delay: .12s; }
.loader-dots span:nth-child(3) { background: var(--sky); animation-delay: .24s; }
.loader-dots span:nth-child(4) { background: var(--leaf); animation-delay: .36s; }
.loader-text { color: var(--ink-soft); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
html.loaded .loader { opacity: 0; visibility: hidden; }
html.leaving .loader { animation: loader-in .3s ease forwards; }
html.leaving, html:not(.loaded) { overflow: hidden; }
@keyframes loader-fallback { to { opacity: 0; visibility: hidden; } }
@keyframes loader-in { from { opacity: 0; visibility: visible; } to { opacity: 1; visibility: visible; } }
@keyframes mark-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes dot-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-small { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.brand-big { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover { background: var(--wash); }
.site-nav a[aria-current="page"] { background: var(--sky-wash); color: var(--sky-deep); }
.site-nav .nav-cta { margin-left: 8px; }
.site-nav .nav-cta[aria-current="page"] { background: var(--sun); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 10px; font: 800 .95rem var(--body); color: var(--ink); background: var(--wash); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 16px; text-align: center; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 6px 0 0; }
}

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 800 1rem var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(24, 34, 65, .5); }
.btn-sky { background: var(--sky-deep); color: #fff; }
.btn-sun { background: var(--sun); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; background: var(--sun-wash); color: #a3170d; }
.chip-coral { background: var(--coral-wash); color: var(--coral-deep); }
.chip-sky { background: var(--sky-wash); color: var(--sky-deep); }
.chip-leaf { background: var(--leaf-wash); color: var(--leaf-deep); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero::before { width: 420px; height: 420px; left: -160px; top: -120px; background: var(--sun-wash); }
.hero::after { width: 380px; height: 380px; right: -140px; top: 40px; background: var(--sky-wash); }
.hero-copy { display: grid; justify-items: center; gap: 20px; max-width: 820px; margin-inline: auto; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.hl { background: linear-gradient(transparent 62%, var(--hl, #f9c9c2) 62%, var(--hl, #f9c9c2) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; }
.hl-coral { --hl: #f9c9c2; }
.hl-sky { --hl: #c5cdf0; }
.hl-leaf { --hl: #bfe0c9; }

.hero-trio { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 20px; align-items: center; margin-top: 48px; }
.hero-trio .ph { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.hero-trio .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-trio .side { aspect-ratio: 4 / 5; }
.hero-trio .side:first-child { transform: rotate(-3deg); }
.hero-trio .side:last-child { transform: rotate(3deg); }
.hero-trio .main { aspect-ratio: 4 / 3; }
.slides img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slides img.on { opacity: 1; }
.float-tag { position: absolute; z-index: 2; background: var(--paper); border-radius: 16px; padding: 10px 16px; font-weight: 800; font-size: .95rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; }
.float-tag i { width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); display: block; }
.float-tag.tl { left: 16px; top: 16px; }
.float-tag.br { right: 16px; bottom: 16px; }
.float-tag.br i { background: var(--coral); }

.page-hero { padding: 56px 0 32px; }
.wide-photo { margin-top: 40px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21 / 9; position: relative; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.wash { background: var(--wash); }
.section.sun { background: var(--sun-wash); }
.section-head { text-align: center; display: grid; justify-items: center; gap: 14px; max-width: 760px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; display: grid; justify-items: center; align-content: start; gap: 12px; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--sun-wash); color: #a3170d; }
.icon svg { width: 32px; height: 32px; }
.icon.coral { background: var(--coral-wash); color: var(--coral-deep); }
.icon.sky { background: var(--sky-wash); color: var(--sky-deep); }
.icon.leaf { background: var(--leaf-wash); color: var(--leaf-deep); }

/* Pillar cards on the home page */
.pillar { background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.pillar-img { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 6px solid var(--sun); }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pillar:hover .pillar-img img { transform: scale(1.06); }
.pillar.coral .pillar-img { border-color: var(--coral); }
.pillar.sky .pillar-img { border-color: var(--sky); }
.pillar.leaf .pillar-img { border-color: var(--leaf); }
.pillar-body { padding: 24px 22px 26px; text-align: center; display: grid; gap: 10px; justify-items: center; flex: 1; align-content: start; }
.pillar-body p { color: var(--ink-soft); font-size: 1rem; }
.pillar-more { margin-top: auto; font-weight: 800; color: var(--sky-deep); padding-top: 6px; }

/* Split: two equal halves */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { display: grid; gap: 18px; justify-items: start; }
.split-copy > p { color: var(--ink-soft); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--leaf-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b8251' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ticks.cross li::before { background: var(--coral-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d63a26' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 32px; left: 12.5%; right: 12.5%; border-top: 3px dashed var(--line); z-index: 0; }
.step { text-align: center; display: grid; justify-items: center; gap: 10px; position: relative; z-index: 1; }
.step::before { counter-increment: step; content: counter(step); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 600 1.6rem var(--display); background: var(--sun); color: var(--ink); box-shadow: 0 0 0 8px var(--paper); }
.section.wash .step::before { box-shadow: 0 0 0 8px var(--wash); }
.step:nth-child(2)::before { background: var(--coral); color: #fff; }
.step:nth-child(3)::before { background: var(--sky-deep); color: #fff; }
.step:nth-child(4)::before { background: var(--leaf-deep); color: #fff; }
.step p { color: var(--ink-soft); font-size: 1rem; max-width: 26ch; }

/* Day timeline */
.day { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.slot { background: var(--paper); border-radius: 20px; padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; border: 1px solid var(--line); }
.slot time { grid-row: span 2; font: 600 1.25rem var(--display); background: var(--sky-wash); color: var(--sky-deep); border-radius: 14px; padding: 10px 12px; font-variant-numeric: tabular-nums; min-width: 84px; text-align: center; }
.slot:nth-child(4n+2) time { background: var(--coral-wash); color: var(--coral-deep); }
.slot:nth-child(4n+3) time { background: var(--leaf-wash); color: var(--leaf-deep); }
.slot:nth-child(4n+4) time { background: var(--sun-wash); color: #a3170d; }
.slot h3 { font-size: 1.1rem; }
.slot p { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.note { text-align: center; color: var(--ink-soft); font-size: .95rem; margin-top: 24px; }

/* Big fact */
.fact { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--paper); border-radius: 28px; padding: 32px 36px; box-shadow: var(--shadow); max-width: 860px; margin-inline: auto; }
.fact-num { font: 700 clamp(3.4rem, 8vw, 5rem) var(--display); color: var(--coral-deep); line-height: 1; }
.fact p { color: var(--ink-soft); }
.fact strong { color: var(--ink); }

/* CTA band */
.cta { padding: 0 0 88px; }
.cta-box { background: var(--sky-deep); color: #fff; border-radius: 32px; padding: 56px 32px; text-align: center; display: grid; justify-items: center; gap: 18px; position: relative; overflow: hidden; }
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; }
.cta-box::before { width: 240px; height: 240px; background: var(--sun); left: -80px; bottom: -110px; }
.cta-box::after { width: 200px; height: 200px; background: var(--coral); right: -70px; top: -90px; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box p { max-width: 54ch; color: #dce8ff; font-size: 1.1rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); max-width: 940px; margin-inline: auto; }
.calc-form { padding: 36px; display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; }
.field input, .field select, .field textarea { font: 600 1.05rem var(--body); color: var(--ink); padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); outline: none; }
.field small { color: var(--ink-soft); font-size: .9rem; }
.calc-result { padding: 36px; background: var(--leaf-wash); display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; transition: background .3s ease; }
.calc-result.heavy { background: var(--coral-wash); }
.calc-kg { font: 700 3.4rem var(--display); line-height: 1; font-variant-numeric: tabular-nums; }
.calc-verdict { font-weight: 800; font-size: 1.15rem; }
.calc-result p { color: var(--ink-soft); font-size: 1rem; max-width: 34ch; }
.meter { width: 100%; max-width: 300px; height: 14px; border-radius: 999px; background: rgba(24, 34, 65, .1); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--leaf); border-radius: inherit; transition: width .4s ease, background .3s ease; }
.calc-result.heavy .meter span { background: var(--coral); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 4px 24px; }
.faq summary { cursor: pointer; font: 600 1.15rem var(--display); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--sky-deep); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); }

/* Make 10 game */
.game { max-width: 760px; margin-inline: auto; background: var(--paper); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 20px; justify-items: center; }
.game-score { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.game-score span { background: var(--wash); border-radius: 999px; padding: 6px 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(4, 76px); gap: 12px; justify-content: center; }
.tile { width: 76px; height: 76px; border-radius: 20px; border: 0; font: 600 2rem var(--display); cursor: pointer; color: var(--ink); background: var(--sun-wash); transition: transform .12s ease, background .2s ease; }
.tile:nth-child(4n+2) { background: var(--coral-wash); }
.tile:nth-child(4n+3) { background: var(--sky-wash); }
.tile:nth-child(4n+4) { background: var(--leaf-wash); }
.tile:hover { transform: scale(1.06); }
.tile.picked { background: var(--sky-deep); color: #fff; transform: scale(1.06); }
.tile.gone { visibility: hidden; }
.tile.wrong { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.game-msg { font-weight: 800; min-height: 1.6em; }

/* Projects gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter { font: 800 .95rem var(--body); padding: 10px 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.work[hidden] { display: none; }
.work-img { aspect-ratio: 4 / 3; overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 20px 22px 24px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.work-body p { color: var(--ink-soft); font-size: .98rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.form-card { background: var(--paper); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { border-radius: 14px; padding: 14px 16px; background: var(--sun-wash); font-weight: 700; display: none; }
.form-note.show { display: block; }
.info-list { display: grid; gap: 16px; }
.info { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.info p { color: var(--ink-soft); }
.placeholder { color: var(--ink-soft); font-style: italic; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d2ea; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { display: grid; gap: 8px; justify-items: start; }
.footer-name { font: 600 1.35rem var(--display); color: #fff; }
.footer-head { font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a, .footer-base a { color: #c9d2ea; text-decoration: none; }
.footer-links a:hover, .footer-base a:hover { color: var(--sun); }
.site-footer .placeholder { color: #8f9bbd; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .grid-3, .gallery, .day { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 36px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .split, .calc, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split-photo { order: -1; }
  .hero-trio { grid-template-columns: 1fr; }
  .hero-trio .side { display: none; }
  .wide-photo { aspect-ratio: 4 / 3; }
  .fact { grid-template-columns: 1fr; text-align: center; padding: 28px 24px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2, .gallery, .day, .steps, .form-row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(4, 64px); gap: 10px; }
  .tile { width: 64px; height: 64px; font-size: 1.7rem; }
  .brand-big { font-size: 1.12rem; }
  .brand-mark { width: 40px; height: 40px; }
  .nav-toggle-label { display: none; }
  .calc-form, .calc-result, .form-card, .game { padding: 26px 20px; }
  .cta-box { padding: 44px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .loader { animation: loader-fallback .01s linear 1s forwards !important; }
}
.info-list .split-photo { order: 0; }

/* =========================================================
   v2 additions
   ========================================================= */
picture { display: contents; }

/* Dropdown in the main menu */
.has-sub { position: relative; }
.sub-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; border: 0; background: none; font: 700 .95rem var(--body); color: var(--ink); cursor: pointer; white-space: nowrap; }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.sub-toggle:hover { background: var(--wash); }
.has-sub[data-current] .sub-toggle { background: var(--sky-wash); color: var(--sky-deep); }
.sub { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); min-width: 270px; background: var(--paper); border-radius: 18px; padding: 8px; box-shadow: 0 0 0 1px var(--line), var(--shadow); display: grid; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover .sub-toggle svg, .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.sub a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); flex: none; }
.dot.coral { background: var(--coral); }
.dot.sky { background: var(--sky); }
.dot.leaf { background: var(--leaf); }
@media (max-width: 1080px) {
  .site-nav { max-height: calc(100vh - 76px); overflow-y: auto; }
  .has-sub { display: grid; }
  .sub-toggle { justify-content: center; padding: 12px 16px; font-size: 1.05rem; }
  .sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: var(--wash); min-width: 0; margin: 2px 0 6px; display: none; }
  .has-sub.open .sub, .has-sub[data-current] .sub { display: grid; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { transform: none; }
  .sub a { justify-content: center; }
}

/* Section heading motif: four brand dots under each section title */
.section-head h2::after {
  content: ""; display: block; width: 74px; height: 11px; margin: 16px auto 0;
  background:
    radial-gradient(circle, var(--sun) 4.5px, transparent 5px) 0 0 / 11px 11px no-repeat,
    radial-gradient(circle, var(--coral) 4.5px, transparent 5px) 21px 0 / 11px 11px no-repeat,
    radial-gradient(circle, var(--sky) 4.5px, transparent 5px) 42px 0 / 11px 11px no-repeat,
    radial-gradient(circle, var(--leaf) 4.5px, transparent 5px) 63px 0 / 11px 11px no-repeat;
}

/* Hero video */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.main { background: var(--sun-wash); }

/* Small decorative shapes */
.deco { position: absolute; z-index: -1; pointer-events: none; }
.deco-star { width: 46px; top: 150px; left: 9%; color: var(--coral); }
.deco-ring { width: 60px; top: 96px; right: 10%; color: var(--leaf); }
.deco-zig { width: 90px; top: 300px; right: 16%; color: var(--sky); }

/* Generic prose and placeholder blocks */
.prose { max-width: 720px; margin-inline: auto; display: grid; gap: 18px; }
.prose h2 { font-size: 1.6rem; margin-top: 18px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.todo { border: 2px dashed #ee3424; background: var(--sun-wash); border-radius: 18px; padding: 18px 20px; color: #8f140b; font-weight: 700; text-align: left; }
.todo small { display: block; font-weight: 600; color: #a3170d; margin-top: 4px; font-size: .95rem; }

/* About: principal card and mission */
.principal { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; background: var(--paper); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); max-width: 940px; margin-inline: auto; }
.principal-photo { aspect-ratio: 1; border-radius: 50%; background: var(--sky-wash); display: grid; place-items: center; color: var(--sky-deep); border: 6px solid var(--paper); box-shadow: 0 0 0 4px var(--sun); }
.principal-photo svg { width: 46%; height: 46%; }
.principal blockquote { margin: 0; display: grid; gap: 14px; }
.principal cite { font-style: normal; font-weight: 800; }
.mission { max-width: 880px; margin-inline: auto; text-align: center; font: 600 clamp(1.4rem, 3vw, 2rem)/1.35 var(--display); text-wrap: balance; }
.mission span { color: var(--sky-deep); }

/* Admissions */
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps-5::before { left: 10%; right: 10%; }
.steps .step:nth-child(5)::before { background: var(--ink); color: #fff; }
.docs { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 900px; }
.docs li { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; font-weight: 700; }
.docs li::before { content: ""; width: 30px; height: 30px; border-radius: 9px; background: var(--sky-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c62d6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.fee-card { max-width: 760px; margin-inline: auto; text-align: center; background: var(--paper); border-radius: 28px; padding: 40px 32px; box-shadow: var(--shadow); display: grid; gap: 16px; justify-items: center; }

/* Gallery and lightbox */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-grid button { padding: 0; border: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--wash); position: relative; }

.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-grid button:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(15, 21, 42, .92); display: none; align-items: center; justify-content: center; padding: 24px 76px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; display: grid; gap: 12px; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 16px; }
.lightbox figcaption { color: #fff; text-align: center; font-weight: 700; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font: 700 1.5rem/1 var(--body); cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.events { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1000px; margin-inline: auto; }
.event { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.event-date { aspect-ratio: 1; border-radius: 18px; background: var(--sun-wash); display: grid; place-content: center; text-align: center; font: 600 .95rem/1.15 var(--display); color: #a3170d; }
.event:nth-child(4n+2) .event-date { background: var(--coral-wash); color: var(--coral-deep); }
.event:nth-child(4n+3) .event-date { background: var(--sky-wash); color: var(--sky-deep); }
.event:nth-child(4n+4) .event-date { background: var(--leaf-wash); color: var(--leaf-deep); }
.event-date b { font-size: 1.35rem; display: block; }
.event h3 { margin-bottom: 4px; }
.event p { color: var(--ink-soft); font-size: 1rem; }

/* Footer extras */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.socials a { color: var(--sun); font-weight: 800; text-decoration: none; }

/* Contact extras */
.info a { color: var(--sky-deep); font-weight: 700; }
#contact-details { scroll-margin-top: 100px; }
.form-note.ok { background: var(--leaf-wash); color: var(--leaf-deep); }
.form-note.err { background: var(--coral-wash); color: var(--coral-deep); }

/* Phone action bar */
.action-bar { display: none; }
@media (max-width: 980px) {
  .steps-5 { grid-template-columns: repeat(2, 1fr); }
  .steps-5 .step:nth-child(5) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 12px 30px -10px rgba(24, 34, 65, .45); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .85rem; background: var(--wash); }
  .action-bar a.wa { background: #e3f8ea; color: #0b6b37; }
  .action-bar a.book { background: var(--sun); }
  .action-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  body { padding-bottom: 92px; }
  .footer-brand { grid-column: 1 / -1; }
  .principal { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; justify-items: center; }
  .principal-photo { width: 160px; }
  .docs, .events { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox { padding: 70px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
  .deco { display: none; }
}
@media (max-width: 560px) {
  .steps-5 { grid-template-columns: 1fr; }
  .event { grid-template-columns: 76px 1fr; gap: 14px; padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   v3 additions: portals, example dashboard, facilities
   ========================================================= */
.btn-soon { background: var(--wash); color: var(--ink-soft); box-shadow: inset 0 0 0 2px var(--line); cursor: default; }
.btn-soon:hover { transform: none; box-shadow: inset 0 0 0 2px var(--line); }

.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.portal { background: var(--paper); border-radius: 26px; padding: 30px 26px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 0 0 1px var(--line); border-top: 8px solid var(--sun); scroll-margin-top: 100px; }
.portal.coral { border-top-color: var(--coral); }
.portal.leaf { border-top-color: var(--leaf); }
.portal-top { display: grid; justify-items: center; text-align: center; gap: 10px; }
.portal-top h2 { font-size: 1.6rem; }
.portal-top p { color: var(--ink-soft); }
.portal .ticks { flex: 1; }
.portal-cta { display: grid; }
.portal-cta .btn { width: 100%; }

.dash { max-width: 980px; margin-inline: auto; background: var(--paper); border-radius: 24px; box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
.dash-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: block; }
.dash-dots i:nth-child(2) { background: var(--sun); }
.dash-dots i:nth-child(3) { background: var(--leaf); }
.dash-sample { margin-left: auto; background: var(--sun); color: #fff; border-radius: 999px; padding: 2px 12px; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.dash-body { padding: 24px; display: grid; gap: 20px; background: var(--wash); }
.dash-student { display: flex; align-items: center; gap: 14px; }
.dash-student span { display: block; color: var(--ink-soft); font-size: .95rem; }
.dash-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--sky-deep); color: #fff; display: grid; place-items: center; font: 600 1.3rem var(--display); }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dash-tile, .dash-panel { background: var(--paper); border-radius: 18px; padding: 18px; border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.dash-label { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.dash-big { font: 600 2rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.dash-big.sm { font-size: 1.5rem; }
.dash-big.ok { color: var(--leaf-deep); }
.dash-small { color: var(--ink-soft); font-size: .9rem; }
.dash-tile .meter { max-width: none; height: 10px; }
.dash-tile .meter span { background: var(--sky); }
.dash-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.dash-panel h3 { font-size: 1.1rem; margin-bottom: 4px; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .98rem; font-variant-numeric: tabular-nums; }
.dash-table th { text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid var(--line); }
.dash-table th:last-child, .dash-table td:last-child { text-align: right; }
.dash-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.dash-remark { font-weight: 700; color: var(--ink); line-height: 1.5; }

.facility .icon { width: 72px; height: 72px; border-radius: 22px; }
.facility .icon svg { width: 36px; height: 36px; }

@media (max-width: 980px) {
  .portals { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .dash-grid, .dash-two { grid-template-columns: 1fr; }
  .dash-body { padding: 16px; }
}

/* WhatsApp: floating button (computers), links and phone bar icon */
.wa-icon { width: 20px; height: 20px; flex: none; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; }
.wa-link .wa-icon { color: #25d366; }
.action-bar a.wa svg.wa-icon { fill: currentColor; stroke: none; color: #128c4b; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 15px; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 14px 30px -10px rgba(18, 140, 75, .7); transition: transform .15s ease; }
.wa-float .wa-icon { width: 30px; height: 30px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s ease; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 180px; }
@media (max-width: 760px) { .wa-float { display: none; } }

/* =========================================================
   v5: login page, portal app, team page
   ========================================================= */
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Login */
.login-page { padding: 48px 0 80px; background:
  radial-gradient(circle at 8% 12%, var(--sun-wash) 0 16%, transparent 16.2%),
  radial-gradient(circle at 94% 80%, var(--sky-wash) 0 20%, transparent 20.2%), var(--paper); }
.login-card { display: grid; grid-template-columns: 1fr 1fr; max-width: 1040px; margin-inline: auto; background: var(--paper); border-radius: 32px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.login-side { position: relative; min-height: 100%; }
.login-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(24, 34, 65, .82)); }
.login-side-text { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; color: #fff; display: grid; gap: 6px; }
.login-side-title { font: 600 1.7rem/1.2 var(--display); }
.login-main { padding: 40px 40px 34px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.login-logo { width: 64px; height: 64px; }
.login-main h1 { font-size: 2.2rem; }
.login-sub { color: var(--ink-soft); }
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; background: var(--wash); padding: 6px; border-radius: 18px; }
.role-tab { border: 0; border-radius: 13px; padding: 10px 8px; font: 800 .92rem var(--body); color: var(--ink-soft); background: none; cursor: pointer; }
.role-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(24, 34, 65, .35); }
.role-tab[data-role="parent"][aria-selected="true"] { box-shadow: inset 0 -4px 0 var(--leaf), 0 4px 12px -6px rgba(24, 34, 65, .35); }
.role-tab[data-role="teacher"][aria-selected="true"] { box-shadow: inset 0 -4px 0 var(--coral), 0 4px 12px -6px rgba(24, 34, 65, .35); }
.role-tab[data-role="admin"][aria-selected="true"] { box-shadow: inset 0 -4px 0 var(--sun), 0 4px 12px -6px rgba(24, 34, 65, .35); }
.login-form { width: 100%; display: grid; gap: 14px; text-align: left; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 76px; }
.pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--wash); border-radius: 10px; padding: 7px 12px; font: 800 .85rem var(--body); color: var(--sky-deep); cursor: pointer; }
.login-error { color: var(--coral-deep); font-weight: 700; min-height: 1.4em; margin: -4px 0; }
.login-btn { width: 100%; padding: 15px; font-size: 1.05rem; }
.login-help { color: var(--ink-soft); font-size: .95rem; text-align: center; }
.demo-box { width: 100%; border: 2px dashed var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 8px; text-align: left; }
.demo-title { font-weight: 800; }
.demo-note { color: var(--ink-soft); font-size: .9rem; }
.demo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-acc { border: 0; border-radius: 12px; background: var(--wash); padding: 10px; text-align: left; cursor: pointer; display: grid; gap: 2px; font: 600 .82rem var(--body); color: var(--ink-soft); }
.demo-acc b { font-size: .95rem; color: var(--ink); }
.demo-acc:hover { background: var(--sky-wash); }

/* Portal app */
.portal-body { background: var(--wash); }
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.p-top .brand-mark { width: 40px; height: 40px; }
.p-top .brand-small { letter-spacing: .04em; text-transform: none; font-size: .8rem; }
.p-user { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.p-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-wash); color: var(--leaf); font-size: .7rem; }
[data-role="teacher"] .p-avatar { background: var(--coral-wash); color: var(--coral); }
[data-role="admin"] .p-avatar { background: var(--sun-wash); color: #ee3424; }
.p-demo { text-align: center; background: #fff3d1; color: #6e4b00; border-bottom: 1px solid #f2dca0; font-weight: 800; font-size: .9rem; padding: 6px 16px; }
.p-layout { flex: 1; display: grid; grid-template-columns: 240px 1fr; gap: 0; max-width: 1320px; width: 100%; margin-inline: auto; }
.p-side { padding: 24px 16px; display: grid; gap: 6px; align-content: start; position: sticky; top: 70px; align-self: start; }
.p-nav { text-align: left; border: 0; background: none; border-radius: 14px; padding: 12px 16px; font: 800 .98rem var(--body); color: var(--ink-soft); cursor: pointer; border-left: 4px solid transparent; }
.p-nav:hover { background: var(--paper); color: var(--ink); }
.p-nav.on { background: var(--paper); color: var(--ink); border-left-color: var(--leaf); box-shadow: 0 6px 16px -10px rgba(24, 34, 65, .35); }
[data-role="teacher"] .p-nav.on { border-left-color: var(--coral); }
[data-role="admin"] .p-nav.on { border-left-color: var(--sun); }
.p-main { padding: 28px 24px 60px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.p-main:focus { outline: none; }
.p-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.p-head p { color: var(--ink-soft); margin-top: 4px; }
.p-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-tiles.three { grid-template-columns: repeat(3, 1fr); }
.p-tile { background: var(--paper); border-radius: 20px; padding: 18px; border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.p-label { font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.p-big { font: 600 1.9rem/1.15 var(--display); font-variant-numeric: tabular-nums; }
.p-big.ok { color: var(--leaf-deep); }
.p-big.warn { color: #b07800; }
.p-big.bad { color: var(--coral-deep); }
.p-small { color: var(--ink-soft); font-size: .9rem; display: block; }
.p-panel { background: var(--paper); border-radius: 20px; padding: 20px; border: 1px solid var(--line); display: grid; gap: 12px; }
.p-panel.scroll { overflow-x: auto; display: block; }
.p-panel h3 { font-size: 1.15rem; }
.p-callout { background: var(--sky-wash); color: var(--sky-deep); border-radius: 14px; padding: 12px 16px; font-weight: 700; }
.p-callout.warn { background: var(--sun-wash); color: #a3170d; }
.p-quote { font-weight: 700; line-height: 1.55; }
.p-list { display: grid; gap: 12px; }
.p-row, .p-remark { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.p-remark { display: grid; gap: 6px; }
.p-table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 520px; }
.p-table th { text-align: left; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.p-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.p-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .82rem; background: var(--sky-wash); color: var(--sky-deep); }
.pill.ok { background: var(--leaf-wash); color: var(--leaf-deep); }
.pill.warn { background: var(--sun-wash); color: #a3170d; }
.pill.bad { background: var(--coral-wash); color: var(--coral-deep); }
.bar { display: block; height: 10px; border-radius: 999px; background: var(--wash); overflow: hidden; min-width: 90px; }
.bar i { display: block; height: 100%; background: var(--sky); border-radius: inherit; }
.bar.wide { width: 100%; }
.bar-cell { width: 30%; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { text-align: center; font-weight: 800; font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; }
.cal-d { border-radius: 12px; padding: 8px 4px; text-align: center; display: grid; gap: 2px; background: var(--wash); }
.cal-d b { font-size: .95rem; }
.cal-d span { font-size: .75rem; font-weight: 800; }
.cal-d.p { background: var(--leaf-wash); color: var(--leaf-deep); }
.cal-d.a { background: var(--coral-wash); color: var(--coral-deep); }
.cal-d.l { background: var(--sun-wash); color: #a3170d; }
.cal-d.off { background: none; color: #a6afc6; }
.cal-key { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.k { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: -6px; }
.k.p { background: var(--leaf-wash); } .k.a { background: var(--coral-wash); } .k.l { background: var(--sun-wash); } .k.off { background: var(--line); }
.tt th, .tt td { text-align: center; font-size: .88rem; }
.tt tbody th { text-align: left; color: var(--ink); font-size: .9rem; }
.tt-on { background: var(--sky-wash); color: var(--sky-deep); border-radius: 8px; }
.tt-free { color: var(--ink-soft); font-weight: 600; }
.tt-break { background: var(--sun-wash); color: #a3170d; font-weight: 800; }
.syl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.syl { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; counter-reset: ch; }
.syl li { display: flex; align-items: center; gap: 10px; background: var(--wash); border-radius: 12px; padding: 10px 12px; }
.syl input { width: 20px; height: 20px; accent-color: var(--leaf); flex: none; }
.syl label { font-weight: 600; cursor: pointer; }
.att-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-weight: 700; }
.att-row:last-child { border-bottom: 0; }
.seg { display: flex; gap: 4px; background: var(--wash); border-radius: 12px; padding: 4px; }
.seg-b { border: 0; background: none; border-radius: 9px; padding: 7px 12px; font: 800 .85rem var(--body); color: var(--ink-soft); cursor: pointer; }
.seg-b.P[aria-pressed="true"] { background: var(--leaf-deep); color: #fff; }
.seg-b.A[aria-pressed="true"] { background: var(--coral-deep); color: #fff; }
.seg-b.L[aria-pressed="true"] { background: #e9a100; color: #fff; }
.p-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.p-note { color: var(--leaf-deep); font-weight: 700; }
.p-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.p-form .btn { justify-self: start; }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.alert-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.alert-row input { width: 20px; height: 20px; accent-color: var(--sky-deep); }
.sms { background: #e3f8ea; border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-weight: 600; color: #0b4d2b; line-height: 1.5; }
.cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cam { position: relative; aspect-ratio: 16 / 10; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; color: #d7def0; text-align: left;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px), radial-gradient(circle at 50% 40%, #2c3a63, #121a33 75%); }
.cam.big { width: 100%; cursor: default; margin-bottom: 10px; }
.cam-icon { position: absolute; left: 50%; top: 45%; width: 42px; height: 42px; transform: translate(-50%, -50%); fill: none; stroke: rgba(215, 222, 240, .5); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cam-rec { position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 6px; font: 800 .75rem var(--body); letter-spacing: .08em; color: #fff; }
.cam-rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; animation: rec 1.2s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.cam-time { position: absolute; right: 12px; top: 10px; font: 700 .78rem ui-monospace, Consolas, monospace; color: #fff; font-variant-numeric: tabular-nums; }
.cam-name { position: absolute; left: 12px; right: 12px; bottom: 10px; font-weight: 800; font-size: .85rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.p-modal { position: fixed; inset: 0; z-index: 130; background: rgba(15, 21, 42, .7); display: none; align-items: center; justify-content: center; padding: 20px; }
.p-modal.open { display: flex; }
.p-modal-card { position: relative; background: var(--paper); border-radius: 24px; padding: 30px; width: min(720px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 12px; }
.p-modal-card .p-table { min-width: 0; }
.p-modal-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 1.1rem; background: var(--wash); }
#p-modal-body { display: grid; gap: 12px; }

@media (max-width: 980px) {
  .p-layout { grid-template-columns: 1fr; }
  .p-side { position: sticky; top: 64px; z-index: 10; display: flex; overflow-x: auto; gap: 6px; padding: 10px 12px; background: var(--wash); border-bottom: 1px solid var(--line); }
  .p-nav { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 9px 14px; }
  .p-nav.on { border-bottom-color: var(--leaf); }
  [data-role="teacher"] .p-nav.on { border-bottom-color: var(--coral); }
  [data-role="admin"] .p-nav.on { border-bottom-color: var(--sun); }
  .p-tiles { grid-template-columns: repeat(2, 1fr); }
  .p-form-grid { grid-template-columns: 1fr 1fr; }
  .p-two { grid-template-columns: 1fr; }
  .login-card { grid-template-columns: 1fr; max-width: 560px; }
  .login-side { min-height: 220px; }
}
@media (max-width: 560px) {
  .p-top { padding: 10px 14px; }
  .p-top .brand-small, #portal-user { display: none; }
  .p-main { padding: 20px 14px 50px; }
  .p-tiles, .p-tiles.three { grid-template-columns: 1fr 1fr; }
  .p-form-grid, .syl { grid-template-columns: 1fr; }
  .login-main { padding: 28px 20px; }
  .role-tab { font-size: .82rem; padding: 10px 4px; }
  .demo-list { grid-template-columns: 1fr; }
  .cal { gap: 3px; }
  .cal-d { padding: 6px 2px; }
}
@media (max-width: 760px) {
  .portal-body { padding-bottom: 0; }
}

/* Team page */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin-inline: auto; }
.leader { background: var(--paper); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); display: grid; justify-items: center; text-align: center; gap: 12px; border-top: 8px solid var(--sky); }
.leader.sun { border-top-color: var(--sun); }
.leader .principal-photo { width: 150px; }
.leader-role { font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-deep); }
.leader.sun .leader-role { color: #a3170d; }
.leader h3 { font-size: 1.5rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px 18px; display: grid; justify-items: center; text-align: center; gap: 8px; }
.member-photo { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--ink-soft); }
.member-photo svg { width: 44%; height: 44%; }
.member:nth-child(4n+1) .member-photo { background: var(--sun-wash); color: #a3170d; }
.member:nth-child(4n+2) .member-photo { background: var(--coral-wash); color: var(--coral-deep); }
.member:nth-child(4n+3) .member-photo { background: var(--sky-wash); color: var(--sky-deep); }
.member:nth-child(4n+4) .member-photo { background: var(--leaf-wash); color: var(--leaf-deep); }
.member h3 { font-size: 1.05rem; }
.member p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .leaders { grid-template-columns: 1fr; } .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* v6: approvals inbox, automations, homework */
.fee-call { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.p-callout.ok { background: var(--leaf-wash); color: var(--leaf-deep); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--coral-deep); color: #fff; font-size: .78rem; }
.hw-mini { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hw-mini:last-child { border-bottom: 0; }
.appr { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.appr:last-child { border-bottom: 0; }
.appr-main { display: grid; gap: 2px; }
.appr-amt { font: 600 1.3rem var(--display); font-variant-numeric: tabular-nums; }
.appr-btns { display: flex; gap: 8px; }
.rule { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; font-size: .92rem; }
.rule-opts select { font: 700 .92rem var(--body); padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); }
.chk { display: inline-flex; align-items: center; gap: 6px; }
.chk input { width: 18px; height: 18px; accent-color: var(--leaf); }
.switch { flex: none; width: 54px; height: 30px; border-radius: 999px; border: 0; background: var(--line); position: relative; cursor: pointer; transition: background .2s ease; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.switch[aria-checked="true"] { background: var(--leaf); }
.switch[aria-checked="true"] span { transform: translateX(24px); }
.bot-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bot-log li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--sky); font-weight: 600; }
.pay-preview { max-height: 180px; width: auto; border-radius: 12px; margin-top: 8px; border: 1px solid var(--line); }
@media (max-width: 560px) {
  .appr { grid-template-columns: 1fr auto; }
  .appr-btns, .appr > .pill { grid-column: 1 / -1; }
}

.dot.ink { background: var(--ink); }

/* v7: announcement bar, admissions pop-up, quick links, syllabus, apply form */
.announce { background: var(--ink); color: #fff; }
.announce[hidden] { display: none; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding-block: 6px; flex-wrap: wrap; text-align: center; }
.announce p { font-weight: 700; font-size: .95rem; }
.announce-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(238, 52, 36, .25); }
.announce-close { border: 0; background: none; color: #c9d2ea; font-size: 1rem; cursor: pointer; padding: 6px; border-radius: 8px; }
.announce-close:hover { color: #fff; }

.adm-pop { position: fixed; inset: 0; z-index: 140; background: rgba(15, 21, 42, .72); display: none; align-items: center; justify-content: center; padding: 20px; }
.adm-pop.open { display: flex; }
.adm-pop[hidden] { display: none !important; }
.adm-card { position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 28px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.adm-close { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 1.1rem; z-index: 2; }
.adm-top { background: linear-gradient(160deg, var(--sky-deep), #123e8c); color: #fff; text-align: center; padding: 30px 28px 26px; display: grid; justify-items: center; gap: 8px; }
.adm-top img { width: 72px; height: 72px; }
.adm-kicker { color: var(--sun); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.adm-top h2 { font-size: clamp(2rem, 6vw, 2.6rem); color: #fff; }
.adm-top p:last-child { color: #dce8ff; }
.adm-body { padding: 22px 24px 8px; display: grid; gap: 12px; }
.adm-deadline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border: 2px solid var(--sun); background: var(--sun-wash); border-radius: 16px; padding: 14px 16px; }
.adm-deadline span { font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #a3170d; }
.adm-deadline strong { font: 600 1.3rem var(--display); }
.adm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-tiles div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.adm-tiles span { font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.adm-tiles strong { font-size: 1.02rem; }
.adm-tiles small { color: var(--ink-soft); font-size: .85rem; }
.adm-note { color: var(--ink-soft); font-size: .98rem; }
.adm-note strong { color: var(--ink); }
.adm-link { display: inline-block; margin-top: 4px; background: var(--sun-wash); color: #a3170d; font-weight: 800; padding: 3px 12px; border-radius: 999px; text-decoration: none; }
.adm-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 24px 24px; border-top: 1px solid var(--line); margin-top: 10px; }
.adm-more { margin-left: auto; font-weight: 800; text-decoration: none; color: var(--sky-deep); }

.quick { padding: 0 0 56px; }
.quick-inner { background: var(--paper); border-radius: 24px; box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 22px 26px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; max-width: 1180px; }
.quick-title { font-size: 1.3rem; white-space: nowrap; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.quick-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--wash); color: var(--ink); text-decoration: none; font-weight: 800; font-size: .95rem; transition: background .15s ease; }
.quick-links a:hover { background: var(--sky-wash); color: var(--sky-deep); }
.quick-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quick-links a.quick-wa { background: #e3f8ea; color: #0b6b37; }
.quick-links a.quick-wa svg { fill: #25d366; stroke: none; }

.syl-draft { max-width: 820px; margin: 0 auto 28px; }
.class-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.class-tab { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 18px; font: 800 .95rem var(--body); color: var(--ink); cursor: pointer; }
.class-tab:hover { border-color: var(--sky); }
.class-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.class-panel { display: grid; gap: 22px; }
.class-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: center; background: var(--paper); border-radius: 24px; padding: 24px 28px; box-shadow: 0 0 0 1px var(--line); }
.class-head h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.class-test { background: var(--sun-wash); border-radius: 16px; padding: 14px 18px; display: grid; gap: 4px; color: #8f140b; }
.class-test strong { color: var(--ink); }
.subj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.subj { background: var(--paper); border-radius: 20px; padding: 22px; border: 1px solid var(--line); border-top: 6px solid var(--sun); display: grid; gap: 10px; align-content: start; }
.subj.coral { border-top-color: var(--coral); }
.subj.sky { border-top-color: var(--sky); }
.subj.leaf { border-top-color: var(--leaf); }
.subj ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-soft); }

.apply { max-width: 860px; margin-inline: auto; background: var(--paper); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 22px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: none; }
.stepper li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--wash); color: var(--ink-soft); font-weight: 800; }
.stepper b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-family: var(--display); }
.stepper li.on { background: var(--leaf-wash); color: var(--leaf-deep); }
.stepper li.on b { background: var(--leaf-deep); color: #fff; }
.ap-step { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.ap-step legend { font: 600 1.5rem var(--display); margin-bottom: 6px; padding: 0; }
.ap-step input[type="file"] { padding: 10px; font-size: .9rem; }
.ap-nav { display: flex; gap: 10px; justify-content: flex-end; }
.ap-review { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.ap-review div { background: var(--wash); border-radius: 12px; padding: 10px 14px; }
.ap-review dt { font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ap-review dd { margin: 2px 0 0; font-weight: 700; }
.ap-agree { font-weight: 700; align-items: flex-start; }
.ap-agree input { margin-top: 4px; }

@media (max-width: 980px) {
  .quick-inner { grid-template-columns: 1fr; text-align: center; }
  .quick-links { justify-content: center; }
  .subj-grid { grid-template-columns: repeat(2, 1fr); }
  .class-head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .adm-tiles, .ap-review { grid-template-columns: 1fr; }
  .adm-more { margin-left: 0; }
  .subj-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(4, 1fr); }
  .stepper span { display: none; }
  .stepper li { justify-content: center; }
  .apply { padding: 24px 18px; }
  .quick-links a { font-size: .88rem; padding: 9px 13px; }
}

.ap-step[hidden] { display: none; }
.pill { white-space: nowrap; }

/* =========================================================
   v8: register (ClasseViva-style) in the school theme
   ========================================================= */
.portal-body { background: #eef2f9; }
.pv { min-height: 100vh; display: grid; grid-template-columns: 264px 1fr; }
.pv-side { background: var(--ink); color: #dbe2f3; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.pv-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 8px; }
.pv-brand img { width: 44px; height: 44px; }
.pv-brand b { display: block; color: #fff; font: 600 1.15rem var(--display); }
.pv-brand span { font-size: .82rem; color: var(--sun); font-weight: 800; letter-spacing: .04em; }
.pv-close { display: none; margin-left: auto; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.pv-nav { display: grid; gap: 2px; }
.pv-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: #dbe2f3; font: 700 .97rem var(--body); text-align: left; cursor: pointer; }
.pv-item svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pv-item.on { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.pv-item.on svg { color: var(--coral-deep); }
.pv-badge { margin-left: auto; font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .78rem; display: grid; place-items: center; }
.pv-badge[hidden] { display: none; }
.pv-back { margin-top: auto; padding: 12px; color: #aeb9d6; text-decoration: none; font-weight: 700; font-size: .92rem; }
.pv-back:hover { color: var(--sun); }
.pv-main { min-width: 0; display: flex; flex-direction: column; }
.pv-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.pv-top h1 { font-size: 1.6rem; margin-right: auto; }
.pv-burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--wash); cursor: pointer; place-items: center; }
.pv-burger span, .pv-burger span::before, .pv-burger span::after { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); position: relative; }
.pv-burger span::before, .pv-burger span::after { content: ""; position: absolute; left: 0; }
.pv-burger span::before { top: -6px; }
.pv-burger span::after { top: 6px; }
.pv-install[hidden] { display: none; }
.pv-user { display: flex; align-items: center; gap: 10px; }
.pv-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #fff; font: 600 1.15rem var(--display); }
[data-role="teacher"] .pv-avatar { background: var(--coral); color: #fff; }
[data-role="admin"] .pv-avatar { background: var(--sky-deep); color: #fff; }
.pv-who b { display: block; font-size: .95rem; }
.pv-who small { color: var(--ink-soft); font-size: .8rem; }
.pv-logout { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--wash); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.pv-logout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-view { padding: 24px; display: grid; gap: 20px; align-content: start; max-width: 1400px; width: 100%; }
.pv-view:focus { outline: none; }
.pv-scrim { display: none; }
.pv-tabs { display: none; }
.p-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.p-tile.link { cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.p-tile.link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(24, 34, 65, .45); }
.p-panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.link-btn { border: 0; background: none; color: var(--sky-deep); font: 800 .9rem var(--body); cursor: pointer; padding: 4px; }
.up { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.up-d { flex: none; width: 54px; text-align: center; border-radius: 12px; background: var(--wash); padding: 6px 0; font-size: .75rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; }
.up-d b { display: block; font: 600 1.2rem var(--display); color: var(--ink); text-transform: none; }
.up .ev { flex: 1; }
.nb-row { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 12px; cursor: pointer; font: inherit; color: inherit; border-left: 4px solid transparent; }
.nb-row span { color: var(--ink-soft); font-size: .88rem; }
.nb-row.unread { background: var(--sun-wash); border-left-color: var(--sun); }
.nb-card { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: start; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; cursor: pointer; }
.nb-card:hover { border-color: var(--sky); }
.nb-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; background: var(--line); }
.nb-card.unread .nb-dot { background: var(--coral); }
.nb-txt { display: grid; gap: 4px; }
.nb-txt span { color: var(--ink-soft); font-size: .95rem; }
.nb-meta { text-align: right; color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
.gr-row { display: grid; grid-template-columns: 200px 1fr 220px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gr-s span { display: block; color: var(--ink-soft); font-size: .85rem; }
.gr-marks { display: flex; gap: 8px; flex-wrap: wrap; }
.gr-mark { display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 8px; border-radius: 12px; background: var(--sky-wash); color: var(--sky-deep); font: 600 1.05rem var(--display); }
.gr-mark small { font-size: .7rem; opacity: .75; }
.gr-mark.ok { background: var(--leaf-wash); color: var(--leaf-deep); }
.gr-mark.warn { background: var(--coral-wash); color: var(--coral-deep); }
.gr-avg { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.gr-key { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.gr-key .gr-mark { min-width: 32px; height: 28px; font-size: .85rem; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { border: 2px solid var(--line); background: var(--paper); border-radius: 10px; padding: 5px 10px; font: 800 .85rem var(--body); cursor: pointer; color: var(--ink); font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--leaf); background: var(--leaf-wash); }
.pay-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* Agenda */
.ag { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.ag-side { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 16px; position: sticky; top: 84px; }
.mc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mc-grid > span { font-size: .72rem; font-weight: 800; color: var(--ink-soft); padding: 4px 0; }
.mc-d { border: 0; background: none; border-radius: 50%; aspect-ratio: 1; font: 700 .85rem var(--body); color: var(--ink); cursor: pointer; position: relative; }
.mc-d:hover { background: var(--wash); }
.mc-d.out { color: #b3bccf; }
.mc-d.has::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--coral); }
.mc-d.today { color: var(--coral-deep); font-weight: 900; }
.mc-d.sel { background: var(--coral-deep); color: #fff; }
.mc-d.sel::after { background: #fff; }
.ag-legend { display: grid; gap: 6px; font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; }
.ag-legend b { color: var(--ink); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.lg.t-homework { background: var(--sun); } .lg.t-note { background: var(--sky); } .lg.t-event { background: var(--leaf); }
.ag-main { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 16px; min-width: 0; }
.ag-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.ag-nav { display: flex; gap: 6px; }
.ag-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); font: 800 1.2rem/1 var(--body); color: var(--ink); cursor: pointer; }
.ag-btn:hover, .ag-today:hover { border-color: var(--coral); color: var(--coral-deep); }
.ag-today { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0 16px; font: 800 .9rem var(--body); color: var(--ink); cursor: pointer; }
.ag-title { text-align: center; font-size: 1.4rem; }
.ag-views { display: flex; gap: 4px; background: var(--wash); padding: 4px; border-radius: 999px; }
.ag-view { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font: 800 .88rem var(--body); color: var(--ink-soft); cursor: pointer; }
.ag-view.on { background: var(--coral-deep); color: #fff; }
.ev { display: flex; gap: 6px; align-items: baseline; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--sun); background: var(--sun-wash); color: #8f140b; border-radius: 8px; padding: 5px 8px; margin: 2px 0; font: 700 .82rem/1.3 var(--body); cursor: pointer; overflow: hidden; }
.ev.t-note { border-left-color: var(--sky); background: var(--sky-wash); color: var(--sky-deep); }
.ev.t-event { border-left-color: var(--leaf); background: var(--leaf-wash); color: var(--leaf-deep); }
.ev:hover { filter: brightness(.97); }
.ev-time { font-variant-numeric: tabular-nums; opacity: .8; flex: none; }
.ev-title { overflow: hidden; text-overflow: ellipsis; }
.mo-h { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: 800; font-size: .8rem; color: var(--ink-soft); padding-bottom: 6px; }
.mo-g { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mo-d { min-height: 112px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.mo-d .ev-title { white-space: nowrap; }
.mo-d.out { background: #fafbfd; }
.mo-d.out .mo-n { color: #b3bccf; }
.mo-d.sun { background: #f7f8fb; }
.mo-n { border: 0; background: none; width: 30px; height: 30px; border-radius: 50%; font: 800 .88rem var(--body); color: var(--ink); cursor: pointer; }
.mo-d.today .mo-n { background: var(--coral-deep); color: #fff; }
.mo-more { border: 0; background: none; color: var(--sky-deep); font: 800 .78rem var(--body); cursor: pointer; padding: 2px 6px; }
.tl { display: grid; gap: 0; overflow-x: auto; }
.tl-row { display: grid; grid-template-columns: 60px repeat(var(--cols), minmax(140px, 1fr)); }
.tl-gut { font-size: .8rem; color: var(--ink-soft); font-weight: 700; padding: 6px 6px 6px 0; text-align: right; }
.tl-dayhead { position: sticky; top: 0; background: var(--paper); z-index: 2; }
.tl-dh { border: 0; background: none; padding: 8px; font: 700 .9rem var(--body); color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid var(--line); }
.tl-dh b { color: var(--ink); font-size: 1.05rem; }
.tl-dh.is-today { color: var(--coral-deep); border-bottom-color: var(--coral); }
.tl-allday { border-bottom: 2px solid var(--line); }
.tl-ad { padding: 4px; border-left: 1px solid var(--line); min-height: 40px; }
.tl-body { position: relative; }
.tl-hours { position: relative; height: 512px; padding: 0; }
.tl-h { position: absolute; left: 0; right: 0; height: 64px; border-top: 1px solid var(--line); }
.tl-h span { display: block; padding: 2px 6px 0 0; text-align: right; font-weight: 800; color: var(--ink); }
.tl-col { position: relative; height: 512px; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 64px); }
.tl-col.is-today { background-color: #fff6f4; }
.tl-ev { position: absolute; display: flex; }
.tl-ev .ev { margin: 0; height: 100%; flex-direction: column; gap: 2px; align-items: flex-start; }
.tl-ev .ev-title { white-space: normal; }
.li { display: grid; gap: 14px; }
.li-day h3 { font-size: 1.05rem; margin-bottom: 6px; }
.li-day .ev { font-size: .95rem; padding: 8px 12px; }

/* Phones and tablets */
@media (max-width: 1100px) {
  .pv { grid-template-columns: 1fr; }
  .pv-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .25s ease; box-shadow: 10px 0 40px rgba(0, 0, 0, .3); }
  .pv.menu-open .pv-side { transform: none; }
  .pv-close { display: grid; place-items: center; }
  .pv.menu-open .pv-scrim { display: block; position: fixed; inset: 0; background: rgba(15, 21, 42, .5); z-index: 35; }
  .pv-burger { display: grid; }
  .ag { grid-template-columns: 1fr; }
  .ag-side { position: static; grid-template-columns: 1fr 1fr; }
  .ag-legend, .ag-side .btn { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .pv-top { padding: 10px 14px; gap: 10px; }
  .pv-top h1 { font-size: 1.25rem; }
  .pv-who { display: none; }
  .pv-view { padding: 16px 12px 110px; gap: 16px; }
  .pv-tabs { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px -16px rgba(24, 34, 65, .5); }
  .pv-tab { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; font: 800 .68rem var(--body); color: var(--ink-soft); cursor: pointer; }
  .pv-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .pv-tab.on { color: var(--coral-deep); background: var(--coral-wash); }
  .ag-side { grid-template-columns: 1fr; }
  .ag-bar { grid-template-columns: 1fr; justify-items: center; }
  .mo-d { min-height: 64px; padding: 2px; }
  .mo-d .ev { padding: 0; height: 6px; border-left-width: 0; margin: 2px 0; }
  .mo-d .ev span { display: none; }
  .gr-row { grid-template-columns: 1fr; gap: 8px; }
  .nb-card { grid-template-columns: 12px 1fr; }
  .nb-meta { grid-column: 2; text-align: left; }
  .tl-row { grid-template-columns: 46px repeat(var(--cols), minmax(120px, 1fr)); }
  .p-demo { font-size: .8rem; }
}

.adm-facts { max-width: 900px; margin-inline: auto; grid-template-columns: repeat(4, 1fr); }
.adm-facts div { background: var(--paper); }
.fee-table { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 1.05rem; }
.fee-table th { text-align: left; padding: 10px 0; }
.fee-table td { padding: 10px 0; color: var(--ink-soft); }
.fee-table td:nth-child(2) { font: 600 1.4rem var(--display); color: var(--ink); }
.fee-table tr + tr { border-top: 1px solid var(--line); }
.fee-card .pay-list { text-align: left; }
@media (max-width: 760px) { .adm-facts { grid-template-columns: 1fr 1fr; } }

@media (max-width: 1100px) { .ag-main { order: -1; } }
@media (max-width: 760px) { .ag-side .mc { display: none; } }

/* Branches */
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1060px; }
.branch { background: var(--paper); border-radius: 26px; padding: 30px; border-top: 8px solid var(--sky); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 14px; align-content: start; transition: box-shadow .2s ease; }
.branch.coral { border-top-color: var(--coral); }
.branch.is-near { box-shadow: 0 0 0 3px var(--leaf), var(--shadow); }
.branch-top { display: flex; gap: 8px; flex-wrap: wrap; }
.branch-tag, .branch-near { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: var(--sky-wash); color: var(--sky-deep); }
.branch.coral .branch-tag { background: var(--coral-wash); color: var(--coral-deep); }
.branch-near { background: var(--leaf); color: #fff; }
.branch-near[hidden], .branch-dist[hidden] { display: none; }
.branch h2 { font-size: 2.2rem; }
.branch-addr { color: var(--ink-soft); font-size: 1.1rem; }
.branch-dist { font-weight: 800; color: var(--leaf-deep); }
.branch-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.branch-info li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.branch-info b { color: var(--ink-soft); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.branch-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.br-status { font-weight: 700; color: var(--sky-deep); min-height: 1.5em; }
@media (max-width: 760px) { .branches { grid-template-columns: 1fr; } .branch { padding: 24px 20px; } }

.cta-box a:not(.btn) { color: #fff; font-weight: 800; }

/* =========================================================
   v9: logo palette fixes (text on red is white; warnings stay amber)
   ========================================================= */
.step::before { color: #fff; }
.action-bar a.book { color: #fff; }
.pill.warn { background: #fff1cf; color: #7a5200; }
.p-callout.warn { background: #fff4d6; color: #6e4b00; }
.p-big.warn { color: #b57a00; }
.cal-d.l { background: #fff1cf; color: #7a5200; }
.k.l { background: #fff1cf; }
.brand-mark { width: auto; height: 50px; }
.brand-word { height: 34px; width: auto; display: block; }
.brand-text { display: none; }
.footer-brand .footer-logo { background: #fff; border-radius: 16px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .footer-logo img { height: 46px; width: auto; }
.footer-brand .footer-logo img.fw { height: 30px; }
.loader-mark { width: 120px; height: auto; }
.login-logo { width: auto; height: 84px; }
.pv-brand img { width: auto; height: 40px; background: #fff; border-radius: 10px; padding: 3px 5px; }
@media (max-width: 560px) { .brand-word { height: 26px; } .brand-mark { height: 40px; } }
@media (max-width: 380px) { .brand-word { display: none; } }

/* v10: teacher class picker, registers, documents */
.p-modal.wide .p-modal-card { max-width: min(1180px, 96vw); width: 96vw; }
.doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding-right: 72px; }
.doc-bar h2 { margin: 0; font-size: 1.3rem; }
.doc-view { max-height: 72vh; overflow: auto; background: #e9ebf1; border-radius: 12px; padding: 14px; }
.doc-view .sd-page { margin: 0 auto 14px; box-shadow: 0 4px 18px rgba(0,0,0,.15); }
.p-head-x { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rc-btns, .row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cls-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cls-chip { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 16px; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.cls-chip b { font-family: var(--display, inherit); font-size: 1.1rem; }
.cls-chip span { color: var(--ink-soft); font-size: .88rem; }
.cls-chip:hover { border-color: var(--sky); }
.cls-chip.on { border-color: var(--sky-deep); background: var(--sky-wash); box-shadow: 0 0 0 3px rgba(29,54,168,.12); }
.cls-tabs { display: flex; gap: 6px; background: var(--wash); border: 1px solid var(--line); border-radius: 14px; padding: 5px; margin-bottom: 16px; overflow-x: auto; }
.cls-tab { flex: 1; border: 0; background: none; border-radius: 10px; padding: 10px 14px; font: 800 .95rem var(--body, inherit); color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.cls-tab.on { background: #fff; color: var(--sky-deep); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cls-body > * + * { margin-top: 14px; }
.att-tools { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.roll { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; background: var(--wash); color: var(--ink-soft); font-size: .8rem; margin-right: 10px; }
.gr-entry { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 16px; margin: 14px 0; }
.gr-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
.gr-in input { width: 74px; padding: 8px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; text-align: center; }
.gr-in input:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.hw-for { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hw-for legend { font-weight: 800; margin-bottom: 6px; }
.hw-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; background: var(--wash); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.hw-pick[hidden] { display: none; }
.filters-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 14px 16px; }
.filters-row .field { flex: 1 1 200px; margin: 0; }
.field-inline { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.field-inline input { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.rz-mini { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rz-mini b { min-width: 64px; }
.rz-mini > span:not(.pill) { flex: 1; color: var(--ink-soft); font-size: .92rem; }
.rz-row { cursor: pointer; }
.rz-row:hover td { background: var(--sky-wash); }
.rc-total td { background: var(--wash); font-weight: 800; }
.exam-t td, .exam-t th { white-space: nowrap; }
.exam-t td:nth-child(3) { white-space: normal; min-width: 130px; }
.fee-rp td { background: #fff8e6; }
.arrears { color: var(--coral-deep); font-weight: 800; cursor: help; }
@media (max-width: 640px) {
  .cls-chips { grid-template-columns: 1fr; }
  .gr-entry { grid-template-columns: 1fr; }
  .doc-view { max-height: 64vh; padding: 8px; }
  .doc-view .sd-page { zoom: .42; }
}

/* v11: school helper (chat assistant) in the register */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bot-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--sky-deep); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(19, 41, 143, .7); transition: transform .15s ease; }
.bot-fab:hover { transform: translateY(-2px); }
.bot-fab:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.bot-fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bot-fab.on { background: var(--ink); }
.bot-dot { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: #fff; font: 800 .75rem/22px var(--body, inherit); border: 2px solid #fff; }
.bot-dot[hidden] { display: none; }
.bot-box { position: fixed; right: 22px; bottom: 92px; z-index: 95; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: var(--paper, #fff); border-radius: 22px; box-shadow: 0 24px 60px -18px rgba(24, 34, 65, .55), 0 0 0 1px var(--line); display: flex; flex-direction: column; overflow: hidden; }
.bot-box[hidden] { display: none; }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sky-deep); color: #fff; }
.bot-head div { flex: 1; display: grid; }
.bot-head small { opacity: .8; font-size: .8rem; }
.bot-ava { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; }
.bot-ava svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bot-x { border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.bot-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--wash); }
.bot-msg { max-width: 88%; padding: 10px 12px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.bot-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.bot-msg.me { background: var(--sky-deep); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.bot-msg ul { margin: 6px 0; padding-left: 18px; }
.bot-msg li { margin: 3px 0; }
.bot-msg hr { border: 0; border-top: 1px dashed var(--line); margin: 8px 0; }
.bot-go { display: inline-block; margin: 6px 6px 0 0; border: 0; border-radius: 999px; background: var(--sky-wash); color: var(--sky-deep); font: 800 .82rem var(--body, inherit); padding: 6px 12px; cursor: pointer; }
.bot-go:hover { background: var(--sky-deep); color: #fff; }
.bot-sugs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--line); background: #fff; }
.bot-sug { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 11px; font: 700 .8rem var(--body, inherit); color: var(--ink); cursor: pointer; white-space: nowrap; }
.bot-sug:hover { border-color: var(--sky); color: var(--sky-deep); }
.bot-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.bot-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; }
.bot-form input:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.bot-send { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--sky-deep); color: #fff; cursor: pointer; display: grid; place-items: center; }
.bot-send svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 760px) {
  .bot-fab { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .bot-box { right: 8px; left: 8px; width: auto; bottom: calc(140px + env(safe-area-inset-bottom, 0px)); height: min(520px, calc(100vh - 170px)); }
}
.bot-msg ul { list-style: disc; }
.bot-msg li { border: 0; padding: 0; background: none; }
.bot-msg li::before { content: none; display: none; }
.bot-sugs { scrollbar-width: none; }
.bot-sugs::-webkit-scrollbar { display: none; }
.bot-msg li { display: list-item; }
.bot-msg .bot-go { display: inline-block; width: auto; }

/* v12: Urdu for parents, classes & timetable editor */
.pv-lang { border: 1.5px solid var(--line); background: #fff; color: var(--sky-deep); border-radius: 999px; padding: 6px 14px; font: 700 1rem 'Noto Nastaliq Urdu', var(--body, sans-serif); cursor: pointer; line-height: 1.6; }
.pv-lang[lang="en"] { font-family: var(--body, sans-serif); font-size: .9rem; }
.pv-lang:hover { border-color: var(--sky); }
.pv.ur .pv-view, .pv.ur .pv-view h2, .pv.ur .pv-view h3, .pv.ur .pv-view .p-big, .pv.ur .pv-view button, .pv.ur .pv-nav, .pv.ur .pv-tabs, .pv.ur #pv-title { font-family: 'Nunito', 'Noto Nastaliq Urdu', sans-serif; }
.pv.ur .pv-view { line-height: 2; }
.pv.ur .pv-view .p-label { letter-spacing: 0; text-transform: none; }
.pv.ur .pv-view .p-table th, .pv.ur .pv-view .p-table td { text-align: right; }
.pv.ur .pv-view .p-table .num { text-align: left; }
.pv.ur .pv-item span, .pv.ur .pv-tab span { line-height: 2; }
.staff-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.staff-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--sky-wash); color: var(--sky-deep); border-radius: 999px; padding: 6px 8px 6px 14px; font-weight: 700; }
.staff-chip button { border: 0; background: rgba(19, 41, 143, .12); color: inherit; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: .75rem; }
.staff-form { display: flex; gap: 8px; flex-wrap: wrap; }
.staff-form input { flex: 1 1 180px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.tt-edit td { padding: 4px; }
.tt-sel { width: 100%; min-width: 110px; padding: 7px 6px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; background: #fff; }
.tt-sel:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.field-inline select { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }

/* v13: learning games, homework materials */
.gm-level { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.gm-level > div:first-child { display: grid; gap: 2px; }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.gm-tile { background: #fff; border-radius: 20px; padding: 20px; border: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.gm-tile h3 { margin: 6px 0 0; }
.gm-tile p { margin: 0; }
.gm-tile .btn { margin-top: auto; }
.gm-ic { font: 700 1.3rem var(--display, inherit); border-radius: 14px; padding: 10px 14px; letter-spacing: .05em; }
.gm-tile.sky .gm-ic { background: var(--sky-wash); color: var(--sky-deep); }
.gm-tile.leaf .gm-ic { background: var(--leaf-wash); color: var(--leaf-deep); }
.gm-tile.coral .gm-ic { background: var(--coral-wash); color: var(--coral-deep); }
.gm-note { margin-top: 4px; }
.gm-card { max-width: 760px; margin: 0 auto; width: 100%; }
.gm-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gm-top b { flex: 1; font-size: 1.1rem; }
.gm-progress { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-bottom: 18px; }
.gm-progress i { height: 8px; border-radius: 99px; background: var(--line); }
.gm-progress i.d { background: var(--leaf); }
.gm-progress i.n { background: var(--sky); }
.gm-q { text-align: center; font: 700 clamp(1.8rem, 6vw, 2.8rem) var(--display, inherit); color: var(--ink); min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.gm-q b { color: var(--sun); }
.gm-ask { font: 700 1.05rem var(--body, inherit); color: var(--ink-soft); margin: 4px 0 0; }
.gm-dots { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 260px; }
.gm-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); display: inline-block; }
.gm-dot.b { background: var(--sky); }
.gm-seq { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gm-seq > * { min-width: 64px; padding: 8px 10px; border-radius: 14px; background: var(--wash); border: 2px solid var(--line); }
.gm-seq .gm-gap { background: var(--sun-wash); border: 2px dashed var(--sun); color: var(--sun); }
.gm-ch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.gm-c { border: 2.5px solid var(--line); background: #fff; border-radius: 18px; padding: 18px 10px; font: 700 1.6rem var(--display, inherit); color: var(--ink); cursor: pointer; min-height: 76px; display: flex; align-items: center; justify-content: center; transition: transform .1s ease, border-color .1s; }
.gm-c:hover:not([disabled]) { border-color: var(--sky); transform: translateY(-2px); }
.gm-c.ok { background: var(--leaf-wash); border-color: var(--leaf); color: var(--leaf-deep); }
.gm-c.bad { background: var(--coral-wash); border-color: var(--coral); color: var(--coral-deep); }
.gm-c.dim { opacity: .45; }
.gm-c[disabled] { cursor: default; }
.gm-fb { text-align: center; font-weight: 800; margin: 14px 0 0; min-height: 1.5em; }
.gm-end { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 10px 0; }
.gm-stars { display: flex; gap: 8px; font-size: 3rem; line-height: 1; }
.gm-star { color: var(--line); }
.gm-star.on { color: #f4b400; }
.gm-score { font: 700 2.4rem var(--display, inherit); margin: 0; }
.gm-endbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.mats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mat { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 10px; background: var(--sky-wash); color: var(--sky-deep); font-weight: 700; font-size: .85rem; text-decoration: none; }
.mat:hover { background: var(--sky-deep); color: #fff; }
.mat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.mat small { opacity: .7; font-weight: 600; }
.mat.link { background: var(--leaf-wash); color: var(--leaf-deep); }
.mat.link:hover { background: var(--leaf-deep); color: #fff; }
.hw-mat { margin-top: 4px; }
.hw-mat small { color: var(--ink-soft); font-size: .8rem; }
@media (max-width: 560px) { .gm-c { font-size: 1.3rem; min-height: 64px; } .gm-seq > * { min-width: 48px; } }

/* =========================================================
   v14: office theme for the Principal and teachers
   (calm, clear, built for daily work; parents keep the bright school look)
   ========================================================= */
body.office {
  --body: "Inter", "Segoe UI", system-ui, sans-serif; --display: "Inter", "Segoe UI", system-ui, sans-serif;
  --ink: #161a23; --ink-soft: #586074; --line: #e4e7ee; --wash: #f2f4f8;
  --o-bg: #f4f6fa; --o-mute: #858da0; --o-pri: #1d36a8; --o-pri-h: #162b8c; --o-pri-w: #edf0fc;
  --o-ok: #1f8a4c; --o-ok-w: #e5f3eb; --o-warn: #a86400; --o-warn-w: #fff3dc; --o-bad: #d42a1c; --o-bad-w: #fdecea;
  background: var(--o-bg); -webkit-font-smoothing: antialiased;
}
.office h1, .office h2, .office h3 { font-family: var(--body); letter-spacing: -.015em; }
.office kbd { font: 500 .7rem var(--body); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); box-shadow: 0 1px 0 var(--line); }

/* sidebar */
.office .pv { grid-template-columns: 244px 1fr; }
.office .pv-side { background: #11141b; padding: 16px 12px; gap: 1px; }
.office .pv-brand { padding: 2px 6px 14px; margin-bottom: 2px; border-color: rgba(255, 255, 255, .07); }
.office .pv-brand b { font: 650 1rem var(--body); letter-spacing: -.01em; }
.office .pv-brand span { color: #8a93a8; font-weight: 500; font-size: .78rem; letter-spacing: 0; }
.pv-group { margin: 16px 10px 5px; font: 600 .68rem var(--body); letter-spacing: .09em; text-transform: uppercase; color: #646d82; }
.office .pv-nav { gap: 1px; }
.office .pv-item { position: relative; padding: 8px 10px; border-radius: 8px; font: 500 .9rem var(--body); color: #b6bdcc; gap: 11px; }
.office .pv-item svg { width: 18px; height: 18px; stroke-width: 1.8; }
.office .pv-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.office .pv-item.on { background: rgba(255, 255, 255, .09); color: #fff; box-shadow: none; }
.office .pv-item.on::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sun); }
.office .pv-item.on svg { color: #fff; }
.office .pv-badge { background: var(--sun); font: 600 .7rem var(--body); height: 19px; min-width: 19px; }
.office .pv-back { font: 500 .84rem var(--body); color: #8a93a8; }

/* top bar */
.office .pv-top { padding: 10px 24px; gap: 12px; min-height: 64px; }
.office .pv-top h1 { font: 650 1.12rem var(--body); margin-right: 8px; }
.pv-search { display: flex; align-items: center; gap: 10px; margin-left: auto; width: min(380px, 34vw); height: 40px; padding: 0 8px 0 12px; border: 1px solid var(--line); background: var(--wash); border-radius: 10px; color: var(--o-mute); font: 400 .88rem var(--body); cursor: pointer; text-align: left; }
.pv-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.pv-search span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pv-search:hover { border-color: #cdd3e1; background: #fff; }
.pv-date { display: grid; text-align: right; line-height: 1.25; padding: 0 10px; border-right: 1px solid var(--line); }
.pv-date b { font: 600 .86rem var(--body); }
.pv-date small { color: var(--o-mute); font-size: .74rem; }
.office .pv-avatar { width: 36px; height: 36px; font: 600 .95rem var(--body); }
.office .pv-who b { font: 600 .86rem var(--body); }
.office .pv-who small { font-size: .75rem; }
.office .pv-logout { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.office .p-demo { font: 500 .78rem var(--body); padding: 5px 16px; background: #fff8e6; color: #7a5a12; border-color: #f1e2b6; }
.office .pv-view { padding: 24px 28px 48px; gap: 18px; max-width: 1480px; }

/* dashboard header and quick actions */
.o-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.o-date { font: 600 .74rem var(--body); color: var(--o-mute); text-transform: uppercase; letter-spacing: .07em; margin: 0 0 4px; }
.o-head h2 { font: 650 1.55rem/1.2 var(--body); }
.o-sub { color: var(--ink-soft); margin: 4px 0 0; font-size: .93rem; }
.o-sub b { color: var(--ink); }
.qa { display: flex; gap: 8px; flex-wrap: wrap; }
.qa-b { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font: 500 .86rem var(--body); color: var(--ink); cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); white-space: nowrap; }
.qa-b svg { width: 17px; height: 17px; fill: none; stroke: var(--o-pri); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.qa-b:hover { border-color: #c6cddd; background: #fafbff; }

/* number cards */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { position: relative; display: grid; gap: 3px; align-content: start; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font: inherit; color: inherit; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); min-width: 0; }
.kpi.link { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kpi.link:hover { border-color: #c6cddd; box-shadow: 0 6px 18px -8px rgba(16, 24, 40, .18); }
.kpi-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--o-pri-w); color: var(--o-pri); margin-bottom: 10px; }
.kpi-ic svg, .td-ic svg, .td-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kpi-ic.ok, .kpi-ic.green { background: var(--o-ok-w); color: var(--o-ok); }
.kpi-ic.warn { background: var(--o-warn-w); color: var(--o-warn); }
.kpi-ic.red { background: var(--o-bad-w); color: var(--o-bad); }
.kpi-l { font: 500 .82rem var(--body); color: var(--ink-soft); }
.kpi-v { font: 650 1.6rem/1.2 var(--body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-v small { font-size: .85rem; font-weight: 500; color: var(--o-mute); letter-spacing: 0; }
.kpi-s { font-size: .79rem; color: var(--o-mute); }
.kpi-bar { display: block; height: 6px; border-radius: 99px; background: var(--wash); overflow: hidden; margin: 5px 0 3px; }
.kpi-bar i { display: block; height: 100%; border-radius: inherit; background: var(--o-pri); }
.kpi-bar i.green, .kpi-bar i.ok { background: var(--o-ok); }
.kpi-bar i.warn { background: #e9a100; }
.spark { position: absolute; right: 18px; top: 22px; width: 92px; height: 30px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--o-ok); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* cards and grids */
.og { display: grid; gap: 14px; align-items: start; }
.og.g-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.oc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); min-width: 0; }
.oc.flush { padding: 0; overflow: hidden; }
.oc-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 32px; flex-wrap: wrap; }
.oc-h h3 { font: 600 .98rem var(--body); display: flex; align-items: center; gap: 8px; }
.o-count { font-style: normal; background: var(--o-bad); color: #fff; font: 600 .7rem var(--body); min-width: 20px; height: 20px; border-radius: 99px; display: inline-grid; place-items: center; padding: 0 6px; }
.o-legend { font-size: .77rem; color: var(--o-mute); }
.obtn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font: 500 .84rem var(--body); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.obtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.obtn:hover { border-color: #c1c8d9; background: #f8f9fc; }
.obtn.pri { background: var(--o-pri); border-color: var(--o-pri); color: #fff; }
.obtn.pri:hover { background: var(--o-pri-h); }

/* to-do list */
.otodo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.td { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.td-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--o-warn-w); color: var(--o-warn); }
.td.bad { border-color: #f4cdc9; background: #fffbfa; }
.td.bad .td-ic { background: var(--o-bad-w); color: var(--o-bad); }
.td.info .td-ic { background: var(--o-pri-w); color: var(--o-pri); }
.td-t b { display: block; font: 600 .91rem/1.35 var(--body); }
.td-t small { display: block; color: var(--ink-soft); font-size: .81rem; margin-top: 2px; line-height: 1.45; }
.td.done { padding: 7px 12px; border-style: dashed; background: transparent; }
.td.done .td-ic { width: 22px; height: 22px; border-radius: 50%; background: var(--o-ok-w); color: var(--o-ok); justify-self: center; }
.td.done .td-ic svg { width: 13px; height: 13px; stroke-width: 2.6; }
.td.done b { font-weight: 500; color: var(--ink-soft); font-size: .85rem; }
.td-all { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 11px; background: var(--o-ok-w); color: #145c33; font-size: .9rem; }

/* charts */
.dn-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; padding: 4px 0; }
.dn { position: relative; width: 164px; height: 164px; flex: none; }
.dn svg { width: 100%; height: 100%; }
.dn-bg { fill: none; stroke: #edf0f5; stroke-width: 5; }
.dn-s { fill: none; stroke-width: 5; }
.dn-s.ok { stroke: var(--o-ok); } .dn-s.mid { stroke: #e9a100; }
.dn-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dn-c b { font: 700 1.65rem var(--body); letter-spacing: -.02em; }
.dn-c span { font-size: .77rem; color: var(--o-mute); }
.dn-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; min-width: 210px; flex: 1; }
.dn-key li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; font-size: .85rem; color: var(--ink-soft); }
.dn-key i { width: 10px; height: 10px; border-radius: 3px; background: #e6e9f0; }
.dn-key i.ok { background: var(--o-ok); } .dn-key i.mid { background: #e9a100; }
.dn-key b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.lc { padding: 2px 4px 0 36px; }
.lc-plot { position: relative; height: 196px; margin: 8px 8px 0; }
.lc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc-area { fill: rgba(29, 54, 168, .07); }
.lc-line { fill: none; stroke: var(--o-pri); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.lc-g { position: absolute; left: -8px; right: -8px; border-top: 1px dashed #e1e5ed; }
.lc-g em { position: absolute; right: 100%; top: -.62em; padding-right: 8px; font: 500 .71rem var(--body); font-style: normal; color: var(--o-mute); }
.lc-pt { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; border: 2px solid var(--o-pri); z-index: 1; }
.lc-pt.last { background: var(--o-pri); }
.lc-pt:hover, .lc-pt:focus { box-shadow: 0 0 0 5px rgba(29, 54, 168, .16); outline: none; z-index: 3; }
.lc-pt:hover::after, .lc-pt:focus::after { content: attr(data-tip); position: absolute; bottom: 170%; left: 50%; transform: translateX(-50%); background: #11141b; color: #fff; font: 500 .74rem var(--body); padding: 5px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.lc-x { position: relative; height: 22px; margin: 6px 8px 0; }
.lc-x span { position: absolute; top: 2px; transform: translateX(-50%); font: 500 .71rem var(--body); color: var(--o-mute); }
.hb { display: grid; gap: 2px; }
.hb-row { display: grid; grid-template-columns: 74px 1fr 50px; gap: 10px; align-items: center; padding: 5px 6px; border: 0; background: none; border-radius: 7px; font: inherit; color: inherit; text-align: left; width: 100%; }
button.hb-row { cursor: pointer; }
button.hb-row:hover { background: var(--wash); }
.hb-l { font: 500 .83rem var(--body); white-space: nowrap; }
.hb-t { height: 8px; background: #edf0f5; border-radius: 99px; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: inherit; background: var(--o-ok); }
.hb-t i.mid { background: #e9a100; } .hb-t i.low { background: var(--o-bad); }
.hb-r { text-align: right; font: 500 .8rem var(--body); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* tables */
.o-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.o-table th { text-align: left; font: 600 .7rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--o-mute); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfc; }
.o-table td { padding: 9px 10px; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
.o-table tbody tr:last-child td { border-bottom: 0; }
.o-table td small { display: block; color: var(--o-mute); font-size: .75rem; }
.o-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.o-table tr.rz-row:hover td, .o-table tr.st-row:hover td { background: #f6f8fd; cursor: pointer; }
.rzt td:first-child b { font-weight: 600; }
.rzt .mbar { width: 100%; min-width: 70px; }
.mbar { display: inline-block; vertical-align: middle; height: 7px; width: 90px; background: #edf0f5; border-radius: 99px; overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--o-ok); border-radius: inherit; }
.mbar i.low { background: #e9a100; }
.zero { color: #b5bccb; }
.scroll { overflow-x: auto; }
.empty { text-align: center; color: var(--o-mute); padding: 32px !important; }
.nm { border: 0; background: none; padding: 0; font: 600 1em var(--body); color: var(--ink); cursor: pointer; text-align: left; }
.nm:hover { color: var(--o-pri, #1d36a8); text-decoration: underline; }

/* lists on the dashboards */
.lsn, .watch, .feed { list-style: none; margin: 0; padding: 0; display: grid; }
.lsn li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef0f4; }
.lsn li:last-child { border-bottom: 0; }
.lsn-t { display: grid; font-size: .74rem; color: var(--o-mute); font-variant-numeric: tabular-nums; }
.lsn-t b { font: 600 .9rem var(--body); color: var(--ink); }
.lsn-n b { display: block; font-weight: 600; font-size: .91rem; }
.lsn-n small { color: var(--ink-soft); font-size: .8rem; }
.watch { gap: 2px; }
.watch button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.watch button:hover { background: var(--wash); }
.watch b { display: block; font-weight: 600; font-size: .89rem; }
.watch small { color: var(--o-mute); font-size: .77rem; }
.watch em { font: 600 .9rem var(--body); font-style: normal; color: var(--o-ok); font-variant-numeric: tabular-nums; }
.watch em.low { color: var(--o-warn); }
.feed li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; padding: 7px 0; position: relative; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--o-pri); margin-top: 6px; box-shadow: 0 0 0 3px var(--o-pri-w); }
.feed li:not(:last-child)::before { content: ""; position: absolute; left: 3.5px; top: 22px; bottom: -8px; width: 1px; background: var(--line); }
.feed p { margin: 0; font-size: .87rem; line-height: 1.45; }
.feed small { color: var(--o-mute); font-size: .75rem; }

/* avatars */
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font: 600 .76rem var(--body); object-fit: cover; letter-spacing: .02em; }
.av.big { width: 64px; height: 64px; font-size: 1.25rem; }
.av.a0 { background: #e7ebfb; color: #1d36a8; } .av.a1 { background: #e2f1e8; color: #1f6e3f; } .av.a2 { background: #fde8e6; color: #b3241a; }
.av.a3 { background: #eaecf2; color: #3b4357; } .av.a4 { background: #fff0d6; color: #8c5408; }

/* students page */
.st-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; }
.st-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.st-search svg { width: 17px; height: 17px; fill: none; stroke: var(--o-mute); stroke-width: 2; stroke-linecap: round; flex: none; }
.st-search input { border: 0; background: none; font: 400 .92rem var(--body); flex: 1; min-width: 0; outline: none; color: var(--ink); }
.st-search:focus-within { border-color: var(--o-pri); background: #fff; box-shadow: 0 0 0 3px rgba(29, 54, 168, .12); }
.st-filters select { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: 500 .89rem var(--body); background: #fff; color: var(--ink); }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: 500 .83rem var(--body); color: var(--ink-soft); cursor: pointer; }
.fchip:hover { border-color: #c1c8d9; }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-t th:first-child, .st-t td:first-child { padding-left: 18px; }
.st-t td { padding-top: 8px; padding-bottom: 8px; }
.st-n { display: flex; align-items: center; gap: 10px; }
.st-n b { font-weight: 600; display: block; }
.w5 { font-weight: 500; display: block; }
.att-c { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-size: .84rem; }
.att-c .mbar { width: 70px; }
.st-more { padding: 12px; text-align: center; border-top: 1px solid var(--line); }

/* search (Ctrl K) */
.cmdk { position: fixed; inset: 0; z-index: 150; background: rgba(12, 15, 22, .45); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk-card { width: min(620px, 100%); background: #fff; border-radius: 14px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .4); overflow: hidden; font-family: var(--body); }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); height: 56px; }
.cmdk-in svg { width: 19px; height: 19px; fill: none; stroke: var(--o-mute); stroke-width: 2; stroke-linecap: round; flex: none; }
.cmdk-in input { flex: 1; border: 0; outline: none; font: 400 1rem var(--body); color: var(--ink); min-width: 0; background: none; }
.cmdk-res { max-height: min(56vh, 460px); overflow: auto; padding: 6px; }
.ck-g { margin: 8px 10px 4px; font: 600 .68rem var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--o-mute); }
.ck-i { width: 100%; display: grid; grid-template-columns: 34px 1fr 18px; gap: 10px; align-items: center; padding: 7px 10px; border: 0; background: none; border-radius: 9px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.ck-i b { display: block; font-weight: 500; font-size: .91rem; }
.ck-i small { display: block; color: var(--o-mute); font-size: .77rem; }
.ck-i em { opacity: 0; display: grid; }
.ck-i em svg, .ck-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ck-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--wash); color: var(--ink-soft); }
.ck-i.sel, .ck-i:hover { background: var(--o-pri-w); }
.ck-i.sel em { opacity: 1; color: var(--o-pri); }
.ck-empty { padding: 26px; text-align: center; color: var(--o-mute); margin: 0; }
.cmdk-help { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); margin: 0; font-size: .75rem; color: var(--o-mute); background: #fafbfc; }
.cmdk-help kbd { margin-right: 3px; }

/* student profile */
.p-modal.prof .p-modal-card { width: min(880px, 100%); padding: 24px; border-radius: 16px; }
.pf { display: grid; gap: 16px; font-family: var(--body); }
.pf-head { display: flex; gap: 16px; align-items: center; padding-right: 48px; }
.pf-head h2 { font: 650 1.35rem var(--body); letter-spacing: -.015em; }
.pf-head p { margin: 2px 0 7px; color: var(--ink-soft); font-size: .9rem; }
.pf-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-act { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-grid section { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.pf-grid h3 { font: 600 .9rem var(--body); margin: 0 0 8px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pf-grid h3 span { font-weight: 400; color: var(--o-mute); font-size: .77rem; }
.pf-big { font: 650 1.45rem var(--body); margin: 0 0 10px; letter-spacing: -.02em; }
.pf-big small { display: block; font: 400 .8rem var(--body); color: var(--ink-soft); letter-spacing: 0; margin-top: 2px; }
.dbxs { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; }
.dbx { display: inline-block; aspect-ratio: 1; border-radius: 3px; background: #edf0f5; }
.dbx.P { background: #86cfa3; } .dbx.A { background: var(--o-bad); } .dbx.L { background: #f0b429; }
.fbxs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.fbx { display: grid; place-items: center; height: 26px; border-radius: 6px; font: 600 .7rem var(--body); background: #edf0f5; color: var(--o-mute); }
.fbx.p { background: var(--o-ok-w); color: var(--o-ok); } .fbx.r { background: #fff1cf; color: #7a5200; } .fbx.u { background: var(--o-bad-w); color: var(--o-bad); }
.pf-key { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .74rem; color: var(--o-mute); margin: 9px 0 0; }
.pf-key .dbx, .pf-key .fbx { width: 10px; height: 10px; margin-right: -9px; font-size: 0; display: inline-block; border-radius: 3px; }
.pf-subs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-subs li { display: grid; grid-template-columns: 1fr 90px 40px; gap: 10px; align-items: center; font-size: .86rem; }
.pf-subs b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-subs .mbar { width: 100%; }
.pf-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .86rem; }
.pf-dl dt { color: var(--o-mute); }
.pf-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* the existing register pages, in the office style */
.office .p-head h2 { font: 650 1.4rem var(--body); }
.office .p-head p { font-size: .9rem; }
.office .p-panel, .office .p-tile, .office .p-row, .office .nb-card, .office .ag-side, .office .ag-main { border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.office .p-panel h3 { font: 600 1rem var(--body); }
.office .p-tile { padding: 16px 18px; }
.office .p-label { font: 500 .8rem var(--body); letter-spacing: 0; text-transform: none; }
.office .p-big { font: 650 1.55rem var(--body); letter-spacing: -.02em; }
.office .p-small { font-size: .84rem; }
.office .p-callout { border-radius: 10px; font: 500 .9rem var(--body); }
.office .p-table { font-size: .89rem; }
.office .p-table th { font: 600 .7rem var(--body); letter-spacing: .06em; color: var(--o-mute); border-bottom: 1px solid var(--line); background: #fafbfc; padding: 9px 12px; }
.office .p-table td { font-weight: 400; padding: 10px 12px; border-bottom-color: #eef0f4; }
.office .p-table td strong { font-weight: 600; }
.office .p-table tbody tr:hover td { background: #f8faff; }
.office .pill { font: 600 .73rem var(--body); padding: 3px 9px; border-radius: 6px; }
.office .btn { font: 600 .88rem var(--body); padding: 10px 18px; border-radius: 10px; }
.office .btn:hover { transform: none; box-shadow: none; filter: brightness(.95); }
.office .btn-sm { padding: 7px 12px; font-size: .83rem; }
.office .btn-ghost { box-shadow: inset 0 0 0 1px var(--line); }
.office .field label { font: 600 .83rem var(--body); }
.office .field input, .office .field select, .office .field textarea { font: 400 .93rem var(--body); padding: 10px 12px; border-radius: 10px; border-width: 1px; }
.office .field input:focus, .office .field select:focus, .office .field textarea:focus { border-color: var(--o-pri); box-shadow: 0 0 0 3px rgba(29, 54, 168, .12); }
.office .link-btn { font: 600 .85rem var(--body); color: var(--o-pri); }
.office .cls-chip { border-width: 1px; border-radius: 12px; }
.office .cls-chip b { font: 600 1rem var(--body); }
.office .cls-chip.on { border-color: var(--o-pri); background: var(--o-pri-w); box-shadow: 0 0 0 3px rgba(29, 54, 168, .1); }
.office .cls-tab { font: 600 .88rem var(--body); }
.office .cls-tab.on { color: var(--o-pri); }
.office .seg-b { font: 600 .8rem var(--body); }
.office .att-row { font-weight: 500; }
.office .roll { font-weight: 600; }
.office .ag-title { font: 650 1.15rem var(--body); }
.office .ag-view, .office .ag-today, .office .mo-n, .office .mo-more, .office .tl-dh, .office .ev { font-family: var(--body); }
.office .ag-view.on, .office .mo-d.today .mo-n, .office .mc-d.sel { background: var(--o-pri); }
.office .gr-in, .office .gr-in input { font-weight: 500; }
.office .p-modal-card { border-radius: 16px; }
.office .p-modal-card h2 { font: 650 1.25rem var(--body); }

@media (max-width: 1240px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) {
  .og.g-7-5 { grid-template-columns: 1fr; }
  .office .pv { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pv-search { width: 40px; padding: 0; justify-content: center; flex: none; }
  .pv-search span, .pv-search kbd, .pv-date { display: none; }
  .office .pv-top { padding: 10px 12px; }
  .office .pv-view { padding: 16px 12px 110px; }
  .o-head h2 { font-size: 1.3rem; }
  .qa { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .qa-b { flex: none; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-v { font-size: 1.3rem; }
  .spark { display: none; }
  .td { grid-template-columns: 34px 1fr; }
  .td > .obtn { grid-column: 2; justify-self: start; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-head .av.big { width: 52px; height: 52px; }
  .p-modal.prof .p-modal-card { padding: 18px; }
  .dn { width: 136px; height: 136px; }
  .office .pv-tab { font-family: var(--body); font-weight: 600; }
  .office .pv-tab.on { color: var(--o-pri); background: var(--o-pri-w); }
  .cmdk { padding-top: 8vh; }
  .cmdk-help { display: none; }
}
.pf-grid section.wide { grid-column: 1 / -1; }
.pf-grid section.wide .pf-dl { grid-template-columns: auto 1fr auto 1fr; }
@media (max-width: 760px) { .pf-grid section.wide .pf-dl { grid-template-columns: auto 1fr; } }
body.ck-open .bot-fab, body:has(.p-modal.open) .bot-fab, body:has(.p-modal.open) .bot-box { display: none; }
.office .pv-view { grid-template-columns: minmax(0, 1fr); }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1240px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .og.g-7-5 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .kpi-v { font-size: 1.15rem; } .kpi-v small { display: block; font-size: .74rem; } .dn-key { min-width: 0; } .dn-wrap { gap: 16px; } }

/* =========================================================
   v15: executive look for the office register (dark by default, light on request)
   ========================================================= */
body.office { --card: #fff; --card2: #fff; --line2: #e8ebf1; --acc: #1d36a8; --side: #11141b; --bar: #2f6f97; }
body.office.dark {
  color-scheme: dark;
  --o-bg: #0b1820; --side: #0c1a22; --card: #0f1f28; --card2: #122530; --line: #1d3340; --line2: #172c37;
  --paper: #0f1f28; --wash: #132631; --ink: #e3ebf0; --ink-soft: #9fb2be; --o-mute: #6f8693;
  --o-pri: #2e6c94; --o-pri-h: #3a7cab; --o-pri-w: rgba(74, 150, 205, .16); --acc: #6cb4e0; --bar: #3b7fa8;
  --o-ok: #22c55e; --o-ok-w: rgba(34, 197, 94, .14); --o-warn: #f59e0b; --o-warn-w: rgba(245, 158, 11, .14); --o-bad: #ef4444; --o-bad-w: rgba(239, 68, 68, .15);
  --sky: #4b9bd0; --sky-deep: #3a7cab; --sky-wash: rgba(74, 150, 205, .14); --leaf: #2fa866; --leaf-deep: #2fa866; --leaf-wash: rgba(34, 197, 94, .14);
  --coral: #e5534b; --coral-deep: #e5534b; --coral-wash: rgba(239, 68, 68, .15); --sun-wash: rgba(249, 115, 22, .14);
  background: var(--o-bg); color: var(--ink);
}

/* top bar */
.office .pv-top { background: var(--side); border-color: var(--line); gap: 10px; padding: 10px 18px; }
.pv-tbtns, .pv-tools { display: flex; align-items: center; gap: 8px; }
.pv-ttl { display: grid; line-height: 1.2; min-width: 0; }
.office .pv-top h1 { font: 650 1.02rem var(--body); margin: 0; white-space: nowrap; }
#pv-desc { font-size: .74rem; color: var(--o-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-ib { position: relative; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.pv-ib svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-ib:hover { border-color: var(--acc); }
.pv-dotn { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--o-bad); color: #fff; font: 600 .64rem/17px var(--body); font-style: normal; text-align: center; }
.pv-dotn[hidden] { display: none; }
.office .pv-search { width: min(300px, 26vw); height: 36px; background: var(--card); border-color: var(--line); border-radius: 8px; }
.pv-sess { display: grid; line-height: 1.15; height: 36px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); align-content: center; }
.pv-sess small { font-size: .62rem; color: var(--o-mute); }
.pv-sess b { font: 600 .82rem var(--body); }
.pv-clock { display: grid; line-height: 1.15; text-align: right; padding: 0 4px 0 6px; }
.pv-clock b { font: 650 1rem var(--body); font-variant-numeric: tabular-nums; }
.pv-clock small { font-size: .66rem; color: var(--o-mute); }
.office .pv-who { display: none; }
.office .pv-avatar { background: #fff; color: #0c1a22; }
.office .pv-logout { background: var(--card); border-color: var(--line); color: var(--ink); width: 36px; height: 36px; }
.office .pv-date { display: none; }

/* sidebar */
.office .pv-side { background: var(--side); border-right: 1px solid var(--line); }
.office .pv-brand b { font: 800 .98rem var(--body); letter-spacing: .02em; }
.office .pv-brand span { font: 600 .6rem var(--body); letter-spacing: .08em; color: #7d93a0; }
.office .pv-group { color: #6f8693; font-size: .66rem; margin-top: 18px; }
body.office.dark .pv-item { color: #c3d0d8; }
body.office.dark .pv-item.on { background: #1a2f3b; }
.office .pv-item.on::before { display: none; }
body.office.mini .pv { grid-template-columns: 68px 1fr; }
body.office.mini .pv-side { padding: 14px 8px; overflow-x: hidden; }
body.office.mini .pv-item span, body.office.mini .pv-group, body.office.mini .pv-brand div, body.office.mini .pv-back, body.office.mini .pv-badge { display: none; }
body.office.mini .pv-item { justify-content: center; padding: 10px 0; }
body.office.mini .pv-brand { justify-content: center; padding: 2px 0 12px; }
body.office.mini .pv-brand img { height: 32px; }

/* executive dashboard */
.ex-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.ex-head h2 { font: 650 1.22rem var(--body); }
.ex-head p { margin: 3px 0 0; color: var(--acc); font-size: .8rem; }
.ex-btns { display: flex; gap: 8px; }
.obtn.sm { height: 30px; font-size: .78rem; padding: 0 10px; }
.xk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.xk-c { display: flex; align-items: center; gap: 14px; padding: 20px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.xk-c:hover { border-color: var(--acc); }
.xk-c > span:last-child { display: grid; gap: 1px; min-width: 0; }
.xk-c b { font: 700 1.3rem var(--body); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.xk-c span span { font: 600 .8rem var(--body); }
.xk-c small { font-size: .72rem; color: var(--o-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xk-ic { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.xk-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xk-ic.green { background: rgba(34, 197, 94, .15); color: #22c55e; } .xk-ic.orange { background: rgba(249, 115, 22, .16); color: #f97316; }
.xk-ic.red { background: rgba(239, 68, 68, .16); color: #f05252; } .xk-ic.blue { background: rgba(96, 165, 250, .16); color: #60a5fa; }
.oc.ex { border-radius: 10px; background: var(--card); border-color: var(--line); padding: 16px 18px; box-shadow: none; }
.oc.ex .oc-h { margin-bottom: 6px; }
.oc.ex .oc-h h3 { font: 600 .9rem var(--body); }
.oc.ex .oc-h h3 svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-soft); }
.ex-sub { margin: -6px 0 12px; font-size: .74rem; color: var(--o-mute); }
.ex-chip { font: 600 .74rem var(--body); padding: 6px 10px; border-radius: 6px; background: var(--o-pri-w); color: var(--acc); }
.og.g-5-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc { padding: 0 4px 0 30px; }
.bc-plot { position: relative; height: 200px; margin-top: 8px; }
.bc-g { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line2); }
.bc-g em { position: absolute; right: 100%; top: -.6em; padding-right: 10px; font: 500 .68rem var(--body); font-style: normal; color: var(--o-mute); }
.bc-bars { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.bc-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; outline: none; }
.bc-col i { display: block; width: 26%; max-width: 14px; min-width: 6px; min-height: 2px; background: var(--bar); border-radius: 3px 3px 0 0; }
.bc-col:hover i, .bc-col:focus i { filter: brightness(1.25); }
.bc-col:hover::after, .bc-col:focus::after { content: attr(data-tip); position: absolute; bottom: 104%; left: 50%; transform: translateX(-50%); background: #0a141a; color: #fff; font: 500 .72rem var(--body); padding: 5px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 3; }
.bc-x { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 8px; }
.bc-x span { text-align: center; font: 500 .7rem var(--body); color: var(--o-mute); }
.ex-dn { justify-content: flex-start; padding: 18px 8px 8px; gap: 34px; }
.ex-dn .dn { width: 150px; height: 150px; }
.dn-s.or { stroke: #f97316; } .dn-key i.or { background: #f97316; }
.dn-key li.sep { margin-top: 10px; }
.dn-key i.bg { background: #2c4655; }
.attn { display: grid; gap: 8px; }
.attn-r { display: grid; grid-template-columns: 36px 1fr 18px; gap: 12px; align-items: center; padding: 11px 12px; background: var(--card2); border: 1px solid var(--line2); border-radius: 8px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.attn-r:hover { border-color: var(--acc); }
.attn-ic { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; background: var(--o-pri-w); color: var(--acc); }
.attn-ic svg, .attn-r em svg, .rsc-ic svg, .rsc-i em svg, .attn-none svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.attn-ic.red { background: rgba(239, 68, 68, .16); color: #f05252; } .attn-ic.amber { background: rgba(245, 158, 11, .16); color: #f5a524; }
.attn-ic.teal { background: rgba(45, 212, 191, .13); color: #2dd4bf; }
.attn-t b { display: block; font: 600 .84rem var(--body); }
.attn-t small { display: block; font-size: .74rem; color: var(--o-mute); margin-top: 2px; line-height: 1.4; }
.attn-r em, .rsc-i em { color: var(--o-mute); display: grid; }
.attn-none { display: flex; gap: 8px; align-items: center; color: var(--o-ok); font-size: .86rem; margin: 6px 0; }
.sb { display: grid; gap: 1px; }
.sb-r { display: grid; grid-template-columns: 110px 1fr 86px; gap: 14px; align-items: center; padding: 6px 4px; border: 0; background: none; border-radius: 6px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sb-r:hover { background: var(--card2); }
.sb-r > span:first-child { font: 600 .8rem var(--body); }
.sb-t { height: 7px; border-radius: 99px; background: var(--line2); overflow: hidden; }
.sb-t i { display: block; height: 100%; border-radius: inherit; background: var(--bar); }
.sb-r b { text-align: right; font: 600 .76rem var(--body); }
.sb-f { display: flex; justify-content: space-between; margin: 12px 4px 0; font-size: .76rem; color: var(--o-mute); }
.sb-f span:first-child { color: var(--acc); }
.rsc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rsc-i { display: grid; grid-template-columns: 34px 1fr 18px; gap: 12px; align-items: center; padding: 11px 14px; background: var(--card2); border: 1px solid var(--line2); border-radius: 8px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.rsc-i:hover { border-color: var(--acc); }
.rsc-ic { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; background: var(--o-pri-w); color: var(--acc); }
.rsc-i b { font: 600 .82rem var(--body); }

/* dark: everything that was white */
body.office.dark .qa-b, body.office.dark .kpi, body.office.dark .oc, body.office.dark .obtn:not(.pri), body.office.dark .td, body.office.dark .fchip:not(.on),
body.office.dark .st-filters select, body.office.dark .cmdk-card, body.office.dark .cls-chip, body.office.dark .slot, body.office.dark .p-modal-card,
body.office.dark .nb-card, body.office.dark .ag-side, body.office.dark .ag-main, body.office.dark .ag-btn, body.office.dark .ag-today, body.office.dark .p-row,
body.office.dark .p-remark, body.office.dark .p-panel, body.office.dark .p-tile { background: var(--card); border-color: var(--line); color: var(--ink); }
body.office.dark .cls-tab.on, body.office.dark .tl-dayhead, body.office.dark .cmdk-help, body.office.dark .o-table th, body.office.dark .p-table th { background: var(--card2); }
body.office.dark .o-table td, body.office.dark .p-table td, body.office.dark .lsn li { border-color: var(--line2); }
body.office.dark .o-table tr.rz-row:hover td, body.office.dark .o-table tr.st-row:hover td, body.office.dark .p-table tbody tr:hover td { background: rgba(255, 255, 255, .03); }
body.office.dark .fchip.on { background: var(--ink); color: #0b1820; }
body.office.dark kbd { background: var(--card2); border-color: var(--line); color: var(--ink-soft); box-shadow: none; }
body.office.dark .p-demo { background: rgba(245, 158, 11, .08); color: #e6c36a; border-color: var(--line); }
body.office.dark .pill { background: rgba(96, 165, 250, .14); color: #8cc4ff; }
body.office.dark .pill.ok { background: rgba(34, 197, 94, .15); color: #4ade80; }
body.office.dark .pill.warn { background: rgba(245, 158, 11, .15); color: #fbbf24; }
body.office.dark .pill.bad { background: rgba(239, 68, 68, .16); color: #f87171; }
body.office.dark .p-callout { background: rgba(96, 165, 250, .1); color: #a8cff5; }
body.office.dark .p-callout.warn { background: rgba(245, 158, 11, .1); color: #fcd34d; }
body.office.dark .p-callout.ok { background: rgba(34, 197, 94, .1); color: #86efac; }
body.office.dark .p-big.ok { color: #4ade80; } body.office.dark .p-big.warn { color: #fbbf24; } body.office.dark .p-big.bad { color: #f87171; }
body.office.dark .field input, body.office.dark .field select, body.office.dark .field textarea, body.office.dark .field-inline input, body.office.dark .field-inline select,
body.office.dark .gr-in input, body.office.dark .tt-sel, body.office.dark .staff-form input, body.office.dark .p-table select { background: #0b1820; border-color: var(--line); color: var(--ink); }
body.office.dark .p-modal-close { background: var(--card2); color: var(--ink); }
body.office.dark .fee-rp td { background: rgba(245, 158, 11, .07); }
body.office.dark .mo-d.out, body.office.dark .mo-d.sun { background: rgba(255, 255, 255, .02); }
body.office.dark .tl-col.is-today { background-color: rgba(96, 165, 250, .05); }
body.office.dark .ev { color: var(--ink); }
body.office.dark .tt-on, body.office.dark .gr-mark { color: #8cc4ff; }
body.office.dark .mc-d { color: var(--ink); }
body.office.dark .lc-area { fill: rgba(108, 180, 224, .08); }
body.office.dark .lc-line { stroke: #4b9bd0; }
body.office.dark .lc-pt { background: var(--card); border-color: #4b9bd0; }
body.office.dark .lc-pt.last { background: #4b9bd0; }
body.office.dark .lc-g { border-color: var(--line2); }
body.office.dark .dn-bg { stroke: #1c3340; }
body.office.dark .hb-t, body.office.dark .mbar, body.office.dark .dbx:not(.P):not(.A):not(.L), body.office.dark .fbx:not(.p):not(.r):not(.u), body.office.dark .kpi-bar { background: var(--line2); }
body.office.dark .td.bad { background: rgba(239, 68, 68, .05); border-color: rgba(239, 68, 68, .3); }
body.office.dark .td-all { background: rgba(34, 197, 94, .1); color: #86efac; }
body.office.dark .av.a0 { background: rgba(96, 165, 250, .16); color: #93c5fd; } body.office.dark .av.a1 { background: rgba(34, 197, 94, .15); color: #86efac; }
body.office.dark .av.a2 { background: rgba(239, 68, 68, .16); color: #fca5a5; } body.office.dark .av.a3 { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
body.office.dark .av.a4 { background: rgba(245, 158, 11, .15); color: #fcd34d; }
body.office.dark .fbx.r { background: rgba(245, 158, 11, .16); color: #fbbf24; }
body.office.dark .nm { color: var(--ink); }
body.office.dark .nm:hover, body.office.dark .link-btn { color: var(--acc); }
body.office.dark .pv-search:hover { background: var(--card2); }
body.office.dark .qa-b svg { stroke: var(--acc); }
body.office.dark .kpi-ic, body.office.dark .td.info .td-ic, body.office.dark .ck-i.sel em { color: var(--acc); }
body.office.dark .roll { background: var(--card2); }
body.office.dark .seg { background: #0b1820; }
body.office.dark .rc-total td { background: var(--card2); }
body.office.dark .att-row, body.office.dark .gr-in { border-color: var(--line2); }
body.office.dark .cmdk { background: rgba(0, 0, 0, .55); }

@media print {
  .office .pv-side, .office .pv-top, .office .p-demo, .office .pv-tabs, .bot-fab, .bot-box, .ex-btns { display: none !important; }
  .office .pv { display: block; }
  body.office.dark { background: #fff; }
}
@media (max-width: 1240px) { .xk { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-sess { display: none; } }
@media (max-width: 1100px) { .og.g-5-5 { grid-template-columns: minmax(0, 1fr); } .pv-tbtns #pv-mini { display: none; } body.office.mini .pv { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .pv-tbtns, .pv-clock, #pv-desc { display: none; }
  .pv-tools { gap: 6px; }
  .pv-tools .pv-ib:not(#pv-theme) { display: none; }
  .office .pv-search { width: 36px; }
  .rsc { grid-template-columns: minmax(0, 1fr); }
  .xk { gap: 10px; }
  .xk-c { padding: 14px 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .sb-r { grid-template-columns: 80px 1fr 74px; gap: 8px; }
  .ex-dn { justify-content: center; gap: 18px; }
}
.lc-x span { white-space: nowrap; }
.p-table td.row-btns { display: table-cell; white-space: nowrap; }
.p-table td.row-btns > * + * { margin-left: 8px; }
body.office:not(.dark) .pv-top { background: #fff; }
body.office:not(.dark) .pv-avatar { background: var(--o-pri); color: #fff; }

/* =========================================================
   v16: full panel: menus with sub-pages, mark attendance, record books
   ========================================================= */
.pv-par { display: grid; }
.pv-pb { width: 100%; }
.pv-chev { margin-left: auto; display: grid; color: #6f8693; transition: transform .15s; }
.pv-chev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-pbadge { margin-left: auto; }
.pv-pbadge:not([hidden]) + .pv-chev { margin-left: 6px; }
.pv-par.open > .pv-pb .pv-chev { transform: rotate(180deg); }
.pv-par.cur > .pv-pb { background: rgba(255, 255, 255, .09); color: #fff; }
.pv-sub { display: none; padding: 4px 0 6px 22px; gap: 1px; }
.pv-par.open > .pv-sub { display: grid; }
.pv-subh { margin: 8px 0 3px 10px; font: 600 .62rem var(--body); letter-spacing: .09em; text-transform: uppercase; color: #6f8693; }
.pv-subi { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: #a9b8c2; font: 500 .8rem var(--body); text-align: left; cursor: pointer; }
.pv-subi:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.pv-subi.on { background: #1d3442; color: #fff; }
.pv-subi .pv-badge { height: 17px; min-width: 17px; font-size: .64rem; }
body.office:not(.dark) .pv-subi.on { background: rgba(255, 255, 255, .12); }
body.office.mini .pv-sub, body.office.mini .pv-chev, body.office.mini .pv-pbadge { display: none !important; }
.office .pv-nav { padding-bottom: 12px; }

/* form bits */
.office .field label i { color: #ef4444; font-style: normal; }
.office .field label small { font-weight: 400; color: var(--o-mute); }
.fbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px 16px; }
.fbar .field { margin: 0; min-width: 200px; }
.fsm label { font-size: .76rem !important; }
.fsm select, .fsm input { padding: 8px 10px !important; font-size: .86rem !important; }

/* mark attendance */
.ma { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 7fr); gap: 14px; align-items: start; }
.ma-l { display: grid; gap: 12px; }
.ma-l .oc-h { margin-bottom: 0; }
.ma-l .field { margin: 0; gap: 5px; }
.ma-l .field label { font-size: .78rem; }
.ma-l .field select, .ma-l .field input { padding: 9px 12px; font-size: .86rem; }
.ma-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt { border-radius: 7px; padding: 12px 12px 10px; display: grid; gap: 2px; }
.mt b { font: 700 1.25rem var(--body); }
.mt span { font: 600 .74rem var(--body); }
.mt.P { background: #14532d; color: #4ade80; } .mt.A { background: #4c1d1d; color: #f87171; }
.mt.T { background: #1e2f5c; color: #7aa7ff; } .mt.L { background: #4a3410; color: #fbbf24; }
body.office:not(.dark) .mt.P { background: #dcfce7; color: #166534; } body.office:not(.dark) .mt.A { background: #fee2e2; color: #991b1b; }
body.office:not(.dark) .mt.T { background: #dbe6ff; color: #1e3a8a; } body.office:not(.dark) .mt.L { background: #fef3c7; color: #92400e; }
.ma-save { width: 100%; height: 40px; border: 0; border-radius: 7px; background: #22b573; color: #fff; font: 600 .88rem var(--body); cursor: pointer; }
.ma-save:hover { background: #1ea366; }
.ma-note { margin: 0; font-size: .78rem; color: var(--o-mute); min-height: 1em; }
.ma-r { padding: 0; overflow: hidden; }
.ma-r .oc-h { padding: 14px 16px 10px; margin: 0; border-bottom: 1px solid var(--line2); }
.ma-cnt { display: block; font-size: .72rem; color: var(--o-mute); margin-top: 2px; }
.ma-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ma-find { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card2); min-width: 180px; }
.ma-find svg { width: 14px; height: 14px; fill: none; stroke: var(--o-mute); stroke-width: 2; stroke-linecap: round; flex: none; }
.ma-find input { border: 0; background: none; outline: none; font: 400 .8rem var(--body); color: var(--ink); width: 100%; min-width: 0; }
.ma-all { height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: var(--card2); color: var(--acc); font: 500 .76rem var(--body); cursor: pointer; }
.ma-all:hover { background: var(--o-pri-w); }
.ma-list { display: grid; }
.ma-row { display: grid; grid-template-columns: 34px 90px 1fr auto; gap: 12px; align-items: center; padding: 7px 16px; border-bottom: 1px solid var(--line2); }
.ma-row[hidden] { display: none; }
.ma-row:last-child { border-bottom: 0; }
.ma-id { font: 500 .74rem ui-monospace, Consolas, monospace; color: var(--acc); }
.ma-n { font: 600 .84rem var(--body); min-width: 0; }
.ma-btns { display: flex; gap: 5px; }
.mb { height: 32px; min-width: 64px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink-soft); font: 500 .76rem var(--body); cursor: pointer; }
.mb:hover { border-color: var(--acc); color: var(--ink); }
.mb.P.on { background: #22b573; border-color: #22b573; color: #fff; }
.mb.A.on { background: #e5484d; border-color: #e5484d; color: #fff; }
.mb.T.on { background: #3e63dd; border-color: #3e63dd; color: #fff; }
.mb.L.on { background: #e5a00d; border-color: #e5a00d; color: #fff; }

/* month attendance grid */
.att-grid { font-size: .78rem; }
.att-grid th, .att-grid td { padding: 6px 5px; }
.att-grid .sticky { position: sticky; left: 0; background: var(--card); z-index: 1; min-width: 170px; white-space: nowrap; padding-left: 14px; }
.att-grid th.sticky { background: var(--card2); z-index: 2; }
.ac-h { text-align: center; font-size: .68rem !important; letter-spacing: 0 !important; min-width: 26px; }
.ac-h small { display: block; font-weight: 400; color: var(--o-mute); }
.ac { text-align: center; font: 600 .72rem var(--body); }
.ac.P { color: #22c55e; } .ac.A { color: #fff; background: rgba(239, 68, 68, .75); } .ac.T { color: #fff; background: rgba(62, 99, 221, .8); } .ac.L { color: #1a1300; background: rgba(245, 158, 11, .85); } .ac.n { color: var(--o-mute); }
.att-grid .roll { margin-right: 8px; }

/* people and records */
.kid { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0; padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--card2); color: var(--ink); font: 500 .76rem var(--body); cursor: pointer; }
.kid small { color: var(--o-mute); }
.kid:hover { border-color: var(--acc); }
.o-table tr[hidden] { display: none; }
.rec { display: grid; grid-template-columns: minmax(260px, 3fr) minmax(0, 8fr); gap: 14px; align-items: start; }
.rec-f { display: grid; gap: 10px; }
.rec-f .oc-h { margin-bottom: 0; }
.rec-f .field { margin: 0; gap: 4px; }
.rec-f .field label { font-size: .78rem; }
.rec-f .field input, .rec-f .field select { padding: 8px 10px; font-size: .86rem; }
.rec-st { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); font: 600 .76rem var(--body); }
.rec-st.st-Approved { color: #22c55e; } .rec-st.st-Rejected { color: #f87171; } .rec-st.st-Pending { color: #fbbf24; }
.office .staff-form { display: flex; gap: 8px; margin-top: 12px; }
.office .staff-form input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card2); color: var(--ink); font: 400 .88rem var(--body); }
body.office.dark .staff-chip { background: var(--card2); color: var(--ink); }
.office .staff-chip { font: 500 .84rem var(--body); }

@media (max-width: 1100px) { .ma, .rec { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ma-row { grid-template-columns: 34px 1fr; }
  .ma-id { display: none; }
  .ma-btns { grid-column: 1 / -1; }
  .mb { flex: 1; min-width: 0; padding: 0 4px; }
  .ma-r .oc-h { flex-direction: column; align-items: stretch; }
  .ma-find { min-width: 0; flex: 1; }
}

/* v17: salaries, download centre */
.sal-in { width: 120px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--card2); color: var(--ink); font: 500 .84rem var(--body); }
.sal-in.sm { width: 90px; }
.sal-in:disabled { opacity: .6; }
.sal-in:focus { outline: none; border-color: var(--acc); }
.hint { display: block; font-size: .7rem; color: var(--o-mute); margin-top: 3px; }
.dd { display: inline-flex; gap: 4px; }
.dd b { min-width: 24px; text-align: center; padding: 2px 4px; border-radius: 5px; font: 600 .74rem var(--body); }
.dd .P { background: rgba(34, 197, 94, .15); color: #22c55e; } .dd .A { background: rgba(239, 68, 68, .15); color: #f87171; }
.dd .T { background: rgba(62, 99, 221, .18); color: #7aa7ff; } .dd .L { background: rgba(245, 158, 11, .16); color: #fbbf24; }
div.xk-c { cursor: default; }
div.xk-c:hover { border-color: var(--line); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.dl-grid .field { margin: 0; }
.dl-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line2); }
.obtn:disabled { opacity: .4; cursor: not-allowed; }
body.office.dark .gm-tile, body.office.dark .gm-c:not(.ok):not(.bad) { background: var(--card); border-color: var(--line); color: var(--ink); }
body.office.dark .gm-tile h3, body.office.dark .gm-tile p { color: var(--ink); }
body.office.dark .gm-tile p { color: var(--ink-soft); }
.office .gm-tile { border-radius: 10px; border-width: 1px; }
.office .gm-c { border-radius: 10px; }
body.office.dark .pv-lang { background: var(--card); border-color: var(--line); color: var(--acc); height: 36px; padding: 0 12px; border-radius: 8px; }
.office .pv-lang[lang="en"] { font-size: .82rem; }

/* =========================================================
   v18: Portals page hub: portal list, glowing lanes, "Portal" prompt
   ========================================================= */
.hub { position: relative; padding: 56px 0 72px; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 70% at 0% 30%, #fde2e4 0%, transparent 60%), radial-gradient(50% 60% at 100% 10%, #dbeafe 0%, transparent 60%), radial-gradient(50% 60% at 60% 100%, #fef3c7 0%, transparent 60%), radial-gradient(40% 50% at 40% 60%, #ede9fe 0%, transparent 70%), #f7f8fc; }
.hub-head { text-align: center; display: grid; justify-items: center; gap: 12px; margin-bottom: 40px; }
.hub-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.hub-head .lead { margin: 0; }
.hub-stage { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(90px, 2.2fr) minmax(0, 4.6fr); align-items: center; gap: 0; }
.glass { position: relative; z-index: 2; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(60, 50, 140, .35), 0 2px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px rgba(120, 130, 200, .12); }
.hub-panel { padding: 22px 20px 20px; transform: perspective(1400px) rotateY(7deg); transform-origin: left center; }
.hub-brand { text-align: center; margin: 2px 0 14px; font: 600 1.15rem/1 var(--body); letter-spacing: .38em; color: #2b2f3a; }
.hub-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.hub-tabs span { padding: 6px 12px; border-radius: 999px; font: 700 .82rem var(--body); color: #4b5262; background: rgba(255, 255, 255, .7); border: 1px solid #e6e8f2; }
.hub-tabs span b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 99px; background: #eef0f7; font-size: .72rem; }
.hub-tabs span.on { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(147, 197, 253, .35); color: #1d4ed8; }
.hub-tabs span.on b { background: #3b82f6; color: #fff; }
.hub-row { position: relative; display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 14px; margin-top: 10px; border-radius: 16px; background: rgba(255, 255, 255, .85); border: 1px solid #eceef5;
  text-decoration: none; color: var(--ink); box-shadow: 0 8px 20px -14px rgba(40, 40, 90, .35); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, border-color .2s; }
.hub-row:hover { transform: translateX(4px); }
.hub-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; }
.hub-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hub-row.leaf .hub-ic { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
.hub-row.coral .hub-ic { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #e11d48; }
.hub-row.sky .hub-ic { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.hub-txt { display: grid; gap: 2px; min-width: 0; }
.hub-txt .tag { justify-self: start; font: 700 .72rem var(--body); font-style: normal; padding: 2px 9px; border-radius: 7px; }
.hub-row.leaf .tag { background: #dcfce7; color: #15803d; } .hub-row.coral .tag { background: #ffe4e6; color: #be123c; } .hub-row.sky .tag { background: #dbeafe; color: #1d4ed8; }
.hub-txt b { font: 600 1.15rem var(--display); }
.hub-txt small { color: var(--ink-soft); font-size: .88rem; }
.hub-go { display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px 9px 14px; border-radius: 12px; border: 1.5px solid #c7d2fe; color: #3730a3; font: 800 .88rem var(--body); background: #fff; white-space: nowrap; }
.hub-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hub-row.leaf .hub-go { border-color: #86efac; color: #15803d; } .hub-row.coral .hub-go { border-color: #fda4af; color: #be123c; } .hub-row.sky .hub-go { border-color: #93c5fd; color: #1d4ed8; }
.hub-lanes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hub-lanes svg { position: absolute; inset: 0; overflow: visible; }
.lane path { fill: none; stroke-linecap: round; transition: opacity .3s ease, stroke-width .3s ease; }
.lane .glow { stroke-width: 16; opacity: .45; }
.lane .line { stroke-width: 3.5; opacity: .9; }
.lane .flow { stroke: #fff !important; stroke-width: 2.5; stroke-dasharray: 6 18; opacity: .9; animation: hubflow 1.4s linear infinite; }
@keyframes hubflow { to { stroke-dashoffset: -48; } }
.hub-chip { position: absolute; z-index: 3; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 15px; display: grid; place-items: center; color: #fff; transform: rotate(-8deg);
  box-shadow: 0 12px 26px -10px rgba(60, 40, 140, .55), 0 0 0 1px rgba(255, 255, 255, .7) inset; transition: transform .3s ease, opacity .3s ease; }
.hub-chip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hub-chip.leaf { background: linear-gradient(135deg, #34d399, #16a34a); } .hub-chip.coral { background: linear-gradient(135deg, #fb7185, #e11d48); } .hub-chip.sky { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.hub-win { padding: 14px 18px 18px; transform: perspective(1400px) rotateY(-7deg); transform-origin: right center; }
.hub-dots { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.hub-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; }
.hub-dots i:nth-child(2) { background: #f59e0b; } .hub-dots i:nth-child(3) { background: #22c55e; }
.hub-dots span { margin-left: auto; color: #9aa1b2; font-weight: 800; }
.hub-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 1.35rem var(--display); }
.hub-title img { width: 34px; height: auto; }
.hub-ask { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 16px; background: #eef2ff; border: 1px solid #dfe5fb; }
.hub-ask input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 600 1rem var(--body); color: var(--ink); padding: 8px 0; }
.hub-ask button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #fff; color: #2563eb; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 10px -4px rgba(37, 99, 235, .5); }
.hub-ask button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hub-ask:focus-within { border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(147, 197, 253, .35); }
.hub-sugs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.hub-sugs button { border: 1px solid #e3e6f0; background: #fff; border-radius: 99px; padding: 5px 11px; font: 700 .8rem var(--body); color: #4b5262; cursor: pointer; }
.hub-sugs button:hover { border-color: #a5b4fc; color: #3730a3; }
.hub-term { margin: 0; padding: 14px 14px; min-height: 132px; border-radius: 14px; background: #fff; border: 1px solid #eceef5; font: 600 .86rem/1.85 ui-monospace, Consolas, "Courier New", monospace; color: #2b2f3a; white-space: pre-wrap; }
.hub-term .ln { display: inline-block; width: 22px; color: #b3b8c6; user-select: none; }
.hub-term .tk { color: #c026d3; } .hub-term .tf { color: #2563eb; } .hub-term .ts { color: #e11d48; } .hub-term .tc { color: #16a34a; font-style: italic; } .hub-term .ta { color: #7c3aed; } .hub-term .tok { color: #16a34a; }
.hub-term .r-parent { color: #15803d; } .hub-term .r-teacher { color: #e11d48; } .hub-term .r-admin { color: #1d4ed8; }
/* picking a portal lights its lane */
.hub-stage.picking .hub-row, .hub-stage.picking .lane, .hub-stage.picking .hub-chip { opacity: .28; }
.hub-stage.pick-parent #hub-parent, .hub-stage.pick-teacher #hub-teacher, .hub-stage.pick-admin #hub-admin { opacity: 1; transform: translateX(6px); box-shadow: 0 16px 34px -14px rgba(60, 40, 140, .45); }
.hub-stage.pick-parent #hub-parent { border-color: #4ade80; } .hub-stage.pick-teacher #hub-teacher { border-color: #fb7185; } .hub-stage.pick-admin #hub-admin { border-color: #60a5fa; }
.hub-stage.pick-parent .lane-parent, .hub-stage.pick-teacher .lane-teacher, .hub-stage.pick-admin .lane-admin { opacity: 1; }
.hub-stage.pick-parent .lane-parent .glow, .hub-stage.pick-teacher .lane-teacher .glow, .hub-stage.pick-admin .lane-admin .glow { stroke-width: 26; opacity: .7; }
.hub-stage.pick-parent .lane-parent .line, .hub-stage.pick-teacher .lane-teacher .line, .hub-stage.pick-admin .lane-admin .line { stroke-width: 5; }
.hub-stage.pick-parent .hub-chip.leaf, .hub-stage.pick-teacher .hub-chip.coral, .hub-stage.pick-admin .hub-chip.sky { opacity: 1; transform: rotate(0) scale(1.18); }
@media (prefers-reduced-motion: reduce) { .lane .flow { animation: none; } }
@media (max-width: 980px) {
  .hub-stage { grid-template-columns: minmax(0, 1fr); gap: 110px; }
  .hub-lanes { display: block; }
  .hub-panel, .hub-win { transform: none; }
  .hub-chip { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}
@media (max-width: 560px) {
  .hub { padding: 36px 0 48px; }
  .hub-row { grid-template-columns: 46px 1fr; }
  .hub-ic { width: 46px; height: 46px; }
  .hub-go { grid-column: 2; justify-self: start; }
}
.hub-panel { grid-column: 1; grid-row: 1; }
.hub-win { grid-column: 3; grid-row: 1; }
@media (max-width: 980px) { .hub-panel, .hub-win { grid-column: 1; grid-row: auto; } }
/* v18b: prompt on the left, portals on the right */
.hub-win { grid-column: 1; transform: perspective(1400px) rotateY(7deg); transform-origin: left center; }
.hub-panel { grid-column: 3; transform: perspective(1400px) rotateY(-7deg); transform-origin: right center; }
.hub-stage { grid-template-columns: minmax(0, 4.6fr) minmax(90px, 2.2fr) minmax(0, 5fr); }
.hub-row:hover { transform: translateX(-4px); }
.hub-stage.pick-parent #hub-parent, .hub-stage.pick-teacher #hub-teacher, .hub-stage.pick-admin #hub-admin { transform: translateX(-6px); }
@media (max-width: 980px) {
  .hub-stage { grid-template-columns: minmax(0, 1fr); }
  .hub-win, .hub-panel { grid-column: 1; transform: none; }
  .hub-win { grid-row: 1; }
  .hub-panel { grid-row: 2; }
}

/* v19: worksheets page, school news, website publishing in the register */
.ws-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.ws-filters select, .ws-filters input { font: 600 1rem var(--body); padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); }
.ws-filters input { flex: 1 1 220px; }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ws-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; border-top: 6px solid var(--sky); box-shadow: var(--shadow); }
.ws-card.sun { border-top-color: var(--sun); } .ws-card.coral { border-top-color: #e11d48; } .ws-card.leaf { border-top-color: var(--leaf); }
.ws-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ws-tag { font: 800 .78rem var(--body); padding: 3px 10px; border-radius: 999px; background: var(--sky-wash); color: var(--sky-deep); }
.ws-subj { font: 700 .85rem var(--body); color: var(--ink-soft); }
.ws-card h3 { font-size: 1.25rem; }
.ws-card p { margin: 0; color: var(--ink-soft); }
.ws-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-date { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.ws-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-empty { text-align: center; color: var(--ink-soft); font-weight: 700; }
.ws-none-yet { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 48px 20px; background: var(--paper); border: 2px dashed var(--line); border-radius: 22px; }
.ws-none-yet b { font: 600 1.4rem var(--display); }
.ws-none-yet span { color: var(--ink-soft); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.news-date { font: 800 .8rem var(--body); color: var(--coral-deep); letter-spacing: .04em; text-transform: uppercase; }
.news-card p { margin: 0; color: var(--ink-soft); }
.syl-pub { display: inline-block; margin-top: 6px; font: 800 .8rem var(--body); padding: 3px 10px; border-radius: 999px; background: var(--leaf-wash); color: var(--leaf-deep); }
.ws-chk { display: flex; align-items: center; gap: 8px; font: 500 .86rem var(--body); }
.ws-chk input { width: 17px; height: 17px; accent-color: #22b573; }
.sy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sy-card { display: grid; gap: 8px; border-top: 3px solid var(--acc); }
.sy-card.sun { border-top-color: #f59e0b; } .sy-card.coral { border-top-color: #f43f5e; } .sy-card.sky { border-top-color: #3b82f6; } .sy-card.leaf { border-top-color: #22c55e; }
.sy-top { display: flex; gap: 8px; align-items: center; }
.sy-name { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--card2); color: var(--ink); font: 600 .9rem var(--body); }
.sy-card textarea, .office #sy-test { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card2); color: var(--ink); font: 400 .86rem/1.5 var(--body); resize: vertical; }
.sy-add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 120px; border: 2px dashed var(--line); border-radius: 10px; background: none; color: var(--acc); font: 600 .9rem var(--body); cursor: pointer; }
.sy-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sy-add:hover { border-color: var(--acc); }
.sy-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.syl-draft[hidden] { display: none; }
.sy-card, .sy-card *, .office #sy-test { box-sizing: border-box; }
.sy-card { min-width: 0; overflow: hidden; }
.sy-top .link-btn { flex: none; }
.sy-top .sy-name { flex: 1 1 0; width: 0; min-width: 0; }
/* v20: school leaving certificate form */
.slc h2 { margin: 0 0 4px; }
.slc form { display: grid; gap: 12px; margin-top: 12px; }
.slc-g { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.slc-g legend { font: 700 .82rem var(--body); padding: 0 6px; color: var(--acc, #1d36a8); }
.slc-g .field { margin: 0; gap: 4px; }
.slc-g .field label { font-size: .76rem; }
.slc-g .field input { padding: 8px 10px; font-size: .88rem; }
.slc-btns { display: flex; gap: 8px; justify-content: flex-end; }
/* v21: book list */
.bl-t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bl-t th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.bl-t td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.bl-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.bl-t .ur-t { font-family: 'Noto Nastaliq Urdu', serif; font-size: 1rem; line-height: 1.9; }
.bl-t .bl-total td { font-weight: 800; border-bottom: 0; }
.bl-box { margin-top: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; }
.bl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bl-head span { color: var(--ink-soft); font-weight: 700; }
.bl-note { margin: 10px 0 0; color: var(--ink-soft); font-size: .9rem; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.office .bl-t { font-size: .84rem; }
.office .bl-t td { border-color: var(--line2); }
