/* Evaluation Committee workspace — in the design of LeAP CVISC (rlvillamora/leap): PSHS black header with the System
   logo, PSHS teal and flame-gold accents, rounded white cards, uppercase table headings, pill answer buttons. */

/* ===== Design tokens (same values as LeAP) ===== */
:root {
  color-scheme: light;
  --color-primary: #000000;       /* PSHS black */
  --color-primary-light: #48c4d3; /* PSHS teal */
  --color-teal-ink: #0e7490;      /* teal dark enough for text and thin marks on white */
  --color-accent: #fcd116;        /* flame gold */
  --color-accent-hover: #e6ba00;
  --color-accent-dark: #ce1126;   /* flame red */
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-border: #dde3ec;
  --color-text: #1c2733;
  --color-muted: #5c6b7a;
  --color-danger: #c0392b;
  --color-danger-bg: #fdecea;
  --color-success: #1a8f5c;
  --color-success-bg: #e9f7ef;
  --color-warn: #b3830f;
  --color-warn-bg: #fff8e1;
  --color-info-bg: #e8f7f9;

  /* charts: single series in teal; Likert from flame red (disagree) through gray to teal (agree) */
  --series-1: #0e7490;
  --lk-1: #ce1126; --lk-2: #f2a3ad; --lk-3: #d5dae1; --lk-4: #8fdbe4; --lk-5: #0e7490;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.07), 0 1px 1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 62px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font); line-height: 1.55; font-size: 15px; }
img { max-width: 100%; }
a { color: var(--color-teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--color-primary); margin-top: 0; }
h1 { font-size: 1.85rem; margin-bottom: .2rem; }
h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
p { margin: .45rem 0; }
code { background: #eef2f8; padding: .05rem .35rem; border-radius: 4px; font-size: .88em; }
.muted { color: var(--color-muted); }
.small { font-size: .86rem; }
.sub { color: var(--color-muted); }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--color-accent-dark); font-weight: 700; margin-bottom: .2rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 6px 10px; border-radius: 6px; }

/* ===== Header ===== */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; padding: .6rem 1.5rem; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; white-space: nowrap; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; background: #fff; padding: 4px; }
.brand-mark { font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.brand-sub { font-size: .78rem; color: #b8e8ee; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0 .25rem; }
.nav-toggle:hover { background: none; }
.period { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .85rem; color: #cdeef3; }
.period select { background: #111; color: #fff; border-color: rgba(255,255,255,.3); padding: .3rem .5rem; width: auto; font-size: .85rem; }
.period select:disabled { opacity: .5; }
.period input[type="checkbox"] { accent-color: var(--color-primary-light); width: 16px; height: 16px; }
.period label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 400; margin: 0; color: #cdeef3; font-size: .85rem; }

.sync-pill {
  font-size: .82rem; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; cursor: pointer; font-weight: 600;
  background: rgba(255,255,255,.08); color: #cdeef3; border: 1px solid rgba(255,255,255,.25);
}
.sync-pill:hover { background: rgba(255,255,255,.16); color: #fff; }
.sync-pill::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9fb3bd; margin-right: 6px; vertical-align: 1px; }
.sync-pill.ok::before { background: #3fd08a; }
.sync-pill.busy::before { background: var(--color-primary-light); }
.sync-pill.warn { background: var(--color-accent); color: #000; border-color: var(--color-accent); }
.sync-pill.warn::before { background: var(--color-accent-dark); }

/* ===== Signed out: public header, no workspace navigation ===== */
.whoami { color: #cdeef3; font-size: .85rem; white-space: nowrap; }
.public-nav { display: none; align-items: center; gap: 1.1rem; }
.public-nav a { color: #cdeef3; font-size: .92rem; }
.public-nav a:hover { color: #fff; text-decoration: none; }
.nav-cta { background: var(--color-accent); color: var(--color-primary) !important; padding: .4rem .85rem; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.nav-cta:hover { background: var(--color-accent-hover); }
body.signed-out .sidenav, body.signed-out .period, body.signed-out .sync-pill, body.signed-out .whoami, body.signed-out .nav-toggle { display: none; }
body.signed-out .public-nav { display: flex; }
body.signed-out .layout { display: block; max-width: 980px; }
body.kiosk .public-nav { display: none; }
.admin-only { display: none !important; }
body.is-admin .admin-only { display: block !important; }

/* Sign-in page */
.signin-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: 1rem; }
.signin-wrap > .card { margin: 0; }
.signin-card { max-width: 520px; margin: 1rem auto; }
.signin-wrap .signin-card { max-width: none; }
.signin-logo { width: 56px; height: 56px; display: block; margin-bottom: .75rem; }
.card.signin-side { background: linear-gradient(135deg, var(--color-primary) 0%, #0b4a55 60%, var(--color-primary-light) 100%); color: #fff; border: 0; }
.signin-side h2 { color: #fff; }
.signin-side p { color: #cdeef3; }
.btn-block { width: 100%; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .65rem 1.2rem; border-radius: 8px;
  border: 1px solid var(--color-border); background: #fff; color: #3c4043; font-weight: 600; margin: .75rem 0 0;
}
.btn-google:hover { background: #f8f9fa; text-decoration: none; box-shadow: var(--shadow-sm); }
.or { display: flex; align-items: center; gap: .75rem; color: var(--color-muted); font-size: .82rem; margin: 1rem 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--color-border); }
.signin-card form { margin-top: .75rem; }
.signin-more { border-top: 1px solid var(--color-border); margin-top: 1.1rem; padding-top: .9rem; }
.signin-more summary { cursor: pointer; font-weight: 600; color: var(--color-teal-ink); }
.user-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.user-actions button { white-space: nowrap; justify-content: flex-start; }
.code-notice code.big-code { font-size: 1.25rem; font-weight: 800; letter-spacing: .08em; background: #fff; padding: .15rem .5rem; }
@media (max-width: 760px) { .signin-wrap { grid-template-columns: 1fr; } .public-nav a:not(.nav-cta) { display: none; } }

/* ===== Layout ===== */
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; max-width: 1360px; margin: 0 auto; }
.sidenav { position: sticky; top: var(--header-h); padding: 1.25rem .5rem 2rem 0; max-height: calc(100vh - var(--header-h)); overflow: auto; }
/* folder-style navigation, as in LeAP's Messages */
.sidenav a {
  display: block; padding: .5rem 1rem .5rem 1.4rem; border-radius: 0 999px 999px 0; color: var(--color-text);
  text-decoration: none; font-size: .93rem;
}
.sidenav a:hover { background: #eaf0f6; text-decoration: none; }
.sidenav a.active { background: #fff3b8; font-weight: 700; }
.nav-group { margin: 1.2rem 1.4rem .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-accent-dark); font-weight: 700; }
main { padding: 1.75rem 1.5rem 3rem; outline: none; min-width: 0; min-height: 70vh; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

.site-footer { border-top: 1px solid var(--color-border); text-align: center; padding: 2rem 1.5rem 3rem; font-size: .85rem; color: var(--color-muted); }
.site-footer p { margin: .2rem 0; }
.footer-logo { width: 40px; height: 40px; border-radius: 8px; margin-bottom: .6rem; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .nav-toggle { display: block; order: -1; }
  /* on phones the header scrolls away (the period controls wrap onto extra lines) and the menu opens full height */
  .topbar { position: relative; }
  .sidenav {
    display: none; position: fixed; top: 0; left: 0; bottom: 0; width: 270px; max-height: none; z-index: 30;
    background: #fff; box-shadow: var(--shadow-md); padding-top: .75rem;
  }
  .sidenav.open { display: block; }
  main { padding: 1.25rem 1rem 2.5rem; }
  .topbar { padding: .55rem 1rem; }
  .brand-sub { display: none; }
}

/* ===== Hero (dashboard) ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0b4a55 55%, var(--color-primary-light) 100%);
  color: #fff; border-radius: 14px; padding: 2rem 2rem 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-md);
  display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.hero h1 { color: #fff; font-size: 2rem; }
.hero .eyebrow { color: var(--color-accent); }
.hero p { color: #cdeef3; max-width: 560px; margin: .35rem 0 0; }
.hero .actions { margin-top: 1.1rem; }
.hero-logo { width: 96px; height: 96px; background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
@media (max-width: 640px) { .hero { padding: 1.5rem 1.25rem; } .hero h1 { font-size: 1.6rem; } .hero-logo { display: none; } }

/* ===== Buttons ===== */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1.1rem; border-radius: 8px;
  font: inherit; font-weight: 600; font-size: .92rem; border: 1px solid var(--color-primary); background: transparent; color: var(--color-primary);
  cursor: pointer; text-decoration: none; text-align: center; line-height: 1.3;
}
button:hover, .btn:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
button.primary, .btn.primary { background: var(--color-accent); color: var(--color-primary); border-color: var(--color-accent); }
button.primary:hover, .btn.primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-primary); }
.btn.on-dark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn.on-dark:hover { background: rgba(255,255,255,.22); }
button.danger { background: var(--color-danger-bg); color: var(--color-danger); border-color: #f3c9c4; }
button.danger:hover { background: #f9d8d4; color: var(--color-danger); }
button.link { border: 0; background: none; color: var(--color-teal-ink); padding: 0; font-weight: 600; text-decoration: underline; }
button.link:hover { background: none; color: var(--color-primary); }
button.link.danger { color: var(--color-danger); }
button:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.actions select { width: auto; }

/* ===== Cards, tiles ===== */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
details.card > summary { cursor: pointer; }
.grid { display: grid; gap: 1.25rem; }
.grid > .card { margin-bottom: 0; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 1.25rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.tile { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--color-primary-light); }
.tile:nth-child(4n+2) { border-top-color: var(--color-accent); }
.tile:nth-child(4n+3) { border-top-color: var(--color-primary); }
.tile:nth-child(4n+4) { border-top-color: var(--color-accent-dark); }
.tile .label { font-size: .76rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.tile .value { font-size: 2rem; font-weight: 800; line-height: 1.2; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.tile .note { color: var(--color-muted); font-size: .82rem; }

/* ===== Forms ===== */
label { font-size: .92rem; }
input, select, textarea {
  font: inherit; font-size: .95rem; color: var(--color-text); background: #fff; border: 1px solid var(--color-border); border-radius: 8px;
  padding: .55rem .75rem; max-width: 100%;
}
input[type="checkbox"], input[type="radio"] { padding: 0; width: auto; accent-color: var(--color-primary); }
textarea { width: 100%; min-height: 5.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary-light); box-shadow: 0 0 0 3px rgba(72,196,211,.25); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--color-primary-light); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.field > span { font-weight: 600; font-size: .9rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1 1 200px; }
.row > .field input:not([type="radio"]):not([type="checkbox"]), .row > .field select { width: 100%; }
fieldset { border: 1px solid var(--color-border); border-radius: var(--radius); padding: .9rem 1.1rem 1rem; margin: 0 0 1rem; background: var(--color-surface); }
legend { font-weight: 700; padding: 0 .35rem; color: var(--color-primary); }

/* Radio choices as pills (LeAP's Likert buttons): gold when picked */
.choices { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .2rem; }
.choices.stack { flex-direction: column; align-items: flex-start; }
.choices label { cursor: pointer; margin: 0; font-weight: 400; position: relative; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span {
  display: inline-flex; align-items: center; min-height: 2.4rem; padding: .45rem .95rem; border: 1px solid var(--color-border);
  border-radius: 999px; background: #fff; line-height: 1.3;
}
.choices label:hover span { border-color: var(--color-primary-light); }
.choices input:checked + span { background: var(--color-accent); border-color: var(--color-accent-hover); font-weight: 700; }
.choices input:focus-visible + span { outline: 2px solid var(--color-primary-light); outline-offset: 2px; }
.choices input:disabled + span { opacity: .45; cursor: not-allowed; }
.choices.stack span { border-radius: 14px; }

/* SQD questions: one card per statement, answers as pills */
.likert { border: 1px solid var(--color-border); border-radius: var(--radius); padding: .8rem 1rem .9rem; margin: .6rem 0; background: #fff; }
.likert .q { font-weight: 600; margin-bottom: .45rem; }
.likert .q b { color: var(--color-teal-ink); margin-right: .25rem; }
.likert .choices span { min-width: 2.8rem; justify-content: center; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th { color: var(--color-muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:hover td { background: #f8fafc; }
tr.total td { font-weight: 700; border-top: 2px solid var(--color-border); background: #fbfcfd; }
tbody th { background: #f5f7fa; color: var(--color-primary); }

/* ===== Badges, status, notices ===== */
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; color: #fff; white-space: nowrap; background: #6b7280; }
.badge.Outstanding { background: var(--color-success); }
.badge.Very-Satisfactory { background: var(--color-teal-ink); }
.badge.Satisfactory { background: #6b7280; }
.badge.Fair { background: var(--color-warn); }
.badge.Poor { background: var(--color-danger); }
.status-ok { color: var(--color-success); font-weight: 700; }
.status-ok::before { content: "✓ "; }
.status-short { color: var(--color-danger); font-weight: 700; }
.status-short::before { content: "! "; }
.notice { padding: .85rem 1rem; border-radius: 8px; margin: 0 0 1.25rem; font-size: .92rem; background: var(--color-info-bg); border: 1px solid #b9e6ec; color: #0b4a55; }
.notice.warn { background: var(--color-warn-bg); border-color: #f2dc9b; color: #6b4e00; }
.notice a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ===== Charts ===== */
.chart { width: 100%; }
.bar-chart .bar-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 52px; align-items: center; gap: .6rem; min-height: 30px; }
.bar-chart .bar-label { font-size: .86rem; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-chart .bar-track { position: relative; height: 30px; }
.bar-chart .bar { position: absolute; left: 0; top: 7px; height: 16px; background: var(--series-1); border-radius: 0 4px 4px 0; }
.bar-chart .bar-value { font-size: .84rem; font-variant-numeric: tabular-nums; color: var(--color-text); font-weight: 600; }
.bar-chart .gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: #edf0f4; }
.axis { display: grid; grid-template-columns: 140px minmax(0, 1fr) 52px; gap: .6rem; font-size: .74rem; color: var(--color-muted); }
.axis .ticks { position: relative; height: 16px; }
.axis .ticks span { position: absolute; transform: translateX(-50%); }
.likert-chart .lk-row, .chart.likert .lk-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 52px; gap: .6rem; align-items: center; min-height: 30px; }
.chart.likert { border: 0; padding: 0; margin: 0; background: none; }
.chart.likert .lk-label { font-size: .85rem; }
.chart.likert .lk-bar { display: flex; height: 18px; gap: 2px; }
.chart.likert .lk-seg { height: 100%; min-width: 0; }
.chart.likert .lk-seg:first-child { border-radius: 4px 0 0 4px; }
.chart.likert .lk-seg:last-child { border-radius: 0 4px 4px 0; }
.chart.likert .lk-pct { font-size: .84rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--color-muted); margin: 0 0 .75rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tooltip { position: fixed; z-index: 100; pointer-events: none; background: #111; color: #fff; padding: .4rem .65rem; border-radius: 8px; font-size: .8rem; max-width: 300px; box-shadow: var(--shadow-md); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: .6rem 1.2rem; border-radius: 10px; z-index: 100; box-shadow: var(--shadow-md); border-left: 4px solid var(--color-accent); }

/* ===== Office result report ===== */
.office-result .or-head { margin-bottom: 1rem; }
.office-result .or-head h1 { font-size: 2rem; }
.gb { width: 100%; }
.gb-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: .6rem; align-items: center; padding: .25rem 0; border-bottom: 1px solid #f0f2f5; }
.gb-label { font-size: .85rem; }
.gb-bars { position: relative; width: calc(100% - 3.4rem); background-image: linear-gradient(to right, #e3e8ef 1px, transparent 1px); background-size: 20% 100%; }
.gb-line { display: flex; align-items: center; gap: .4rem; height: 14px; margin: 2px 0; }
.gb-bar { height: 11px; border-radius: 0 3px 3px 0; flex: none; min-width: 2px; }
.gb-val { margin-right: -3.4rem; }
.gb-val { font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gb-axis { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: .6rem; font-size: .74rem; color: var(--color-muted); }
.gb-axis > div { position: relative; height: 16px; width: calc(100% - 3.4rem); }
.gb-axis > div span { position: absolute; transform: translateX(-50%); }
.cc-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 62px; gap: .5rem; align-items: center; font-size: .82rem; margin: .3rem 0; }
.cc-track { height: 9px; background: #edf0f4; border-radius: 999px; overflow: hidden; }
.cc-bar { height: 100%; background: #0b7f9e; }
.cc-bar.muted-bar { background: #9fb3bd; }
.cc-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.or-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2.5rem 0 1rem; }
.or-sign .sign-line { border-bottom: 1px solid var(--color-text); min-height: 2.6rem; display: flex; align-items: flex-end; font-weight: 700; padding-bottom: .2rem; margin-top: .3rem; }
@media (max-width: 640px) { .gb-row, .gb-axis { grid-template-columns: 110px minmax(0, 1fr); } .or-sign { grid-template-columns: 1fr; } }
@media print {
  .office-result .or-section { break-inside: avoid; page-break-inside: avoid; margin-bottom: .8rem; padding: .8rem 1rem; }
  .office-result .tiles { grid-template-columns: repeat(4, 1fr); }
  .gb-bar, .cc-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== Kiosk ===== */
body.kiosk .sidenav, body.kiosk .period, body.kiosk .sync-pill, body.kiosk .nav-toggle, body.kiosk .site-footer { display: none; }
body.kiosk .layout { display: block; max-width: 880px; }
body.kiosk .brand { pointer-events: none; }   /* clients cannot leave the form; staff use the "Staff" link */
body.kiosk .likert .choices span { min-height: 2.8rem; padding: .55rem 1.1rem; }
.form-head { text-align: center; line-height: 1.35; margin-bottom: 1rem; }
.form-head img { width: 64px; height: 64px; display: block; margin: 0 auto .5rem; }
.form-head .t { font-weight: 800; font-size: 1.25rem; margin-top: .6rem; color: var(--color-primary); }
.form-code { text-align: right; color: var(--color-muted); font-size: .75rem; margin-top: .75rem; }
.thanks { text-align: center; padding: 4rem 1rem; }
.thanks .big { font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.thanks .check { width: 72px; height: 72px; border-radius: 50%; background: var(--color-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }

/* ===== Tasks ===== */
table.committee { max-width: 560px; }
table.committee th { width: 11rem; background: none; color: var(--color-muted); }
table.committee td { font-weight: 600; }
.task-list td:first-child { width: 46%; }
.task-sub td:first-child { padding-left: 2rem; }
.task-list select, .task-list input { width: 100%; padding: .35rem .5rem; font-size: .88rem; }

/* ===== Print: PSHS letterhead, no app chrome ===== */
.print-only { display: none; }
@media print {
  .topbar, .sidenav, .site-footer, .no-print, .actions, .tooltip, .toast { display: none !important; }
  html, body { background: #fff; font-size: 11pt; }
  .layout { display: block; max-width: none; }
  main { padding: 0; min-height: 0; }
  .print-only { display: block; }
  .card, .tile { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
  .hero { background: none; color: #000; box-shadow: none; padding: 0; }
  .hero h1, .hero p { color: #000; }
  a { color: inherit; }
  h1, h2, h3 { break-after: avoid; }
  tr { break-inside: avoid; }
  .letterhead-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; padding: 0 20px; }
  .letterhead-header-left, .letterhead-header-right { height: 64px; width: auto; }
  .letterhead-footer { width: 100%; height: auto; margin-top: 1.5rem; }
  input.tx, textarea.just { display: none; }   /* their values print as plain text beside them */
  .bar-chart .bar, .chart.likert .lk-seg, .legend i, .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
