/* The portal's one stylesheet, kept by the browser (document 5 section 2.5, D-51).
   The palette, the radius and the fonts are copied from the collateral's
   cp3/portal/css/cp3.css, which the build never edits; T-DOOR-25 compares them.
   No web font and no background image: the page's pattern is drawn here. */

:root{
  --ink:#16301F; --brand:#1F6B45; --brand-dark:#164F33; --accent:#E8B22B;
  --paper:#FBFAF7; --card:#FFFFFF; --rail:#DCD7CD; --tint:#E8F2EB;
  --muted:#5E584F; --faint:#938C82;
  --gut:16px; --radius:12px;
  --font:"Noto Sans","Nirmala UI","Noto Sans Gurmukhi","Noto Sans Devanagari",
         system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --warn:#9B2C1F; --warn-tint:#FBEAE7; --ok-tint:#E8F2EB;
}

/* The Sohni Sadak Yojna look, chosen by its door (D-57, section 2.5
   rule 1): the colours of ssy/posters/ssy-poster-v2.html. Links and buttons
   use the brand colour itself (Tarak, W-3). The rest of the frame is shared. */
html[data-look="ssy"]{
  --ink:#14263C; --brand:#1B4F8C; --brand-dark:#1B4F8C; --accent:#E8952B;
  --tint:#EAF0F8; --ok-tint:#EAF0F8;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:17px;line-height:1.5;color:var(--ink);
  background-color:var(--paper);
  /* A faint field of leaves, drawn with gradients: no image is fetched. */
  background-image:radial-gradient(circle at 25% 25%,rgba(31,107,69,.045) 0 2px,transparent 2.5px),
                   radial-gradient(circle at 75% 75%,rgba(232,178,43,.06) 0 2px,transparent 2.5px);
  background-size:34px 34px;min-height:100vh;display:flex;flex-direction:column}
:lang(pa),:lang(hi){line-height:1.7}
a{color:var(--brand-dark)}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:60rem;width:100%;margin:0 auto;padding:0 var(--gut)}
main.wrap{flex:1 0 auto;padding-top:8px;padding-bottom:32px}

/* ---- the header: name left, the person and the language right ---- */
.rule-top{height:6px;background:var(--brand-dark)}
.bar{background:var(--brand);color:#fff}
/* D-70, section 2.19: one line down to 360 pixels. The controls never wrap or drop;
   where space runs short the name's type gets smaller. */
.bar .wrap{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;min-height:56px;padding-top:6px;padding-bottom:6px}
.brand{flex:1 1 auto;min-width:0;margin-right:auto;font-size:clamp(10px,3.05vw,15px);font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;color:#fff;text-decoration:none;line-height:1.25;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:480px){.brand{letter-spacing:0}}
/* Narrower than the 360 pixels D-70 promises: the name may take two lines rather than be cut. */
@media (max-width:359px){.brand{white-space:normal}}
.bar .notices,.bar .globe,.bar .person{flex:none}
.brand:hover,.brand:focus-visible{text-decoration:underline}
.who{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;font-size:15px}
.who .me{opacity:.92}
.bar .who a,.bar .who button[type=submit]{color:#fff;font:inherit;font-weight:600;background:transparent;border:0;cursor:pointer;
  min-height:44px;padding:0 4px;text-decoration:underline;text-underline-offset:3px}
.who form{display:inline}
/* The globe: a native disclosure holding the three languages (D-70). */
.globe{position:relative}
.globe summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;min-height:44px;color:#fff;border-radius:8px}
.globe summary::-webkit-details-marker{display:none}
.globe .ico-s{width:24px;height:24px}
.globe[open] summary{background:rgba(255,255,255,.18)}
.langlist{position:absolute;right:0;top:48px;z-index:20;min-width:11rem;margin:0;list-style:none;
  background:var(--card);color:var(--ink);border:1px solid var(--rail);border-radius:var(--radius);
  box-shadow:0 6px 18px rgba(22,48,31,.18);padding:6px}
.langlist a{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 10px;border-radius:8px;
  color:var(--brand-dark);text-decoration:none;font-weight:600}
.langlist a:hover,.langlist a:focus-visible{background:var(--tint)}
.langlist a:not([aria-current]){padding-left:36px}
.langlist a[aria-current="true"],.langs-long a[aria-current="true"]{font-weight:800}
/* The long form on a first-contact page (D-70, T-043 (2)), as small chips at the
   right end of the title's line (D-90); a long title wraps beside them, or below. */
.langs-long{float:right;margin:6px 0 4px 10px}
.langs-long ul{display:flex;flex-wrap:nowrap;gap:4px;margin:0;padding:0;list-style:none}
.langs-long a{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;font-size:.85rem;
  border:1.5px solid var(--brand);border-radius:999px;color:var(--brand-dark);text-decoration:none;font-weight:600}
.langs-long a[aria-current="true"]{background:var(--brand);color:#fff;border-color:var(--brand)}
/* Small to look at, but each still has a 44 pixel tap area (rule 2.5, T-DOOR-25): the
   chip's own height plus an invisible band above and below. */
.langs-long a,.how-chip{position:relative}
.langs-long a::after,.how-chip::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}

/* ---- the notice mark and the person menu (section 2.6 rule 14) ---- */
.notices{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;
  color:#fff;text-decoration:none}
.notices .count{position:absolute;top:4px;right:2px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;
  background:var(--accent);color:var(--ink);font-size:12px;font-weight:800;line-height:18px;text-align:center}
.person{position:relative}
.person summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;min-height:44px}
.person summary::-webkit-details-marker{display:none}
.initials{width:36px;height:36px;border-radius:50%;background:#fff;color:var(--brand);font-weight:800;font-size:14px;
  display:inline-flex;align-items:center;justify-content:center;letter-spacing:.03em}
.person .menu{position:absolute;right:0;top:48px;z-index:20;min-width:15rem;background:var(--card);color:var(--ink);
  border:1px solid var(--rail);border-radius:var(--radius);box-shadow:0 6px 18px rgba(22,48,31,.18);padding:10px 14px}
.person .menu a,.person .menu button{display:flex;align-items:center;min-height:44px;color:var(--brand-dark)}
.person .menu .me{margin:2px 0 6px;font-weight:700;color:var(--ink)}

/* ---- icons: beside the words, never instead of them (Tarak, 2 October) ---- */
.ico{display:inline-flex;align-items:center;justify-content:center;flex:none;vertical-align:middle}
.ico svg{width:100%;height:100%}
.ico-s{width:18px;height:18px}
.ico-m{width:36px;height:36px;border-radius:50%;padding:8px;margin-right:10px}
.ico-l{width:56px;height:56px;border-radius:50%;padding:13px;display:flex;margin:0 0 8px}
.tone-plain{color:inherit}
.tone-mint{background:#E1F5EE;color:#085041}
.tone-butter{background:#FAEEDA;color:#633806}
.tone-sky{background:#E6F1FB;color:#0C447C}
.tone-blush{background:#FBEAF0;color:#72243E}
.tone-lavender{background:#EEEDFE;color:#3C3489}
.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}
.entries a .ico-m{margin-left:-4px}
.entries a .ico-s{margin-right:10px}
/* ---- S-65, the desk: one box per team, its state in words and colour ---- */
.cards:not(table){display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin:14px 0;align-items:start}
.box .card-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.box .card-top .code{font-size:.8rem;color:var(--muted)}
.box .card-top .zone{margin-left:auto}
.box header h2{display:block}
.box .label{font-weight:400;color:var(--muted)}
.box .note-mark{margin:2px 0 0}
.box.scroll .members{max-height:260px;overflow-y:auto}
.box .members li:has(input:checked){background:var(--tint);border-radius:6px}
.box .members li:has(input:checked) .leader{background:var(--card)}
.box label.pick{display:flex;align-items:center;gap:8px;width:100%;cursor:pointer;font-weight:400}
.box label.pick input{width:18px;height:18px;margin:0}
.box .card-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px solid var(--rail);padding-top:8px}
.box .card-bar select{width:auto;max-width:170px;min-height:0;padding:4px 6px;font-size:.9rem}
.box .card-bar button.small{margin:0}
.box .done-form{margin-top:6px}
.box{background:var(--card);border:1px solid var(--rail);border-top:6px solid var(--rail);border-radius:var(--radius);padding:10px 12px}
.box header h2{font-size:1rem;margin:4px 0 0}
.box .size{font-weight:800}
.box .code{display:block;color:var(--faint);font-size:.8rem}
.box .zone{font-size:.85rem;font-weight:700}
.box.zone-inside{border-top-color:#2E8B57}.box.zone-inside .zone{color:#1F6B45}
.box.zone-small{border-top-color:#C0392B}.box.zone-small .zone{color:#9B2C1F}
.box.zone-large{border-top-color:#7D3C98}.box.zone-large .zone{color:#5B2C6F}
.box .members{list-style:none;padding:0;margin:8px 0}
.box .members li{padding:4px 4px;border-top:1px solid var(--tint)}
.box button.small{padding:4px 10px;min-height:0;font-size:.85rem}
.box .members li[draggable]{cursor:grab}
.box .leader{font-size:.8rem;background:var(--tint);border-radius:6px;padding:1px 6px}
.box.drop{outline:3px dashed var(--brand)}
.desk-tools{display:flex;flex-wrap:wrap;gap:16px;margin:8px 0 16px}

.note-text{display:block;font-size:.9rem;color:var(--ink);font-style:italic;margin-top:2px}
.card-link{margin:4px 0 0 52px;font-size:.95rem}
.chip-quiet{display:inline-block;font-size:.75rem;font-weight:400;color:var(--muted);background:#EEEDEA;border-radius:6px;padding:0 6px;line-height:1.5}
.box .flag{font-size:.8rem;font-weight:700;color:var(--warn);background:var(--warn-tint);border-radius:6px;padding:0 6px}
.desk{background:#F1EFEA;border-radius:var(--radius);padding:12px}
.add-panel{background:var(--card);border:1px solid var(--rail);border-radius:var(--radius);padding:12px 14px;margin:16px 0}
.add-panel h2{display:flex;align-items:center;font-size:1.05rem;margin:0}
.add-row{display:flex;flex-wrap:wrap;gap:12px 28px;align-items:flex-end}
.add-row form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
.add-row label{display:block;width:100%}
.add-row select,.add-row [name=name]{width:auto;min-width:200px}
.hint{font-size:.9rem;color:var(--muted);margin:2px 0 8px}
.count-line{font-size:.95rem;color:var(--muted)}
.list-tools{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 24px}
.sort-by{display:flex;align-items:center;gap:8px}
.sort-by select{width:auto}
.filters fieldset{display:flex;flex-wrap:wrap;gap:0 18px;border:0;padding:0;margin:0}
details.filter summary{border:1.5px solid var(--brand);border-radius:8px;padding:4px 14px;color:var(--brand-dark)}
details.filter summary::after{content:" \25BE"}
[hidden]{display:none!important}
button:disabled,select:disabled,input:disabled{opacity:.45;cursor:not-allowed}

/* ---- rule 17: rare row actions behind a menu ---- */
.rowmenu{position:relative;display:inline-block}
.rowmenu summary{list-style:none;cursor:pointer;padding:4px 12px;border:1px solid var(--rail);border-radius:8px;font-weight:700;line-height:1.2}
.rowmenu summary::-webkit-details-marker{display:none}
.rowmenu[open] summary{background:var(--tint)}
.rowmenu-items{position:absolute;right:0;z-index:5;min-width:240px;margin-top:4px;padding:6px;background:var(--card);border:1px solid var(--rail);border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.rowmenu-items a{display:block;padding:8px 10px;border-radius:6px}
.rowmenu-items a:hover{background:var(--tint)}
.glance{display:block;font-weight:400;font-size:.9rem;color:var(--muted);margin-top:2px}
.lead-line{display:flex;align-items:center;gap:0}
.group-mark{margin:22px 0 6px;display:flex;align-items:center;gap:8px}
/* D-88: the group's name, small and visible beside its icon */
.group-name{font-size:.95rem;font-weight:700;color:var(--ink)}
.notices .ico-s{width:22px;height:22px}
.tabs .ico-s{margin-right:6px}

/* ---- the trail ---- */
.trail{font-size:15px;color:var(--muted);margin:12px 0 0}
.trail ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:2px 0}
.trail li{display:inline-flex;align-items:center}
.trail li+li::before{content:"\203A";margin:0 8px;color:var(--faint)}
.trail a{min-height:44px;display:inline-flex;align-items:center}
.trail [aria-current]{font-weight:700;color:var(--ink)}
.home-link{margin:12px 0 0}

/* ---- tabs: one row at the top, the open one marked ---- */
/* T-059: the row never wraps; on a narrow screen it scrolls sideways, with the
   current tab scrolled into view (portal.js) and a fade where more tabs lie beyond
   the edge, so the current tab always touches its content. The line under the
   tabs is drawn inside the row, since a scrolling row clips what pokes out of it. */
.tabs{margin:14px 0 0}
.tabs ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;
  scrollbar-width:none;box-shadow:inset 0 -2px 0 var(--rail)}
.tabs ul::-webkit-scrollbar{display:none}
.tabs li{flex:0 0 auto}
.tabs a,.tabs [aria-current]{display:inline-flex;align-items:center;min-height:44px;padding:6px 14px;white-space:nowrap;
  border:1px solid var(--rail);border-bottom:2px solid transparent;border-radius:10px 10px 0 0;text-decoration:none;
  font-weight:600;background:#F4F2EC}
.tabs [aria-current]{background:var(--card);color:var(--ink);border-color:var(--rail);border-bottom:2px solid var(--card);
  box-shadow:inset 0 3px 0 var(--brand)}
.tabs[data-more-right] ul{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 40px),transparent);
  mask-image:linear-gradient(to right,#000 calc(100% - 40px),transparent)}
.tabs[data-more-left] ul{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 40px),transparent);
  mask-image:linear-gradient(to left,#000 calc(100% - 40px),transparent)}
.tabs[data-more-left][data-more-right] ul{-webkit-mask-image:linear-gradient(to right,transparent,#000 40px,#000 calc(100% - 40px),transparent);
  mask-image:linear-gradient(to right,transparent,#000 40px,#000 calc(100% - 40px),transparent)}

/* ---- a list's search, count and sorted heading ---- */
form.search{display:flex;flex-wrap:wrap;align-items:end;gap:6px 10px;margin:10px 0}
form.search label{flex-basis:100%;margin:0}
form.search input[type=search]{flex:1 1 16rem}
.count{color:var(--muted);font-size:15px;margin:6px 0}
th a[data-sort]{color:inherit;text-decoration:none;display:inline-flex;min-height:36px;align-items:center}
th a[data-sort]:hover{text-decoration:underline}

/* ---- headings, text, cards ---- */
h1{font-size:26px;line-height:1.2;font-weight:800;margin:18px 0 12px;letter-spacing:-.01em}
h2{font-size:20px;margin:24px 0 8px}
h3{font-size:17px;margin:18px 0 6px}
p{margin:8px 0}
.press,.act{font-weight:700;color:var(--brand-dark);background:var(--tint);border:1px solid #C6DED0;
  border-radius:5px;padding:0 5px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.notice,.card{background:var(--card);border:1px solid var(--rail);border-radius:var(--radius);padding:12px 16px;
  margin:12px 0;white-space:pre-line}
.entries{list-style:none;padding:0}
.entries li{margin:10px 0}
.entries a{display:flex;align-items:center;min-height:52px;padding:8px 16px;background:var(--card);
  border:1px solid var(--rail);border-left:6px solid var(--brand);border-radius:var(--radius);
  font-weight:700;text-decoration:none}
.entries a:hover{background:var(--tint)}
.card-words{display:flex;flex-direction:column}
.card-words .about{font-size:.85rem;font-weight:400;color:var(--muted)}
.card-words .about strong{font-weight:inherit;color:inherit}
.entries a[data-attention] .card-words .about strong{font-weight:700;color:var(--ink)}
.entries a[data-attention=urgent] .card-words .about strong{color:var(--warn)}
/* D-169: the Help messages card's counts in red while any is open, each staff bracket also bold. */
.entries a[data-attention=urgent] .card-words .help-counts{color:var(--warn)}
.entries a[data-attention] .card-words .help-counts strong{font-weight:700;color:inherit}
/* T-429: on the Help messages card, the counts after the colon in red, bold only from Staff on. */
.entries a[data-attention] .card-words .about[data-key^="dept.card.help"] strong:first-of-type{font-weight:400}
nav{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* ---- forms and buttons: one main button; quieter others; ending marked ---- */
label{display:block;margin:14px 0 4px;font-weight:600}
input[type=text],input[type=tel],input[type=email],input[type=url],input[type=password],input[type=number],input[type=date],
input[type=search],select,textarea{font:inherit;width:100%;max-width:28rem;min-height:44px;padding:8px 10px;
  border:1.5px solid var(--faint);border-radius:8px;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{border-color:var(--brand);outline:3px solid rgba(31,107,69,.25);outline-offset:1px}
fieldset{border:0;padding:0;margin:12px 0}
fieldset label{font-weight:400;display:flex;align-items:center;gap:8px;min-height:44px;margin:4px 0}
input[type=radio],input[type=checkbox]{width:22px;height:22px;accent-color:var(--brand)}
button,.button{font:inherit;font-weight:700;min-height:44px;padding:8px 18px;border-radius:8px;cursor:pointer;
  border:1.5px solid var(--brand);background:#fff;color:var(--brand-dark);display:inline-flex;align-items:center;
  justify-content:center;gap:6px;text-decoration:none;margin:6px 6px 6px 0}
button[type=submit]:first-of-type,.button.main,button.main{background:var(--brand);color:#fff;border-color:var(--brand)}
/* Rule 21 (D-54): a button inside a list, a table or a card is Other, outlined,
   never Main; Main is one per section. Back, Cancel and the footer are Plain. */
td button[type=submit]:first-of-type,li button[type=submit]:first-of-type,.box button[type=submit]:first-of-type,
.items button[type=submit]:first-of-type{background:#fff;color:var(--brand-dark);border-color:var(--brand)}
.box .card-bar button[value=move]{background:var(--brand);color:#fff}
/* T-058: an action that is not the screen's main step is outlined, even when it is a form's first button. */
button.outline,button.outline[type=submit]:first-of-type{background:#fff;color:var(--brand-dark);border-color:var(--brand)}
a.quiet{font-weight:700;text-decoration:underline;text-underline-offset:3px;color:var(--brand-dark)}
a[data-key="button.back"],a[data-key="button.cancel"],.foot a{font-size:.9rem;font-weight:400;color:var(--muted);
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.w-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0}
.board-part{margin:18px 0}
.board-block h3{font-size:1rem;margin:12px 0 4px}
table.notes td.when{white-space:nowrap;color:var(--muted);width:1%}
button:hover{filter:brightness(1.05)}
button.warn,.button.warn,button[name=action][value*=remove],button[name=action][value*=close],
button[name=action][value*=end],button[name=action][value*=withdraw],button[name=action][value=abandon],
button[name=action][value=leave]{
  background:#fff;color:var(--warn);border-color:var(--warn)}
button.warn::before,.button.warn::before{content:"\26A0";font-weight:400}
/* The owner's note, 8 November: a held-back button shows "not allowed"; the busy pointer
   only while its form is being sent (portal.js marks the form data-sent). */
button[disabled]{opacity:.65;cursor:not-allowed}
form[data-sent] button[disabled]{cursor:progress}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
form.inline{display:inline}
button.linklike{background:none!important;border:0;color:var(--brand-dark)!important;
  text-decoration:underline;text-underline-offset:3px;padding:0 2px;font-weight:700;margin:0}
button.small{min-height:36px;padding:2px 10px;font-size:15px;font-weight:600;margin:0 0 0 8px}
.note-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:4px}
.show-password{font-size:15px;font-weight:600;min-height:36px;padding:4px 10px;margin-left:6px}

/* ---- what happened, and what went wrong: words and a mark, not colour alone ---- */
.msg,.errors{color:var(--warn);background:var(--warn-tint);border-left:5px solid var(--warn);border-radius:6px;
  padding:8px 12px;margin:10px 0}
.msg::before,.errors::before{content:"\26A0  ";font-weight:700}
.done{background:var(--ok-tint);border-left:5px solid var(--brand);border-radius:6px;padding:8px 12px;margin:10px 0}
.done .ico{color:var(--brand)}
/* T-357, F-8: listed in the other programme. */
.listed-elsewhere{background:var(--ok-tint);border-left:5px solid var(--brand);border-radius:6px;padding:8px 12px;margin:10px 0}
.listed-elsewhere .button{margin-left:6px}
/* T-363, F-12: the programme and role a joining page is for, in the programme's colours. */
.joining{background:var(--ok-tint);border-left:5px solid var(--brand);border-radius:6px;padding:10px 12px;margin:10px 0}
.joining-line{margin:0;font-size:1.05rem}
.joining-line strong,.joining-again strong{color:var(--brand)}
.joining-switch{margin:6px 0 0;font-size:.9rem}
.joining-again{margin:12px 0 6px}

/* ---- tables: neat on a laptop, cards on a phone ---- */
table{border-collapse:separate;border-spacing:0;width:100%;margin:12px 0;background:var(--card);
  border:1px solid var(--rail);border-radius:var(--radius);overflow:hidden;font-size:16px}
th,td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--rail)}
th{background:var(--tint);font-weight:700;color:var(--brand-dark)}
tbody tr:nth-child(even) td{background:#FCFBF8}
tbody tr:last-child td{border-bottom:0}
td.num,th.num,table[data-list="S-92"] td:nth-last-child(-n+6),table[data-list="S-92"] thead tr:not(.group-row) th:nth-last-child(-n+6){text-align:right;font-variant-numeric:tabular-nums}
/* S-92: the six numbers are always the last six columns; code, name, type and programme read left. */
@media (max-width:640px){
  table,thead,tbody,tr,th,td{display:block}
  table{border:0;background:transparent}
  thead{position:absolute;left:-9999px}
  tbody tr{background:var(--card);border:1px solid var(--rail);border-radius:var(--radius);margin:0 0 10px;padding:6px 0}
  tbody tr:nth-child(even) td{background:transparent}
  td{border:0;padding:4px 12px}
  td[data-label]::before{content:attr(data-label);display:inline-block;min-width:45%;margin-right:8px;font-size:14px;font-weight:600;color:var(--muted)}
  h1{font-size:23px}
}
.pager{margin:12px 0}
.home-block{margin:18px 0}
.home-block.quiet,.quiet{color:var(--muted);font-size:15px}
.block-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
.block-links{display:inline-flex;flex-wrap:wrap;gap:4px 12px;font-size:15px;font-weight:600}
table[data-list="S-70"] tr[data-row] td{font-weight:800;border-top:2px solid var(--rail)}
.badge-count{display:inline-block;min-width:24px;padding:0 8px;border-radius:12px;background:var(--accent);
  color:var(--ink);font-weight:800;text-align:center}
.entries a .badge-count{margin-left:auto}
/* D-60: a new item on S-18 is in bold; nothing on any page blinks or moves (WCAG 2.2.2). */
[data-list^="S-18"] [data-new]{font-weight:800}
.has-new .badge-count{margin-left:6px}
/* D-60: the student S-51 opened the desk with. */
.members li.marked{outline:2px solid var(--accent);border-radius:6px}
.state{display:inline-block;margin-left:10px;font-size:15px;color:var(--muted)}
.entries.items li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;background:var(--card);
  border:1px solid var(--rail);border-radius:var(--radius);padding:8px 12px}
.item-text{flex:1 1 16rem;font-weight:600}
details.filter{margin:8px 0}
details.filter summary{cursor:pointer;font-weight:700;min-height:44px;display:inline-flex;align-items:center}
.chips{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:2px 12px;border-radius:18px;
  background:var(--tint);border:1px solid #C6DED0;text-decoration:none;font-weight:600}
dl.facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 18px}
dl.facts dt{font-weight:700;color:var(--muted)}dl.facts dd{margin:0}
.draft{display:inline-block;background:#FDF4DC;border:1px solid var(--accent);border-radius:6px;padding:4px 10px;font-weight:700}
label.terms{display:flex;align-items:center;gap:8px;font-weight:600;min-height:44px}
.empty{color:var(--muted);background:var(--card);border:1px dashed var(--rail);border-radius:var(--radius);padding:14px 16px;margin:12px 0}

/* ---- the banner photograph, on the door only ---- */
.banner{margin:12px 0 0;border-radius:var(--radius);overflow:hidden;border:1px solid var(--rail)}
.banner img{display:block;width:100%;height:auto}

/* ---- the footer ---- */
.foot{margin-top:auto;background:var(--card);border-top:1px solid var(--rail);font-size:15px;color:var(--muted)}
.foot .wrap{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center;padding-top:10px;padding-bottom:10px}
.foot a{min-height:44px;display:inline-flex;align-items:center}
.foot .version{margin-left:auto;color:var(--faint)}
.rule-bot{height:5px;background:var(--accent)}

/* D-67: the quiet link from a mapped screen to its tour topic, with the compass. */
/* D-78: a home's notification, a tinted box with the bell and its OK */
.notify{display:flex;align-items:center;gap:10px;background:#FFF6DB;border:1px solid #E8C96A;border-radius:var(--radius);padding:8px 12px;margin:8px 0}
.notify > a{flex:1 1 auto;text-decoration:none;color:var(--ink)}
.notify form{margin:0}
button.small{min-height:44px;padding:4px 14px;font-size:.9rem;margin:0}
/* D-77: people as compact rows; badges; a correction as a pencil */
.people-rows{list-style:none;margin:8px 0;padding:0}
.person-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid var(--rail)}
.person-row:last-child{border-bottom:0}
.person-row .initial{flex:0 0 32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  background:#E7EFE9;color:var(--brand-dark);font-weight:700}
.person-row .who{flex:1 1 auto;min-width:0}
.person-row .name{font-weight:700}
.person-row .detail{display:block;font-size:.9rem;color:var(--muted,#5b5b5b)}
.person-row.tint-invited{background:#EAF6EC}
.badge{display:inline-block;font-size:.78rem;font-weight:700;padding:1px 8px;border-radius:999px;background:#EEF1F6;color:var(--ink);
  border:1px solid var(--rail);vertical-align:middle}
a.pencil,button.pencil{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;vertical-align:middle}
/* D-84: choices as tappable rows, the control beside the words */
.choice-rows{list-style:none;margin:8px 0;padding:0}
.choice-rows li{border:1px solid var(--rail);border-radius:10px;margin:6px 0;background:var(--card)}
.choice-rows label{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 12px;margin:0;font-weight:400;cursor:pointer}
.choice-rows input{flex:0 0 auto;margin-top:2px}
.choice-rows li:has(input:checked){border-color:var(--brand);box-shadow:inset 3px 0 0 var(--brand)}
/* D-73: the tour chip, at the right end of the heading's line */
.door-guide a{display:inline-flex;align-items:center;gap:6px}
/* D-76: signed out, a quiet About beside the globe */
.about-link{font-size:.9rem;color:var(--brand-dark);text-decoration:none;padding:0 6px;align-self:center}
.how-chip{float:right;display:inline-flex;align-items:center;gap:4px;margin:6px 0 4px 10px;padding:2px 10px;border:1px solid var(--rail);border-radius:999px;font-size:.9rem;line-height:1.6;text-decoration:none;white-space:nowrap}
.how-chip:hover,.how-chip:focus-visible{border-color:var(--brand)}
/* T-081: the student home's team block; T-084: the WhatsApp tick on one row */
.team-head{display:flex;align-items:center;flex-wrap:wrap;gap:0 4px}
.team-head .lead-line{margin:0;gap:6px}
.team-head .team-code{margin-left:2px}
.team-code{margin-left:8px;font-size:.85rem;color:var(--muted,#5b5b5b)}
details.note-edit{display:contents}
details.note-edit summary{list-style:none;cursor:pointer}
details.note-edit summary::-webkit-details-marker{display:none}
details.note-edit[open] form{flex-basis:100%;margin:4px 0 8px}
.members-count{margin:12px 0 4px;color:var(--muted,#5b5b5b);font-size:.9rem}
.people-rows.plain .name,.people-rows.plain .badge{font-weight:400}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
.actions form{margin:0}
.actions .button,.actions button{margin:0}
details.pass-lead{margin:0 0 12px}
details.pass-lead summary{list-style:none;cursor:pointer;display:inline-flex}
details.pass-lead summary::-webkit-details-marker{display:none}
details.pass-lead form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
[data-details]{align-items:flex-start;gap:6px}
[data-details]>.ico{margin-top:3px}
form.tick{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:.95rem;margin:8px 0}
form.tick input[type=checkbox]{width:22px;height:22px;margin:11px;flex:0 0 auto}

/* ==== T-087: design A, "Calm cards", across the portal (10 October 2026) ====
   A warm plain ground; white rounded cards with no border; pill buttons; small
   uppercase section labels; a coloured circle per person; badges as pills. The
   palette above is the collateral's and stays (T-DOOR-25); these are added on top. */
:root{--ground:#F4F1EA;--line:#EDE9E0;--card-r:20px;--row-r:16px}
body{background-color:var(--ground);background-image:none}
.rule-top{display:none}
h1{font-size:28px;letter-spacing:-.015em;margin:20px 0 14px}
@media (max-width:640px){h1{font-size:26px}}

/* Buttons: pills; the main one filled, others outlined (D-74 unchanged in meaning) */
button,.button{border-radius:999px;min-height:48px;padding:8px 20px}
button.small,.show-password{min-height:44px;border-radius:999px}
button.linklike,button.pencil,.globe summary,.person summary{border-radius:999px}
.rowmenu summary{border-radius:999px;background:var(--card)}

/* Cards: the home blocks, notices, panels and empty lists */
.home-block{background:var(--card);border-radius:var(--card-r);padding:18px 16px;margin:16px 0}
.home-block>h2:first-child,.home-block>.block-head h2{margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--muted)}
.notice,.card,.add-panel,.desk{border:0;border-radius:var(--card-r)}
.empty{border:1.5px dashed var(--rail);border-radius:var(--row-r);background:transparent}
.box{border:0;border-top:6px solid var(--rail);border-radius:var(--row-r)}

/* Menus of pages: white rows with their icon, no stripe */
.entries a{border:0;border-radius:var(--row-r);min-height:56px}
.entries.items li{border:0;border-radius:var(--row-r)}
.choice-rows li{border:1.5px solid transparent;border-radius:var(--row-r)}

/* Tables: a white card; the head a quiet band */
table{border:0;border-radius:var(--row-r)}
th{background:#F7F5F0;color:var(--muted);font-size:14px;letter-spacing:.02em}
tbody tr:nth-child(even) td{background:transparent}
th,td{border-bottom:1px solid var(--line)}
@media (max-width:640px){tbody tr{border:0;border-radius:var(--row-r)}}

/* Inputs */
input[type=text],input[type=tel],input[type=email],input[type=url],input[type=password],input[type=number],input[type=date],
input[type=search],select,textarea{border-radius:12px;border-color:var(--rail);min-height:48px}

/* Tabs as pills, the open one filled; the row still scrolls (T-059) */
.tabs ul{gap:6px;box-shadow:none;padding:2px 0}
.tabs a,.tabs [aria-current]{border:1.5px solid var(--rail);border-radius:999px;background:var(--card);padding:6px 16px}
.tabs [aria-current]{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:none}

/* The Tour chip and the language chips: white pills */
.how-chip{background:var(--card);border-color:var(--rail);padding:4px 12px;font-weight:600;color:var(--brand-dark)}
.langs-long a{background:var(--card)}

/* A notification: a soft amber card, its icon on a square of amber */
.notify{background:#FFF6DC;border:0;border-radius:var(--row-r);padding:12px 12px 12px 14px;gap:12px}
.notify>.ico{width:36px;height:36px;padding:8px;border-radius:12px;background:var(--accent);color:var(--ink)}
.notify button.small{background:var(--ink);color:#fff;border-color:var(--ink)}
/* The noticeboard: a white row with its count at the end */
a[data-key="home.link.noticeboard"]{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 16px;
  background:var(--card);border-radius:var(--row-r);text-decoration:none;color:var(--ink);font-weight:600}
a[data-key="home.link.noticeboard"] .badge-count{margin-left:auto;background:var(--brand);color:#fff}

/* People: a coloured circle each, badges as pills, Leader filled */
.person-row{border-bottom:0;padding:8px 0}
.person-row .initial{flex-basis:40px;height:40px;font-size:16px}
.tone-1 .initial{background:#FCE3C4;color:#7A3E00}
.tone-2 .initial{background:#D6E6FB;color:#1B4F8C}
.tone-3 .initial{background:#E3DDF7;color:#4B3A8C}
.tone-4 .initial{background:#E1F5EE;color:#085041}
.tone-5 .initial{background:#FBEAF0;color:#72243E}
.badge{border:0;background:var(--line);font-weight:600;font-size:12px;padding:1px 9px}
.badge[data-key="badge.leader"]{background:var(--ink);color:#fff}
.person-row.tint-invited{background:#EAF6EC;border-radius:12px;padding:8px}

/* Messages: rounded, the mark kept (not colour alone) */
.msg,.errors,.done{border-left:0;border-radius:var(--row-r);padding:12px 14px}
.chip{border:0;background:var(--card);border-radius:999px}

/* The student home (T-081): the team's name large, the deadline a pill */
.team-head [data-team-name]{font-size:22px;font-weight:800}
[data-deadline] [data-key="shome.team_deadline"]{display:inline-flex;padding:4px 12px;border-radius:999px;background:var(--tint);color:var(--brand-dark);font-weight:600;font-size:15px}
.actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.actions>a:not(.button){grid-column:1/-1}
.actions form button{width:100%}
form.tick{background:var(--tint);border-radius:14px;padding:4px 12px 4px 4px}
/* Find a team (S-33) and Invite someone (S-31): each list on its own card */
.board-list{background:var(--card);border-radius:var(--card-r);padding:16px;margin:16px 0}
.board-list>h2{margin:0 0 4px;font-size:19px;font-weight:800}
ul[data-list="S-31"]{background:var(--card);border-radius:var(--card-r);padding:4px 14px}
@media (max-width:640px){th,td{border-bottom:0}}
.actions .button,.actions button{padding:8px 12px;white-space:nowrap}
/* D-188: the gate's one question; its send button holds its words in every language */
form.designation-ask .actions{display:flex}
.home-block .entries{margin:0}
.home-block .entries li{margin:4px 0}
/* D-94 (3): a call button, an outlined pill showing the number */
a.call{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:1.5px solid var(--brand);
  border-radius:999px;color:var(--brand-dark);text-decoration:none;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
a.call:hover{background:var(--tint)}
.person-row .detail a.call{margin-top:4px}
/* D-94 (2): how full a team is: the words, then a thin bar */
.fullness{margin:12px 0 4px}
.fullness-words{display:flex;justify-content:space-between;gap:8px;margin:0 0 6px;font-size:15px}
.fullness-words .members-count{margin:0;color:var(--ink);font-size:15px;font-weight:600}
.fullness-words [data-key^="team.room"]{color:var(--muted)}
.fullness-bar{height:8px;border-radius:999px;background:var(--line);overflow:hidden}
.fullness-bar span{display:block;height:100%;border-radius:999px;background:var(--brand)}
[data-left]{color:var(--muted);font-size:14px;margin-left:6px}
.person-row .fullness-bar{margin-top:8px;height:6px}
/* T-088: a notification's day, before its words */
.notify .when,[data-computed] .when{font-size:14px;color:var(--muted);margin-right:4px;white-space:nowrap}
.person-row .fullness{margin:6px 0 0}
.person-row .fullness-words{font-size:14px}
/* Simple checks (10 Oct): a long team name wraps under itself with its code and
   pencil after it; the deadline pill wraps as one sentence; with scripts off the
   tick's Save sits on its own line; the signed-out About reads on the green bar. */
.team-head .lead-line{flex:0 1 auto;flex-wrap:wrap;align-items:baseline}
.team-head [data-team-name]{line-height:1.25}
.team-head .team-code{flex:0 0 auto}
[data-deadline] [data-key="shome.team_deadline"]{display:inline-block}
form.tick{flex-wrap:wrap;white-space:normal}
form.tick #joined-words{white-space:nowrap}
form.tick button{margin-left:auto}
/* T-200 (18 October): on a phone, the team's name on its own line with
   its code and preferences beneath, in words; the deadline's icon beside its first line;
   My details one row each with its pencil at the end; an icon never touches its words. */
.lead-line{gap:6px}
.team-head{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px}
.team-title{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;margin:0}
.team-title .team-code{flex-basis:100%;margin:0 0 0 26px}
.team-meta{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px;margin:0 0 10px 22px}
.team-meta details.note-edit summary.pencil{display:inline-flex;align-items:center;gap:4px;min-height:36px;min-width:0;
  padding:0 4px;font-size:14px;color:var(--brand-dark)}
.team-meta .pencil-words{text-decoration:underline;text-underline-offset:3px}
[data-deadline]{align-items:flex-start;gap:8px}
[data-deadline]>.ico{margin-top:5px;flex:0 0 auto}
[data-deadline] [data-key="shome.team_deadline"]{border-radius:12px}
p[data-details]{display:block;margin:6px 0 12px}
[data-details] .drow{display:flex;align-items:center;gap:8px;min-height:44px;border-top:1px solid var(--line)}
[data-details] .drow:first-child{border-top:0}
[data-details] .drow>.ico{flex:0 0 auto}
[data-details] .drow>span:not(.ico){flex:1;min-width:0;overflow-wrap:anywhere}
[data-details] a.pencil{margin-left:auto}
/* T-201: a single tick says "Saved" on the page it returns to; nothing moves (T-NB-10). */
.saved-mark{display:inline-flex;align-items:center;gap:4px;color:var(--brand-dark);font-weight:600;font-size:14px}
.about-link{color:#fff;text-decoration:underline;text-underline-offset:3px}
/* D-97 items 3 to 5: invited rows; the posted line; the bar in three shades */
.fullness-bar{display:flex;background:#fff;box-shadow:inset 0 0 0 1px var(--rail)}
.fullness-bar span{border-radius:0}
.fullness-bar span:first-child{border-radius:999px 0 0 999px}
.fullness-bar span.invited{background:#B9B4AA}
.fullness-words{flex-wrap:wrap}
.room-posted{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;background:var(--tint);border-radius:14px;padding:8px 12px;margin:8px 0}
.room-posted p{margin:0;flex:1 1 12rem;font-size:15px}
.person-row form{margin:0 0 0 auto}
/* U-203: a row's button keeps its words on one line; the name wraps instead */
.person-row form{flex:0 0 auto}
.person-row form button{white-space:nowrap}
/* D-97 item 7: registration badges in colour, the words kept */
.badge[data-key="invite.state.registered"]{background:#DDF0E3;color:#14532D}
.badge[data-key="invite.state.not_registered"]{background:#FCEBC7;color:#6B4A00}
.record-line{display:block}
/* D-97 item 12: the other programme's chip, small, beside the person menu */
.programme-chip{flex:none;display:inline-flex;align-items:center;min-height:28px;padding:0 10px;margin:0 2px;border:1.5px solid rgba(255,255,255,.7);
  border-radius:999px;color:#fff;font-size:13px;font-weight:800;letter-spacing:.04em;text-decoration:none;position:relative}
.programme-chip::after{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:44px;transform:translateY(-50%)}
/* D-97 item 22: the numbers' groups, each lightly shaded; item 20: the wide hint on phones only */
colgroup.g-students{background:#F2F7FC}
colgroup.g-supervisors{background:#F6F2FB}
colgroup.g-teams{background:#F2F8F3}
tr.group-row th{text-align:center;background:transparent;border-bottom:1px solid var(--line);font-size:13px;letter-spacing:.06em;text-transform:uppercase}
tr.group-row th.g-students{background:#E3EEF9}
tr.group-row th.g-supervisors{background:#EDE6F7}
tr.group-row th.g-teams{background:#E2F0E5}
.wide-hint{display:none;font-size:14px;color:var(--muted)}
@media (max-width:640px){.wide-hint{display:block}}
/* D-97 item 19: on a phone, a monitoring table's row is one compact card: the name
   first, then each fact as a small self-describing chip ("8 On lists", "Registered"),
   the row menu at its end; no label column. On a wider screen the table stays. */
.phone-only{display:none}
@media (max-width:640px){
  table.cards tbody tr{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:12px 14px}
  table.cards td{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;font-size:14px}
  table.cards td::before{content:none!important}
  table.cards td:first-child{flex-basis:100%;font-size:16px;font-weight:700}
  table.cards td:not(:first-child):not(:last-child){background:var(--line);border-radius:999px;padding:2px 10px}
  table.cards td:has(> .no:only-child),table.cards td:empty{display:none}
  table.cards td:last-child{margin-left:auto}
  table.cards .phone-only{display:inline}
  table.cards .wide-only{display:none}
  table.cards tr.group-row,table.cards colgroup{display:none}
}
@media (max-width:640px){
  table.cards[data-list="S-92"] td:nth-child(2){order:-1;flex-basis:100%;font-size:16px;font-weight:700;background:none;padding:0}
  table.cards[data-list="S-92"] td:first-child{flex-basis:auto;font-size:13px;font-weight:600}
}
.link-text{overflow-wrap:anywhere}
/* D-101 (1): the Teams card's proposal and Freeze, under its link */
.card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:6px 0 0 52px}
.card-actions form{margin:0}
/* T-331 (Q-345): a button among a card's actions keeps its outline, which .entries a removes. */
.card-actions a.button{border:1.5px solid var(--brand);border-radius:999px;min-height:44px;padding:8px 20px;background:#fff;margin:0}
/* T-100: the footer's help chip, outlined in the programme's colour (option A), and its page */
.foot{background:transparent;border-top:0}
.foot .wrap{justify-content:center;padding-top:6px;padding-bottom:12px}
.foot a.help-chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;
  background:#fff;border:1.5px solid var(--brand);color:var(--brand-dark);text-decoration:none;font-size:15px;font-weight:700;
  box-shadow:0 1px 3px rgba(0,0,0,.08)}
.foot a.help-chip:hover{background:var(--tint)}
.foot a.help-chip .ico{width:20px;height:20px}
/* S-62: each posted notice is one card, its author and date left and Remove right on one line */
.notice-card{background:var(--card);border-radius:var(--card-r);padding:12px 16px;margin:10px 0}
.notice-card .note-line{justify-content:space-between;color:var(--muted);font-size:14px}
.notice-card .notice{background:transparent;padding:0;margin:4px 0 0;border:0}
/* T-129: the download icon, alone, at the right above a long table */
.list-download{display:flex;justify-content:flex-end;margin:4px 0}
.list-download a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:999px;color:var(--brand-dark)}
.list-download a:hover,.list-download a:focus-visible{background:var(--tint)}
.list-download .ico svg{width:22px;height:22px}
/* D-110, S-99: the help. Questions as quiet full-width rows; one answer card; the
   programme's guide and tour always at the foot, small (T-138). */
.help-page h1{display:flex;align-items:center;gap:10px}
.help-status{background:var(--tint);border-radius:14px;padding:10px 14px;margin:8px 0 16px}
.help-status p{margin:2px 0;font-size:15px}
.help-list h2{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#5b5b5b);margin:18px 0 6px}
.help-questions{list-style:none;margin:0;padding:0}
.help-questions li{margin:0 0 8px}
.help-questions form{margin:0}
button.help-question{display:block;width:100%;text-align:left;background:var(--card);color:var(--ink);border:1px solid var(--rail);border-radius:14px;padding:12px 14px;font:inherit;min-height:44px;cursor:pointer}
button.help-question:hover,button.help-question:focus-visible{border-color:var(--brand)}
button.help-question.leads::after{content:" ›";color:var(--muted,#5b5b5b)}
.help-answer{margin:8px 0 12px;white-space:normal}
.help-answer > p{white-space:pre-line}
.help-answer h2{font-size:1.05rem;margin:0 0 8px}
.help-why{font-size:15px;color:var(--muted,#5b5b5b)}
.help-ladder{list-style:none;margin:10px 0;padding:0}
.help-ladder li{margin:0 0 6px}
.help-helped{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.help-message{white-space:normal}  /* the card's own line breaks are not the words' */
.help-message textarea{width:100%;box-sizing:border-box}
.help-choose{margin:4px 0 8px;line-height:2.4}
.help-choose .inline-label{display:inline;margin:0;font-weight:600}
.help-choose select{max-width:100%;min-height:44px;font:inherit}
.help-message input[name=mobile]{max-width:16rem}
.help-meanwhile{margin:4px 0 12px;font-size:15px}
.help-meanwhile p{margin:0 0 4px}
.help-wider{display:flex;flex-wrap:wrap;gap:6px 16px;margin:14px 0}
/* Tarak, 12 October: the guide and tour links at medium weight, readable and easy to tap. */
.help-ways{display:flex;flex-wrap:wrap;gap:4px 24px;margin:28px 0 8px;font-size:1rem;font-weight:600}
.help-ways a{display:inline-flex;align-items:center;gap:8px;min-height:44px}
/* T-146: S-100's statistics: totals as tiles; tables with numbers to the right. */
.stat-tiles{list-style:none;margin:12px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.stat-tile{background:var(--card);border-radius:var(--card-r);padding:12px 14px;display:flex;flex-direction:column}
.stat-number{font-size:1.6rem;font-weight:700}
.stat-label{font-size:.85rem;color:var(--muted,#5b5b5b)}
.stats-table th.num,.stats-table td.num{text-align:right}

/* T-147, T-149, T-150: S-100's Messages. A toolbar, then the list and the reader;
   on a wide screen both panes fill the window and scroll on their own, so nothing
   covers the list; on a phone one pane at a time. */
.badge.state-new{background:#FDF0D5}
.badge.state-read{background:#EAF0F8}
.badge.state-processed{background:#E8F2EB}
/* T-403 (F-27): Noted, a quiet badge: a support note, the message still open. */
.badge.state-noted{background:#F1EEF6}
.mailbox{display:grid;gap:12px}
.mail-toolbar{display:flex;flex-direction:column;gap:6px}
.mail-toolbar-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 16px}
.mail-toolbar-status{align-items:center;min-height:32px}
.mail-toolbar-status .chips{margin:0}
.mail-count{margin-left:auto}
.mail-count .count{margin:0}
.mail-toolbar-status .list-download{margin:0}
.mail-search{display:flex;flex-direction:column;gap:2px;margin:0}
.mail-search label,.mail-filter label{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#5b5b5b)}
.mail-search-field{display:flex;gap:6px}
.mail-search input{width:11rem}
.mail-filters{margin:0}
.mail-filters .filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;margin:0}
.mail-filter{display:flex;flex-direction:column;gap:2px}
.mail-filter select{max-width:13rem;text-overflow:ellipsis}
.mail-list,.mail-reader{background:var(--card);border-radius:var(--card-r);min-width:0}
.mail-select-all{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0;padding:8px 12px;border-bottom:1px solid var(--rail);font-size:.92rem}
.skip{position:absolute;left:-9999px}
.skip:focus{position:static}
.mail-items{list-style:none;margin:0;padding:0}
.mail-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-bottom:1px solid var(--rail)}
.mail-item:last-child{border-bottom:0}
.mail-item input[type=checkbox]{margin-top:4px;min-width:18px;min-height:18px}
.mail-item.selected{background:#DFF0E3}
/* D-148: the row a Remove is about, marked while its question shows. */
table tr.selected,table tr.selected td{background:#DFF0E3}
/* D-148: Other names, compact (Tarak, 24 October): tight spacing, a small table, small buttons. */
[data-section=names],[data-section=names] .card{padding:12px 14px;white-space:normal}  /* a card keeps line breaks for messages; this one has none */
[data-section=names] h2{margin:0 0 2px}
[data-section=names] .hint{margin:0 0 8px}
[data-section=names] p{margin:6px 0}
[data-section=names] table{margin:4px 0;font-size:.95rem}
[data-section=names] th,[data-section=names] td{padding:4px 8px}
[data-section=names] .card{padding:8px 10px;margin:6px 0}
[data-section=names] fieldset{margin:6px 0;padding:0;border:0}
[data-section=names] fieldset label{display:block;margin:2px 0}
[data-section=names] fieldset small{display:block;margin-left:26px}
[data-section=names] .actions{margin:6px 0;display:flex;gap:8px;align-items:center}
[data-section=names] .actions button,[data-section=names] .button{min-height:36px;padding:4px 14px;font-size:.9rem;width:auto}
/* On a phone each name stays one line: the name, its badge, its menu (no column labels). */
@media (max-width:640px){
  [data-section=names] tbody tr{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:4px 8px}
  [data-section=names] tbody td{padding:0}
  [data-section=names] tbody td:first-child{flex:1}
  [data-section=names] td[data-label]::before{content:none}
}
/* F-23 (T-383): the open message's row on grey, with its bar; a ticked row keeps its green. */
.mail-item.current{box-shadow:inset 4px 0 0 var(--brand);background:#ECEDEF}
.mail-item.current.selected{background:#DFF0E3}
/* T-383: a calmer, smaller type on S-100 (Tarak: "the fonts can be reduced in size"). */
.mailbox{font-size:15px;line-height:1.4}
main.wrap:has(.mailbox) h1{font-size:21px;margin:12px 0 8px}
.mailbox .mail-item{padding:8px 10px}
.mailbox .mail-snippet{font-size:13.5px}
.mailbox .mail-when,.mailbox .mail-badges{font-size:12.5px}
.mailbox .badge{font-size:12px}
.mailbox .count{font-size:13.5px}
.mailbox .mail-body article h2,.mailbox .mail-many h2{font-size:17px}
.mailbox h3{font-size:14px;margin:12px 0 4px}
.mailbox .mail-meta,.mailbox .mail-history{font-size:13.5px}
.mailbox button.small{font-size:13.5px}
.mailbox details.multi summary{min-height:34px;padding:3px 10px;font-size:13.5px}
.mailbox details.multi{margin:0 4px 0 0}
.mailbox details.filter.mail-filters{margin:0}
.mailbox details.multi fieldset label{min-height:32px;padding:3px 2px;font-size:14px}
/* F-22 (T-383): the sender's role, a quiet pill beside the name. */
.role-pill{display:inline-block;margin-left:6px;padding:0 7px;border-radius:999px;font-size:11.5px;font-weight:600;line-height:18px;vertical-align:1px;background:#EEF0F3;color:#3f4652;white-space:nowrap}
.role-pill.role-student{background:#E3F1FB;color:#155d8a}
.role-pill.role-supervisor{background:#E4F3EC;color:#226046}
.role-pill.role-nodal_officer{background:#FBEFDD;color:#7a4b0c}
.role-pill.role-unknown{background:transparent;border:1px dashed #b9bec7;color:#5b5b5b;line-height:16px}
.mail-since{margin:10px 0 0;padding:8px 12px;background:var(--paper);border-radius:8px}
.mail-since h3{margin-top:0}
.mail-open{flex:1;min-width:0;display:grid;grid-template-columns:1fr auto;gap:2px 10px;color:var(--ink);text-decoration:none}
.mail-from{font-weight:600}
.state-new .mail-from,.state-new .mail-subject{font-weight:700}
.mail-when{font-size:.85rem;color:var(--muted,#5b5b5b);white-space:nowrap}
.mail-subject,.mail-snippet,.mail-badges{grid-column:1 / -1}
.mail-snippet{font-size:.92rem;color:var(--muted,#5b5b5b);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mail-badges{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;font-size:.85rem}
.mail-owner{color:var(--muted,#5b5b5b)}
.mail-list-foot{padding:4px 12px}
.mail-list-foot .pager{margin:4px 0}
.mail-reader{display:flex;flex-direction:column}
.mail-actions-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:8px 12px;border-bottom:1px solid var(--rail)}
.mail-assign{display:inline-flex;gap:6px;align-items:center}
.mail-assign select{max-width:12rem}
.mail-selected-count{margin-left:auto;font-size:.9rem;color:var(--muted,#5b5b5b)}
.mail-reader .error{margin:8px 12px 0}
.mail-body{padding:12px 16px;white-space:normal}
.mail-body article h2,.mail-many h2{font-size:1.15rem;margin:0 0 6px}
.mail-body h2:focus{outline:none}
.mail-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;color:var(--muted,#5b5b5b);font-size:.92rem;margin:0 0 8px}
.mail-facts{display:grid;grid-template-columns:max-content 1fr;gap:4px 12px;margin:8px 0}
.mail-facts dt{color:var(--muted,#5b5b5b)}
.mail-facts dd{margin:0}
.mail-words{margin:10px 0;padding:10px 14px;border-left:4px solid var(--rail);background:var(--paper)}
.mail-words.reply{border-left-color:var(--brand)}
.mail-history{margin:4px 0 0;padding-left:18px;font-size:.92rem;color:var(--muted,#5b5b5b)}
.mail-many-list{list-style:none;margin:6px 0;padding:0}
.mail-many-list li{padding:8px 0;border-bottom:1px solid var(--rail)}
.mail-empty{color:var(--muted,#5b5b5b);margin:24px 0}
.mail-compose{padding:8px 12px 12px;border-top:1px solid var(--rail)}
.mail-compose label{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#5b5b5b)}
.mail-compose-row{display:flex;gap:8px;align-items:flex-end}
.mail-compose textarea{flex:1;min-width:0;box-sizing:border-box;resize:vertical}
.mail-compose-buttons{display:flex;flex-direction:column;gap:6px}
.mail-compose-hint{margin:4px 0 0}
.mail-notes-list{list-style:none;margin:6px 0 10px;padding:0}
.mail-notes-list li{margin:0 0 8px;padding:8px 12px;border-left:4px solid #CFC6E0;background:var(--paper)}
.mail-note-by{display:block;font-size:.8rem;color:var(--muted,#5b5b5b)}
.mail-note-text{display:block}
.mail-back{display:none}
@media (max-width:899px){
  .mailbox.has-open .mail-list{display:none}
  .mailbox:not(.has-open) .mail-body{display:none}
  .mail-back{display:block}
  .mail-search input{width:100%}
}
@media (min-width:900px){
  /* On a wide screen the filters are always shown, as a row; their Filter summary goes. */
  details.filter.mail-filters > summary{display:none}
  /* The mail screen uses a wide display; every other page keeps its reading width. */
  main.wrap:has(.mailbox){max-width:min(1400px,calc(100% - 32px))}
  .mail-filters .filters{flex-wrap:nowrap}
  .mail-toolbar-row{flex-wrap:nowrap}
  .mail-filter select{max-width:10.5rem}
  .mail-search input{width:9rem}
  /* Each pane nearly the window's height: the page scrolls past the heading, then
     the panes scroll on their own. */
  .mailbox{grid-template-columns:420px minmax(0,1fr);grid-template-rows:auto auto;
    grid-template-areas:"bar bar" "list read";align-items:start}
  .mail-list,.mail-reader{height:calc(100dvh - 120px);min-height:420px}
  .mail-toolbar{grid-area:bar}
  .mail-list{grid-area:list;display:flex;flex-direction:column;min-height:0;overflow:hidden}
  /* F-28: no overscroll-behavior:contain, so a pane at its top passes the wheel on and the page scrolls back up. */
  .mail-items{flex:1;min-height:0;overflow-y:auto}
  .mail-reader{grid-area:read;min-height:0;overflow:hidden}
  .mail-body{flex:1;min-height:0;overflow-y:auto}
}
@media (pointer:fine){
  .mail-toolbar button.small,.mail-actions-bar button.small{min-height:36px;padding-top:4px;padding-bottom:4px}
}
/* D-118: S-85's "Needs attention", on a pale strip like the notice cards; outlined
   buttons (Other weight), each with its count as a chip; no filled button. */
.attention-strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;background:var(--tint);border-radius:var(--card-r);padding:10px 14px;margin:8px 0 14px}
.attention-label{font-weight:600}
.attention-strip .button.outline{background:#fff;color:var(--brand-dark);border:1px solid var(--brand);display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:4px 14px;text-decoration:none}
/* T-163: every sortable heading says so: a faint up-and-down arrow, a pointer, an underline on hover. */
th a[data-sort]{cursor:pointer}
th a[data-sort] .sort-hint{color:var(--muted);opacity:.6;font-size:.85em;margin-left:2px}
/* A row menu near a table's foot is not cut off by the table's rounded box (Tarak, 14 October). */
table:has(.rowmenu[open]){overflow:visible}

/* ==== 1.1, D-125 and D-126: a team's area and its work (T-179, T-183) ====
   From the design canvas "Team Work Screens 1.1", in the Calm cards look. */
.work-card{background:var(--card);border-radius:22px;padding:16px;margin:16px 0;display:flex;flex-direction:column;gap:14px}
.work-card .area-line{display:flex;align-items:center;gap:12px}
.work-card .area-line{flex-wrap:wrap}
/* T-331 (Q-345): a long name keeps its width; the pill goes beneath it on a phone. */
.work-card .area-line .where{flex:1 1 11rem;display:flex;flex-direction:column;min-width:0}
.work-card .area-line .where b{font-size:18px}
.work-card .area-line .where span{font-size:14px;color:var(--muted)}
.work-mark{width:48px;height:48px;border-radius:16px;background:var(--tint);color:var(--brand-dark);
  display:flex;align-items:center;justify-content:center;flex:none}
.work-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.work-stats div{background:var(--ground);border-radius:14px;padding:10px;display:flex;flex-direction:column}
.work-stats b{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}
.work-stats span{font-size:13px;color:var(--muted)}
.work-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.work-actions .button{display:flex;align-items:center;justify-content:center;gap:8px;margin:0}
.state-pill{padding:4px 10px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap}
.state-pill.approved,.state-pill.inside{background:var(--tint);color:var(--brand-dark)}
.state-pill.proposed,.state-pill.near{background:#FFF6DC;color:#6B4A00}
.state-pill.outside,.state-pill.rough,.state-pill.rejected,.state-pill.withdrawn{background:var(--warn-tint);color:var(--warn)}
.state-pill.not_located,.state-pill.none{background:var(--line);color:var(--muted)}
.focus-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}
.focus-grid li{background:var(--card);border-radius:18px;padding:12px;display:flex;flex-direction:column;gap:2px}
.focus-grid li b{font-weight:800}
.focus-grid li span{font-size:14px;color:#3F5A48}
.focus-grid li small{font-size:13px;color:var(--muted)}
.focus-grid li.nothing{background:var(--line)}
.focus-grid li.nothing span{color:var(--muted)}
.visit-list{list-style:none;margin:0;padding:4px 14px;background:var(--card);border-radius:18px}
.visit-list li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.visit-list li:last-child{border-bottom:0}
.visit-list .who{flex:1;display:flex;flex-direction:column;min-width:0}
.visit-list .who small{font-size:13px;color:var(--muted)}
.post-card{background:var(--card);border-radius:18px;padding:14px;margin:0 0 10px;display:flex;flex-direction:column;gap:10px}
.post-card .post-head{display:flex;align-items:center;gap:10px}
.post-card .post-head .who{flex:1;display:flex;flex-direction:column;min-width:0}
.post-card .post-head small{font-size:13px;color:var(--muted)}
.post-card p{margin:0;overflow-wrap:anywhere}
.focus-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--muted);margin:14px 0 8px}
.react-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.react-row form{margin:0}
.react-row button{min-height:40px;padding:0 12px;border-radius:999px;border:1px solid var(--rail);background:var(--card);
  color:var(--ink);font-weight:700;font-size:14px;display:inline-flex;align-items:center;gap:6px}
.react-row button[aria-pressed=true]{border:1.5px solid var(--brand);background:var(--tint);color:var(--brand-dark)}
.react-row .react-love .ico{color:#B42318}.react-row .react-fire .ico{color:#C2410C}.react-row .react-strong .ico{color:#1B4F8C}
.reacted-by{font-size:14px}
.pill-choices{display:flex;flex-wrap:wrap;gap:8px;border:0;margin:0;padding:0}
.pill-choices legend{font-weight:700;margin-bottom:8px;padding:0}
.pill-choices label{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;
  background:var(--card);border:1px solid var(--rail);font-weight:400;cursor:pointer;position:relative}
.pill-choices input{position:absolute;opacity:0;width:1px;height:1px}
/* Note 169 (19 October): a chosen option is a tinted bubble, never a filled button. */
.pill-choices label:has(input:checked){background:var(--tint);border-color:var(--brand);color:var(--brand-dark);font-weight:600}
.pill-choices label:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
.map-box{height:320px;border-radius:18px;overflow:hidden;background:#EEEAE1;margin:8px 0;
  /* The owner's note, 8 November: the map's layers stay inside the map, so no menu, tip or note box falls beneath it. */
  position:relative;z-index:0;isolation:isolate}
.map-box.small{height:240px}
.map-corner{display:block;width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid #0B6E99;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.map-corner.first{background:#0B6E99}
.map-label{font-family:var(--font);font-size:12px;font-weight:700;padding:2px 6px}
.map-tools{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.map-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:var(--card);border-radius:18px;padding:14px}
.map-facts b{font-size:20px;font-weight:800;display:block}
.map-facts span{font-size:13px;color:var(--muted)}
/* T-331 (Q-344): the figure's own spans take the figure's size, not the label's. */
.map-facts b span{font-size:inherit;color:inherit}
/* T-331: one figure, its label beneath (the corridor's length). */
.map-facts.one{grid-template-columns:1fr;gap:2px}
.located{background:var(--tint);border-radius:18px;padding:14px;display:flex;align-items:center;gap:12px}
.located.away{background:var(--warn-tint)}
.cheer{background:var(--card);border:2px solid var(--accent);border-radius:22px;padding:18px;text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:6px;margin:16px 0}
.cheer b{font-size:20px}
.summary-chips{display:flex;flex-wrap:wrap;gap:6px}
.summary-chips span{padding:4px 10px;border-radius:999px;background:var(--line);font-size:13px;font-weight:600}
/* 1.1: the initial in a compact list, coloured as on a person's row; the round call button */
.visit-list .initial,.post-card .initial{flex:0 0 36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;
  justify-content:center;font-weight:700;font-size:15px;background:var(--tint);color:var(--brand-dark)}
.initial.tone-1{background:#FCE3C4;color:#7A3E00}.initial.tone-2{background:#D6E6FB;color:#1B4F8C}
.initial.tone-3{background:#E3DDF7;color:#4B3A8C}.initial.tone-4{background:#E1F5EE;color:#085041}
.initial.tone-5{background:#FBEAF0;color:#72243E}
a.call-icon{flex:none;width:44px;height:44px;border-radius:50%;background:var(--tint);color:var(--brand-dark);
  display:inline-flex;align-items:center;justify-content:center}
a.call-icon:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.visit-list .who,.post-card .who{text-align:left;align-items:flex-start}
/* T-186: the help, in its own tab, does not look like a portal page: a light header
   band with a brand-coloured rule, the words and icons in the brand colour. */
.bar.help-bar{background:var(--paper);color:var(--brand-dark);border-bottom:3px solid var(--brand)}
.bar.help-bar a,.bar.help-bar .brand,.bar.help-bar summary{color:var(--brand-dark)}
.bar.help-bar .initials{background:var(--brand);color:#fff}
.help-own-tab{margin:-4px 0 12px}
/* 1.1, N-8 (T-192): the team's work as sections that open and close, each with a
   title and a summary line; long sections scroll within themselves. N-12: two
   columns on a wide screen, the card and the area on the left. */
.work-page{display:flex;flex-direction:column}
.work-col>h2{margin:16px 0 4px;font-size:18px}
.work-section{background:var(--card);border-radius:18px;margin:10px 0}
.work-section.nothing{background:var(--line)}
.work-section>summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:2px;
  padding:12px 44px 12px 16px;position:relative;min-height:44px}
.work-section>summary::-webkit-details-marker{display:none}
.work-section>summary::after{content:"";position:absolute;right:18px;top:50%;width:9px;height:9px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg);transition:transform .15s}
.work-section[open]>summary::after{transform:translateY(-30%) rotate(-135deg)}
.work-section>summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:18px}
.sum-title{font-weight:800}
.sum-line{font-size:14px;color:var(--muted)}
.work-section-body{padding:0 16px 14px}
.work-section-body.scroll{max-height:28rem;overflow-y:auto}
.work-section-body h3{font-size:16px;margin:14px 0 4px}
.work-section .visit-list{margin:0 0 8px}
.work-section .post-card{background:var(--paper)}
/* The area opens from the work card itself (Tarak, 17 October): the area line is the
   summary, with a chevron after the state; the map and the area's details below it. */
.area-more>summary{list-style:none;cursor:pointer;padding-right:28px;position:relative;min-height:44px}
.area-more>summary::-webkit-details-marker{display:none}
.area-more>summary::after{content:"";position:absolute;right:6px;top:50%;width:9px;height:9px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg);transition:transform .15s}
.area-more[open]>summary::after{transform:translateY(-30%) rotate(-135deg)}
.area-more>summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:14px}
.area-body{padding-top:12px}
.area-body h3{font-size:16px;margin:14px 0 4px}
/* The student's page, summarised (Tarak, 17 October): a focus area by day, who was on
   site grouped by place, posts in a line with the platform's icon; the team with each
   member's attendance, their dates opening from the row. */
.work-day{padding:10px 0;border-top:1px solid var(--line)}
.work-day:first-child{border-top:0;padding-top:0}
.day-date{font-weight:800;margin:0 0 6px}
.day-visits{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 6px}
.day-visits .state-pill{flex:none}
.post-line{margin:8px 0 4px}
.post-top{display:flex;gap:8px;align-items:flex-start;margin:0}
.post-top .platform{flex:none;width:28px;height:28px;border-radius:8px;background:var(--tint);color:var(--brand-dark);
  display:inline-flex;align-items:center;justify-content:center}
.post-top a{flex:1;min-width:0;color:inherit;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:4px 0 0 36px;font-size:14px;color:var(--muted)}
.post-meta form{margin-left:auto}
.react-row.small{margin:4px 0 0 36px}
.react-row.small button{min-height:36px;padding:2px 10px}
/* R-1: a reaction is never the form's main button, whatever comes first. */
.react-row form button[type=submit]{background:var(--card);color:var(--ink);border:1px solid var(--rail)}
.react-row form button[type=submit][aria-pressed=true]{border:1.5px solid var(--brand);background:var(--tint);color:var(--brand-dark)}
/* R-4: a section's title and summary on one line, wrapping only when they do not fit;
   a day as one phrase that wraps. */
.work-section>summary{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:10px}
.day-line{margin:0 0 6px;line-height:2}
.day-line b{margin-right:6px}
.day-line .state-pill{margin:0 4px 0 6px}
.day-line .state-pill:first-of-type{margin-left:0}
.sub-label{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:0 0 4px}
.member-list{list-style:none;margin:0;padding:0}
.member-list>li{display:flex;align-items:flex-start;gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.member-list>li:first-child{border-top:0}
.member-visits{flex:1;min-width:0}
.member-visits>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:44px}
.member-visits>summary::-webkit-details-marker{display:none}
.member-visits[data-none]>summary{cursor:default}
.member-visits .initial{flex:0 0 36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.member-visits .who{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.member-visits .who small{color:var(--muted);font-size:14px}
.member-visits[data-none] .who small{color:var(--warn,#8a5a00)}
.visit-dates{list-style:none;margin:6px 0 0 46px;padding:0;font-size:14px}
.visit-dates li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;padding:4px 0}
/* 1.1, D-130: issues (amber, ISPF's own accent for a problem being followed), their
   timeline and mSeva complaints; activities; thumbnails; review teams' areas with its
   ticks; finalised teams and their exceptions. */
.state-pill.issue-open,.state-pill.issue-back_again{background:#FBEFD9;color:#7A4B00}
.state-pill.issue-in_progress{background:#D6E6FB;color:#1B4F8C}
.state-pill.issue-resolved{background:var(--tint);color:var(--brand-dark)}
.state-pill.issue-set_aside{background:var(--line);color:var(--muted)}
.count-issue{color:#7A4B00;font-weight:700}
.issue-line{display:flex;align-items:center;gap:8px;padding:8px 10px;margin:0 0 8px;border-radius:12px;
  background:#FFF8EC;color:inherit;text-decoration:none;min-height:44px}
.issue-line b{flex:1;min-width:0}
.activity-line{display:flex;gap:8px;align-items:flex-start;margin:0 0 6px}
.activity-line .who-small,.who-small{color:var(--muted);font-size:14px}
.post-top .thumb{flex:none;width:72px;height:54px;object-fit:cover;border-radius:8px;background:var(--line)}
.issue-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--muted)}
.issue-steps{background:var(--card);border-radius:18px;padding:14px;margin:12px 0;display:flex;flex-direction:column;gap:10px}
.status-form{display:flex;flex-direction:column;gap:6px}
.ticket-list{list-style:none;margin:0 0 8px;padding:0}
.ticket-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.ticket-list li:first-child{border-top:0}
.ticket-list form{display:flex;gap:6px;align-items:center}
.ticket-list select{width:auto}
.timeline{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--line)}
.timeline li{position:relative;padding:6px 0 10px 10px;display:flex;flex-direction:column;gap:2px}
.timeline li::before{content:"";position:absolute;left:-21px;top:12px;width:10px;height:10px;border-radius:50%;background:var(--rail)}
.timeline li.step-status::before{background:#DEA057}
.timeline .when{font-size:13px;font-weight:700;color:var(--muted)}
.more-fields{margin:8px 0}
.more-fields>summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.field-label{font-weight:700;margin:12px 0 4px}
.similar{background:#FFF8EC;border-radius:14px;padding:12px;margin:0 0 12px}
.similar-list{margin:6px 0;padding-left:18px}
.area-rows{list-style:none;margin:0 0 12px;padding:0}
.area-rows>li{background:var(--card);border-radius:14px;padding:12px;margin:0 0 8px;display:flex;flex-direction:column;gap:8px}
.area-rows.plain>li{padding:8px 12px}
.area-rows .who{display:flex;flex-direction:column;gap:2px;min-width:0}
.area-rows .who small{color:var(--muted)}
.area-tick{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
.area-tick input{width:24px;height:24px;flex:none;margin-top:2px}
.area-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.bulk-approve{position:sticky;bottom:0;background:var(--paper);padding:10px 0;margin-bottom:16px}
.badge.finalised,.state.finalised{background:var(--tint);color:var(--brand-dark)}
.exception-list{list-style:none;margin:0;padding:0;font-size:14px}
.exception-list li{padding:6px 0;border-top:1px solid var(--line)}
.sum-line .part+.part::before{content:", "}
.area-rows .who{align-items:flex-start;text-align:left}
.area-rows .who b,.area-rows .who span{text-align:left}
/* T-195: the student page in cards; trackers in four; focus lines coloured by when
   they were last active; small maps where nothing is drawn; the issue screen; the
   review of areas in three columns on a wide screen. */
.work-page>.home-block{margin:16px 0}
.work-card h2,.work-page .home-block h2{margin:0 0 10px}
.work-stats.four{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:520px){.work-stats.four{grid-template-columns:repeat(4,minmax(0,1fr))}}
.work-section.state-now{background:var(--tint)}
.work-section.state-before{background:var(--card);border:1px solid var(--line)}
.work-section.state-none{background:var(--line)}
.issue-line .issue-what{flex:1;min-width:0;display:flex;flex-direction:column}
.issue-line .issue-what small{color:var(--muted);font-weight:400}
.team-card>summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px;
  padding-right:28px;position:relative;min-height:44px}
.team-card>summary::-webkit-details-marker{display:none}
.team-card>summary h2{margin:0;font-size:inherit}
.team-card>summary::after{content:"";position:absolute;right:6px;top:50%;width:9px;height:9px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg)}
.team-card[open]>summary::after{transform:translateY(-30%) rotate(-135deg)}
.activity .added{margin-left:24px;font-size:14px}
.activity .add-mine{font-size:13px;margin-left:6px}
.map-box.tiny{height:150px}
.pill-choices.small label{padding:4px 12px;min-height:36px}
.set-aside-reason{display:none}
.status-form:has(input[value=SET_ASIDE]:checked) .set-aside-reason{display:block}
.grievance-new>summary{list-style:none}
.grievance-new>summary::-webkit-details-marker{display:none}
.grievance-new[open]{grid-column:1/-1}
.grievance-new form{margin-top:8px;display:flex;flex-direction:column;gap:4px}
.ticket-update>summary{cursor:pointer;color:var(--brand-dark);font-weight:700;min-height:44px;display:flex;align-items:center}
.ticket-update form{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.state-pill.ticket{background:#E3DDF7;color:#4B3A8C}
.timeline li{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:6px}
.timeline .when{min-width:56px}
.warn-text{color:var(--warn)}
.area-rows .who small{font-size:13px;line-height:1.4}
/* T-195, the second preview: a post in two short lines; review cards in rows on a
   wide screen; a Remove that reads as a link. */
.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:4px 0 0 36px;font-size:13px;color:var(--muted)}
.post-meta .react-row.small{margin:0;gap:4px}
.post-meta .react-row.small button{min-height:30px;padding:0 6px;font-size:12px;gap:3px}
.post-meta .remove-form{margin-left:auto}
button.linklike.small{font-size:13px;min-height:32px;padding:0 4px;color:var(--muted);text-decoration:underline;background:none;border:0}
@media (min-width:700px){.area-rows.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
  .area-rows.cards>li{margin:0}}
.bulk-approve{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px}
.send-back-ticked>summary{list-style:none}
.send-back-ticked>summary::-webkit-details-marker{display:none}
.send-back-ticked[open]{flex-basis:100%;display:flex;flex-direction:column;gap:6px}
.team-link{color:inherit;text-decoration:underline;text-decoration-color:var(--rail);text-underline-offset:3px}
.linklike-summary{list-style:none;cursor:pointer;font-size:13px;color:var(--muted);text-decoration:underline;min-height:32px;display:inline-flex;align-items:center}
.linklike-summary::-webkit-details-marker{display:none}
/* 1.1, D-130 (T-192): the supervisor's teams as an inbox: a narrow list and the team
   beside it on a laptop; on a phone the list, then the team with "All teams". */
.inbox-list ul{list-style:none;margin:0;padding:0;background:var(--card);border-radius:18px;overflow:hidden}
.inbox-list li+li{border-top:1px solid var(--line)}
.inbox-row{display:flex;flex-direction:column;gap:2px;padding:12px 14px;color:inherit;text-decoration:none;min-height:44px}
.inbox-row:hover{background:var(--paper)}
.inbox-row.current{background:var(--tint)}
.inbox-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.inbox-name{font-weight:400}
.inbox-row.unread .inbox-name{font-weight:800}
.inbox-row.unread::before{content:"";position:absolute}
.inbox-when{font-size:13px;color:var(--muted);white-space:nowrap}
.inbox-snippet{font-size:13px;color:var(--muted)}
.inbox-snippet .part+.part::before{content:", "}
.inbox-row.unread .inbox-snippet{color:var(--ink)}
.flag-waiting{color:#7A4B00;font-weight:700}
.inbox-team .home-block:first-of-type{margin-top:0}
.inbox-back{margin:0 0 8px}
.inbox.has-team .inbox-list{display:none}
.inbox:not(.has-team) .inbox-team{display:none}
@media (min-width:900px){
  .wrap:has(.inbox){max-width:76rem}
  .inbox{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:20px;align-items:start}
  .inbox.has-team .inbox-list,.inbox:not(.has-team) .inbox-team{display:block}
  .inbox-list{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto}
  .inbox-back{display:none}
}
.map-legend{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);margin:6px 0 0}
.map-legend .dot{width:12px;height:12px;border-radius:50%;display:inline-block}
.map-legend .dot.attendance{background:#6FA8DC;border:2px solid #1B4F8C}
.map-legend .dot.issue{background:#DEA057;border:2px solid #8A5A00;margin-left:10px}
/* T-200 (18 October): the 1.1 screens on a phone. A tick and its words on one line; the
   outline's crossing as an error; residents as small name badges; the posts count
   leading to the posts; an issue's timeline, who and when first,
   what below; a checked link wrapping in its card; the four work buttons compact. */
.tick-line{display:flex;align-items:center;gap:10px;margin:14px 0}
.tick-line input[type=checkbox]{width:22px;height:22px;flex:0 0 auto;margin:0}
.tick-line label{margin:0;font-weight:600}
.map-warning{display:flex;align-items:flex-start;gap:6px}
.residents-line{display:flex;align-items:center;gap:6px;margin:8px 0 2px}
.name-badges{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px;padding:0}
.name-badges li{display:inline-flex;align-items:center;gap:4px;background:var(--tint);border-radius:999px;padding:2px 3px 2px 12px}
.name-badges a.call-icon{width:34px;height:34px;background:var(--card)}
.work-stats a.stat-link{background:var(--ground);border-radius:14px;padding:10px;display:flex;flex-direction:column;color:inherit;text-decoration:none;box-shadow:inset 0 0 0 1px var(--rail)}
.work-stats a.stat-link span{text-decoration:underline;text-underline-offset:3px}
.timeline li{flex-direction:column;align-items:stretch;gap:2px}
.timeline .tl-head{display:flex;align-items:center;gap:8px;margin:0;min-height:34px}
.timeline .tl-who{font-weight:700}
.timeline .tl-head a.call-icon{width:34px;height:34px}
.timeline .tl-what{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
.timeline .tl-what q{color:var(--muted)}
.post-card .who small{overflow-wrap:anywhere}
.ticket-update summary.button{list-style:none;display:inline-flex;gap:6px}
.ticket-update summary.button::-webkit-details-marker{display:none}
@media (max-width:480px){
  .work-actions .button{flex-direction:column;gap:4px;padding:12px 8px;min-height:76px;font-size:15px;line-height:1.2;
    border-radius:18px;text-align:center}
}
.closed-note p{margin:0 0 8px}
.their-words{margin:0;padding:10px 14px;border-left:4px solid var(--accent,#DEA057);background:var(--card);border-radius:0 12px 12px 0}
.their-words p{margin:0;font-style:italic}
.their-words footer{margin-top:4px;font-size:13px;font-weight:700;color:var(--muted)}
.when-pill{display:inline-block;font-size:12px;font-weight:700;padding:1px 8px;border-radius:999px;vertical-align:middle;margin-left:4px}
.when-pill.now{background:var(--brand);color:#fff}
.when-pill.before{background:var(--line);color:var(--muted)}

/* D-138: building outlines blend into the streets beneath, so their names stay readable. */
.map-buildings { mix-blend-mode: multiply; }

/* ---- 1.2 (Spec-Next-1.2.md): the stage, its entries, garbage spots, forms and marks,
   as agreed on the 1.2 previews (23 October 2026): one open card, the others collapsed
   with a line; compact rows that expand; one icon per card and per purpose; buttons
   that follow the selection; one main button a card. ---- */
.stage-card{display:grid;gap:10px}
.stage-card h2{margin:0;font-size:15px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.stage-card h2 .ico{color:var(--brand);margin-right:2px;vertical-align:-3px}
.stage-focus{font-size:21px;font-weight:800;margin:0;line-height:1.3}
.stage-dates{margin:0;color:var(--muted);font-size:15px}
.stage-no{margin:0;font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.stage-steps{display:grid;grid-template-columns:repeat(8,1fr);gap:4px}
.stage-steps i{display:block;height:8px;border-radius:4px;background:var(--rail)}
.stage-steps i.s-done{background:var(--brand)}
.stage-steps i.s-now{background:var(--accent)}
.steps-key{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:-6px}
.stage-card .work-actions{display:flex;flex-wrap:wrap;gap:10px}
.report-line{display:grid;gap:6px}
.report-line p{margin:0}
.due{background:#FBF0DC;color:#7A4E0F;border-radius:8px;padding:8px 12px}
.asks{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#FBF0DC;color:#5C3B0B;border-radius:10px;padding:8px 10px;margin:0;font-size:15px}
.asks.asks-done{background:var(--tint);color:var(--brand-dark)}
.work-section .sum-title .ico{color:var(--brand);background:var(--tint);border-radius:50%;width:34px;height:34px;display:inline-grid;place-items:center;margin-right:6px;vertical-align:middle}
.work-section .sum-title .ico svg{width:19px;height:19px}
.sub{font-size:16px;margin:8px 0 0;display:flex;align-items:center;gap:6px}
.sub .count{font-weight:400;color:var(--muted)}
.spot-card{display:grid;gap:8px}
.spot-card p{margin:0}
.spot-update{background:var(--tint);border-radius:8px;padding:8px 12px}
.small-link{font-size:14px}
/* Compact rows: a pill, the first words, who; a tap opens the whole. */
.rows{list-style:none;margin:0;padding:0}
.rows>li:not(.day){border-top:1px solid #EDE9E1}
.rows .day{font-size:14px;font-weight:700;color:var(--muted);margin:14px 0 2px}
.rows .day:first-child{margin-top:0}
.rows .plain-row,.rows .page-row,.rows .spot-free{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;padding:10px 0}
.rows .page-row .page-url{overflow-wrap:anywhere;font-size:14px}
.item>summary{list-style:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px 0;cursor:pointer;min-height:44px}
.item>summary::-webkit-details-marker{display:none}
.item .gist{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.item[open] .gist{visibility:hidden;height:0}
.item .by{font-size:14px;color:var(--muted);white-space:nowrap}
.item>summary input[type=checkbox]{width:22px;height:22px;margin:0}
.item-full{display:grid;gap:6px;padding:0 0 12px}
.item-full p{margin:0}
.item-link{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;padding:10px 0;text-decoration:none;color:inherit}
.item-link .by{grid-column:2;font-size:14px;color:var(--muted)}
.purpose,.kind,.flag{border-radius:999px;padding:1px 10px;font-size:14px;font-weight:700;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
.purpose{background:var(--tint);color:var(--brand-dark)}
.kind{background:#E0EBFF;color:#003D99}
.flag{background:#FBF0DC;color:#7A4E0F}
.flag.ok{background:var(--tint);color:var(--brand-dark)}
.flag.warn,.flag.state-closed,.flag.state-rejected{background:var(--warn-tint);color:var(--warn)}
.flag.state-resolved{background:var(--tint);color:var(--brand-dark)}
.whose{font-size:14px;color:var(--muted)}
a.linkcard{display:grid;grid-template-columns:72px 1fr;gap:10px;align-items:center;border:1px solid var(--rail);border-radius:8px;padding:6px;text-decoration:none;color:inherit;background:var(--card)}
a.linkcard b{display:block;font-size:15px;line-height:1.3}
a.linkcard small{color:var(--muted);overflow-wrap:anywhere}
a.linkcard>span{min-width:0}
a.linkcard .thumb{width:72px;height:72px;border-radius:6px;display:block;object-fit:cover;background:linear-gradient(135deg,#3E9D6B,#1F6B45)}
a.linkcard .thumb.doc{background:linear-gradient(135deg,#7BB58F,#3E7E5A)}
.history{list-style:none;margin:0;padding:0}
.history li{display:grid;grid-template-columns:6.5rem 1fr;gap:8px;padding:8px 0;border-top:1px solid #EDE9E1;font-size:15px}
.history li:first-child{border-top:0}
.history time{color:var(--muted);font-size:14px}
.member-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px;padding:0;list-style:none}
.member-chips a{display:inline-flex;align-items:center;min-height:36px;border:1px solid var(--rail);border-radius:999px;padding:0 12px;font-size:14px;text-decoration:none;color:inherit;background:var(--card)}
.member-chips a[aria-current]{border-color:var(--brand);background:var(--tint);font-weight:700}
.past{display:grid;gap:10px}
.past p{margin:0}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;color:var(--muted);margin:6px 0}
.legend .dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:4px;vertical-align:-1px;border:2px solid #164F33}
.legend .dot.mine{background:#1F6B45}
.legend .dot.adopted{background:#E8B22B;border-color:#8A5A00}
.legend .dot.free{background:#fff}
/* Forms. */
.stage-form{display:grid;gap:12px}
.stage-form .field,.spot-card .field,.stage-card .field,.nested .field{display:grid;gap:4px}
.stage-form .field label,.stage-card .field label,.nested .field label{margin:0}
.field label .unit,legend .unit{font-weight:400;color:var(--muted)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.submit{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px}
.choice-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;border:0}
.choice-chips legend,.pick legend{font-weight:600;padding:0;margin:0 0 6px}
.choice-chips label{display:inline-flex;align-items:center;gap:5px;margin:0;min-height:36px;padding:0 12px;border:1px solid var(--rail);border-radius:999px;font-weight:400;font-size:15px;background:var(--card);cursor:pointer;position:relative}
.choice-chips label .ico{color:var(--muted)}
.choice-chips input{position:absolute;opacity:0;width:1px;height:1px}
.choice-chips label:has(input:checked){border-color:var(--brand);background:var(--tint);color:var(--brand-dark)}
.choice-chips label:has(input:checked) .ico{color:var(--brand)}
.choice-chips label:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
.stage-form .field.other-purpose{display:none}
.stage-form .choice-chips:has(input[value=OTHER]:checked)~.field.other-purpose{display:grid}
/* Spec-Next-SSY-1.3.md item 10: the ULB tick shows with Coordinate; its two fields with the tick. */
.stage-form .ulb-contact{display:none}
.stage-form .choice-chips:has(input[value=COORDINATE]:checked)~.ulb-contact{display:grid;gap:8px}
.stage-form .ulb-contact .ulb-fields{display:none}
.stage-form .ulb-contact:has(input[name=with_ulb]:checked) .ulb-fields{display:grid;gap:8px}
.pick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;border:0}
.pick legend{grid-column:1/-1}
.pick label{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:start;align-content:start;margin:0;min-height:0;padding:10px;border:1px solid var(--rail);border-radius:10px;background:var(--card);font-weight:600;cursor:pointer}
.pick label input{margin:4px 0 0;grid-row:1/3}
.pick label small{font-weight:400;color:var(--muted);font-size:14px;line-height:1.35}
.pick label:has(input:checked){border-color:var(--brand);background:var(--tint)}
.nested{border:1px dashed #B9B2A5;border-radius:10px;padding:0 10px}
.nested>summary{min-height:44px;display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;padding:8px 0;font-weight:600;color:var(--brand-dark);cursor:pointer;list-style:none}
.nested>summary::-webkit-details-marker{display:none}
.nested>summary .peek{flex-basis:100%;padding-left:24px;font-weight:400;font-size:14px;color:var(--muted)}
.nested[open]{padding-bottom:10px}
.nested .body{display:grid;gap:10px}
.complaint{border:1px solid var(--rail);border-radius:10px;padding:10px;display:grid;gap:8px}
.complaint p{margin:0}
.complaint .what{font-weight:600}
.inline-check{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin:0;font-size:15px}
.ok-line{color:var(--brand-dark)}
.field.stage-start{display:grid;gap:4px;margin:0 0 10px;max-width:22rem}
/* The supervisor's list and marks. */
.actionbar{margin-top:8px;border-top:1px solid var(--rail);padding:10px 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.actionbar .plan-form{flex-basis:100%}
button[disabled][aria-disabled=true]{opacity:.45;filter:grayscale(1);cursor:not-allowed}
.part{display:grid;gap:8px;border-top:1px solid #EDE9E1;padding-top:12px;margin-top:4px}
.part h3{font-size:16px;margin:0}
.of{color:var(--muted);font-weight:400}
.tip-line{margin:0;font-size:14px;color:var(--muted)}
.counted-line{font-size:15px}
.markpills{display:flex;flex-wrap:wrap;gap:4px}
.markpill{border-radius:999px;padding:1px 9px;font-size:14px;background:#F3F1EC;color:#33302A;white-space:nowrap;cursor:help}
.markpill.counted{background:var(--tint)}
.student-sum{grid-template-columns:auto minmax(0,1fr) auto}
/* T-331 (Q-345): on a phone the total, or Marks to give, sits under the pills, never over them. */
@media (max-width:640px){.student-sum{grid-template-columns:auto minmax(0,1fr)}.student-sum .by{grid-column:2}}
[data-tip]{position:relative}
[data-tip]:hover::after,[data-tip]:focus-within::after{content:attr(data-tip);position:absolute;left:0;top:calc(100% + 6px);z-index:9;width:max-content;max-width:17rem;background:var(--ink);color:#fff;font-size:13px;font-weight:400;line-height:1.35;padding:6px 10px;border-radius:8px;white-space:normal;box-shadow:0 2px 6px rgba(0,0,0,.2);pointer-events:none}
.split{display:grid;gap:16px}
@media (min-width:900px){.split.with-pane{grid-template-columns:minmax(0,1fr) minmax(0,26rem)}.split .pane{position:sticky;top:12px;align-self:start}}
.pane{background:var(--card);border:1px solid var(--rail);border-radius:18px;padding:12px;display:grid;gap:8px}
.pane h2{margin:0;font-size:17px}
.pane .frame-box iframe{width:100%;aspect-ratio:4/5;border:0;border-radius:8px;background:var(--paper)}
.pane .pane-open{margin:0}
.pane-list .pane-post{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 8px;width:100%;text-align:left;background:none;border:0;padding:10px 0;font:inherit;color:inherit;cursor:pointer;min-height:44px}
.pane-list .pane-post .gist{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pane-list .pane-post .by{grid-column:2;font-size:14px;color:var(--muted)}
.pane-list .pane-post[aria-current]{background:var(--tint);border-radius:8px}

/* ---- 1.2, the blue mock notes of 24 October (170 to 185) ---- */
/* Note 184: choices inside a fold stay a row of bubbles. */
.nested .choice-chips.body{display:flex;flex-wrap:wrap;gap:6px}
/* Note 181: My page in three groups. */
.group-label{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:22px 4px 6px}
.group-label:first-child{margin-top:8px}
/* Note 171: the spots' map folded until asked for. */
.map-fold{margin:0 0 8px}
.map-fold[open] .map-box{margin-top:0}
/* Note 177: a team's row in two lines, and three actions of one size. */
.team-stages .item>summary{grid-template-columns:auto minmax(0,1fr) auto}
.two-line{display:grid;gap:1px;min-width:0}
.two-line b{font-size:16px}
.two-line small{font-size:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item[open] .two-line small{white-space:normal}
.stage-actions{margin-top:8px;border-top:1px solid var(--rail);padding-top:10px}
.stage-actions .hint{margin:0 0 8px}
.action-row{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.action-row>button,.action-row>.plan-form>summary{min-height:44px}
.plan-form{flex-basis:100%}
.plan-form>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.plan-form>summary::-webkit-details-marker{display:none}
.plan-form[open]>summary{margin-bottom:8px}
.plan-body{display:grid;gap:10px;border:1px dashed #B9B2A5;border-radius:10px;padding:10px}
.plan-body .field{display:grid;gap:4px}
.plan-body .field label{margin:0}
@media (min-width:640px){.plan-form{flex-basis:auto}.plan-form[open]{flex-basis:100%}}
/* T-287: the confirmation before a team moves on unmarked. */
.confirm-box{background:#FBF0DC;border-left:5px solid var(--accent);border-radius:6px;padding:10px 12px;margin:10px 0}
.confirm-box p{margin:0 0 8px}
.confirm-actions{display:flex;flex-wrap:wrap;gap:8px}
/* Note 185: the team's latest activities above the form. */
.recent .plain-row{justify-content:space-between}
.gist-wrap{flex:1 1 12rem;min-width:0;font-size:15px}
/* Note 182: Cancel under the main button. */
.stage-form .submit+.submit,.stage-card .submit+.submit,.marks-form .submit+.submit{margin-top:8px}
.recent-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px 0;min-height:44px}
.recent-row .gist{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.recent-row .add-mine{white-space:nowrap;font-weight:600}
a.button.submit{text-decoration:none}
/* Note 178: Teams' work, the team picker on top and the chosen team at full width. */
.team-picker{background:var(--card);border-radius:18px;margin:0 0 12px;position:relative}
.team-picker>summary{list-style:none;cursor:pointer;padding:12px 44px 12px 16px;min-height:52px;display:flex;align-items:center}
.team-picker>summary::-webkit-details-marker{display:none}
.team-picker>summary::after{content:"";position:absolute;right:18px;top:24px;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
.team-picker[open]>summary::after{transform:rotate(-135deg);top:28px}
.picker-prompt{font-weight:700}
.picker-list{list-style:none;margin:0;padding:0 8px 8px;max-height:60vh;overflow-y:auto}
.picker-list li{border-top:1px solid #EDE9E1}
.picker-link{display:block;padding:10px 8px;border-radius:10px;text-decoration:none;color:inherit}
.picker-link:hover,.picker-link.current{background:var(--tint)}
.pick-card{display:grid;gap:2px;width:100%}
.pick-top{display:flex;align-items:center;gap:6px}
.pick-name{font-size:16px}
.pick-card.unread .pick-name{font-weight:800}
.new-dot{width:9px;height:9px;border-radius:50%;background:var(--brand);display:inline-block}
.pick-when{margin-left:auto;font-size:13px;color:var(--muted)}
.pick-line{font-size:14px;color:var(--muted)}
.team-line{display:grid;gap:8px}
.team-line-top{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin:0}
.team-line-top .small-link{margin-left:auto}
.pane-group>summary{cursor:pointer;font-weight:700;padding:8px 0;min-height:40px}
.pane-group .count{font-weight:400;color:var(--muted)}
.pane-item{display:grid;gap:4px;padding-bottom:8px}
.pane-item .post-line{padding-left:28px}
.pane-item .post-top{display:none}
/* Note 168: "Ward and homes" stands apart, bold. */
.later-fold{margin-top:18px}
.later-fold>summary{font-weight:700;cursor:pointer;min-height:44px;display:flex;align-items:center}
/* D-149: S-84 is compact, its one form under the chosen row; a card keeps line breaks for messages, this one has none. */
.card[data-pick]{white-space:normal;padding:10px 14px}
.card[data-pick] label{display:block;margin:4px 0}
.card[data-pick] p{margin:4px 0}
.card[data-pick] label select,.card[data-pick] label input{display:block;width:100%;max-width:420px;margin-top:2px}
.card[data-pick] form button{margin-top:6px}

/* ---- The supervisor's tracking (the addendum, rev 320; previews of 25 October 2026):
   four measures on each team's row, the marks record and this stage's facts when it
   opens, and the supervisor's marking in context. ---- */
.measure-heads{display:none}
.team-stages .item>summary{grid-template-columns:22px minmax(0,1fr)}
.team-stages .item>summary .measures{grid-column:2/-1}
.team-stages li,.team-stages .item,.team-stages .item-full,.open-part{min-width:0;max-width:100%}
.measures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 10px;margin-top:2px;font-size:14px}
.with-final .measures{grid-template-columns:1fr 1fr}
.nowrap{white-space:nowrap}
.measure{display:flex;flex-direction:column;line-height:1.3}
.measure small{color:var(--muted);font-size:12px}
.measure b{font-weight:700}
.measure.warn b{color:var(--warn)}
.measure.quiet b{color:var(--muted);font-weight:400}
.warn-text{color:var(--warn);font-weight:700}
@media (min-width:760px){
  .team-stages li.measure-heads{display:grid;grid-template-columns:22px minmax(0,2.2fr) minmax(0,4.4fr);gap:8px;padding:0 0 4px;
    font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;border:0}
  .measure-heads .cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .with-final .measure-heads .cols,.with-final .measures{grid-template-columns:repeat(4,minmax(0,1fr))}
  .team-stages .item>summary{grid-template-columns:22px minmax(0,2.2fr) minmax(0,4.4fr)}
  .team-stages .item>summary .measures{grid-column:auto}
  .measures{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0;gap:8px}
  .measure small{display:none}
  /* T-616: SSY's three measures beside the three headline ones. */
  .with-ssy .measure-heads .cols,.with-ssy .measures{grid-template-columns:repeat(6,minmax(0,1fr))}
  .with-ssy.with-final .measure-heads .cols,.with-ssy.with-final .measures{grid-template-columns:repeat(7,minmax(0,1fr))}
}
/* The roll-ups, S-115 and S-116 (Spec-Next-1.2.md items 19 to 21, T-316): the same rows,
   a supervisor's or an institution's, with the total and district rows, a team's row
   inside an opened one, and the spread of teams by stages completed. */
.team-stages li.rollup-total,.team-stages li.rollup-district,.team-stages li.rollup-team{display:grid;
  grid-template-columns:22px minmax(0,1fr);gap:4px 8px;align-items:start}
.team-stages li.rollup-total .measures,.team-stages li.rollup-district .measures,.team-stages li.rollup-team .measures{grid-column:2/-1}
.team-stages li.rollup-total{background:var(--tint);font-weight:700}
.team-stages li.rollup-district{background:#F6F4EF}
.rollup-teams,.rollup-sups{margin:8px 0 0}
/* T-331 (Q-345): an institution's supervisors sit indented under it; the figures keep their columns. */
.rollup-sups .item>summary>span:first-child{transform:translateX(18px)}
.rollup-sups .item>summary .two-line{padding-left:18px}
.rollup-teams li.rollup-team{padding:6px 0;border-top:1px solid var(--rail)}
.hist{display:flex;align-items:flex-end;gap:4px;height:48px;max-width:420px;margin:4px 0 2px}
.hist span{flex:1;height:var(--h);min-height:3px;background:var(--brand);border-radius:3px 3px 0 0}
.hist span.none{background:var(--rail)}
.hist-key{display:flex;gap:4px;max-width:420px;font-size:12px;color:var(--muted)}
.hist-key span{flex:1;display:flex;flex-direction:column;align-items:center}
.hist-key b{color:var(--ink)}
.final-list td small,.moderation td small{display:block;color:var(--muted);font-size:12px;font-weight:400}
.moderation-college>summary{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;padding:8px 0;cursor:pointer}
@media (min-width:760px){
  .team-stages li.rollup-total,.team-stages li.rollup-district,.team-stages li.rollup-team{grid-template-columns:22px minmax(0,2.2fr) minmax(0,4.4fr)}
  .team-stages li.rollup-total .measures,.team-stages li.rollup-district .measures,.team-stages li.rollup-team .measures{grid-column:auto}
}
.context-card{background:var(--card);border:1px solid var(--rail);border-radius:var(--radius);padding:12px 14px;margin:8px 0 16px}
.context-card h2{margin:0 0 6px;font-size:16px}
.range{position:relative;height:28px;margin:14px 6px 4px}
.range .track{position:absolute;left:0;right:0;top:12px;height:4px;background:var(--rail);border-radius:2px}
.range .mine{position:absolute;top:8px;height:12px;background:var(--brand);border-radius:6px}
.range .mid{position:absolute;top:2px;width:3px;height:24px;background:var(--accent);border-radius:2px}
.range-key{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.open-part{border-top:1px solid var(--rail);margin-top:12px;padding-top:10px}
.open-part h3{margin:0 0 6px;font-size:15px;display:flex;align-items:center;gap:6px}
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--rail);border-radius:10px}
table.marks-record{border-collapse:collapse;min-width:100%;font-size:14px;margin:0}
.marks-record th,.marks-record td{padding:6px 10px;text-align:right;white-space:nowrap;border-bottom:1px solid #EEEAE1}
.marks-record th:first-child,.marks-record td:first-child{text-align:left;position:sticky;left:0;background:var(--card)}
.marks-record thead th,.marks-record thead th:first-child{font-size:12px;color:var(--muted);font-weight:700;background:#F6F4EF}
.marks-record td.not-yet{color:var(--muted)}
.marks-record tr.so-far td,.marks-record tr.so-far td:first-child{font-weight:700;background:var(--tint)}
.marks-record tr.of-20 td,.marks-record tr.of-20 td:first-child{background:#F6F4EF}
.marks-record a{color:inherit;text-decoration:underline;text-decoration-color:var(--rail);text-underline-offset:3px}
@media (max-width:640px){
  table.marks-record{display:table;border:0}
  .marks-record thead{display:table-header-group;position:static}
  .marks-record tbody{display:table-row-group}
  .marks-record tr{display:table-row;border:0;margin:0;padding:0;background:none;border-radius:0}
  .marks-record th,.marks-record td{display:table-cell;padding:6px 8px;border-bottom:1px solid #EEEAE1}
  .marks-record td::before{content:none!important;display:none!important}
  .marks-record .long{display:none}
}
.facts{display:grid;gap:6px;margin:0;padding:0;list-style:none;font-size:15px}
.facts li{display:flex;gap:8px;align-items:flex-start}
.facts .ico{color:var(--brand);margin-top:2px}
.pill-row{display:flex;flex-wrap:wrap;gap:6px}
.pill-row>span{background:#EEEDEA;border-radius:999px;padding:0 10px;font-size:13px}
/* Needs attention's work signals (the addendum): each item with its actions. */
.attention-list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
.attention-list li{background:var(--card);border:1px solid var(--rail);border-radius:10px;padding:10px 12px;display:grid;
  grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center}
@media (max-width:640px){.attention-list li{grid-template-columns:1fr}}
.att-who{display:flex;flex-direction:column;font-size:15px;min-width:0}
.att-who small{color:var(--muted)}
.acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.acts .button,.acts button{margin:0}
.acts .button,.acts button,.follow>summary.button{font-size:14px;min-height:40px;padding:0 14px;display:inline-flex;align-items:center}
.follow>summary{list-style:none}
.follow>summary::-webkit-details-marker{display:none}
.attention-list li:has(.follow[open]) .acts{grid-column:1/-1}
.follow[open]{flex-basis:100%;order:9}
.follow-form{margin-top:8px;display:grid;gap:6px;max-width:420px}
.follow-form .action-row{display:flex;gap:8px;flex-wrap:wrap}
.rowmenu-items a,.rowmenu-items button.linklike{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:8px;color:var(--ink)}
.rowmenu-items a:hover,.rowmenu-items button.linklike:hover{background:var(--tint)}
.rowmenu-items .disabled{display:block;padding:8px 10px;color:var(--muted);cursor:not-allowed}
.quiet-line{font-size:14px;color:var(--muted);margin:6px 2px 14px}
/* Finalising (item 18): one row a student, Final once finalised. */
.final-table td.name{white-space:normal}
.final-table .note{display:block;font-weight:400;font-size:12px;color:var(--muted)}
.final-table input[type=checkbox]{width:22px;height:22px}
.locked{color:var(--brand-dark);font-weight:700;display:inline-flex;gap:4px;align-items:center}

/* 1.2, T-319: a staff number, copied, never called: a phone icon beside the name; a small
   box with the number and Copy when opened; a short line once copied on a touch screen. */
details.num{position:relative;display:inline-block;vertical-align:middle;margin-left:4px}
/* T-665: in the People tab the number comes first, at the cell's left edge, the same on every row. */
.person-cell details.num{margin-left:-6px;margin-right:2px}
details.num>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  border-radius:50%;color:var(--brand-dark);cursor:pointer}
details.num>summary::-webkit-details-marker{display:none}
details.num>summary:hover,details.num[open]>summary{background:var(--tint)}
details.num>summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
details.num .box{position:absolute;z-index:5;top:36px;left:0;display:flex;align-items:center;gap:10px;background:var(--card);
  border:1px solid var(--rail);border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.12);padding:8px 10px;white-space:nowrap}
/* The number's box below a table's last row was cut off by the table's rounded clip (owner, 11 November):
   while a number is open, its table shows what overflows. */
table:has(details.num[open]){overflow:visible}
details.num .box b{font-size:17px;letter-spacing:.02em}
@media (max-width:520px){details.num .box{position:static;margin-top:6px;box-shadow:none;white-space:normal}}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:20;background:#1F3A2B;color:#fff;
  border-radius:999px;padding:10px 18px;font-size:14px;box-shadow:0 6px 18px rgba(0,0,0,.2);max-width:calc(100vw - 32px)}
.toast[hidden]{display:none}
.officer{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:4px 0}
/* 1.2, T-321: S-10's last reset by SMS, in red, before the code is used. */
.notice-last{background:#FFF4E5;border-left:4px solid #B3261E;border-radius:8px;padding:10px 12px}
.notice-last b{color:#B3261E}

/* 1.2, T-320: the Resource gallery, S-117 and S-118. Groups closed until opened; each
   video a still with a play button until tapped. */
.gal,.bo-group{background:var(--card);border:1px solid var(--rail);border-radius:var(--radius);margin:0 0 10px}
.gal>summary,.bo-group>summary{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;list-style:none}
.gal>summary::-webkit-details-marker,.bo-group>summary::-webkit-details-marker{display:none}
.gal>summary b,.bo-group>summary b{font-size:17px}
.gal>summary .count,.bo-group>summary .count{margin-left:auto;color:var(--muted);font-size:13px;white-space:nowrap}
.vids{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;padding:0 12px 12px}
@media (min-width:760px){.vids{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}}
.vid{background:var(--card);border:1px solid var(--rail);border-radius:12px;overflow:hidden}
.vid .still{position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,#C9D8CF,#E9E2D0);display:flex;
  align-items:center;justify-content:center;text-decoration:none;color:inherit}
.vid.tall .still{aspect-ratio:4/5;background:linear-gradient(135deg,#D9CFE2,#E9E2D0)}
.vid iframe{display:block;width:100%;aspect-ratio:16/9;border:0}
.vid.tall iframe{aspect-ratio:9/16}
.vid .still .play{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--brand-dark);
  display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.vid .still .play svg{width:26px;height:26px;margin-left:3px}
.vid .still .platform{position:absolute;left:8px;top:8px;background:rgba(255,255,255,.9);border-radius:999px;padding:2px 8px;
  font-size:12px;display:flex;gap:4px;align-items:center}
.vid .cap{margin:0;padding:8px 12px 10px}
.vid .cap b{display:block;font-size:14px;line-height:1.3}
.vid .cap small{color:var(--muted);font-size:13px}
.bo-body{padding:0 14px 12px}
.bo-rows{list-style:none;margin:8px 0;padding:0}
.bo-rows li{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0;border-top:1px solid #EEEAE1}
.bo-rows li .t{flex:1;min-width:0}
.bo-rows li .t small{display:block;color:var(--muted);font-size:12px}
.bo-rows li .edit-video{flex-basis:100%}
/* F-39: S-118's videos, each its own shaded card with the tile that plays in place; quiet tools; Retire apart. */
.bo-videos{list-style:none;margin:10px 0;padding:0;display:grid;gap:10px}
.bo-video{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:start;background:#F6F3EC;border:1px solid #E6E0D3;border-radius:12px;padding:10px}
.bo-video .vid{border-radius:8px}
.bo-video .vid.tall .still{aspect-ratio:16/9}
.bo-video .vid .still .play{width:38px;height:38px}
.bo-video .vid .still .play svg{width:20px;height:20px}
.bo-video .vid.live{grid-column:1/-1}
.bo-video .t b{display:block;line-height:1.3}
.bo-video .t small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.bo-video .tools{display:flex;align-items:center;gap:6px;margin-top:8px}
.bo-video .icon-only{min-width:32px;height:32px;padding:0;border:1px solid #D8D2C4;border-radius:8px;background:#fff;color:var(--muted)}
.bo-video .icon-only:disabled{opacity:.35}
.bo-video .edit-video{grid-column:1/-1;background:#fff}
.bo-video .edit-video .field label input,.bo-video .edit-video .field select,.bo-group .plan-form .field input{display:block;width:100%;max-width:520px;margin-top:4px}
.bo-video .edit-video .action-row a{align-self:center}
.retire-row{margin-top:14px;padding-top:12px;border-top:1px dashed #E0D9CB;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.retire-row small{color:var(--muted)}
.bo-preview{display:grid;grid-template-columns:220px 1fr;gap:12px;align-items:center;margin-top:10px}
@media (max-width:560px){.bo-video{grid-template-columns:110px 1fr}.bo-preview{grid-template-columns:1fr}}
/* F-39, the owner's review: S-118 at the back office's compact scale (as the Messages screen), group names with a folder, their contents indented. */
main.wrap:has(.bo-gallery){font-size:14px}
main.wrap:has(.bo-gallery) h1{font-size:21px;margin:12px 0 6px}
main.wrap:has(.bo-gallery) .hint{font-size:13px}
main.wrap:has(.bo-gallery) .bo-group summary{padding:8px 12px;font-size:14px}
main.wrap:has(.bo-gallery) .bo-group summary .gname{display:inline-flex;align-items:center;gap:6px}
main.wrap:has(.bo-gallery) .bo-group summary b{font-size:15px}
main.wrap:has(.bo-gallery) .bo-group summary .ico{color:var(--brand-dark)}
main.wrap:has(.bo-gallery) .bo-body{padding:0 12px 10px 34px}
main.wrap:has(.bo-gallery) button,main.wrap:has(.bo-gallery) .button{font-size:13px;min-height:30px;padding:3px 12px}
main.wrap:has(.bo-gallery) .action-row{gap:8px}
main.wrap:has(.bo-gallery) summary.button{font-size:13px;padding:3px 12px;min-height:30px;display:inline-flex;align-items:center}
main.wrap:has(.bo-gallery) .bo-body > .action-row{align-items:center}
main.wrap:has(.bo-gallery) .bo-video .t b{font-size:14px}
main.wrap:has(.bo-gallery) .bo-video .t small{font-size:12px}
main.wrap:has(.bo-gallery) .bo-video .icon-only{min-width:28px;height:28px;padding:0}
main.wrap:has(.bo-gallery) .form-card label{font-size:12px;font-weight:600}
main.wrap:has(.bo-gallery) .form-card label small{font-weight:400}
main.wrap:has(.bo-gallery) .form-card input,main.wrap:has(.bo-gallery) .form-card select{font-size:14px;padding:6px 10px;min-height:34px}
main.wrap:has(.bo-gallery) .retire-row small,main.wrap:has(.bo-gallery) .bo-preview .hint{font-size:12px}
.field-error{color:#A12C2C;font-size:12px;margin:4px 0 0}
.form-card{background:var(--card);border:1px solid var(--rail);border-radius:12px;padding:12px 14px;margin:8px 0}
/* T-331 (Q-345): an institution's town on its own line in S-20's results, never after a stray dot. */
.hint.place{display:block}
/* D-156 (T-347): the back office's programme strip, its count line, column totals and multi-value filters. */
.programme-choice ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:12px 0 4px;padding:0}
.programme-choice .choice{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 16px 6px 12px;border:1.5px solid var(--rail);border-radius:999px;color:var(--ink);text-decoration:none;background:var(--card)}
.programme-choice a.choice:hover,.programme-choice label.choice:hover{border-color:var(--brand)}
.filters fieldset.programme-filter{display:inline-flex;flex-wrap:nowrap;gap:6px;border:0;margin:0 10px 8px 0;padding:0;vertical-align:top;width:auto}
.programme-filter label.choice{cursor:pointer}
.programme-filter input[type=radio]{position:absolute;opacity:0;width:1px;height:1px}
.programme-filter label.choice:focus-within{outline:2px solid var(--brand);outline-offset:2px}
.programme-choice .dot{flex:0 0 auto;width:18px;height:18px;border-radius:50%;border:2px solid var(--brand);box-sizing:border-box}
.programme-choice .chosen{border-color:var(--brand);background:var(--tint);font-weight:700}
.programme-choice .chosen .dot{background:radial-gradient(circle,var(--brand) 0 4px,transparent 5px)}
.count-line{margin:10px 0;font-weight:600}
.card-lines{display:block;margin-top:4px}
.card-line{display:block;font-size:13px;line-height:1.45;color:var(--muted)}
.card-line b{color:var(--ink);margin-right:4px}
.count-line strong{margin-right:2px}
/* Tarak, 28 October 2026: the totals take their column group's colour, a shade deeper, never a row colour of their own. */
.column-totals th{font-weight:700;background:transparent;border-top:1px solid var(--line)}
.column-totals th.g-students{background:#E3EEF9}
.column-totals th.g-supervisors{background:#EDE6F7}
.column-totals th.g-teams{background:#E2F0E5}
details.multi{display:inline-block;position:relative;margin:0 6px 8px 0}
details.multi summary{cursor:pointer;list-style:none;border:1px solid var(--rail);border-radius:8px;padding:6px 12px;min-height:44px;display:inline-flex;align-items:center;white-space:pre}
details.multi summary::-webkit-details-marker{display:none}
details.multi summary::after{content:" \25BE"}
/* T-352: an applied filter's button is filled; its words say the same. */
details.multi.applied > summary{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:700}
details.multi.applied > summary [data-key]{color:#fff}
.multi-actions{display:flex;gap:12px;align-items:center;margin:8px 0 0;padding-top:8px;border-top:1px solid var(--line)}
.chip-form{display:inline;margin:0}
button.chip{cursor:pointer;font:inherit}
details.multi fieldset{position:absolute;z-index:6;min-width:220px;max-height:320px;overflow:auto;margin:4px 0 0;padding:8px 10px;background:var(--card);border:1px solid var(--rail);border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.12)}
details.multi fieldset label{display:flex;align-items:center;gap:8px;padding:6px 2px;min-height:40px}
@media (max-width:899px){.column-totals{display:none}}
@media (min-width:900px){details.filter.wide-filters > summary{display:none}}
@media (min-width:900px){
  /* Tarak, 28 October 2026: Institutions is a laptop screen; it uses the width, so its filters sit in one row. */
  main.wrap:has(.programme-filter){max-width:min(1400px,calc(100% - 32px))}
}
/* T-537 (D-190): a support message's OK and Reply, alike in size and style, 44 px to tap; on a phone, on a row of their own under the words, the bell staying beside them. */
.notify-actions{display:flex;gap:8px;align-items:center}
.notify-actions form{margin:0}
.notify .notify-actions button.small,.notify .notify-actions a.button.small{font-size:14px;line-height:1.2;padding:0 16px;min-height:44px;display:inline-flex;align-items:center;border-radius:999px;background:var(--card);color:var(--brand);border:1px solid var(--brand);text-decoration:none}
@media (max-width:600px){.notify.with-reply{flex-wrap:wrap}.notify.with-reply>a,.notify.with-reply>p{flex:1 1 0;min-width:0}.notify.with-reply .notify-actions{flex-basis:100%;justify-content:flex-end}}
/* T-535, T-538 (D-189): the card of a withdrawn or sent-back area or corridor, and the revise card on the choose page: a sentence heading with the brand icon, then one 12 px rhythm, no box inside a box. Written to outweigh .home-block > h2:first-child and .work-card's own gap. */
.home-block.closed-card{display:flex;flex-direction:column;gap:12px}
.home-block.closed-card>*{margin:0}
.home-block.closed-card>h2.closed-head{margin:0;display:flex;gap:8px;align-items:flex-start;font-size:1.05rem;font-weight:700;text-transform:none;letter-spacing:normal;color:var(--ink)}
.home-block.closed-card>h2.closed-head .ico,.home-block.closed-card>h2.closed-head svg{color:var(--brand)}
.home-block.closed-card blockquote.their-words{margin:0}
.home-block.closed-card>h2.closed-head svg{flex:none;margin-top:3px}
.home-block.closed-card .button{margin:0}
/* T-537: S-120's person line, the name on its own line on a phone. */
.person-line{margin:0 0 12px}
.person-line b{display:block}
.person-line .sep-first{display:none}
@media (min-width:601px){.person-line b{display:inline}.person-line .sep-first{display:inline}}
/* T-537: the send and reply forms lay their buttons out by their words, as D-188's question does. */
form.message-form .actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
/* T-537: on the reply page, the support team's message and the person's reply as two quotes, apart. */
.reply-thread blockquote.their-words{margin:0 0 16px}
/* T-539: Messages with a person, one timeline, oldest first. Their words keep the yellow bar; ours take the brand green; an internal note is grey and dashed, never like what the person sees. One chip for each kind of entry; a status apart, outlined. Lines of reading length. */
.person-history,form.message-form.home-block{max-width:65ch}
.person-history{display:flex;flex-direction:column;gap:16px}
.person-history>*{margin:0}
.person-history .when{white-space:nowrap}
.history-item>*{margin:0 0 8px}
.history-item>*:last-child{margin-bottom:0}
.history-under{margin-left:20px}
.history-under>*{margin:0 0 8px}
.history-under>*:last-child{margin-bottom:0}
.person-history blockquote.their-words.ours{border-left-color:var(--brand)}
.badge.ours{background:var(--tint);color:var(--brand-dark)}
.badge.internal{background:#ECEDEA;color:var(--ink)}
.person-history .status{display:inline-block;white-space:nowrap;font-size:13px;padding:1px 8px;border:1px solid var(--rail);border-radius:999px;color:var(--muted)}
blockquote.note-words{margin:0;padding:8px 12px;background:#F4F4F2;border:1px dashed #9AA39C;border-radius:var(--row-r)}
form.message-form.home-block>h2{margin-top:0}
/* T-535: the same card's content before approval, inside "Our team's work": one 12 px rhythm, the sentence heading without the card heading's styles. */
.closed-body{display:flex;flex-direction:column;gap:12px}
.closed-body>*{margin:0}
.work-card .closed-body>h2.closed-head{margin:0;display:flex;gap:8px;align-items:flex-start;font-size:1.05rem;font-weight:700;text-transform:none;letter-spacing:normal;color:var(--ink)}
.closed-body>h2.closed-head svg{flex:none;margin-top:3px;color:var(--brand)}
.closed-body blockquote.their-words{margin:0}
.closed-body .button{margin:0}

/* D-192 (T-565, T-567): the stage's two tags and Copy in one pill on the share screen; a readable post missing a tag refused under the link field (T-568); "Tags not checked" for the supervisor. */
.hashtags{background:var(--tint);border-radius:var(--radius);padding:12px 14px;margin:0 0 16px}
.hashtags-lead{display:flex;gap:8px;align-items:center;margin:0 0 10px;font-weight:600}
.hash-mark{flex:none;width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.hashtags-pill{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--card);border:2px solid var(--brand);border-radius:16px;padding:8px 8px 8px 16px;max-width:100%;box-sizing:border-box}
.hashtags-tags{font-size:1.05rem;font-weight:800;color:var(--brand-dark);word-break:break-word}
.hashtags-pill button.main{display:inline-flex;align-items:center;gap:6px;font-size:1.05rem;padding:8px 16px;border-radius:999px;margin:0}
.hashtags-alert{display:flex;gap:8px;align-items:center;margin:0 0 4px;color:var(--warn);font-size:1.1rem}
.hashtags-alert .ico{background:none;color:var(--warn)}
.hashtags-missing{margin:0;color:var(--warn)}
.hashtags-warning{background:var(--warn-tint);border-radius:var(--radius);padding:10px 12px;margin:8px 0 0}
.badge.tags-unchecked .ico{width:14px;height:14px;padding:0;background:none;color:inherit;vertical-align:-2px}
/* T-567: the supervisor's post card, compact, the platform's own icon in place of the initial. */
.post-card{gap:6px;padding:12px 14px}
.post-card .post-head{align-items:flex-start}
.post-card .platform-ico{flex:none;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--tint);color:var(--ink)}
.post-card .platform-ico .ico{width:24px;height:24px;padding:0;background:none;color:inherit}
.post-card .p-instagram{background:#FBEAF0;color:#993556}.post-card .p-youtube{background:#FCEBEB;color:#A32D2D}
.post-card .p-facebook{background:#E6F1FB;color:#185FA5}.post-card .p-x{background:#F1EFE8;color:#2C2C2A}.post-card .p-linkedin{background:#E6F1FB;color:#0C447C}
.post-card .who-line{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.post-card .who-line small{color:var(--muted)}
.post-card [data-about]{color:var(--ink);font-weight:600}
.post-card .react-row{margin:0}
/* D-193 (T-562, T-564): the single entry gate. Each role its own colour and icon, clear of the programme's green; A narrow column, centred. */
.gate-page{max-width:480px;margin:0 auto}
.gate-page .langs-long{float:none;display:flex;justify-content:flex-end;margin:0 0 12px}
.gate-role,.gate-page{--role-bg:#E8F2EB;--role-ink:#164F33;--role-fill:var(--brand)}
.gate-role.student{--role-bg:#EEEDFE;--role-ink:#3C3489;--role-fill:#534AB7}
.gate-role.supervisor{--role-bg:#E6F1FB;--role-ink:#0C447C;--role-fill:#185FA5}
.gate-role.nodal{--role-bg:#FAEEDA;--role-ink:#633806;--role-fill:#854F0B}
.gate-band{background:var(--role-bg);color:var(--role-ink);border-radius:var(--radius);padding:16px;text-align:center;margin:0 0 16px}
.gate-band .ico{width:44px;height:44px;padding:0;background:none;color:var(--role-ink)}
.gate-band b{display:block;font-size:24px;font-weight:800;margin-top:4px}
.gate-role button.main,.gate-role .button.main,.gate-page > form button.main{background:var(--role-fill);border-color:var(--role-fill);color:#fff}
.gate-row{margin:16px 0 0}
.gate-row button{width:100%}
.gate-tabs{display:flex;border:1px solid var(--rail);border-radius:999px;overflow:hidden;margin:0 0 16px}
.gate-tabs a,.gate-tabs span{flex:1;text-align:center;padding:10px 16px;text-decoration:none;color:var(--ink)}
.gate-tabs .on{background:var(--role-fill);color:#fff;font-weight:700}
.gate-cards{display:grid;gap:12px;margin:0 0 16px;padding:0;list-style:none}
.gate-card{display:flex;align-items:center;gap:14px;min-height:88px;box-sizing:border-box;background:var(--card);border:2px solid var(--rail);border-radius:var(--radius);padding:12px 16px;text-decoration:none;color:var(--ink)}
.gate-card.gate-role{border-color:var(--role-fill)}
.gate-card .gate-ico{flex:none;width:52px;height:52px;border-radius:14px;background:var(--role-bg);color:var(--role-ink);display:flex;align-items:center;justify-content:center}
.gate-card .gate-ico .ico{width:30px;height:30px;padding:0;background:none;color:inherit}
.gate-card b{display:block;font-size:20px}
.gate-card span.hint{display:block;margin:2px 0 0}
.gate-card.chosen{background:var(--role-bg);border-radius:var(--radius) var(--radius) 0 0}
.gate-fields{background:var(--role-bg);border:2px solid var(--role-fill);border-top:0;border-radius:0 0 var(--radius) var(--radius);padding:16px}
.gate-fields label.tick{display:flex;gap:10px;align-items:flex-start;font-weight:600;margin:12px 0 0}
.gate-fields label.tick input{width:22px;height:22px;flex:none;margin-top:2px}
.gate-fields .gate-already{margin:0 0 12px;font-weight:600;color:var(--role-ink)}
.gate-nodal-line{display:flex;gap:8px;align-items:center;color:var(--muted);margin:0 0 16px}
.gate-nodal-line .ico{background:none;color:var(--muted);width:20px;height:20px;padding:0}
.gate-pick,.gate-not{display:flex;gap:12px;align-items:flex-start;border-radius:var(--radius);padding:14px 16px;margin:0 0 12px}
.gate-pick{background:var(--card);border:2px solid var(--brand)}
.gate-pick .ico{background:none;color:var(--brand)}
.gate-not{background:#F1EFE8;color:var(--muted)}
.gate-not .ico{background:none;color:var(--faint)}
.gate-not b{font-weight:400}
.gate-switch{text-align:center;margin:16px 0 0}
.gate-band .ico{display:block;margin:0 auto}
.gate-role .show-password{color:var(--role-fill);border-color:var(--role-fill)}
.gate-role .gate-switch a,.gate-role .langs-long a{color:var(--role-ink);border-color:var(--role-fill)}
.gate-cards li > .gate-card,.gate-cards > li > a.gate-card{min-height:96px}
.gate-wait{display:block;margin:0 auto 8px;width:56px;height:56px;color:var(--role-fill)}
.gate-wait .ico{width:56px;height:56px;padding:0;background:none;color:inherit}
.gate-card .gate-pic{flex:none;width:96px;height:72px;border-radius:12px;object-fit:cover}
/* D-193, the visual review of the built gate: the current language legible in a role's look; the register button in the role's colour; equal role cards; the tick refusal beside the ticks; links of the gate at least 44px tall. */
.gate-role .langs-long a[aria-current="true"]{background:var(--role-fill);border-color:var(--role-fill);color:#fff}
.gate-cards .gate-fields button.main{background:var(--role-fill);border-color:var(--role-fill);color:#fff}
.gate-cards li > a.gate-card.gate-role{min-height:140px}
.gate-fields .gate-tick-msg{margin:12px 0 0;color:var(--warn);font-weight:600}
.gate-fields label.tick.missing{outline:2px solid var(--warn);outline-offset:4px;border-radius:6px}
.gate-switch a,.gate-switch button.linklike{display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
.hashtags-pill button.main.outline{background:var(--card);color:var(--brand-dark)}
.badge.tags-unchecked{white-space:nowrap}
.item>summary .kinds{display:inline-flex;flex-wrap:wrap;gap:4px;align-items:center;min-width:0}
.gate-statement{display:flex;gap:12px;align-items:center;background:var(--role-bg);color:var(--role-ink);border-radius:var(--radius);padding:12px 16px;margin:0 0 16px;font-weight:600}
.gate-statement p{margin:0}
.gate-statement .gate-ico .ico{background:none;color:var(--role-ink);width:28px;height:28px;padding:0}
label .label-note{font-weight:400}
/* T-586 (Q-698): "I do not have a designation", a choice in regular weight, then a line before the pledges. */
.designation-box.with-none{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid rgba(0,0,0,.25)}
label.none-tick,.gate-fields label.tick.none-tick{display:flex;gap:10px;align-items:center;margin:4px 0 0;font-weight:400;min-height:44px}
label.none-tick input{width:22px;height:22px;flex:none;margin:0}
.none-tick span{font-weight:400}
.desig-what{margin:0 0 6px}
.designation-box [hidden]{display:none!important}
/* Spec-Next-SSY-1.3.md item 12: attendance's "where"; Other opens its short line. */
.where-other{display:none}
.where-pick:has(option[value=OTHER]:checked)~.where-other{display:grid}

/* Spec-Next-SSY-1.3.md item 10: the "With the ULB" pill keeps to one line. */
.item summary .badge{white-space:nowrap}
.item summary .purpose .badge.ulb{margin-left:4px;flex:none}
/* Spec-Next-SSY-1.3.md item 14 (N-18): each member's records in a site stage's report. */
.report-gathered{margin:14px 0;min-width:0;max-width:100%}
.report-gathered h2{font-size:1rem;margin:0 0 6px}
.report-gathered .gathered{list-style:none;margin:0;padding:0}
.report-gathered .gathered>li{border-top:1px solid var(--line, #e3e6ea)}
.report-gathered .gathered>li:last-child{border-bottom:1px solid var(--line, #e3e6ea)}
.report-gathered summary{padding:10px 28px 10px 0;cursor:pointer;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;position:relative;list-style:none}
.report-gathered summary::-webkit-details-marker{display:none}
.report-gathered summary::after{content:"";position:absolute;right:8px;top:18px;width:8px;height:8px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
.report-gathered details[open]>summary::after{transform:rotate(-135deg);top:22px}
.report-gathered .field-msg{margin:4px 0;color:#B42318;font-weight:600}
.report-gathered textarea[aria-invalid=true]{border-color:#B42318;outline:2px solid #B42318;outline-offset:1px}
.student-sum .gathered-line{grid-column:1/-1;grid-row:3;color:var(--muted, #5b6472)}
.report-gathered summary small{color:var(--muted, #5b6472);flex-basis:100%}
.gathered-head{margin:6px 0 2px;font-size:.85rem;font-weight:600;color:var(--muted, #5b6472)}
.gathered-items{list-style:none;margin:0 0 8px;padding:0}
.gathered-items li{padding:4px 0;display:flex;flex-wrap:wrap;gap:4px 6px;align-items:baseline}
.gathered-items li small{color:var(--muted, #5b6472);min-width:3.5em}
.gathered-items .clip{flex:1 1 12em;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.report-gathered .nobody{margin-top:12px;padding:10px 12px;border-radius:8px;background:#FFF8EC}
.report-gathered .nobody.needed{outline:2px solid #B42318}
.report-gathered .nobody-title{margin:0 0 4px;font-weight:600}
.report-gathered .nobody-names{margin:0 0 8px}
/* T-617 (item 21): the leader's Remind beside each member with no record. */
.report-gathered .nobody-list{list-style:none;margin:0 0 8px;padding:0}
.report-gathered .nobody-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;padding:6px 0;border-top:1px solid var(--line, #e3e6ea)}
.report-gathered .nobody-list li:first-child{border-top:0}
.report-gathered .nobody-list button.small{min-height:36px;padding:4px 12px}
/* The owner's idea, 8 November: a small picture of the stage beside its name, on the stage
   card and the report pages; smaller on a phone, so the words keep their room. */
.stage-head{display:flex;align-items:flex-start;justify-content:flex-start;gap:16px}
.stage-head-words{display:grid;gap:10px;min-width:0;flex:0 1 46ch}
.stage-head>p{margin:0;min-width:0;flex:0 1 46ch}
.stage-pic{flex:none;width:120px;height:80px;margin-top:4px;object-fit:cover;border-radius:12px;background:#EEEAE1}
@media (max-width:480px){.stage-pic{width:84px;height:56px;border-radius:10px}.stage-head{gap:10px}}
/* Q-702 (a): S-22's correction under Submit, the pencil with its words. */
.before-correction{margin-bottom:0}
.correction-line{margin:0 0 6px}
.correction-line button.linklike.with-icon{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;font-weight:400;text-decoration:underline}
.after-submit{margin:6px 0 0}
.after-submit .tall-link,.after-submit button.linklike{display:inline-flex;align-items:center;min-height:44px}
/* The typed course goes under the list, never beside it at a wide width. */
input[data-waits-for]{display:block;margin-top:8px}
/* T-615 (item 20): the link's form asks first, a post or a stage document; before a choice
   no kind's fields show, then only the chosen kind's. */
form[data-link-form] .kind-chosen,form[data-link-form] .post-only,form[data-link-form] .doc-only{display:none}
form[data-link-form]:has(input[name=kind]:checked) .kind-chosen{display:grid}
form[data-link-form]:has(input[name=kind][value=POST]:checked) .post-only{display:grid}
form[data-link-form]:has(input[name=kind][value=DOCUMENT]:checked) .doc-only{display:grid}
form[data-link-form] p.doc-only{margin:0}
form[data-link-form]:has(input[name=kind][value=DOCUMENT]:checked) p.doc-only{display:block}
/* The owner's note on the preview: the link's label and hint follow the kind chosen. */
form[data-link-form] .kind-post,form[data-link-form] .kind-doc{display:none}
form[data-link-form]:has(input[name=kind][value=POST]:checked) .kind-post{display:inline}
form[data-link-form]:has(input[name=kind][value=DOCUMENT]:checked) .kind-doc{display:inline}

/* T-674 part 2: the video choices, one card a row; the cannot-open line wraps. */
.pick.video-pick{grid-template-columns:1fr}
.pick.video-pick label{grid-template-columns:auto 1fr}
.pick.video-pick label .by,.pick.video-pick label .small-link{grid-column:2}
.cannot-open{white-space:normal;overflow-wrap:anywhere;margin:4px 0}
.two-line .videos-line{display:block;white-space:normal;overflow:visible;text-overflow:clip}
/* The owner, 14 November (Q-845): errors under their field share one style; a tick's words
   read at body size, never a heading's. */
.field-error{font-size:14px;line-height:1.4;font-weight:400}
.tick-drive label{display:flex;gap:8px;align-items:flex-start;font-weight:400;font-size:inherit;line-height:1.4}
@media (min-width:760px){
  /* T-674 part 2: S-116's videos column, one more column whatever the others. */
  .with-videos .measure-heads .cols,.with-videos .measures{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
}
.access{margin:6px 0}
.access form.inline{display:inline-block;margin:0 0 0 4px}
/* The owner, 14 November: every field error starts with the warning sign, drawn in the page
   (T-674's screens now; the rest of the portal with the Q-845 patch). */
.field-error[role="alert"],.access .field-error,.field-error.no-report{display:flex;gap:6px;align-items:flex-start}
.field-error .sign{flex:0 0 auto;width:1.1em;height:1.1em;margin-top:.1em}
.access .nowrap{white-space:nowrap}

/* D-202 (T-673): S-06's "This is not me" under an issued pair's check, a quiet link, not a bare disclosure. */
.issued-not-me{margin:4px 0 16px}
.issued-not-me summary{cursor:pointer;list-style:none;color:var(--brand-dark);font-weight:700;font-size:15px;text-decoration:underline;text-underline-offset:3px}
.issued-not-me summary::-webkit-details-marker{display:none}
.issued-not-me p{font-size:15px;margin:6px 0 0}

/* T-684 (the owner, 26 November 2026): a stage's sample video inside the stage card, the width of
   the card, its still picture behind the gallery's play button. */
.stage-sample{margin:12px 0 4px}
.stage-sample .still{background-size:cover;background-position:center}
.stage-sample .cap{padding:8px 12px}
