[hidden] { display: none !important; }
/* Charrette Manager · CAD dashboard · what the FESLAB UI kit doesn't draw itself: form fields, badges, assessment dots,
   chat messages, and the layouts inside detail views. Meanings follow the kit: ink = done or fine, 45° hatch = waiting
   or your call, red pen = a known wrong move or a problem to act on. */

/* ---------- the page list: a charrette's sheets sit indented under it ---------- */
.tb .dl a[href$="/live"], .tb .dl a[href$="/marking"], .tb .dl a[href$="/setup"],
.sitetree a[href$="/live"], .sitetree a[href$="/marking"], .sitetree a[href$="/setup"] { padding-left: 18px; }
.tb .dl a[href$="/live"] .n::before, .tb .dl a[href$="/marking"] .n::before, .tb .dl a[href$="/setup"] .n::before { content: "└ "; color: var(--grey); }

/* ---------- views: a summary on the sheet, the detail built when it opens ---------- */
.vbody > .sum { height: 100%; display: flow-root; min-height: 0; }
.fs .vbody > .sum[data-sheet-only] { display: none; }
.vbody > .det { height: 100%; min-height: 0; overflow: auto; }
.det > .cad-loader { margin-top: 20px; }
.sum .chart, .chart { height: 100%; min-height: 0; }
.sum.split2 { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; }
.sum .foot { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
td.cut, .cut { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.det td.cut, .det .cut { max-width: 520px; }
.sum table td, .sum table th { padding: 4px 8px; }
tr[data-go], tr[data-pick] { cursor: pointer; }
tr[data-go]:hover td, tr[data-pick]:hover td { background: var(--tone); }
tr.rowsel td { background-image: repeating-linear-gradient(45deg, var(--hatch-l) 0 1px, transparent 1px 50%); background-size: 8px 8px; }
tr.rowsel td > span, tr.rowsel td > b { background: var(--paper); padding: 0 2px; }
.big1 { font: 400 40px/1 var(--f-iso); letter-spacing: .02em; }
.mut { color: var(--grey); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* ---------- detail layouts ---------- */
.dgrid { display: grid; gap: 18px 26px; align-content: start; }
.dgrid.c2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dgrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1.6fr); gap: 22px; height: 100%; min-height: 0; }
.split.w { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split > * { min-height: 0; overflow: auto; }
.pane { border: var(--w-thin) solid var(--c-thin); padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.pane > h3, .dsec > h3 { font: 400 var(--t35)/1.2 var(--f-iso); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.pane > h3 small, .dsec > h3 small { font-size: 12px; color: var(--grey); letter-spacing: .03em; text-transform: none; font-family: var(--f-read); margin-left: 6px; }
.dsec { display: grid; gap: 10px; align-content: start; }
.dsec + .dsec { border-top: var(--w-thin) solid var(--c-thin); padding-top: 16px; margin-top: 4px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acts .btn, .btn.sm { padding: 7px 10px; font-size: 12px; }
.btn.red { border-color: var(--red); color: var(--red); }
.btn.on { box-shadow: inset 0 0 0 2px var(--c-bold); }
.note { font-size: 12.5px; color: var(--grey); line-height: 1.45; max-width: 92ch; }
.pbar { height: 8px; border: var(--w-thin) solid var(--c-thin); }
.pbar i { display: block; height: 100%; background-image: repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 1px 50%); background-size: 6px 6px; border-right: var(--w-med) solid var(--c-med); }
pre.log, .log { font: 12px/1.45 var(--f-code); white-space: pre-wrap; max-height: 240px; overflow: auto; border: var(--w-thin) solid var(--c-thin); padding: 8px 10px; margin: 0; }
details > summary { cursor: pointer; }
details.drop > summary { font: 400 13px/1.4 var(--f-iso); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- form fields ---------- */
.frm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-items: start; }
.frm.one { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
.frm.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frm.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.frm .wide2, .frm .span { grid-column: 1 / -1; }
.fld { display: grid; gap: 4px; min-width: 0; }
.fld > .lbl { font: 400 11px/1.3 var(--f-iso); text-transform: uppercase; letter-spacing: .07em; color: var(--c-text); }
.fld > small { font-size: 12px; color: var(--grey); line-height: 1.4; }
:is(.gasheet, .fs, .fl-panel) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  font: 400 14px/1.35 var(--f-read); color: var(--c-text); background: var(--paper); border: var(--w-thin) solid var(--c-med);
  padding: 6px 8px; border-radius: 0; width: 100%; min-width: 0; box-sizing: border-box; }
:is(.gasheet, .fs) textarea { min-height: 120px; resize: vertical; }
:is(.gasheet, .fs) textarea.code, :is(.gasheet, .fs) textarea.json { font: 12.5px/1.45 var(--f-code); min-height: 380px; }
:is(.gasheet, .fs) textarea.tall { min-height: 300px; }
:is(.gasheet, .fs) :is(input, select, textarea):focus { outline: 1px solid var(--c-active); outline-offset: 1px; }
:is(.gasheet, .fs) input[type=number] { width: 120px; }
:is(.gasheet, .fs) .inl > input[type=number] { flex: 0 0 120px; }
.inl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inl > input, .inl > select { width: auto; flex: 1 1 140px; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; cursor: pointer; }
.chk input { margin-top: 3px; accent-color: var(--c-bold); }
.chks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.drop-zone { border: var(--w-med) dashed var(--c-dash); padding: 22px; text-align: center; cursor: pointer; font: 400 14px/1.4 var(--f-iso); text-transform: uppercase; letter-spacing: .05em; }
.drop-zone.over { background: var(--tone); }

/* ---------- badges, dots, marks ---------- */
.badge { display: inline-block; padding: 1px 6px; border: var(--w-thin) solid var(--c-thin); font: 400 10.5px/1.5 var(--f-iso);
  text-transform: uppercase; letter-spacing: .05em; background: var(--paper); color: var(--ink); white-space: nowrap; vertical-align: middle; }
.badge.ok { border: var(--w-med) solid var(--c-med); }
.badge.warn { background-image: repeating-linear-gradient(45deg, var(--hatch-l) 0 1px, transparent 1px 50%); background-size: 8px 8px; }
.badge.err { border: var(--w-med) solid var(--red); color: var(--red); }
.dot { display: inline-block; width: 15px; height: 15px; border-radius: 50%; border: var(--w-thin) solid var(--c-thin); background: var(--paper);
  padding: 0; vertical-align: middle; margin: 0 2px; cursor: pointer; box-shadow: none; flex: none; }
.dot.on, .dot.green { background: var(--ink); border-color: var(--ink); }
.dot.wait, .dot.yellow { border: var(--w-med) solid var(--c-med); background-image: repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 1px 50%); background-size: 5px 5px; }
.dot.red { background: var(--paper); border: 2.5px solid var(--red); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 6px var(--red); }
.dot.ov { outline: var(--w-med) solid var(--c-active); outline-offset: 2px; }
.dot.cur { outline: 2px solid var(--c-bold); outline-offset: 3px; }
span.dot { cursor: default; }
.key { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--grey); }
mark { background: transparent; border-bottom: 2px solid var(--red); color: inherit; padding: 0 1px; }

/* ---------- chats and timelines ---------- */
/* A chat: the student's messages on the right, the consultant's on the left with a very light grey fill. */
.msg { border: var(--w-thin) solid var(--c-med); border-radius: 12px; padding: 7px 12px 8px; margin: 6px 0; width: fit-content; max-width: 82%; box-sizing: border-box; }
.msg:not(.user):not(.tool):not(.mail) { background-color: color-mix(in srgb, var(--tone) 45%, var(--paper)); margin-right: auto; }
.msg.user { margin-left: auto; border-style: solid; }
.msg.user .who { text-align: right; }
.msg.tool { border-style: dashed; border-color: var(--grey); }
.msg.mail { border-style: double; border-width: 3px; }
.msg.hl { box-shadow: 0 0 0 2px var(--c-active); }
.msg .who { font: 400 11px/1.4 var(--f-iso); text-transform: uppercase; letter-spacing: .05em; color: var(--grey); }
.msg .body { white-space: pre-wrap; font-size: 14px; line-height: 1.45; }
.msg .body.md { white-space: normal; }
.msg .body.md p { margin: 0 0 6px; }
.msg .body.md ul { margin: 0 0 6px 18px; padding: 0; }
.chatlog { width: min(720px, 80vw); font-size: 14px; }
.ex { font-size: 13px; line-height: 1.4; margin-top: 4px; max-height: 92px; overflow: auto; }

/* ---------- the marking sheet ---------- */
.mk { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; height: 100%; min-height: 0; }
.mk-strip { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; border-bottom: var(--w-thin) solid var(--c-thin); padding-bottom: 8px; }
.mk-grp { display: flex; gap: 2px; align-items: center; }
.mk-grp .lab { font: 400 11px/1.2 var(--f-iso); text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.mk-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 22px; min-height: 0; }
.mk-main.side { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .9fr) minmax(300px, 1fr); }
.mk-main > * { min-height: 0; overflow: auto; }
.mk-act { display: grid; gap: 10px; align-content: start; border-left: var(--w-thin) solid var(--c-thin); padding-left: 18px; }
.mk-act textarea { min-height: 110px; }
.mk-side { border-left: var(--w-thin) solid var(--c-thin); padding-left: 16px; }
.mk-row { border-bottom: var(--w-thin) solid var(--c-thin); padding: 8px 0; }
.mk-row.me { background-image: repeating-linear-gradient(45deg, var(--hatch-l) 0 1px, transparent 1px 50%); background-size: 10px 10px; }
.evtext { max-height: 340px; overflow: auto; }
.qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); border: var(--w-med) solid var(--c-med); }
.qa > div { border-bottom: var(--w-thin) solid var(--c-thin); padding: 8px 10px; font-size: 13.5px; }
.qa > .q { border-right: var(--w-thin) solid var(--c-thin); }
.qa > .qh { font: 400 11px/1.3 var(--f-iso); text-transform: uppercase; letter-spacing: .06em; border-bottom: var(--w-med) solid var(--c-med); }
.qa small { display: block; color: var(--grey); margin-top: 2px; }
.elres { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto minmax(0, 1fr); gap: 6px 12px; align-items: center; }

/* ---------- assessment map ---------- */
.amapwrap { overflow: auto; max-height: 100%; border: var(--w-med) solid var(--c-med); }
table.amap { border: 0; font-size: 12.5px; border-collapse: separate; border-spacing: 0; }
table.amap th, table.amap td { padding: 3px 5px; }
table.amap thead th { position: sticky; top: 0; background: var(--paper); z-index: 2; }
table.amap .s2 { position: sticky; left: 0; background: var(--paper); z-index: 1; width: 380px; min-width: 380px; max-width: 380px; white-space: normal; overflow-wrap: anywhere; }
table.amap thead .s2 { z-index: 3; }
table.amap th.stu { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: 11px; max-height: 140px; }
table.amap td.c { text-align: center; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: grid; gap: 8px; max-width: 480px; }
.toast { background: var(--paper); border: var(--w-med) solid var(--c-med); padding: 10px 14px; font: 400 13px/1.4 var(--f-iso); text-transform: uppercase; letter-spacing: .04em; box-shadow: 4px 4px 0 var(--tone); }
.toast.err { border-color: var(--red); color: var(--red); }
.flowbox svg { overflow: visible; }
.tl[role=button] { text-decoration: underline; cursor: pointer; }
.dsec > .msg, .chatlog > .msg { margin-top: 0; margin-bottom: 0; }   /* only the spacing: the sides stay auto, so the student sits on the right */

/* ---------- uploaded files, previewed in the page ---------- */
.pvbox { max-height: 420px; overflow: auto; border: var(--w-thin) solid var(--c-thin); padding: 8px; }
.pvwrap { overflow: auto; }
table.pv { font-size: 12.5px; border-collapse: collapse; }
table.pv td { padding: 3px 6px; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
table.pv tr:first-child td { font-weight: 700; }
.pvdoc { font-size: 14px; line-height: 1.45; max-width: 90ch; }
.pvdoc h4 { margin: 10px 0 4px; font: 400 15px/1.3 var(--f-iso); text-transform: uppercase; letter-spacing: .04em; }
.pvdoc p { margin: 0 0 6px; }
.pvimg { max-width: 100%; }
.pvpdf { width: 100%; height: 400px; border: 0; }

/* the "Use as evidence" button that follows a selection in a student's chat */
.hlbtn { position: fixed; z-index: 90; background: var(--paper); border: var(--w-med) solid var(--c-med); padding: 6px 8px; box-shadow: 3px 3px 0 var(--tone); max-width: 300px; }

/* The marking sheet: the point's question exactly as the student's sheet shows it */
.ask { border:1px solid var(--ink); border-radius:10px; padding:8px 12px 10px; margin:8px 0 10px; }
.ask > .lab { font-family:var(--f-iso); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--grey); }
.ask .q { font-weight:600; margin-top:4px; }
.ask .hint { margin:3px 0 0; font-size:14px; color:var(--grey); }

/* A section the app has just taken you to */
.dsec.flashsec { outline:2px solid var(--ink); outline-offset:4px; border-radius:6px; transition:outline-color 1.4s; }
