/* GOMSY look. Frame from row D (13 Oct 2026); type, spacing and background 15 Oct 2026.
   Fonts (Prithvi, 16 Oct 2026, 20:39): Figtree for all text ("GOMSY Text") and Noto Serif for headings and the
   GOMSY name ("GOMSY Head"), as on the WhatsApp design page he liked. Both SIL Open Font License
   (fonts/OFL-Figtree.txt, fonts/OFL-NotoSerif.txt), from npm @fontsource, latin + latin-ext files (latin-ext
   carries the rupee sign) with their unicode ranges. Served by GOMSY itself: nothing loads from Google or a CDN.
   Tried before: Noto Serif for everything (15 Oct), Geist (too wide), Inter, Onest (16 Oct, rounder and wider).
   Page background soft grey-blue, panels white.
   IDs are one plain string: no colour on the type letter. A ticket always shows its own ticket
   number; a student's ID is always shown separately as the Student ID. */


@font-face{font-family:"GOMSY Text";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/figtree-latin-400-normal.307f463f0f37.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"GOMSY Text";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/figtree-latin-ext-400-normal.1a57e4b6d529.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"GOMSY Text";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/figtree-latin-500-normal.81bd5eb4a927.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"GOMSY Text";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/figtree-latin-ext-500-normal.a72ebafbf07e.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"GOMSY Text";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/figtree-latin-600-normal.5e5a3d4bfb5c.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"GOMSY Text";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/figtree-latin-ext-600-normal.c4792ea2aa21.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"GOMSY Text";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/figtree-latin-700-normal.ebfec7c7abd1.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"GOMSY Text";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/figtree-latin-ext-700-normal.7ac4f777d029.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"GOMSY Head";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/noto-serif-latin-600-normal.dc4ab4d5e593.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"GOMSY Head";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/noto-serif-latin-ext-600-normal.d266a3c5bfec.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"GOMSY Head";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/noto-serif-latin-700-normal.4c107a44b004.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"GOMSY Head";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/noto-serif-latin-ext-700-normal.fcc6d81aaae7.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  /* GOMSY's own colours (12 Nov 2026, S2): charcoal + saffron, apart from the website's Gauthami blue.
     Saffron is never used for text (3.4 : 1 on white): only the spark, the open-page line and the focus glow. */
  --brand:#1F2328; --brand-dark:#0B0D10; --brand-soft:#F1F2F4; --on-brand:#C9CDD3; --spark:#E06A10;
  --ink:#1B1D33; --ink-2:#3A3E5C; --muted:#565B78; --faint:#7A7F99;
  --line:#E3E5EE; --line-strong:#CDD0DC; --tint:#F0F2F7; --page:#F3F4F8;
  --red:#A1262B; --red-bg:#FCEDEE; --red-ink:#7E1D22;
  --amber:#8A4B00; --amber-bg:#FFF4E0;
  --green:#1D6B43; --green-bg:#E7F4EC;
  --radius:12px;
  --wide:1280px;   /* bar, menu and page share one width, so nothing runs edge to edge on a big screen */
  --sans:"GOMSY Text",system-ui,"Segoe UI",sans-serif;
  --serif:"GOMSY Head",Georgia,"Times New Roman",serif;   /* headings and the GOMSY name */
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.5 var(--sans);color:var(--ink);background:var(--page);font-feature-settings:normal}
input,select,textarea,button{font-feature-settings:normal}
a{color:var(--brand);text-underline-offset:2px}a:hover{color:var(--brand-dark)}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
small,.small{font-size:14px}

/* ---- frame: blue top bar with the big search, then the tab menu ---- */
.bar{background:var(--brand);color:#FFFFFF;display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;padding:12px max(32px,calc((100% - var(--wide)) / 2 + 32px))}
.brand{display:flex;align-items:center;gap:10px;color:#FFFFFF;text-decoration:none}
.brand:hover{color:#FFFFFF}
.brand svg{flex:none}
.brand{font-family:var(--serif);font-weight:700;font-size:28px;letter-spacing:.02em;line-height:1;gap:0}
.brand .mark{width:.8em;height:.8em;margin:0 .02em;vertical-align:-.06em}
.brand .name{margin-left:10px;font-weight:600;font-size:20px;letter-spacing:.04em}
.brand>.mark:first-child{width:30px;height:30px;margin:0}
.wordmark{font-family:var(--serif);font-weight:700;font-size:40px;letter-spacing:.02em;line-height:1;color:var(--brand)}
.wordmark .mark{width:.8em;height:.8em;margin:0 .02em;vertical-align:-.06em}
.find{flex:1 1 420px;max-width:620px;display:flex;align-items:center;gap:10px;height:46px;margin:0;border-radius:10px;padding:0 14px;background:#FFFFFF;color:var(--ink)}
.find:focus-within{box-shadow:0 0 0 3px var(--spark)}
.find input{flex:1;min-width:0;height:100%;border:0;outline:0;padding:0;font:inherit;font-size:16px;color:var(--ink);background:transparent}
.find input:focus{outline:0;border:0}      /* the box itself shows the focus (saffron ring), never the input inside it */
.find input::placeholder{color:var(--faint)}
.find svg{flex:none}
.me{margin-left:auto;display:flex;align-items:center;gap:14px}
.me .who{display:flex;flex-direction:column;align-items:flex-end;font-size:14px;line-height:1.3}
.me .who b{font-weight:600}.me .who span{color:var(--on-brand)}
.me form{margin:0}
.me button{min-height:40px;padding:0 14px;border:1px solid rgba(255,255,255,.45);border-radius:8px;background:transparent;color:#FFFFFF;font-size:14px;font-weight:600}
.me button:hover{background:rgba(255,255,255,.12);border-color:#FFFFFF;color:#FFFFFF}
.tabs{display:flex;flex-wrap:wrap;gap:0;padding:0 max(21px,calc((100% - var(--wide)) / 2 + 21px));border-bottom:1px solid var(--line);background:#FFFFFF}
.menuout{display:none}
.tabs a{display:inline-flex;align-items:center;min-height:44px;padding:0 11px;color:var(--ink-2);text-decoration:none;font-size:15px;font-weight:500;border-bottom:2px solid transparent;white-space:nowrap}
.tabs a:hover{color:var(--ink)}
.tabs a[aria-current=page]{color:var(--ink);font-weight:600;border-bottom:3px solid var(--spark)}
.bottom{display:none}
.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;z-index:20;background:#FFFFFF;padding:8px 12px;border-radius:8px}

/* ---- page ---- */
main{max-width:var(--wide);margin:0 auto;padding:32px 32px 64px}
h1{font-family:var(--serif);font-weight:600;font-size:30px;line-height:1.2;margin:0 0 20px;letter-spacing:-.01em}
h2{font-family:var(--serif);font-weight:600;font-size:20px;line-height:1.3;margin:0 0 12px;color:var(--ink)}
h3{font-size:16px;font-weight:600;margin:16px 0 8px}
p{margin:8px 0}
.lead{font-size:15px;color:var(--muted);margin:-12px 0 20px}
h1+p.muted{margin:-12px 0 20px;max-width:72ch}
.card,.box{background:#FFFFFF;box-shadow:0 1px 2px rgba(27,29,51,.04);border:1px solid var(--line);border-radius:var(--radius);padding:20px 24px;margin-bottom:24px;min-width:0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:24px;align-items:start;margin-bottom:24px}
.grid>.card{margin-bottom:0}
.muted{color:var(--muted)}
.invitem{font-weight:600;font-size:15px;color:var(--ink)}.invno{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
.mono{font-family:var(--sans);font-weight:500;white-space:nowrap}
.nowrap{white-space:nowrap}
a.mono{text-decoration:none}a.mono:hover{text-decoration:underline}
.tcode{white-space:nowrap;color:var(--muted);font-weight:500}   /* ticket type code beside the G number (ENQ-01; 4 Nov 2026) */
.sname{font-weight:600;text-transform:uppercase;letter-spacing:.01em}
.tag{display:inline-block;padding:1px 8px;border-radius:6px;font-size:13px;font-weight:600;line-height:1.6;background:#EEF0F5;color:var(--ink-2);white-space:nowrap;vertical-align:1px}
.tag.red{background:var(--red-bg);color:var(--red)}
a.tag{text-decoration:none}a.tag:hover{text-decoration:underline}
.filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 16px}
.undo{margin-top:6px;font-size:14px}.undo form{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-top:8px}.undo label{width:100%;margin:0}
.tag.green{background:var(--green-bg);color:var(--green)}
.tag.amber{background:var(--amber-bg);color:var(--amber)}

/* ---- tables: hairline rows, quiet header, no grey bands ---- */
table{width:100%;border-collapse:collapse;font-size:15px}
th,td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:13px;font-weight:600;color:var(--muted);border-bottom-color:var(--line-strong);white-space:nowrap;padding-top:4px;padding-bottom:8px}
th:first-child,td:first-child{padding-left:0}
th:last-child,td:last-child{padding-right:0}
tr:has(>td)>th{border-bottom-color:var(--line);font-size:14px;font-weight:500;width:1%;padding:11px 24px 11px 0;color:var(--muted)}
tr:last-child>td,tr:last-child>th{border-bottom:0}
td small{color:var(--muted)}
.scroll{overflow-x:auto}

/* ---- forms and buttons ---- */
form.inline{display:inline}
input,select,textarea{font:inherit;font-size:16px;padding:9px 12px;border:1px solid var(--line-strong);border-radius:8px;max-width:100%;background:#FFFFFF;color:var(--ink);min-height:44px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--brand);outline-offset:0;border-color:var(--brand)}
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:0;padding:0;margin:0 8px 0 0;vertical-align:-3px;accent-color:var(--brand)}
input[type=file]{border:0;padding:6px 0;min-height:0}
textarea{width:100%;min-height:84px;line-height:1.45}
label{display:block;font-size:14px;font-weight:600;color:var(--ink-2);margin:14px 0 6px}
.row{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:end}
.row>div{flex:1 1 200px}
.row:has(>h1){align-items:center;margin-bottom:20px}.row>h1{margin:0}
.row>div>input:not([type=checkbox]):not([type=radio]),.row>div>select{width:100%}
button,a.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 18px;font:inherit;font-size:15px;font-weight:600;line-height:1.2;border:1px solid var(--brand);background:var(--brand);color:#FFFFFF;border-radius:8px;cursor:pointer;text-decoration:none}
button:hover,a.btn:hover{background:var(--brand-dark);border-color:var(--brand-dark);color:#FFFFFF}
button.ghost,a.btn.ghost{background:#FFFFFF;color:var(--ink);border-color:var(--line-strong)}
button.ghost:hover,a.btn.ghost:hover{background:var(--tint);color:var(--ink);border-color:#A9ADC4}
button.danger{background:#FFFFFF;border-color:#E4B4B7;color:var(--red)}
button.danger:hover{background:var(--red-bg);border-color:var(--red);color:var(--red-ink)}
button:disabled,fieldset:disabled button{opacity:.5;cursor:not-allowed}
form p:has(>button){margin-top:20px}
.msg{padding:12px 16px;border-radius:10px;margin-bottom:20px;background:#EEF0F5}
.msg.success{background:var(--green-bg);color:#14532D}
.msg.error{background:var(--red-bg);color:var(--red-ink)}
.msg.warning{background:var(--amber-bg);color:#6B3A00}
.msg.info{background:var(--brand-soft);color:var(--ink)}
details summary{cursor:pointer;color:var(--brand);font-weight:600;margin:10px 0;padding:4px 0}

/* ---- home: the queue and the boxes beside it ---- */
.pagehead{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin-bottom:16px}
.pagehead h1{margin:0}
.pagehead span{font-size:15px;color:var(--muted)}
.box{padding:0;overflow:hidden}
.box.scroll{overflow-x:auto;overflow-y:hidden}
.box>h2{margin:0;font-size:18px;padding:16px 20px 8px}
.box .sub{margin:0;padding:12px 20px 0;font-size:13px;font-weight:600;color:var(--muted)}
.box .line{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;margin:0;padding:10px 20px;border-top:1px solid var(--line);color:var(--ink);text-decoration:none;font-size:15px}
.box h2+.line,.box .sub+.line{border-top:0}
.box a.line:hover{background:var(--tint);color:var(--ink)}
.box .line small{font-size:14px;color:var(--muted)}
.box .line b{font-weight:600;white-space:nowrap}
.box .line .acts{display:flex;flex-direction:column;gap:6px;margin:0}
.box>table{margin:0}
.box>table th,.box>table td{padding-left:16px;padding-right:16px}
.side>.box{margin-bottom:0}
.queue td{vertical-align:middle;padding-top:13px;padding-bottom:13px}
.queue th:first-child,.queue td:first-child{padding-left:20px}
.queue th:last-child,.queue td:last-child{padding-right:20px}
.queue th{padding-top:14px}
@media (hover:hover){.queue tbody tr:hover{background:var(--tint)}}
.queue .left{white-space:nowrap;color:var(--ink-2)}
.queue .left .dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px;background:#A3A7BD;vertical-align:1px}
.queue .left.late{color:var(--red);font-weight:600}.queue .left.late .dot{background:#D9424A}
.queue .left.soon{color:var(--amber);font-weight:600}.queue .left.soon .dot{background:#E59A1A}
.queue .what{font-weight:500;min-width:220px}
.queue td:last-child{min-width:120px}
@media (min-width:1700px){:root{--wide:1440px}}
.none{color:var(--faint)}
form.decide{padding:12px 0;border-bottom:1px solid var(--line)}
form.decide:last-child{border-bottom:0}
form.decide p{margin:0 0 10px}

/* ---- student record ---- */
.crumb{display:inline-block;font-size:15px;font-weight:600;text-decoration:none;margin-bottom:8px}
.record{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;padding-bottom:24px;margin-bottom:28px;border-bottom:1px solid var(--line)}
.record h1{font-size:36px;line-height:1.1;margin:0 0 12px;font-weight:700;text-transform:uppercase;letter-spacing:.01em}
.ids{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 28px;font-size:15px;color:var(--muted)}
.ids .mono{color:var(--ink);font-size:16px}
.ids .sid{font-size:17px}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.pill{font-size:14px;font-weight:600;border-radius:8px;padding:6px 12px;background:#EEF0F5;color:var(--ink-2)}
.pill.green{background:var(--green-bg);color:var(--green)}
.pill.amber{background:var(--amber-bg);color:var(--amber)}
.pill.red{background:var(--red-bg);color:var(--red)}
.cols{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start;margin-bottom:24px}
.cols>.main{flex:2 1 560px;min-width:0}
.cols>.side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:24px}
.cols>.side>.card{margin-bottom:0}
.cardhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin-bottom:14px}
.cardhead h2{margin:0}
.cardhead span{font-size:14px;color:var(--muted)}
.overdue{display:flex;flex-direction:column;gap:12px;background:var(--red-bg);border-radius:10px;padding:14px 16px;margin:0 0 16px;color:var(--red-ink)}
.overdue button.wa{border-color:var(--red);color:var(--red)}
.acts{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.overdue .acts{margin:0}
.paylink{background:var(--brand-soft);border-radius:10px;padding:4px 16px 14px;margin:0 0 16px}
.paylink input{width:100%}
.clear{background:var(--green-bg);color:#14532D;border-radius:10px;padding:12px 16px;margin:0 0 16px}
.fees td:first-child{white-space:nowrap}
.fees .due{font-weight:600;color:var(--red)}
.fees td b{font-weight:500}
.striplabel{font-size:13px;font-weight:600;color:var(--muted);margin:20px 0 8px}
.strip{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;font-size:13px;text-align:center}
.strip div{border-radius:8px;padding:8px 2px;background:var(--tint);line-height:1.35;color:var(--ink-2)}
.strip .paid{background:var(--green-bg);color:var(--green)}
.strip .part{background:var(--amber-bg);color:var(--amber)}
.strip .late{background:var(--red-bg);color:var(--red);font-weight:600}
dl.facts{margin:0}
dl.facts dt{font-size:13px;font-weight:600;color:var(--muted)}
dl.facts dd{margin:2px 0 14px;font-size:16px}
dl.facts dd:last-child{margin-bottom:0}
.orig{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}
.orig:last-child{margin-bottom:0}
.orig span{font-size:14px;color:var(--muted)}

/* Admission form details: a filled detail is locked (28 Oct 2026); changes go through a correction */
.locked{display:block;font-size:16px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--tint);color:var(--ink);min-height:44px;white-space:pre-line;overflow-wrap:anywhere}
table.pe td{vertical-align:middle}
table.pe .locked{display:inline-block;min-height:0;padding:6px 8px;font-size:15px;white-space:normal}
/* Student page: the scanned paper form */
.paper{margin-top:24px}
.paper h3{font-size:15px;margin:18px 0 6px}
dl.facts.cols2{display:grid;grid-template-columns:max-content 1fr;gap:6px 18px;align-items:baseline}
dl.facts.cols2 dd{margin:0}
.checklist{margin:0;padding-left:22px}
.checklist li{margin:2px 0}
table.paperform th{text-align:left;font-weight:600;color:var(--ink-2);width:34%;vertical-align:top;white-space:normal}
table.paperform td{overflow-wrap:anywhere}

/* Staff logins: tick lists (campuses, work areas) */
.ticks{display:flex;flex-wrap:wrap;gap:2px 20px;margin:2px 0 6px}
.ticks label{display:inline-flex;align-items:center;min-height:40px;margin:0;font-size:15px;font-weight:400;color:var(--ink)}
.ticks label .muted{margin-left:5px}
/* Condition of an original on receipt (12 Nov 2026): Good + six, on their own line in the receive form */
fieldset.condition{border:0;padding:0;margin:0;min-width:0;flex:1 1 100%}
fieldset.condition legend{padding:0;font-size:14px;font-weight:600;color:var(--ink-2);margin:14px 0 6px}
fieldset.condition p.muted{margin:0;font-size:13px}
p>label:has(>input[type=checkbox]){display:inline-flex;align-items:center;margin:4px 20px 4px 0;font-weight:400;color:var(--ink)}

/* ---- tablets, foldables opened, half-screen windows (16 Oct 2026) ---- */
@media (max-width:1199px){
  .bar{flex-wrap:nowrap;gap:10px 18px;padding:10px 24px}
  .find{flex:1 1 auto;min-width:0}
  main{padding:24px 24px 56px}
  h1{font-size:27px}
  .record h1{font-size:30px}
  .cols{flex-direction:column;gap:20px}
  .cols>.main,.cols>.side{flex:none;width:100%}
  .cols>.side{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;align-items:start}
  .cols>.main>:last-child{margin-bottom:0}
  .fees td:nth-child(7) form.inline{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:6px}
  .card,.box{margin-bottom:20px}
}
/* the queue becomes stacked rows: ID and due on top, what next, then campus and who */
@media (max-width:900px){
  .queue thead{display:none}
  .queue,.queue tbody{display:block}
  .queue tr{display:grid;grid-template-columns:1fr auto;grid-template-areas:"id due" "what what" "stu stu" "camp who";gap:2px 12px;padding:12px 16px;border-bottom:1px solid var(--line)}
  .queue tr:last-child{border-bottom:0}
  .box>table.queue td,.box>table.queue td:nth-child(n+4){display:block;padding:0;border:0}
  .queue td:nth-child(1){grid-area:due;text-align:right;font-size:14px}
  .queue td:nth-child(2){grid-area:id}
  .queue td:nth-child(3){grid-area:what;font-size:15px;margin-top:2px;min-width:0}
  .queue td:nth-child(4){grid-area:stu;font-size:14px;color:var(--muted)}
  .box>table.queue td:nth-child(4):has(.none){display:none}
  .queue td:nth-child(5){grid-area:camp;font-size:14px;color:var(--muted)}
  .queue td:nth-child(6){grid-area:who;text-align:right;font-size:14px;color:var(--muted);min-width:0}
  .queue td:nth-child(4)::before{content:"Student ID "}
  /* queue blocks (Prithvi, 16 Oct 2026): each ticket its own block; a touch anywhere opens it */
  .box.scroll.qbox{background:transparent;border:0;box-shadow:none;overflow:visible}
  .qbox .queue tr{position:relative;background:#FFFFFF;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(27,29,51,.04);margin-bottom:10px}
  .qbox .queue tr:last-child{border-bottom:1px solid var(--line);margin-bottom:0}
  .qbox .queue td:nth-child(2) a::after{content:"";position:absolute;inset:0;border-radius:var(--radius)}
  .qbox .queue tr:active{background:var(--tint)}
  /* Tickets page: a touch anywhere on a row opens the ticket */
  .tlist tr{position:relative}
  .tlist td:first-child a::after{content:"";position:absolute;inset:0}
  .tlist tr:active{background:var(--tint)}
}

/* ---- phone: one slim top bar, tab menu becomes a bottom bar ---- */
@media (max-width:700px){
  body{font-size:15px}
  dl.facts.cols2{grid-template-columns:1fr;gap:2px}
  dl.facts.cols2 dd{margin-bottom:10px}
  table.paperform tr{display:block;border-bottom:1px solid var(--line);padding:8px 0}
  table.paperform tr:last-child{border-bottom:0}
  table.paperform th,table.paperform td{display:block;width:auto;border:0;padding:0}
  table.paperform th{font-size:13px;color:var(--muted)}
  .bar{flex-wrap:nowrap;padding:8px 12px;gap:10px}
  .brand .wl{display:none}
  .brand .mark{width:30px;height:30px;margin:0}
  .brand .name{font-size:17px}
  .find{flex:1 1 auto;min-width:0;height:40px;padding:0 10px;gap:8px;border-radius:9px}
  .find input{font-size:16px}
  .me{display:none}
  .tabs{display:none}
  .tabs:target{display:flex;flex-direction:column;padding:4px 16px 10px}
  .tabs:target a{min-height:46px;border-bottom:1px solid var(--line)}
  .tabs:target .menuout{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 4px;font-size:14px;color:var(--muted)}
  .bottom{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:10;background:#FFFFFF;border-top:1px solid var(--line);padding:0 4px env(safe-area-inset-bottom)}
  .bottom a{flex:1;display:flex;align-items:center;justify-content:center;min-height:50px;color:var(--ink-2);text-decoration:none;font-size:13px;font-weight:600;border-top:2px solid transparent}
  .bottom a[aria-current=page]{color:var(--ink);border-top-color:var(--spark)}
  main{padding:14px 12px 84px}
  h1{font-size:22px;margin-bottom:12px}
  h2{font-size:17px;margin-bottom:8px}
  h3{font-size:15px}
  .lead,h1+p.muted{margin:-6px 0 14px;font-size:14px}
  .pagehead{margin-bottom:10px}
  .pagehead span{font-size:13px}
  .record{padding-bottom:14px;margin-bottom:16px;gap:10px}
  .record h1{font-size:24px;margin-bottom:6px}
  .ids{font-size:14px;gap:4px 16px}
  .ids .mono,.ids .sid{font-size:15px}
  .crumb{font-size:14px;margin-bottom:4px}
  .card{padding:14px}
  .card,.box{margin-bottom:14px;border-radius:10px}
  .cols{gap:14px}
  .cols>.side{gap:14px}
  .grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .box>h2{padding:12px 14px 4px;font-size:16px}
  .box .sub{padding:10px 14px 0}
  .box .line{padding:8px 14px;min-height:44px;font-size:14px}
  .box>table th,.box>table td{padding-left:14px;padding-right:14px}
  table{font-size:14px}
  th,td{padding:8px 8px}
  th{font-size:12px}
  dl.facts dt{font-size:12px}
  dl.facts dd{font-size:15px;margin-bottom:10px}
  label{font-size:13px;margin:10px 0 4px}
  input,select,textarea{min-height:42px;padding:8px 10px}
  textarea{min-height:72px}
  button,a.btn{min-height:40px;padding:0 14px;font-size:14px}
  form p:has(>button){margin-top:14px}
  .tag{font-size:12px;padding:0 6px}
  .pill{font-size:13px;padding:4px 10px}
  .msg{padding:10px 12px;margin-bottom:14px;font-size:14px}
  th:nth-child(n+4),td:nth-child(n+4){display:none}
  .fees th:nth-child(n+4),.fees td:nth-child(n+4){display:table-cell}
  .fees th:nth-child(2),.fees td:nth-child(2),.fees th:nth-child(6),.fees td:nth-child(6){display:none}
  .fees td:first-child{white-space:nowrap}
  .fees,.fees thead,.fees tbody{display:block}
  .fees tr{display:grid;grid-template-columns:4.6em repeat(3,minmax(0,1fr));column-gap:10px;border-bottom:1px solid var(--line)}
  .fees thead tr{border-bottom-color:var(--line-strong)}
  .fees tbody tr:last-child{border-bottom:0}
  .fees th,.fees td{border-bottom:0;padding-left:0;padding-right:0}
  .fees th:nth-child(7){display:none}
  .fees td:nth-child(7){grid-column:1/-1;padding-top:0}
  .fees td:nth-child(7) form.inline{display:flex;gap:8px;margin-top:6px}
  .strip{grid-template-columns:repeat(4,minmax(0,1fr))}
  .queue tr{padding:10px 14px}
}
/* narrow phones: the signed-in bar keeps the logo and gives the room to the search box
   (the signed-out bar keeps "Gauthami Institutions") */
@media (max-width:400px){
  .brand .name{display:none}
}


/* identification-mark spell check (10 Nov 2026) */
.mark-hint{display:block;margin-top:4px;font-size:13px;color:#8a5a00}
.mark-hint button{margin:2px 6px 2px 0;padding:2px 8px;font-size:13px}
.contact{margin-top:12px}.contact .acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}

/* Students landing (15 Nov 2026): search + dropdowns; no list until asked */
.stpick label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:6px}
.stpick .big{font-size:17px;min-height:52px}
.stpick .pickrow{display:grid;grid-template-columns:2fr 1.1fr 1.3fr 1.2fr 1fr;gap:12px 16px;margin-top:16px}
.stpick .pickrow select{width:100%}
.stpick .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.hint{font-size:14px;color:var(--muted);margin:14px 0 0}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:900px){.stpick .pickrow{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.stpick .pickrow{grid-template-columns:1fr}}

/* PAR-01 (20 Nov 2026): a parent's WhatsApp conversation on the ticket */
.wa-thread{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:var(--radius);padding:12px;margin:8px 0 14px;max-height:420px;overflow:auto}
.wa-msg{max-width:80%;padding:8px 11px;border-radius:var(--radius);white-space:normal}
.wa-msg small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.wa-in{align-self:flex-start;background:#FFFFFF;border:1px solid var(--line)}
.wa-out{align-self:flex-end;background:var(--brand-soft);border:1px solid var(--line-strong)}
.wa-ready{margin-bottom:6px}

/* Originals and Scans (R8, 21 Nov 2026; phone layout OK'd 09:53) */
.os .os-doc{border-top:1px solid var(--line,#E3E6EE);padding:12px 0;display:grid;grid-template-columns:220px 1fr auto;gap:4px 16px;align-items:start}
.os .os-nm{font-weight:600}.os .os-sub{color:#5B6170;font-size:13px;margin-top:4px}
.os .os-open{white-space:nowrap;display:inline-block;padding:6px 12px;border:1px solid #9AA0AE;border-radius:6px;text-decoration:none;color:inherit;font-size:14px;margin:0 0 4px 4px}
.os .os-lock{display:inline-block;font-size:13px;margin:0 0 4px 4px}
.os .os-pages{grid-column:1/-1;display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 0}
.os .os-pages img{flex:0 0 auto;max-width:520px;width:48%;height:auto;scroll-snap-align:start;border:1px solid #C9CEDA;border-radius:4px;background:#fff}
.os .os-note{grid-column:1/-1;color:#5B6170;font-size:13px}
.os .os-fold{grid-column:2/-1;margin:4px 0 0}.os .os-cf{background:#FFF8EC;border:1px solid #F0D49A;border-radius:8px;padding:12px;margin-top:6px}
.os .os-ticks{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.os .os-ticks label{display:inline-flex;gap:8px;align-items:center;border:1px solid #D5D9E2;background:#fff;border-radius:6px;padding:8px 10px;font-size:14px;font-weight:400;margin:0}
.os .os-btns{display:flex;gap:8px;flex-wrap:wrap}.os .os-btns button{width:auto}
.os button.secondary{background:#fff;color:inherit;border:1px solid #9AA0AE}
.os .tag.grey{background:#ECEEF3;color:#3C4250}.os .os-h{font-size:15px;margin:18px 0 0}
.os .os-other{border-top:1px solid var(--line,#E3E6EE);padding:10px 0;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.os .os-other .os-pages,.os .os-other .os-note{flex:1 1 100%}
.os .os-receive{margin-top:16px}
@media (max-width:700px){
 .os .os-doc{grid-template-columns:1fr auto;gap:6px 10px}
 .os .os-st{grid-column:1/-1;order:3}
 .os .os-fold,.os .os-pages,.os .os-note{grid-column:1/-1;order:4}
 .os .os-ticks{display:grid;grid-template-columns:1fr 1fr}
 .os .os-ticks label{padding:10px;min-height:44px}
 .os .os-btns{display:grid;grid-template-columns:1fr 1fr}.os .os-btns button{width:100%}
 .os .os-pages img{width:86%;max-width:none}
 .os .os-open{padding:8px 12px}
}
/* R10 (23 Nov 2026): request to cancel an admission */
.undo.cx form{flex-direction:column;align-items:stretch}.undo.cx form>input,.undo.cx form>select{max-width:22rem}
.cx-orig{border:1px solid var(--line);border-radius:8px;padding:6px 10px;margin:4px 0 0}.cx-orig legend{font-weight:600;padding:0 4px}
.cx-o{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:6px 0;border-top:1px solid var(--line)}.cx-o:first-of-type{border-top:0}
.cx-o>span:first-child{flex:1 1 100%;font-weight:600}.undo.cx .cx-o label{width:auto;display:inline-flex;gap:6px;align-items:center;font-weight:400}
.undo.cx form>button{align-self:flex-start;margin-top:6px}

/* Certificates card (23 Nov 2026): one dropdown, one panel per certificate (ui/_certificates.html) */
.cert{padding:0;overflow:hidden}
.cert .cardhead{padding:20px 24px 4px;margin:0}
.certpick{padding:4px 24px 16px}.certpick label{margin:0 0 4px}
.certpick .row>div{flex:0 1 auto}.certpick select{width:auto;min-width:340px;max-width:100%;font-size:15px}
.certpanel{margin:0 24px 18px;border:1px solid var(--line);border-radius:12px;padding:16px 18px;background:#fff}
.certpanel h3{margin:0 0 2px;font-size:17px}.certpanel .sub{color:var(--muted);font-size:13px;margin:0 0 14px}
.certpanel .note{font-size:13px;margin:4px 0 0}
.certpanel .acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.certpanel .copysrc{position:absolute;left:-9999px}
.certempty{margin:0 24px 18px;padding:14px 18px;border:1px dashed var(--line-strong);border-radius:12px;color:var(--muted);font-size:14px}
.steps{display:flex;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-bottom:14px}
.steps span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.steps span i{width:18px;height:18px;border-radius:50%;border:2px solid var(--line-strong);display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-size:11px;font-weight:700;background:#fff}
.steps span.done i{background:var(--green);border-color:var(--green);color:#fff}
.steps span.now{color:var(--ink);font-weight:600}.steps span.now i{border-color:var(--spark)}
.steps b{flex:0 0 22px;height:2px;background:var(--line-strong);margin:0 6px}.steps b.done{background:var(--green)}
.issueform{background:var(--tint);border:1px solid var(--line);border-radius:10px;padding:12px 16px 16px}
.issueform .row>div{flex:1 1 180px}.issueform textarea{width:100%}
.cert .more{font-size:14px;margin-top:6px}
.cert .issued{padding:6px 24px 18px;border-top:1px solid var(--line)}
.cert .issued h3{margin:12px 0 4px;font-size:14px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.cert .nowrap{white-space:nowrap}
@media (max-width:700px){
 .cert .cardhead{padding:14px 14px 2px}.certpick{padding:4px 14px 12px}.certpick select{min-width:0;width:100%}
 .certpick .row>div{width:100%}.certpanel,.certempty{margin:0 14px 14px;padding:14px}.cert .issued{padding:4px 14px 14px}
}
/* Fee rows (23 Nov 2026): the item's short name leads, invoice no. small under it; 6 columns, the 6th = actions */
.fees.feerows td:first-child{white-space:normal;min-width:9em}
@media (max-width:1199px){ .fees.feerows td:nth-child(6) form.inline{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:6px} }
@media (max-width:700px){
 .fees.feerows th:nth-child(6){display:none}
 .fees.feerows td:nth-child(6){display:block;grid-column:1/-1;padding-top:0}
 .fees.feerows td:nth-child(6) form.inline{display:flex;gap:8px;margin-top:6px}
 .fees.feerows tr{grid-template-columns:repeat(3,minmax(0,1fr))}
 .fees.feerows th:first-child,.fees.feerows td:first-child{grid-column:1/-1;min-width:0}
 .fees.feerows th:first-child{display:none}
 .fees.feerows td:first-child{padding-bottom:2px}
}
/* R8 H (23 Nov 2026): Correct this label, under the open pages */

/* Folds (Prithvi 23 Nov 2026 22:55): on the student page every form waits behind a button and opens on a click. */
details.fold{margin:6px 0}
details.fold>summary{list-style:none;display:inline-flex;align-items:center;min-height:40px;padding:0 16px;margin:0;border:1px solid var(--line-strong);border-radius:8px;background:#FFFFFF;color:var(--ink);font-size:14px;font-weight:600}
details.fold>summary::-webkit-details-marker{display:none}
details.fold>summary::after{content:"";width:7px;height:7px;margin-left:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
details.fold[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
details.fold>summary:hover{background:var(--tint)}
details.fold[open]>summary{background:var(--tint);border-color:var(--brand);color:var(--brand)}
details.fold>form,details.fold>p{margin-top:10px}
@media (max-width:700px){details.fold>summary{min-height:44px}}
/* One Certificates section (Secretary 23 Nov 2026 23:06, Decision Table 15): received | issued, side by side on a
   computer, one under the other on a tablet or phone. */
.certparts{display:grid;grid-template-columns:1fr;border-top:1px solid var(--line)}
.certpart{padding:4px 24px 20px;min-width:0}
.certpart+.certpart{border-top:1px solid var(--line)}
.parthead{margin:14px 0 8px;font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.cert .os .os-doc{grid-template-columns:170px 1fr auto}
.cert .os .os-doc:first-of-type{border-top:0}
.cert .os .os-fold{grid-column:2/-1}
.cert .os-foot{margin:12px 0 0;font-size:13px}
.os .os-h{font-size:14px;margin:16px 0 0}
.os .os-cf label{margin:0 0 4px}.os .os-cf input[name=identifier]{max-width:18rem}
.issuedpart .certpick,.issuedpart .certpanel,.issuedpart .certempty{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
.issuedpart .certpanel,.issuedpart .certempty{padding:14px 16px}
.issuedpart .certpick{padding-top:0}
.issuedpart .issued{padding:4px 0 0;border-top:0}
.issuedpart .issued h4{margin:16px 0 4px;font-size:14px}
.issuedpart .issued td{padding:8px 8px 8px 0;vertical-align:top}
@media (min-width:1100px){
 .certparts{grid-template-columns:1fr 1fr}
 .certpart+.certpart{border-top:0;border-left:1px solid var(--line)}
}
@media (max-width:700px){
 .certpart{padding:2px 14px 16px}
 .cert .os .os-doc{grid-template-columns:1fr auto}
 .cert .os .os-fold{grid-column:1/-1}
}
.cert .os .os-ticks{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.keepnote{margin:0 0 10px;padding:8px 12px;border-radius:8px;background:var(--amber-bg);color:#6B3A00;font-size:14px}
/* Student photo on the student page (24 Nov 2026): passport shape beside the name; fetched from Drive per view. */
.recphoto{position:relative;flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:100%}
.recphoto img,.recphoto .nophoto{width:84px;height:108px;border-radius:6px;border:1px solid var(--line-strong);object-fit:cover;background:#fff}
.recphoto .nophoto{display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;color:var(--muted);border-style:dashed;background:var(--tint)}
.recphoto .photonote{margin:0;font-size:12px;line-height:1.3;color:var(--amber);font-weight:600;max-width:150px}.recphoto .photonote.ok{color:var(--muted)}
.recphoto .photocheck{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid var(--line)}.recphoto .photocheck:last-child{margin:0;padding:0;border:0}
.recphoto .photofold{margin:0}.recphoto .photofold>summary{min-height:34px;padding:0 10px;font-size:13px}
.recphoto .photofold[open]{position:relative;z-index:2}
.recphoto .photofold>.photomenu{position:absolute;left:0;top:calc(100% + 6px);z-index:5;width:min(420px,86vw);background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;box-shadow:0 6px 20px rgba(27,29,51,.12)}
.rechead{flex:1 1 360px;min-width:0}
@media (max-width:700px){.recphoto img,.recphoto .nophoto{width:64px;height:82px}}

/* ONE ACTION BUTTON (Secretary 25 Nov 2026, GOMSY CODE 057 — samples): one dark button per record or row; its label
   says where things stand; it opens a short list of choices; picking one opens only that choice's form (the
   choices share a name, so one is open at a time); a choice not open now is greyed with its reason. */
details.act{margin:4px 0}
details.act>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;max-width:100%;min-height:44px;padding:0 16px;border-radius:8px;background:var(--brand);color:#fff;font-weight:600;font-size:15px;cursor:pointer;user-select:none}
details.act>summary::-webkit-details-marker{display:none}
details.act>summary .st{font-weight:500;font-size:13px;color:var(--on-brand)}
details.act>summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 2px 4px 4px}
details.act[open]>summary::after{transform:rotate(-135deg);margin-bottom:-2px}
details.act.small>summary{min-height:36px;padding:0 12px;font-size:14px}
.actmenu{margin-top:8px;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;max-width:560px;box-shadow:0 4px 14px rgba(27,29,51,.08)}
.actmenu>details,.actmenu>.off{border-bottom:1px solid var(--line)}
.actmenu>details:last-child,.actmenu>.off:last-child{border-bottom:0}
.actmenu>details>summary{list-style:none;padding:12px 16px;cursor:pointer;font-weight:500;font-size:15px;display:flex;flex-wrap:wrap;align-items:center}
.actmenu>details>summary small{flex-basis:100%;order:3}
.actmenu>details>summary::-webkit-details-marker{display:none}
.actmenu>details>summary small,.actmenu>.off small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:2px}
.actmenu>details>summary:hover{background:var(--tint)}
.actmenu>details[open]>summary{background:var(--tint);font-weight:700}
.actmenu>details>form,.actmenu>details>.body{padding:6px 16px 16px;background:var(--tint)}
.actmenu>.off{padding:12px 16px;color:#9AA0AB;font-size:15px}

/* BUTTON STATES (Secretary 25 Nov 2026, GOMSY CODE 057: "every button needs states"). One set for every button,
   link-button and one-button summary in GOMSY:
   ready · hover · pressed · keyboard focus · not available (grey; the reason is written beside it) ·
   working (spinner, presses ignored; long jobs also show a moving bar) · not saved (red; the form reopens with what
   was typed) · done (green tick for a few seconds) · cooldown (a send just made: "again in N s") ·
   selected (the open choice) · expanded (the one button open) · current (the choice that is due now) ·
   confirm (pick a choice, then its own final button; red when it cancels something). Dragged and hold-to-press
   are not used: nothing in GOMSY is dragged, and nothing is ever deleted. */
button,a.btn,details.act>summary{transition:background-color .12s,border-color .12s,box-shadow .12s,transform .06s}
button:active:not(:disabled),a.btn:active,details.act>summary:active{transform:translateY(1px);filter:brightness(.92)}
button:focus-visible,a.btn:focus-visible,details>summary:focus-visible{outline:3px solid #6C8CFF;outline-offset:2px}
button:disabled,button[aria-disabled=true]{background:#E6E8EE !important;border-color:#D5D8E1 !important;color:#8A90A0 !important;opacity:1;cursor:not-allowed;transform:none;filter:none}
button.is-loading{color:#5B6172 !important}
button.is-loading::before{content:"";width:15px;height:15px;border:2px solid #8A90A0;border-right-color:transparent;border-radius:50%;animation:gspin .7s linear infinite;flex:none}
/* progress INSIDE the button (Secretary 14:10): the button fills left to right and says "50% done" */
button.is-progress{--p:0%;color:#fff !important;border-color:#3F5BD8 !important;cursor:progress;
  background:linear-gradient(90deg,#3F5BD8 var(--p),#9AA8E8 var(--p)) !important}
@keyframes gspin{to{transform:rotate(360deg)}}
@keyframes gbar{from{background-position:100% 0}to{background-position:-100% 0}}
button.is-error::before{content:"!";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--red);color:#fff;font-size:12px;font-weight:800}
button.is-error{background:#fff !important;border-color:var(--red) !important;color:var(--red) !important;box-shadow:0 0 0 3px var(--red-bg)}
button.is-done{background:var(--green) !important;border-color:var(--green) !important;color:#fff !important}
button.is-cooling{background:#fff !important;border-color:var(--line-strong) !important;color:var(--muted) !important;cursor:not-allowed}
/* the one button's tones: waiting on you (dark, the default) · urgent (red) · calm (white: nothing due) · off */
details.act.urgent>summary{background:var(--red)}
details.act.urgent>summary .st{color:#FFD9DB}
details.act.calm>summary{background:#fff;color:var(--ink);border:1px solid var(--line-strong)}
details.act.calm>summary .st{color:var(--muted)}
details.act.off>summary{background:#E6E8EE;color:#8A90A0;cursor:not-allowed;pointer-events:none}
details.act.off>summary .st{color:#8A90A0}
details.act.off>summary::after{display:none}
details.act>summary:hover{filter:brightness(1.12)}
details.act.calm>summary:hover{background:var(--tint);filter:none}
details.act.act-error>summary{box-shadow:0 0 0 3px var(--red-bg),0 0 0 4px var(--red)}
details.act.act-done>summary{box-shadow:0 0 0 3px var(--green-bg),0 0 0 4px var(--green)}
.actmenu>details>summary.cur::after{order:2;content:"Due now";margin-left:8px;padding:2px 8px;border-radius:10px;background:var(--amber-bg);color:var(--amber);font-size:11px;font-weight:700;vertical-align:2px}
.actmenu button.danger{background:var(--red);border-color:var(--red);color:#fff}
.actmenu button.danger:hover{background:var(--red-ink);border-color:var(--red-ink)}
.decide details.act{margin-top:6px}
.line.decide{align-items:center}
@media (max-width:420px){details.act>summary .st{display:none}}
/* the student's one button sits in the header: its list opens over the page (does not push the header apart) */
.record .actions details.act{position:relative}
.record .actions details.act>.actmenu{position:absolute;right:0;top:calc(100% + 2px);z-index:20;width:min(560px,92vw)}
@media (max-width:700px){.record .actions details.act>.actmenu{right:auto;left:0}}
/* NOT SAVED: the reason is written inside the button (Secretary 14:10) */
button.is-error{white-space:normal;text-align:left;max-width:min(520px,100%);height:auto;min-height:44px;padding-top:8px;padding-bottom:8px;line-height:1.3}
/* NOT AVAILABLE: the reason sits right under the grey button, with a lock (Secretary 14:02: "reason not showing") */
button .why{display:flex;gap:5px;align-items:center;flex-basis:100%;justify-content:center;font-size:12px;font-weight:500;color:#6B7080}
button:has(.why){flex-wrap:wrap;height:auto;min-height:44px;padding-top:6px;padding-bottom:6px;row-gap:1px}
button .why::before{content:"";width:11px;height:11px;flex:none;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7080' stroke-width='2.4'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E")}
.actmenu>.off{display:flex;flex-wrap:wrap;align-items:center}
.actmenu>.off small{flex-basis:100%;display:flex;gap:6px;align-items:center;color:#5B6172}
.actmenu>.off small::before{content:"";width:11px;height:11px;flex:none;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6172' stroke-width='2.4'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E")}
.exit-act{margin:6px 0 14px;max-width:640px}
/* batch 2: an action button inside a table cell opens its list over the rows (GOMSY CODE 057) */
.actcell details.act{position:relative}
.actcell details.act>.actmenu{position:absolute;right:0;top:calc(100% + 2px);z-index:20;width:min(440px,90vw)}
/* New callers (telephony, 27 Nov 2026): one block per caller, phone and computer alike */
.callers .cl{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.callers .cl:last-child{border-bottom:0}
.callers .cl .who{flex:1 1 260px;line-height:1.5}
.callers .cl .acts{margin-left:auto}
