/* public/dev-glass.css — R210: the Dev console in lighter smoked glass.
 *
 * One sheet for the console (dev-console.html) and the four pages its last tabs open (dev-promotions, dev-agreements,
 * dev-packages, dev-appointments), which used to be a near-black page and four white ones. Everything is now panes of
 * smoked glass on a lifted, smoky page with a breath of violet; the university photographs the wallet uses sit behind
 * the top of the console and beside the people and shops that belong to each (public/sm-campus.js).
 *
 * How it is put together
 *   1. the colours: the two families of variables those pages already draw with are pointed at one palette, so the
 *      pages' own rules (and the tabs' scripts, which read the same variables) follow without being rewritten;
 *   2. the page: smoke, light pooled behind the glass, a fine grain;
 *   3. the glass: cards, tiles, rows, drawers, fields, buttons;
 *   4. the console's frame: the tabs become a rail down the side on a laptop;
 *   5. the university photographs: the band at the top, the small pictures in rows, the headers of the side panels;
 *   6. the four white pages (html.dg-page).
 *
 * Every page that loads this has class="dg" on <html>. Nothing here changes what a control does or where it is.
 */

/* ── 1. the colours ─────────────────────────────────────────────────────────────────────────────────────────────── */
html.dg{
  --dg-page:#3B3746; --dg-page-rgb:83,75,103; /* (the lightest the page gets, at its top under the violet light: what tests/e2e/dev-drafts.mjs measures words against) */ --dg-page-low:#33303D; --dg-page-high:#444050;   /* the page: smoke, far lighter than the old near-black */
  --dg-pane:rgba(22,18,32,.38);            /* a pane of smoked glass: darker than the page behind it, which shows through */
  --dg-pane-2:rgba(255,255,255,.085);      /* lit: a hover, the chosen one, glass lying on glass */
  --dg-pane-3:rgba(255,255,255,.14);
  --dg-well:rgba(10,8,16,.34);             /* cut into the glass: fields you type a lot into, previews */
  --dg-sheet:rgba(41,37,51,.96);           /* what opens over the page: drawers, pop-ups, toasts */
  --dg-solid:#2E2A38;                      /* where glass can't go: the lists a browser draws for a <select> */
  --dg-line:rgba(255,255,255,.14); --dg-line-2:rgba(255,255,255,.27);
  --dg-ink:#F7F4FC; --dg-ink-2:#DDD7EA; --dg-ink-3:#C6BED8;
  --dg-violet:#CFC0FF;                     /* the hint of purple: links, the lit tab's edge, focus */
  --dg-violet-fill:#7646C6; --dg-violet-fill-2:#5C309F;
  --dg-blur:blur(22px) saturate(1.3);
  --dg-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 22px 44px -28px rgba(8,6,14,.7);
  --dg-shadow-up:inset 0 1px 0 rgba(255,255,255,.12), 0 30px 70px -20px rgba(8,6,14,.75);
  --dg-r:18px; --dg-r-sm:12px;
  --dg-warn-bg:rgba(245,166,62,.15); --dg-warn-ink:#FFD9A6; --dg-warn-line:rgba(245,166,62,.4);
  --dg-bad-bg:rgba(240,98,98,.15); --dg-bad-ink:#FFC9C4; --dg-bad-line:rgba(240,98,98,.42);
  --dg-good-bg:rgba(64,196,134,.15); --dg-good-ink:#9CECC4; --dg-good-line:rgba(64,196,134,.4);
  color-scheme:dark;

  /* the console's own names */
  --bg:var(--dg-page-low); --bg2:var(--dg-sheet); --panel:var(--dg-pane); --panel2:var(--dg-pane-2); --line:var(--dg-line);
  --purple:var(--dg-violet-fill); --purple-deep:var(--dg-violet-fill-2); --purple-soft:var(--dg-violet); --orange:#FFA05C;
  --ink:var(--dg-ink); --ink-soft:var(--dg-ink-2); --ink-faint:var(--dg-ink-3); --good:#3DBF86; --bad:#FF8E80; --amber:#F5BE5B;
  --well:var(--dg-well); --sheet:var(--dg-sheet); --solid:var(--dg-solid);
  --warn-bg:var(--dg-warn-bg); --warn-ink:var(--dg-warn-ink); --bad-bg:var(--dg-bad-bg); --bad-ink:var(--dg-bad-ink);
}
/* the four white pages' names (they drew dark ink on white with these) */
html.dg.dg-page{
  --canvas:var(--dg-page); --surface:var(--dg-pane); --line:var(--dg-line);
  --ink:var(--dg-ink); --ink-soft:var(--dg-ink-2); --ink-faint:var(--dg-ink-3);
  --purple:var(--dg-violet-fill); --purple-deep:var(--dg-violet); --purple-tint:rgba(185,162,255,.16);
  --orange:#FFB07A; --green:#8FE5BC; --green-bg:var(--dg-good-bg); --warn-bg:var(--dg-warn-bg); --warn:var(--dg-warn-ink);
  --bad:#FFB1A8; --bad-bg:var(--dg-bad-bg);
  --shadow-sm:var(--dg-shadow);
}

/* ── 2. the page ────────────────────────────────────────────────────────────────────────────────────────────────── */
html.dg{
  background:
    radial-gradient(64rem 34rem at 86% -6%, rgba(168,140,236,.15), transparent 62%),
    radial-gradient(44rem 30rem at -8% 22%, rgba(255,176,124,.06), transparent 64%),
    radial-gradient(60rem 40rem at 46% 112%, rgba(150,132,200,.13), transparent 62%),
    linear-gradient(180deg, var(--dg-page-high) 0%, var(--dg-page) 38%, var(--dg-page-low) 100%) var(--dg-page);
  background-attachment:fixed;min-height:100%;
}
html.dg body{color:var(--dg-ink);background:none}   /* (the smoke is on the root: a short page has it to the foot of the window) */
/* a fine grain, so the glass has something to be in front of */
html.dg body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.42;mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>")}
html.dg #app,html.dg #gate,html.dg body>.wrap{position:relative;z-index:1}
html.dg ::selection{background:rgba(185,162,255,.4);color:#fff}
html.dg :focus-visible{outline:2px solid var(--dg-violet);outline-offset:2px}
html.dg{scrollbar-color:rgba(255,255,255,.28) transparent}
html.dg a{color:var(--dg-violet)}

/* ── 3. the glass ───────────────────────────────────────────────────────────────────────────────────────────────── */
/* panes that hold a section: these blur what is behind them (a few per screen, never one per row) */
html.dg .card,html.dg .dp,html.dg .sfbar,html.dg .vq.vq-calm,html.dg .devcard,html.dg .hub-map,html.dg .mdcard,html.dg .mdshot{
  background:var(--dg-pane);border-color:var(--dg-line);box-shadow:var(--dg-shadow);
  -webkit-backdrop-filter:var(--dg-blur);backdrop-filter:var(--dg-blur)}
html.dg .card{border-radius:var(--dg-r)}
/* tiles and rows: the same glass, without a blur of their own */
html.dg .tile,html.dg .hrow,html.dg .lvrow,html.dg .vq-row{background:var(--dg-pane);border-color:var(--dg-line);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
html.dg .tile{border-radius:var(--dg-r);color:var(--dg-ink)}
html.dg .tile::before{width:3px;opacity:.9}
html.dg .tile:hover,html.dg .hrow:hover{background:linear-gradient(rgba(255,255,255,.07),rgba(255,255,255,.07)),var(--dg-pane)}
html.dg .tile.on{background:linear-gradient(rgba(201,184,255,.14),rgba(201,184,255,.14)),var(--dg-pane);border-color:var(--dg-violet)}
html.dg .tile.skel{background:linear-gradient(90deg,var(--dg-pane),var(--dg-pane-2),var(--dg-pane))}
html.dg .hrow{border-radius:16px}
html.dg .lvrow{border-left-width:3px}
html.dg .mgrow:hover{background:var(--dg-pane)}
html.dg .mgrow.on{background:var(--dg-pane-2);border-color:var(--dg-line)}
html.dg .dsr.last{background:rgba(185,162,255,.14)}
html.dg .lines .ln{background:var(--dg-well)}

/* buttons: the filled one keeps the brand's violet; the quiet one is glass */
html.dg .btn{background:linear-gradient(135deg,#7F4FD4,var(--dg-violet-fill-2));box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 8px 18px -10px rgba(60,26,120,.9);border-radius:12px}
html.dg .btn.good{background:linear-gradient(135deg,#1F7D54,#17633F)}   /* R212: white on the old lighter green was 3.4:1; this is 5.1:1 */
html.dg .btn.bad{background:linear-gradient(135deg,#C0392B,#8E2820)}
html.dg .btn.ghost{background:var(--dg-pane-2);color:var(--dg-ink);border:1px solid var(--dg-line);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
html.dg .btn.ghost:hover{background:var(--dg-pane-3);border-color:var(--dg-line-2)}
html.dg .btn[disabled]{opacity:.5}

/* fields */
html.dg input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),html.dg select,html.dg textarea{color-scheme:dark}
html.dg .sel,html.dg .hub-search,html.dg .dsq,html.dg .opsbar select,html.dg .opsbar input,html.dg .cform input,html.dg .devcard input,html.dg .modal textarea,html.dg #globalSearch{
  background:rgba(255,255,255,.07);border-color:var(--dg-line);color:var(--dg-ink)}
html.dg .sel:focus,html.dg .hub-search:focus,html.dg .dsq:focus,html.dg .cform input:focus,html.dg #globalSearch:focus,html.dg .modal textarea:focus{outline:none;border-color:var(--dg-violet);background:rgba(255,255,255,.1)}
html.dg ::placeholder{color:var(--dg-ink-3);opacity:.9}
html.dg select option,html.dg select optgroup{background:var(--dg-solid);color:var(--dg-ink)}
html.dg .dmText,html.dg .plDm .dmText,html.dg .preview .pbody{background:var(--dg-well);border-color:var(--dg-line);color:var(--dg-ink)}
html.dg .plDm{background:var(--dg-well);border-color:var(--dg-line)}
html.dg .plink{background:var(--dg-pane-2);border-color:var(--dg-line);color:var(--dg-violet)}
html.dg .rowline{border-bottom-color:var(--dg-line)}

/* notices */
html.dg .warn,html.dg .warnbox,html.dg .plDm .dmWarn{background:var(--dg-warn-bg);color:var(--dg-warn-ink);border:1px solid var(--dg-warn-line)}
html.dg .dswhy,html.dg .dsverdict.bad{background:var(--dg-bad-bg);color:var(--dg-bad-ink);border:1px solid var(--dg-bad-line)}
html.dg .dsverdict.ok{background:var(--dg-good-bg);color:var(--dg-good-ink);border:1px solid var(--dg-good-line)}
html.dg .vq{border-color:var(--dg-warn-line);background:linear-gradient(180deg,rgba(245,166,62,.14),rgba(245,166,62,.05));-webkit-backdrop-filter:var(--dg-blur);backdrop-filter:var(--dg-blur)}
html.dg .keybox{background:rgba(185,162,255,.12);border-color:rgba(185,162,255,.5)}
html.dg .pill.unverified{background:rgba(255,255,255,.1);color:var(--dg-ink-2)}
html.dg .pill.rejected{color:#FFA89C}
html.dg .devcard .derr{color:#FFA89C}
html.dg .hrow .hid,html.dg .hrow .hfacts b{color:#F7B955}
html.dg .rolepill.attendant{background:rgba(255,255,255,.16);color:var(--dg-ink)}
html.dg .ost{background:rgba(255,255,255,.16)}

/* the pills that filter a list */
html.dg .htab{background:rgba(255,255,255,.06);border-color:var(--dg-line);color:var(--dg-ink-2)}
html.dg .htab:hover{background:var(--dg-pane-2)}
html.dg .htab.on{background:var(--dg-pane-3);color:#fff;border-color:var(--tc)}
html.dg .htab b{opacity:.85}
html.dg .subtab{color:var(--dg-ink-3)}
html.dg .subtab.on{color:var(--dg-ink);background:var(--dg-pane-2);border-color:var(--dg-line)}

/* what opens over the page */
html.dg .scrim{background:rgba(18,15,24,.58);-webkit-backdrop-filter:blur(10px) saturate(1.1);backdrop-filter:blur(10px) saturate(1.1)}
html.dg .modal{background:var(--dg-sheet);border-color:var(--dg-line-2);box-shadow:var(--dg-shadow-up);border-radius:22px;-webkit-backdrop-filter:var(--dg-blur);backdrop-filter:var(--dg-blur)}
html.dg .drawer-wrap{background:rgba(18,15,24,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html.dg .drawer{background:linear-gradient(180deg,rgba(52,48,63,.97),rgba(41,37,51,.98));border-left:1px solid var(--dg-line-2);box-shadow:-30px 0 80px -20px rgba(6,4,12,.7)}
html.dg .drawer .dp{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(18,15,26,.34)}
html.dg .toast{background:var(--dg-sheet);border-color:var(--dg-line-2);box-shadow:var(--dg-shadow-up);-webkit-backdrop-filter:var(--dg-blur);backdrop-filter:var(--dg-blur);border-radius:14px}
html.dg .leaflet-popup-content-wrapper,html.dg .leaflet-popup-tip{background:var(--dg-solid);color:var(--dg-ink)}
html.dg .hub-map .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(1.05) contrast(.86) saturate(.45)}

/* tables and charts */
html.dg .stt th{color:var(--dg-ink-3);border-bottom-color:var(--dg-line)}
html.dg .stt td{border-bottom-color:var(--dg-line)}
html.dg .bar .bt{background:rgba(255,255,255,.1)}
html.dg .hcol .hb{background:rgba(201,184,255,.5)}

/* ── 4. the console's frame ─────────────────────────────────────────────────────────────────────────────────────── */
html.dg:not(.dg-page) .top{background:rgba(40,36,50,.62);border-bottom:1px solid var(--dg-line);-webkit-backdrop-filter:blur(26px) saturate(1.4);backdrop-filter:blur(26px) saturate(1.4);box-shadow:0 10px 30px -22px rgba(6,4,12,.9)}
html.dg:not(.dg-page) .brand{letter-spacing:-.2px}
html.dg:not(.dg-page) .brand b{color:var(--dg-violet)}
html.dg:not(.dg-page) .brand .tag{color:#FFD08A;border-color:rgba(255,208,138,.45);background:rgba(255,208,138,.08)}
html.dg:not(.dg-page) .who{color:var(--dg-ink-2)}
html.dg:not(.dg-page) .who a{color:var(--dg-violet)}
html.dg:not(.dg-page) .wrap{max-width:1180px}
html.dg:not(.dg-page) .tabs{gap:6px;padding:8px;border-radius:20px;background:var(--dg-pane);border:1px solid var(--dg-line);box-shadow:var(--dg-shadow);-webkit-backdrop-filter:var(--dg-blur);backdrop-filter:var(--dg-blur)}
html.dg:not(.dg-page) .tab{background:transparent;border-color:transparent;color:var(--dg-ink-2);border-radius:12px;font-size:13px}
html.dg:not(.dg-page) .tab:hover{background:var(--dg-pane-2);color:#fff}
html.dg:not(.dg-page) .tab.on{background:linear-gradient(135deg,rgba(150,112,236,.72),rgba(108,66,198,.74));color:#fff;border-color:rgba(214,198,255,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 10px 22px -14px rgba(70,34,140,.95)}
html.dg:not(.dg-page) .tab .n{background:#FFA05C;color:#231204;font-weight:800}
html.dg:not(.dg-page) .tabgrp{display:none}
html.dg:not(.dg-page) .tab .go{opacity:.6;font-weight:600;margin-left:6px}
html.dg:not(.dg-page) .hub-crumbs .crumb.on{color:#fff}
html.dg:not(.dg-page) .ssec{letter-spacing:-.2px}

@media (min-width:1180px){
  html.dg:not(.dg-page) #app>.wrap{max-width:1400px;display:grid;grid-template-columns:228px minmax(0,1fr);column-gap:26px;align-items:start;padding:22px 28px 60px}
  html.dg:not(.dg-page) #app>.wrap>.tabs{grid-column:1;grid-row:1 / span 80;position:sticky;top:84px;flex-direction:column;flex-wrap:nowrap;gap:2px;margin:0;padding:10px;max-height:calc(100vh - 104px);overflow-y:auto;scrollbar-width:thin}
  html.dg:not(.dg-page) #app>.wrap>:not(.tabs){grid-column:2;min-width:0}
  html.dg:not(.dg-page) .tab{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:40px;padding:8px 12px;text-align:left;font-size:13.5px;flex:none}
  html.dg:not(.dg-page) .tab .n{margin-left:auto}
  html.dg:not(.dg-page) .tabgrp{display:block;flex:none;font-family:var(--display);font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--dg-ink-3);padding:14px 12px 6px}
  html.dg:not(.dg-page) .tabgrp:first-child{padding-top:6px}
}
/* with a mouse the rail's rows are closer together, so more of its four groups are in sight on a small laptop; on a
   touch screen this wide (a tablet on its side) they keep their full height */
@media (min-width:1180px) and (pointer:fine){
  html.dg:not(.dg-page) #app>.wrap>.tabs{gap:1px}
  html.dg:not(.dg-page) .tab{min-height:34px;padding:6px 12px;font-size:13px}
  html.dg:not(.dg-page) .tabgrp{padding:11px 12px 4px}
  html.dg:not(.dg-page) .tabgrp:first-child{padding-top:4px}
}
@media (max-width:1179px){
  /* on a tablet or a phone the tabs are one row to swipe along, not five rows to read past */
  html.dg:not(.dg-page) #app>.wrap>.tabs{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;margin:0 -15px 18px;padding:8px 15px;border-radius:0;border-left:0;border-right:0}
  html.dg:not(.dg-page) #app>.wrap>.tabs::-webkit-scrollbar{display:none}
  html.dg:not(.dg-page) .tab{flex:none;scroll-snap-align:center;white-space:nowrap}
}

/* ── 5. the university photographs ──────────────────────────────────────────────────────────────────────────────── */
/* the band at the top of the console: the three universities, each a window onto its campus */
.dg-hero{position:relative;z-index:1;max-width:1400px;margin:0 auto;padding:22px 28px 0}
.dg-hero-in{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.smc-pane{position:relative;overflow:hidden;min-height:168px;border-radius:22px;border:1px solid var(--dg-line-2);background:linear-gradient(135deg,#565066,#3A3646);box-shadow:var(--dg-shadow-up);display:flex;flex-direction:column;justify-content:flex-end;padding:16px 18px 14px;isolation:isolate}
.smc-pane>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.smc-pane::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(30,27,38,.12) 0%,rgba(30,27,38,.34) 38%,rgba(30,27,38,.9) 100%)}
.smc-pane:hover>img{transform:scale(1.03)}
.smc-pane.smc-none::before{background:linear-gradient(180deg,rgba(30,27,38,0) 0%,rgba(30,27,38,.55) 100%)}
.smc-pane .k{font-family:var(--display);font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#fff;opacity:.92;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.smc-pane h2{font-family:var(--display);font-size:20px;font-weight:800;letter-spacing:-.3px;color:#fff;margin:2px 0 10px;text-shadow:0 1px 10px rgba(0,0,0,.55)}
.smc-pane .f{display:flex;gap:6px;flex-wrap:wrap}
.smc-pane .f button,.smc-pane .f span{font:inherit;font-size:12.5px;font-weight:700;color:#fff;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 11px;border-radius:999px;border:1px solid rgba(255,255,255,.26);background:rgba(34,30,44,.52);-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3)}
.smc-pane .f button{cursor:pointer}
.smc-pane .f button:hover{background:rgba(70,62,92,.7);border-color:rgba(255,255,255,.5)}
.smc-pane .f b{font-family:var(--display);font-weight:800;font-size:13.5px}
@media (max-width:900px){
  .dg-hero{padding:14px 15px 0}
  .dg-hero-in{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;scrollbar-width:none;margin:0 -15px;padding:0 15px}
  .dg-hero-in::-webkit-scrollbar{display:none}
  .smc-pane{flex:0 0 82%;scroll-snap-align:center;min-height:150px}
}

/* a small picture of a university, in a row or beside a name */
.smc-thumb{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--smc-s,36px);height:var(--smc-s,36px);border-radius:calc(var(--smc-s,36px) * .3);overflow:hidden;background:linear-gradient(135deg,#5A5270,#3A3548);border:1px solid rgba(255,255,255,.22);box-shadow:0 4px 10px -6px rgba(0,0,0,.7);vertical-align:middle}
.smc-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.smc-thumb b{font-family:var(--display,inherit);font-weight:800;font-size:calc(var(--smc-s,36px) * .42);color:#fff;opacity:.9}
.smc-thumb:not(.smc-none) b{display:none}
.smc-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.smc-near{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}

/* the photograph behind a header (a side panel's, the society dashboard's): as the wallet lays it behind the card */
.smc-has{position:relative;isolation:isolate}
.smc-band{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity .35s ease}
.smc-band.smc-in{opacity:1}
.smc-band img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.smc-band::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(38,34,48,.5) 0%,rgba(40,36,50,.82) 62%,rgba(46,42,56,.97) 100%)}
@media (prefers-reduced-motion:reduce){.smc-band,.smc-pane>img{transition:none}}
/* the Dev console's side panels: the header is a picture window */
html.dg .drawer .dhead.smc-has{margin:-24px -24px 24px;padding:26px 24px 18px;border-bottom:1px solid var(--dg-line)}
html.dg .drawer .dhead.smc-has .dname,html.dg .drawer .dhead.smc-has .dsub{text-shadow:0 1px 10px rgba(0,0,0,.55)}
html.dg .drawer .dhead.smc-has .dsub{color:#fff}
.dg-uniline{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12.5px;font-weight:700;color:#fff}

/* ── 6. the four pages that used to be white ────────────────────────────────────────────────────────────────────── */
html.dg-page .wrap{max-width:1080px}
html.dg-page a{color:var(--dg-violet)}
html.dg-page .card,html.dg-page .stat,html.dg-page .tile,html.dg-page details.card,html.dg-page .pk,html.dg-page .box,html.dg-page .grid,html.dg-page .panel{
  -webkit-backdrop-filter:var(--dg-blur);backdrop-filter:var(--dg-blur)}
html.dg-page .btn{background:linear-gradient(135deg,#7F4FD4,var(--dg-violet-fill-2));color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 8px 18px -10px rgba(60,26,120,.9)}
html.dg-page .btn.ghost,html.dg-page .btn.alt,html.dg-page .btn.quiet{background:var(--dg-pane-2);color:var(--dg-ink);border:1px solid var(--dg-line);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
html.dg-page .btn.bad{background:var(--dg-bad-bg);color:var(--dg-bad-ink);border:1px solid var(--dg-bad-line);box-shadow:none}
html.dg-page .btn.danger{background:linear-gradient(135deg,#C0392B,#8E2820)}
html.dg-page input:not([type=checkbox]):not([type=radio]),html.dg-page select,html.dg-page textarea{background:rgba(255,255,255,.07);border-color:var(--dg-line);color:var(--dg-ink)}
html.dg-page input:not([type=checkbox]):not([type=radio]):focus,html.dg-page select:focus,html.dg-page textarea:focus{border-color:var(--dg-violet);outline:none}
html.dg-page .pill.off,html.dg-page .cnt{background:rgba(255,255,255,.12);color:var(--dg-ink-2)}
html.dg-page .toast{background:var(--dg-sheet);border:1px solid var(--dg-line-2);box-shadow:var(--dg-shadow-up);-webkit-backdrop-filter:var(--dg-blur);backdrop-filter:var(--dg-blur)}
html.dg-page iframe.text,html.dg-page iframe.mail{background:#fff;border-color:var(--dg-line-2)}   /* a document as it will be read: on its own white paper */

@media (prefers-reduced-transparency:reduce){
  html.dg .card,html.dg .dp,html.dg .sfbar,html.dg .tabs,html.dg .top,html.dg .modal,html.dg .toast,html.dg .devcard{-webkit-backdrop-filter:none;backdrop-filter:none;background:#2E2A38}
  html.dg .top{background:#2A2633}
}

/* ── 7. what the console gained with the new look ───────────────────────────────────────────────────────────────── */
/* a row with its university's picture beside the name */
html.dg .hmain.dg-withuni{display:flex;align-items:center;gap:12px;min-width:0}
html.dg .hmain.dg-withuni>div{min-width:0}
html.dg .dg-stu{display:flex;align-items:center;gap:10px}
html.dg .htab.dg-near{gap:7px;padding-left:8px;border-color:var(--dg-violet)}
html.dg .dg-stuhead{display:flex;flex-direction:column;justify-content:flex-end;min-height:96px;margin:-6px 0 14px;padding:14px 16px;border-radius:16px;overflow:hidden;border:1px solid var(--dg-line);background:var(--dg-pane-2)}
html.dg .dg-stuhead b{font-family:var(--display);font-size:16px;font-weight:800;color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.6)}
html.dg .dg-stuhead span{font-size:12.5px;font-weight:700;color:#fff;opacity:.92;text-shadow:0 1px 8px rgba(0,0,0,.6)}
html.dg .dg-stuhead .smc-band::after{background:linear-gradient(180deg,rgba(38,34,48,.18) 0%,rgba(38,34,48,.82) 100%)}

/* "Can it take orders?" */
.dg-ready{border-radius:var(--dg-r);border:1px solid var(--dg-line);background:var(--dg-pane);padding:16px 18px 6px;margin:0 0 16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
.dg-ready.s-bad{border-color:var(--dg-bad-line)} .dg-ready.s-warn{border-color:var(--dg-warn-line)} .dg-ready.s-ok{border-color:var(--dg-good-line)}
.dg-ready>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.dg-ready h3{font-family:var(--display);font-size:16px;font-weight:800;margin:0}
.dg-ready h4{font-family:var(--display);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--dg-ink-3);margin:6px 0 4px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dg-note{font-size:13px;color:var(--dg-ink-2);margin:0 0 12px;line-height:1.5}
.dg-verdict{display:flex;align-items:flex-start;gap:10px;font-family:var(--display);font-weight:700;font-size:14.5px;line-height:1.4;margin:0 0 12px;padding:11px 14px;border-radius:14px;background:rgba(255,255,255,.07);color:var(--dg-ink)}
.dg-verdict.s-ok{background:var(--dg-good-bg);color:var(--dg-good-ink)} .dg-verdict.s-warn{background:var(--dg-warn-bg);color:var(--dg-warn-ink)} .dg-verdict.s-bad{background:var(--dg-bad-bg);color:var(--dg-bad-ink)}
.dg-verdict .i,.dg-ck .i{flex:none;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font:800 12.5px/1 var(--display);background:rgba(255,255,255,.16);color:#fff}
.dg-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:4px 26px}
.dg-checks{list-style:none;margin:0 0 10px;padding:0}
.dg-ck{display:flex;gap:11px;padding:10px 0;border-top:1px solid var(--dg-line)}
.dg-ck:first-child{border-top:0}
.dg-ck b{font-size:13.5px;font-weight:800;color:var(--dg-ink)}
.dg-ck p{font-size:12.5px;line-height:1.5;color:var(--dg-ink-2);margin:2px 0 0}
.dg-ck p.fix{color:var(--dg-ink)} .dg-ck p.fix span{font-family:var(--display);font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--dg-violet);margin-right:4px}
.dg-ck.s-ok .i{background:rgba(64,196,134,.3);color:#C9F7E1} .dg-ck.s-warn .i{background:rgba(245,166,62,.32);color:#FFE2B8} .dg-ck.s-bad .i{background:rgba(240,98,98,.36);color:#FFD9D5} .dg-ck.s-info .i{background:rgba(255,255,255,.14);color:var(--dg-ink-2)}
.dg-tag{font-family:var(--body);font-size:11px;font-weight:800;letter-spacing:0;text-transform:none;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.12);color:var(--dg-ink-2);white-space:nowrap}
.dg-tag.s-ok{background:var(--dg-good-bg);color:var(--dg-good-ink)} .dg-tag.s-warn{background:var(--dg-warn-bg);color:var(--dg-warn-ink)} .dg-tag.s-bad{background:var(--dg-bad-bg);color:var(--dg-bad-ink)}
.dg-link{font:inherit;font-family:var(--body);font-size:12px;font-weight:800;letter-spacing:0;text-transform:none;color:var(--dg-violet);background:none;border:0;padding:0;min-height:32px;cursor:pointer;text-decoration:underline}
.dg-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 10px}
.dg-shops{min-width:520px}
.dg-shops tr{cursor:pointer}
.dg-shops tr:hover td{background:rgba(255,255,255,.05)}
.dg-shops td{vertical-align:middle;font-size:12.5px}
.dg-shops td:first-child{white-space:nowrap}
.dg-shops td:first-child b{font-size:13px;margin-right:4px}
.dg-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px;background:#9A93AD}
.dg-dot.s-ok{background:#4AD29A} .dg-dot.s-warn{background:#F5BE5B} .dg-dot.s-bad{background:#FF8E80}
html.dg .drawer .dg-ready{background:rgba(18,15,26,.34)}

/* the four pages: the few places that named a colour of their own */
html.dg-page .back{color:var(--dg-violet)}
html.dg-page .btn.bad{border-color:var(--dg-bad-line)}
html.dg-page .chip{background:rgba(255,255,255,.07);border-color:var(--dg-line);color:var(--dg-ink-2)}
html.dg-page .chip[aria-pressed=true]{background:rgba(185,162,255,.24);border-color:rgba(201,184,255,.7);color:#fff}
html.dg-page .band{color:#D2C2FF}
html.dg-page .band.o{color:#9CECC4}
html.dg-page .ap.on.merchant{background:rgba(185,162,255,.22);border-color:rgba(201,184,255,.55);color:var(--dg-ink)}
html.dg-page .ap.on.society{background:rgba(255,176,122,.2);border-color:rgba(255,190,140,.6);color:var(--dg-ink)}
html.dg-page .soc.strong{border-color:var(--dg-good-line)}
html.dg-page summary{color:var(--dg-violet)}
html.dg-page h1{letter-spacing:-.3px}

/* ── 8. the tabs' own scripts: the few colours they name themselves ─────────────────────────────────────────────── */
/* a status's colour comes from the server and is drawn as a dot and an edge; as WORDS it is lifted towards white */
html.dg .hrow .hst{color:var(--tc)}
@supports (color:color-mix(in srgb,red,blue)){html.dg .hrow .hst{color:color-mix(in srgb,var(--tc) 58%,#fff)}}
html.dg .pill.rating,html.dg .pill.approved,html.dg .pill.verified{background:rgba(64,196,134,.18);color:#A8EDCD}
html.dg .pill.pending{background:rgba(245,190,91,.18);color:#FFD890}
html.dg .tag.ok{color:#8CE8BB;border-color:rgba(140,232,187,.6)} html.dg .tag.warn{color:#FFC76B;border-color:rgba(255,199,107,.6)}
html.dg .st-sent,html.dg .st-delivered,html.dg .st-live,html.dg .st-approved{color:#8CE8BB}
html.dg .st-logged,html.dg .st-copied,html.dg .st-pending{color:#FFC76B}
html.dg .st-failed,html.dg .st-bounced,html.dg .st-off,html.dg .st-rejected{color:#FFA69B}
html.dg .tile .dl.up{color:#8CE8BB} html.dg .tile .dl.down{color:#FFA69B}
html.dg .vq-res{color:#8CE8BB} html.dg .vq-res.bad{color:#FFA69B}
html.dg .ddp .ddp-r .ddp-go{color:var(--dg-violet)}

/* Society requests (dev-society-requests.js) was a white card inside the dark console: the same screen in smoked glass */
html.dg .sr-root{--sr-ink:var(--dg-ink);--sr-muted:var(--dg-ink-3);--sr-body:var(--dg-ink-2);--sr-p:var(--dg-violet);--sr-line:var(--dg-line);--sr-row:rgba(255,255,255,.09);--sr-sel:rgba(201,184,255,.16);--sr-soft:rgba(255,255,255,.07);--sr-field:var(--dg-line-2);
  background:var(--dg-pane);border:1px solid var(--dg-line);box-shadow:var(--dg-shadow);-webkit-backdrop-filter:var(--dg-blur);backdrop-filter:var(--dg-blur)}
html.dg .sr-chip,html.dg .sr-btn,html.dg .sr-root input[type=search],html.dg .sr-root input[type=text],html.dg .sr-root textarea{background:rgba(255,255,255,.08)}
html.dg .sr-btn[aria-pressed=true],html.dg .sr-btn.sr-primary{background:var(--dg-violet-fill);border-color:var(--dg-violet-fill);color:#fff}
html.dg .sr-btn:hover{border-color:var(--dg-violet)}
html.dg .sr-queue,html.dg .sr-aside{background:rgba(18,15,26,.3);border-color:var(--dg-line)}
html.dg .sr-root tbody tr{background:transparent}
html.dg .sr-root tbody tr:hover{background:rgba(255,255,255,.06)}
html.dg .sr-root tbody tr.sr-on{background:var(--sr-sel)}
html.dg .sr-k-restaurant{background:rgba(255,160,92,.2);color:#FFD6B5}
html.dg .sr-k-society{background:rgba(201,184,255,.2);color:#E4DAFF}
html.dg .sr-k-accepted{background:var(--dg-good-bg);color:var(--dg-good-ink)}
html.dg .sr-k-declined{background:var(--dg-bad-bg);color:var(--dg-bad-ink)}
html.dg .sr-k-withdrawn,html.dg .sr-k-cancelled{background:rgba(255,255,255,.12);color:var(--dg-ink-2)}
html.dg .sr-w-restaurant,html.dg .sr-needs,html.dg .sr-why{color:#FFCFA6}
html.dg .sr-w-society{color:#E4DAFF}
html.dg .sr-w-accepted{color:#9CECC4}
html.dg .sr-told li.sr-attention{background:var(--dg-warn-bg);border-color:var(--dg-warn-line)}
html.dg .sr-told li.sr-bad{background:var(--dg-bad-bg)}
html.dg .sr-dot.sr-ok{background:rgba(64,196,134,.3);color:#C9F7E1}
html.dg .sr-dot.sr-attention{background:rgba(245,166,62,.32);color:#FFE2B8}
html.dg .sr-dot.sr-bad{background:rgba(240,98,98,.36);color:#FFD9D5}
html.dg .sr-dot.sr-none{background:rgba(255,255,255,.14);color:var(--dg-ink-2)}
html.dg .sr-err{background:var(--dg-bad-bg);color:var(--dg-bad-ink)}
html.dg .sr-flash{background:var(--dg-good-bg);color:var(--dg-good-ink)}
html.dg .sr-log li.sr-failed{color:var(--dg-bad-ink)}
html.dg .sr-msg.sr-from-restaurant{background:rgba(255,160,92,.14)}
html.dg .sr-msg.sr-from-team{background:rgba(201,184,255,.16)}
html.dg .sr-modal{background:rgba(18,15,24,.58);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html.dg .sr-modal .sr-card{background:var(--dg-sheet);color:var(--dg-ink);border:1px solid var(--dg-line-2)}
html.dg .sr-modal header{border-bottom-color:var(--dg-line)}
html.dg .sr-modal .sr-sms{color:var(--dg-ink-2);border-top-color:var(--dg-line)}
html.dg .sr-root :focus-visible{outline-color:var(--dg-violet)}

/* the four pages, continued: where they drew light on white with a colour of their own */
html.dg-page .pill{background:rgba(201,184,255,.2);color:#EDE6FF}
html.dg-page .pill.off,html.dg-page .cnt{background:rgba(255,255,255,.1);color:#fff}
html.dg-page .tabs button[aria-selected=true],html.dg-page .win[aria-pressed=true]{background:var(--dg-violet-fill);color:#fff;border-color:transparent}

/* panels in a grid keep to their column: a table too wide for one scrolls inside it (it used to push the page sideways) */
html.dg .dgrid>.dp{min-width:0;overflow-x:auto}
html.dg:not(.dg-page) #app .dgrid{grid-template-columns:repeat(auto-fill,minmax(min(380px,100%),1fr))}
html.dg .drawer .dgrid{grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr))}
/* Notes: the filter chips sit straight on the page; each keeps its colour, on smoked glass */
html.dg .dn .dn-f{background:linear-gradient(var(--cbg,rgba(255,255,255,.05)),var(--cbg,rgba(255,255,255,.05))),rgba(22,18,32,.5)}
html.dg .dn .dn-f[aria-pressed="true"]{background:var(--c,#f0ebff)}

.dg-ready .dg-checks.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:0 26px}
.dg-ready .dg-checks.two .dg-ck:nth-child(2){border-top:0}
@media (max-width:760px){.dg-ready .dg-checks.two .dg-ck:nth-child(2){border-top:1px solid var(--dg-line)}}
.dg-shops td:nth-child(2){min-width:220px}
@media (max-width:900px){
  .smc-pane{min-height:132px;padding:12px 14px 12px}
  .smc-pane h2{font-size:18px;margin-bottom:8px}
  .smc-pane .f button,.smc-pane .f span{min-height:30px;padding:0 10px;font-size:12px}
}
