@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');

:root {
    --navy: #13233f;
    --navy-2: #0b1a32;
    --blue: #2563eb;
    --blue-soft: #eaf1ff;
    --green: #0f9f6e;
    --green-soft: #e8f7f0;
    --amber: #d97706;
    --amber-soft: #fff4db;
    --red: #dc2626;
    --red-soft: #fef0f0;
    --canvas: #f4f7fb;
    --surface: #ffffff;
    --text: #172033;
    --muted: #68758a;
    --border: #dbe2ec;
    --shadow: 0 10px 30px rgba(28, 43, 70, .07);
    --radius: 12px;
    --sidebar: 260px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; font-family: "Noto Sans Thai", "Tahoma", sans-serif; color: var(--text); font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); display: flex; flex-direction: column; padding: 22px 14px 16px; color: #fff; background: var(--navy); box-shadow: 8px 0 30px rgba(7, 20, 43, .12); }
.sidebar__brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar__brand strong, .sidebar__brand small { display: block; }
.sidebar__brand strong { font-size: 15px; }
.sidebar__brand small { margin-top: 2px; color: #b8c6dd; font-size: 12px; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; color: #fff; background: #1f4f9d; font-size: 13px; font-weight: 700; letter-spacing: -.03em; }
.brand-mark--large { width: 68px; height: 68px; margin-bottom: 28px; border-color: rgba(255,255,255,.35); border-radius: 14px; font-size: 18px; }
.sidebar__nav { display: grid; gap: 5px; padding-top: 20px; }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 45px; padding: 10px 12px; border: 0; border-radius: 8px; color: #d7e0ee; background: transparent; text-align: left; font-size: 14px; font-weight: 500; transition: background .18s, color .18s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.is-active { color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(18, 83, 218, .28); }
.nav-link__icon { display: inline-flex; }
.nav-link--button { cursor: pointer; }
.sidebar__footer { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 6px 9px; }
.sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-user strong { max-width: 150px; overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: #aebcd3; font-size: 11px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: #315382; font-weight: 700; }
.avatar--light { color: var(--navy); background: #e9eef6; }

.page { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; min-height: 68px; padding: 0 30px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.topbar__title { display: flex; align-items: baseline; gap: 8px; }
.topbar__title strong { font-size: 15px; }
.topbar__title span { color: var(--muted); font-size: 12px; }
.topbar__user { display: flex; align-items: center; gap: 10px; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--border); }
.topbar__user strong, .topbar__user small { display: block; }
.topbar__user strong { font-size: 12px; }
.topbar__user small { color: var(--muted); font-size: 11px; }
.notification-button { position: relative; display: inline-flex; margin-left: auto; padding: 8px; color: var(--navy); }
.notification-button span { position: absolute; top: 0; right: -2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; color: #fff; background: var(--blue); font-size: 9px; font-weight: 700; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; color: var(--navy); background: #fff; }
.menu-toggle { display: none; margin-right: 12px; }
.content { max-width: 1580px; margin: 0 auto; padding: 30px; }

.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { margin: 0; font-size: clamp(25px, 2vw, 34px); line-height: 1.25; letter-spacing: -.025em; }
.page-heading p { margin: 6px 0 0; color: var(--muted); }
.page-heading .page-heading__context { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 600; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(37,99,235,.18); }
.button--outline { border-color: #a8b8cf; color: var(--blue); background: #fff; box-shadow: none; }
.button--danger { color: #fff; background: var(--red); }
.button--small { min-height: 33px; padding: 5px 11px; font-size: 12px; }
.button--block { width: 100%; }
.text-link { color: var(--blue); font-size: 13px; font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.dashboard-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: -5px 0 18px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.dashboard-filters label { display: grid; gap: 4px; min-width: 190px; }.dashboard-filters label span{color:var(--muted);font-size:10px;font-weight:600}.dashboard-filters select{min-height:40px;padding:7px 10px;border:1px solid #cfd8e5;border-radius:8px;background:#fff}
.stat { min-height: 132px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 18px rgba(31, 50, 80, .04); }
.stat__label { display: block; color: var(--muted); font-size: 13px; }
.stat > strong { display: block; margin: 5px 0 8px; font-size: 32px; line-height: 1.2; }
.stat__meta { color: var(--muted); font-size: 12px; }
.stat__meta--blue { color: var(--blue); }
.stat__meta--green { color: var(--green); }
.stat__meta--amber { color: var(--amber); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr); gap: 18px; margin-bottom: 18px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 22px rgba(31, 50, 80, .045); }
.panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 20px 15px; border-bottom: 1px solid #edf1f6; }
.panel__heading h2 { margin: 0; font-size: 17px; }
.panel__heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.progress-list { display: grid; gap: 23px; padding: 24px 20px 28px; }
.progress-row { display: grid; grid-template-columns: 150px minmax(120px, 1fr) 46px; align-items: center; gap: 14px; }
.progress-row > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.progress-row > div:first-child strong { color: var(--muted); }
.progress-row small { color: var(--muted); text-align: right; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e9eef5; }
.progress-fill { display: block; min-width: 3px; height: 100%; border-radius: inherit; }
.progress-fill--blue { background: var(--blue); }
.progress-fill--green { background: var(--green); }
.progress-fill--amber { background: var(--amber); }
.status-panel { display: grid; grid-template-columns: 150px 1fr; align-items: center; padding-bottom: 18px; }
.status-panel .panel__heading { grid-column: 1 / -1; width: 100%; }
.donut { display: grid; place-items: center; width: 120px; height: 120px; margin: 22px auto 6px; border-radius: 50%; background: conic-gradient(var(--green) 0 var(--completed), var(--blue) var(--completed) 78%, var(--amber) 78% 100%); }
.donut::before { content: ""; grid-area: 1/1; width: 76px; height: 76px; border-radius: 50%; background: #fff; }
.donut span { z-index: 1; grid-area: 1/1; text-align: center; }
.donut strong, .donut small { display: block; }
.donut strong { font-size: 25px; }
.donut small { color: var(--muted); font-size: 10px; }
.legend { display: grid; gap: 13px; margin: 22px 20px 0 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.legend strong { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--blue { background: var(--blue); }.dot--green { background: var(--green); }.dot--amber { background: var(--amber); }

.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; border-bottom: 1px solid #edf1f6; text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: #58677d; background: #fbfcfe; font-size: 11px; font-weight: 600; }
td { font-size: 12px; }
tbody tr:hover { background: #fafcff; }
.mono { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.status--draft { color: var(--amber); background: var(--amber-soft); }
.status--assigned, .status--in_progress { color: var(--blue); background: var(--blue-soft); }
.status--ready_to_publish { color: #6d4c00; background: var(--amber-soft); }
.status--completed, .status--published { color: var(--green); background: var(--green-soft); }
.status--cancelled { color: var(--red); background: var(--red-soft); }
.empty-state { padding: 48px 20px; text-align: center; }
.empty-state strong { font-size: 18px; }
.empty-state p { margin: 5px 0 18px; color: var(--muted); }

.alert { margin-bottom: 18px; padding: 12px 15px; border: 1px solid; border-radius: 8px; font-size: 13px; }
.alert--danger { border-color: #fecaca; color: #a51d1d; background: var(--red-soft); }
.alert--success { border-color: #bde7d5; color: #08704c; background: var(--green-soft); }
.field { display: grid; gap: 6px; }
.field > span:first-child { color: #354258; font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd8e5; border-radius: 8px; color: var(--text); background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-stack { display: grid; gap: 17px; }
.form-panel { overflow: hidden; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; padding: 24px; }
.field--wide { grid-column: span 1; }
.field--full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 17px 24px; border-top: 1px solid var(--border); background: #fbfcfe; }
.creation-evidence { margin: 0 24px 24px; overflow: hidden; border: 1px solid #cbd9ec; border-radius: 12px; background: #f8fbff; }
.creation-evidence__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #dce6f3; background: linear-gradient(135deg,#edf5ff,#f8fbff); }
.creation-evidence__eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.creation-evidence__heading h2 { margin: 3px 0 4px; font-size: 17px; }
.creation-evidence__heading p { margin: 0; color: var(--muted); font-size: 11px; }
.creation-evidence__optional { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: var(--blue); background: #fff; font-size: 10px; font-weight: 700; }
.creation-evidence__body { display: grid; gap: 18px; padding: 20px; }
.creation-evidence .field small, .video-link-builder small { color: var(--muted); font-size: 10px; }
.evidence-upload-queue { overflow: hidden; border: 1px solid #d7e2f0; border-radius: 10px; background: #fff; }
.evidence-upload-queue__summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #e7edf5; color: var(--muted); font-size: 10px; }
.evidence-upload-queue__summary strong { color: var(--text); font-size: 11px; }
.evidence-upload-items { display: grid; }
.evidence-upload-item { display: grid; grid-template-columns: minmax(180px,1fr) minmax(120px,.65fr) 125px 72px; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #edf1f6; }
.evidence-upload-item:last-child { border-bottom: 0; }
.evidence-upload-item__info strong, .evidence-upload-item__info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence-upload-item__info strong { font-size: 11px; }
.evidence-upload-item__info small { color: var(--muted); font-size: 9px; }
.evidence-upload-item__progress { height: 6px; overflow: hidden; border-radius: 999px; background: #e7edf5; }
.evidence-upload-item__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .15s; }
.evidence-upload-item__status { color: var(--muted); font-size: 10px; }
.evidence-upload-item[data-state="uploaded"] .evidence-upload-item__status { color: var(--green); }
.evidence-upload-item[data-state="failed"] .evidence-upload-item__status { color: var(--red); }
.evidence-upload-item[data-state="failed"] .evidence-upload-item__progress span { background: var(--red); }
.evidence-upload-item__action { min-height: 32px; border: 0; border-radius: 7px; color: var(--red); background: var(--red-soft); font-size: 10px; font-weight: 700; }
.evidence-upload-item__action:disabled { cursor: wait; opacity: .5; }

/* Shared document library */
.document-library{display:grid;gap:18px}.document-tabs{display:flex;gap:8px;overflow-x:auto;padding:6px;border:1px solid var(--border);border-radius:12px;background:#fff}.document-tabs a{flex:0 0 auto;padding:9px 14px;border-radius:8px;color:var(--muted);font-size:11px;font-weight:700}.document-tabs a.is-active{color:#fff;background:var(--blue)}.document-library-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;align-items:start}.document-library-main{display:grid;min-width:0;gap:16px}.document-folder-sidebar{position:sticky;top:18px;overflow:hidden}.document-folder-sidebar__heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid var(--border)}.document-folder-sidebar__heading span,.document-folder-sidebar__heading strong{display:block}.document-folder-sidebar__heading span{color:var(--muted);font-size:9px}.document-folder-sidebar__heading strong{margin-top:2px;font-size:11px}.document-folder-sidebar__heading>a{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;color:#fff;background:var(--blue);font-size:18px;font-weight:700}.document-folder-list{display:grid;padding:8px}.document-folder-list>a{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:7px;align-items:center;min-height:40px;padding:8px 10px;border-radius:8px;color:var(--muted);font-size:10px;font-weight:700}.document-folder-list>a:hover,.document-folder-list>a.is-active{color:var(--blue);background:#eef5ff}.document-folder-list>a.is-child{padding-left:24px}.document-folder-list__icon{font-size:12px}.document-folder-list small{min-width:22px;padding:2px 6px;border-radius:99px;text-align:center;color:inherit;background:#edf1f6;font-size:8px}.document-folder-sidebar__empty{margin:0;padding:4px 16px 16px;color:var(--muted);font-size:9px}.document-upload-panel{overflow:hidden}.document-upload-panel form{padding:20px}.document-dropzone{display:grid;gap:6px;padding:26px;border:2px dashed #bfd0e4;border-radius:12px;text-align:center;background:#f7faff;transition:.15s}.document-dropzone.is-dragging{border-color:var(--blue);background:#edf5ff}.document-dropzone input{max-width:620px;margin:8px auto 0}.document-upload-options{margin-top:16px}.document-upload-items{display:grid;gap:8px;margin-top:14px}.document-upload-item{display:grid;grid-template-columns:minmax(180px,1fr) minmax(120px,.7fr) 130px 70px;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:#fff}.document-upload-item strong,.document-upload-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-upload-item small,.document-upload-item em{color:var(--muted);font-size:9px;font-style:normal}.document-upload-item__bar{height:7px;overflow:hidden;border-radius:99px;background:#e6edf6}.document-upload-item__bar span{display:block;width:0;height:100%;border-radius:inherit;background:var(--blue);transition:width .15s}.document-upload-item.is-success{border-color:#bde8d4}.document-upload-item.is-success em{color:var(--green)}.document-upload-item.is-error{border-color:#f0c2c2}.document-upload-item.is-error em{color:var(--red)}.document-upload-item button{min-height:30px;border:0;border-radius:7px;color:var(--red);background:var(--red-soft);font-size:9px;font-weight:700}.document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.document-card{overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm)}.document-card__preview{display:grid;place-items:center;height:150px;background:linear-gradient(135deg,#eef5ff,#f8fbff);color:var(--blue);font-size:22px;font-weight:800}.document-card__preview img{width:100%;height:100%;object-fit:cover}.document-card__body{display:grid;gap:9px;padding:14px}.document-card__title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.document-card h3{margin:0;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.document-card p{min-height:34px;margin:0;color:var(--muted);font-size:10px}.document-card small{color:var(--muted);font-size:9px}.document-card__actions{display:flex;flex-wrap:wrap;gap:7px}.document-card__actions form{margin:0}.document-visibility{padding:3px 7px;border-radius:99px;font-size:8px;font-weight:800;white-space:nowrap}.document-visibility--private{color:#315b83;background:#eaf3fc}.document-page-heading .page-heading__actions{display:flex;flex-wrap:wrap;gap:10px}.document-list-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,.45fr) auto;gap:12px;align-items:end;padding:16px}.document-create-page{position:relative;max-width:980px;margin:0 auto}.document-create-page>form[data-document-upload-form]{padding:20px}.document-private-lock{display:inline-flex;align-items:center;min-height:30px;padding:6px 12px;border-radius:999px;color:#315b83;background:#eaf3fc;font-size:10px;font-weight:800;white-space:nowrap}.document-create-page .form-actions{display:flex;align-items:center;gap:12px;margin:18px -20px -20px;padding-right:125px}.document-create-page .form-actions span{color:var(--muted);font-size:10px}.document-cancel-form{position:absolute;right:20px;bottom:20px;padding:0!important}.document-folder-create{max-width:780px;margin:0 auto}.document-folder-create>.form-grid{padding:20px}.document-folder-create>.form-actions{margin-top:0}
.document-card__preview { overflow: hidden; }
.document-card__preview img { display: block; min-width: 0; min-height: 0; }
.document-card h3 { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.document-upload-options { align-items: start; }
.document-upload-options input.form-control, .document-upload-options select.form-control { height: 44px; }
.document-folder-create > .form-grid { align-items: start; }
.document-folder-create input.form-control, .document-folder-create select.form-control { height: 44px; }
.video-link-builder { display: grid; gap: 12px; }
.video-link-builder__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.video-link-builder__heading strong, .video-link-builder__heading small { display: block; }
.video-link-rows { display: grid; gap: 10px; }
.video-link-row { display: grid; grid-template-columns: minmax(180px,.65fr) minmax(260px,1.35fr) 34px; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.video-link-row__remove { display: grid; place-items: center; width: 34px; height: 44px; border: 0; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 20px; }
.creation-evidence .button--small { min-height: 36px; padding: 7px 11px; font-size: 11px; }
.evaluator-document-row { position: relative; display: grid; grid-template-columns: minmax(180px,.7fr) minmax(220px,1fr) 36px; align-items: start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.evaluator-document-row__description { grid-column: 1 / 3; }
.evaluator-document-row__description textarea { min-height: 78px; }
.evaluator-document-row__remove { display: grid; place-items: center; width: 36px; height: 44px; border: 0; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 20px; cursor: pointer; }
.check-field { display: inline-flex; align-items: center; gap: 9px; color: #405069; font-size: 13px; }
.check-field input { width: 17px; height: 17px; accent-color: var(--blue); }
.readonly-value { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: #f6f8fb; }
.filter-bar { display: grid; grid-template-columns: minmax(260px, 1fr) 240px auto; align-items: end; gap: 12px; margin-bottom: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.filter-bar--compact { grid-template-columns: minmax(260px,1fr) auto; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; color: var(--muted); font-size: 12px; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell strong, .person-cell small { display: block; }
.person-cell small, .muted { color: var(--muted); font-size: 11px; }
.avatar--table { width: 34px; height: 34px; color: var(--navy); background: #e9eef6; font-size: 12px; }
.table-actions { display: flex; gap: 6px; }
.button--danger-soft { color: var(--red); background: var(--red-soft); }
.button--success-soft { color: var(--green); background: var(--green-soft); }
.assignment-fields { margin: 0; padding: 15px; border: 1px solid var(--border); border-radius: 8px; }
.assignment-fields legend { padding: 0 6px; color: #354258; font-size: 12px; font-weight: 600; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rubric-form { display: grid; gap: 16px; }
.rubric-sections { display: grid; gap: 16px; }
.rubric-section { overflow: hidden; }
.rubric-section__heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; color: var(--navy); background: #f2f6fb; }
.rubric-section__number { font-size: 13px; font-weight: 700; }
.icon-text-button { border: 0; color: var(--blue); background: transparent; font-size: 12px; }
.icon-text-button--danger { color: var(--red); }
.rubric-section__fields { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.rubric-items { display: grid; }
.rubric-item { position: relative; display: grid; grid-template-columns: 32px minmax(240px, 1fr) 130px 105px 105px 95px 32px; align-items: end; gap: 10px; padding: 15px 18px; border-bottom: 1px solid #edf1f6; }
.rubric-item__handle { display: grid; place-items: center; align-self: center; width: 28px; height: 28px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 700; }
.rubric-item__required { align-self: center; }
.rubric-item__remove { align-self: center; width: 30px; height: 30px; border: 0; border-radius: 6px; color: var(--red); background: var(--red-soft); font-size: 20px; line-height: 1; }
.rubric-item.is-non-score .score-only { opacity: .35; pointer-events: none; }
.add-row-button, .add-section-button { min-height: 42px; border: 1px dashed #9eb1cb; border-radius: 8px; color: var(--blue); background: #f8faff; font-size: 12px; font-weight: 600; }
.add-row-button { width: calc(100% - 36px); margin: 14px 18px; }
.add-section-button { width: 100%; }
.form-actions--floating { position: sticky; bottom: 0; z-index: 10; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 -10px 28px rgba(31,50,80,.08); }
.rubric-preview-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rubric-preview { margin-bottom: 14px; }
.rubric-preview__items { display: grid; }
.rubric-preview__items > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 20px; border-bottom: 1px solid #edf1f6; }
.rubric-preview__items small { color: var(--muted); white-space: nowrap; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.project-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.project-summary > div { min-height: 100px; padding: 18px; border-right: 1px solid var(--border); }
.project-summary > div:last-child { border-right: 0; }
.project-summary span, .project-summary strong, .project-summary small { display: block; }
.project-summary span { margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.project-summary strong { font-size: 14px; }
.project-summary small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.project-rubric { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #b9d2ff; border-radius: 8px; color: #173f88; background: var(--blue-soft); }
.project-rubric span { font-size: 11px; }.project-rubric strong { font-size: 13px; }
.project-schedule { margin-bottom: 16px; overflow: hidden; }
.project-schedule__list { display: grid; }
.project-schedule__list > a { display: grid; grid-template-columns: 170px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid #edf1f6; }
.project-schedule__list > a:last-child { border-bottom: 0; }
.project-schedule__list time { color: var(--blue); font-size: 10px; font-weight: 700; }
.project-schedule__list strong,.project-schedule__list span { display: block; }.project-schedule__list strong{font-size:12px}.project-schedule__list div span{margin-top:2px;color:var(--muted);font-size:9px}
.alert-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid #f1cf83; border-radius: var(--radius); background: var(--amber-soft); }
.alert-panel strong { font-size: 14px; }.alert-panel p { margin: 2px 0 0; color: #8a5a09; font-size: 12px; }
.alert-panel form { display: flex; gap: 8px; }.alert-panel select { min-width: 250px; padding: 8px 10px; border: 1px solid #d9b867; border-radius: 8px; background: #fff; }
.timeline-panel { overflow: hidden; }
.timeline { padding: 16px 20px 22px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 13px; padding: 12px 0 20px; }
.timeline-item > .status { align-self: start; justify-self: end; line-height: 1.4; white-space: nowrap; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; top: 27px; bottom: -3px; left: 6px; width: 2px; background: #dce5f1; }
.timeline-marker { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 4px; border: 3px solid #cbdcff; border-radius: 50%; background: var(--blue); }
.timeline-item small, .timeline-item strong, .timeline-item p { display: block; }
.timeline-item small { color: var(--blue); font-size: 10px; }.timeline-item strong { margin-top: 2px; font-size: 14px; }.timeline-item p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.stack { display: grid; gap: 16px; }
.rubric-score-section { overflow: hidden; }
.score-list { display: grid; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .45fr); align-items: center; gap: 20px; padding: 16px 20px; border-top: 1px solid var(--border); }
.score-row small { display: block; margin-top: 4px; color: var(--muted); }
.score-control { min-width: 0; }
.form-control, .form-select { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd8e5; border-radius: 8px; color: var(--text); background-color: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
input.form-control, select.form-control, select.form-select { height: 44px; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea.form-control { min-height: 88px; resize: vertical; }
select.form-control { appearance: auto; }
input.form-control[type="file"] { min-height: 44px; padding: 5px 7px; }
input.form-control[type="file"]::file-selector-button { min-height: 32px; margin: 0 10px 0 0; padding: 6px 11px; border: 0; border-radius: 6px; color: #24456f; background: #edf3fb; font-weight: 600; cursor: pointer; }
.input-group { display: flex; width: 100%; min-width: 0; }
.input-group > .form-control { min-width: 0; border-radius: 8px 0 0 8px; }
.input-group-text { display: inline-flex; align-items: center; justify-content: center; min-width: 82px; padding: 10px 14px; border: 1px solid #cfd8e5; border-left: 0; border-radius: 0 8px 8px 0; color: #405069; background: #f3f6fa; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.result-overview { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.result-overview > div { padding: 18px; border-right: 1px solid var(--border); }
.result-overview > div:last-child { border: 0; }
.result-overview span, .result-overview strong { display: block; }
.result-overview span { color: var(--muted); font-size: 12px; }
.result-overview strong { margin-top: 6px; }
.result-list h3 { margin: 0; padding: 12px 20px; color: var(--navy); background: var(--surface-soft); font-size: 14px; }
.result-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 20px; border-top: 1px solid var(--border); }
.reflection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.reflection-grid .panel { padding: 20px; }
.reflection-grid h2 { margin: 0 0 12px; font-size: 16px; }
.reflection-grid p { margin: 0; color: var(--text-soft); line-height: 1.8; }
.media-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; }
.media-actions form { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.file-list { display: grid; padding: 0 20px 20px; }
.file-list a { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.file-list span, .file-list small { color: var(--muted); }
.file-thumb { width: 64px; height: 48px; border-radius: 7px; object-fit: cover; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 20px 20px; }
.video-grid article { display: grid; gap: 8px; }
.video-grid iframe, .video-grid video { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #0b1728; object-fit: contain; }
.reopen-panel { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 20px; }
.reopen-panel h2, .reopen-panel p { margin: 0 0 6px; }
.reopen-panel form { display: flex; align-items: center; gap: 10px; }
.notification-list { overflow: hidden; }
.notification-item { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.notification-item:last-child { border-bottom: 0; }
.notification-item.is-unread { background: #f6f9ff; }
.notification-item p { margin: 3px 0; color: var(--text-soft); }
.notification-item small { color: var(--muted); }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: #c8d2df; }
.notification-item.is-unread .notification-dot { background: var(--blue); box-shadow: 0 0 0 4px #dfeaff; }
.report-header { margin-bottom: 18px; text-align: center; }
.report-header p, .report-header h1 { margin: 3px 0; }
.report-header small { display: block; margin-top: 7px; color: var(--muted); }
.report-score-table { border-top: 1px solid var(--border); }
.report-score-table small { color: var(--muted); }
.report-toolbar { display: flex; justify-content: space-between; margin-bottom: 16px; }
.report-meta { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; padding: 20px; gap: 18px; }
.report-meta span, .report-meta strong { display: block; }.report-meta span { color: var(--muted); font-size: 11px; }.report-meta strong { margin-top: 3px; }
.report-meta__wide { grid-column: 1 / -1; }
.report-round { margin-bottom: 16px; }
.report-round dl { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.report-round dt, .report-round dd { margin: 0; padding: 12px 20px; border-top: 1px solid var(--border); }.report-round dt { color: var(--muted); }
.report-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin: 55px 30px 20px; text-align: center; line-height: 2; }
.audit-action { color: var(--blue); font-family: ui-monospace,monospace; font-size: 11px; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 16px; }
.simple-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--border); }.simple-list strong,.simple-list small { display:block; }.simple-list small{margin-top:3px;color:var(--muted)}
.project-evidence { margin-bottom: 16px; overflow: hidden; }
.evidence-count, .chart-scale { color: var(--muted); font-size: 12px; white-space: nowrap; }
.project-evidence__forms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.project-evidence__forms form { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.project-evidence__forms .field small { color: var(--muted); font-size: 11px; }
.project-file-list { padding-top: 10px; }
.project-video-grid { padding-top: 6px; }
.project-video-grid article > small { color: var(--muted); font-size: 11px; }
.evaluator-documents { margin-bottom: 16px; overflow: hidden; }
.evaluator-document-upload { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(260px,1fr); align-items: start; gap: 14px; padding: 20px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.evaluator-document-upload input.form-control { height: 44px; }
.evaluator-document-upload .form-actions { padding: 0; border: 0; background: transparent; }
.evaluator-document-list { display: grid; gap: 12px; padding: 18px 20px 20px; }
.evaluator-document-card { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.evaluator-document-card--draft { border-style: dashed; background: #fffdf8; }
.evaluator-document-card__icon { display: grid; place-items: center; width: 84px; height: 84px; overflow: hidden; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 800; }
.evaluator-document-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.evaluator-document-card__content { min-width: 0; }
.evaluator-document-card__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.evaluator-document-card__title h3 { margin: 0; color: var(--navy); font-size: 15px; overflow-wrap: anywhere; }
.evaluator-document-card__content p { margin: 7px 0; color: #526078; font-size: 12px; line-height: 1.65; }
.evaluator-document-card__content > small { display: block; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.evaluator-document-card__links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.evaluator-document-card__manage { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.evaluator-document-card__manage > form { display: grid; grid-template-columns: minmax(220px,.65fr) minmax(260px,1fr) auto; align-items: end; gap: 10px; }
.evaluator-document-card__manage textarea { min-height: 70px; }
.evaluator-document-card__manage > div { display: flex; align-items: end; gap: 7px; }
.status--sent { color: var(--green); background: var(--green-soft); }
.empty-state--compact { padding: 28px 20px; }
.empty-state--compact strong { font-size: 15px; }
.trend-panel { margin: 16px 0; overflow: hidden; }
.bar-chart { overflow-x: auto; padding: 26px 24px 20px; }
.bar-chart__plot { position: relative; display: flex; align-items: end; gap: 22px; min-width: max-content; min-height: 235px; padding: 10px 12px 0 44px; background: repeating-linear-gradient(to bottom, #e8edf4 0 1px, transparent 1px 25%); border-bottom: 1px solid #aab6c7; }
.bar-chart__plot::before { content: "100%\A 75%\A 50%\A 25%\A 0%"; position: absolute; inset: 0 auto -7px 0; width: 36px; color: var(--muted); font-size: 9px; line-height: 47px; text-align: right; white-space: pre; }
.bar-chart__item { display: grid; grid-template-rows: 24px 160px 44px; gap: 6px; flex: 0 0 92px; text-align: center; }
.bar-chart__item > strong { color: var(--blue); font-size: 13px; font-variant-numeric: tabular-nums; }
.bar-chart__track { display: flex; align-items: end; justify-content: center; height: 160px; }
.bar-chart__track i { display: block; width: 54px; min-height: 5px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #3b82f6, #1d4ed8); box-shadow: 0 8px 18px rgba(37,99,235,.18); }
.bar-chart__item small { color: var(--text); font-size: 11px; line-height: 1.35; }
.bar-chart__item time { color: var(--muted); font-size: 9px; }
.password-control { position: relative; display: block; }
.password-control .form-control { padding-right: 68px; }
.password-control button { position: absolute; top: 50%; right: 9px; padding: 5px 7px; border: 0; color: var(--blue); background: transparent; font-size: 11px; transform: translateY(-50%); }

.guest-body { background: #eef3f9; }
.guest-shell { display: grid; grid-template-columns: minmax(560px, 1.15fr) minmax(420px, .85fr); min-height: 100vh; }
.guest-brand { position: relative; display: grid; grid-template-rows: auto minmax(280px, 1fr) auto; gap: clamp(22px, 3vh, 34px); min-width: 0; padding: clamp(28px, 4vw, 54px); overflow: hidden; color: #fff; background: var(--navy); }
.guest-brand::after { position: absolute; right: -120px; bottom: -160px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; pointer-events: none; }
.guest-brand__identity { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.guest-brand__identity p, .guest-brand h1 { min-width: 0; overflow-wrap: anywhere; }
.guest-brand__identity .brand-mark--large { width: 54px; height: 54px; margin: 0; border-radius: 12px; font-size: 15px; }
.guest-brand__identity p, .guest-brand__identity strong, .guest-brand__identity span { display: block; margin: 0; }
.guest-brand__identity strong { font-size: 15px; }
.guest-brand__identity span { margin-top: 2px; color: #b9c9df; font-size: 11px; }
.guest-brand__visual { position: relative; z-index: 1; align-self: center; width: min(100%, 780px); margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: #dce9f7; box-shadow: 0 28px 70px rgba(2,12,30,.3); }
.guest-brand__image { display: block; width: 100%; height: 100%; max-height: min(48vh, 520px); aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.guest-brand__copy { position: relative; z-index: 1; max-width: 690px; }
.guest-brand h1 { max-width: 650px; margin: 0; font-size: clamp(32px, 3.2vw, 50px); line-height: 1.18; letter-spacing: -.035em; }
.guest-brand__description { max-width: 620px; margin: 12px 0 0; color: #c4d2e5; font-size: 15px; line-height: 1.75; }
.guest-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 52px clamp(36px, 5vw, 76px) 28px; background: #fff; }
.guest-panel__inner { width: 100%; max-width: 440px; margin: auto; }
.guest-panel__footer { width: 100%; max-width: 440px; margin: 36px auto 0; color: #8a96a9; font-size: 10px; text-align: center; }
.guest-panel .form-control { min-height: 48px; border-radius: 10px; background: #fbfcfe; }
.guest-panel .button--primary { min-height: 48px; border-radius: 10px; box-shadow: 0 10px 24px rgba(37,99,235,.22); }
.auth-heading { margin-bottom: 28px; }
.auth-heading p { margin: 0 0 3px; color: var(--blue); font-size: 12px; font-weight: 700; }
.auth-heading h2 { margin: 0; font-size: 32px; letter-spacing: -.025em; }
.auth-heading span { display: block; max-width: 390px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.auth-help { justify-self: center; margin-top: -3px; }
.login-guidance { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-top: 24px; padding: 13px 14px; border: 1px solid #d8e5fa; border-radius: 10px; color: #52627a; background: #f5f8ff; font-size: 11px; }
.login-guidance > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 12px; font-weight: 700; }
.login-guidance p, .login-guidance strong { display: block; margin: 0; }
.login-guidance strong { margin-bottom: 2px; color: #213b66; font-size: 12px; }
.login-demo { margin-top: 20px; padding: 14px; border: 1px solid #dbe5f3; border-radius: 12px; background: #f8faff; }
.login-demo__heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.login-demo__heading span { display: block; margin-bottom: 1px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.login-demo__heading h3 { margin: 0; color: #15243e; font-size: 14px; }
.login-demo__heading small { color: #7a879b; font-size: 9px; white-space: nowrap; }
.login-demo__accounts { display: grid; gap: 7px; }
.login-demo__account { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px; border: 1px solid #e1e8f2; border-radius: 9px; background: #fff; }
.login-demo__role { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; background: #173a75; font-size: 10px; font-weight: 800; }
.login-demo__role--supervisor { background: #087f73; }
.login-demo__role--school { background: #9a5a13; }
.login-demo__role--teacher { background: #6d3cb0; }
.login-demo__account strong, .login-demo__account small { display: block; min-width: 0; }
.login-demo__account strong { color: #1c2d49; font-size: 11px; }
.login-demo__account small { margin-top: 2px; overflow: hidden; color: #6f7c90; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.login-demo__account code { color: inherit; font-family: inherit; }
.login-demo__account button { min-height: 32px; padding: 0 10px; border: 1px solid #cbd9ed; border-radius: 8px; color: #2154a5; background: #f4f8ff; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }
.login-demo__account button:hover, .login-demo__account button:focus-visible { border-color: var(--blue); outline: none; background: #eaf1ff; }
.login-demo + .login-guidance { margin-top: 14px; }
.demo-credentials { display: grid; gap: 4px; margin-top: 25px; padding: 13px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: #f8fafc; font-size: 11px; }
.demo-credentials strong { color: var(--text); }

/* Supervision schedule */
.schedule-heading__actions { flex-wrap: wrap; justify-content: flex-end; }
.schedule-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.schedule-stat-grid article { min-height: 112px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 18px rgba(31,50,80,.04); }
.schedule-stat-grid span, .schedule-stat-grid small { display: block; color: var(--muted); font-size: 11px; }
.schedule-stat-grid strong { display: block; margin: 3px 0; color: var(--navy); font-size: 29px; line-height: 1.3; }
.schedule-filter { display: grid; grid-template-columns: minmax(220px,1fr) repeat(3,minmax(150px,210px)) auto; align-items: end; gap: 10px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.schedule-main-layout { display:grid;grid-template-columns:270px minmax(0,1fr);gap:16px;align-items:start; }
.schedule-upcoming-sidebar { position:sticky;top:18px;overflow:hidden; }
.schedule-upcoming-sidebar__heading { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--border); }
.schedule-upcoming-sidebar__heading span { color:var(--blue);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em; }
.schedule-upcoming-sidebar__heading h2 { margin:2px 0 0;font-size:14px; }
.schedule-upcoming-sidebar__heading>strong { display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#fff;background:var(--blue);font-size:13px; }
.schedule-agenda-group { padding:12px; }
.schedule-agenda-group+.schedule-agenda-group { border-top:1px solid var(--border); }
.schedule-agenda-group>header { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px; }
.schedule-agenda-group>header h3 { margin:0;font-size:11px; }
.schedule-agenda-group>header span { min-width:22px;padding:2px 6px;border-radius:99px;color:var(--muted);background:#edf1f6;text-align:center;font-size:8px;font-weight:700; }
.schedule-agenda-items { display:grid;gap:7px; }
.schedule-agenda-item { display:grid;grid-template-columns:42px minmax(0,1fr);gap:9px;padding:9px;border:1px solid #e6ecf3;border-radius:9px;color:inherit;background:#fff;transition:.15s; }
.schedule-agenda-item:hover { border-color:#b9d0f4;background:#f5f9ff;transform:translateY(-1px); }
.schedule-agenda-item>time { display:grid;place-items:center;align-self:start;min-height:42px;border-radius:8px;color:var(--blue);background:var(--blue-soft);font-variant-numeric:tabular-nums; }
.schedule-agenda-item>time strong,.schedule-agenda-item>time span { display:block;line-height:1.15; }
.schedule-agenda-item>time strong { font-size:12px; }.schedule-agenda-item>time span{font-size:7px}
.schedule-agenda-item>div { min-width:0; }.schedule-agenda-item>div strong,.schedule-agenda-item>div span,.schedule-agenda-item>div small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-agenda-item>div strong { font-size:10px; }.schedule-agenda-item>div span{margin-top:2px;color:#47556b;font-size:9px}.schedule-agenda-item>div small{margin-top:2px;color:var(--muted);font-size:8px}
.schedule-agenda-item>.status { grid-column:2;justify-self:start;margin-top:1px; }
.schedule-agenda-empty { margin:0;padding:12px 8px;border:1px dashed var(--border);border-radius:8px;color:var(--muted);background:#fafbfd;text-align:center;font-size:9px; }
.schedule-workspace { overflow: hidden; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.schedule-month-nav { display: flex; align-items: center; gap: 12px; }
.schedule-month-nav .icon-button { width: 36px; height: 36px; color: var(--blue); font-size: 24px; line-height: 1; }
.schedule-month-nav h2 { margin: 0; color: var(--navy); font-size: 18px; }
.schedule-month-nav div { min-width: 180px; text-align: center; }
.schedule-month-nav div a { color: var(--blue); font-size: 10px; font-weight: 600; }
.schedule-view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: #f3f6fa; }
.schedule-view-switch a { min-width: 74px; padding: 7px 12px; border-radius: 6px; color: var(--muted); text-align: center; font-size: 11px; font-weight: 600; }
.schedule-view-switch a.is-active { color: var(--blue); background: #fff; box-shadow: 0 2px 7px rgba(27,47,77,.1); }
.schedule-calendar, .schedule-list { display: none; }
.schedule-calendar.is-active, .schedule-list.is-active { display: block; }
.schedule-calendar__weekdays, .schedule-calendar__grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.schedule-calendar__weekdays span { padding: 9px; border-right: 1px solid #edf1f6; color: var(--muted); background: #f9fbfd; text-align: center; font-size: 10px; font-weight: 700; }
.schedule-calendar__weekdays span:last-child { border-right: 0; }
.schedule-day { min-width: 0; min-height: 132px; padding: 9px; border-top: 1px solid #edf1f6; border-right: 1px solid #edf1f6; background: #fff; }
.schedule-day:nth-child(7n) { border-right: 0; }
.schedule-day > time { display: grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border-radius: 50%; color: #394860; font-size: 11px; font-weight: 600; }
.schedule-day.is-outside { background: #fafbfd; }
.schedule-day.is-outside > time { color: #adb7c5; }
.schedule-day.is-today > time { color: #fff; background: var(--blue); }
.schedule-day__events { display: grid; gap: 4px; margin-top: 4px; }
.schedule-event { display: grid; grid-template-columns: 31px minmax(0,1fr); gap: 5px; min-width: 0; padding: 5px 7px; border-left: 3px solid var(--blue); border-radius: 5px; color: #214476; background: var(--blue-soft); font-size: 9px; }
.schedule-event strong { font-size: 9px; font-variant-numeric: tabular-nums; }
.schedule-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-event--confirmed { border-color: var(--green); color: #08704c; background: var(--green-soft); }
.schedule-event--reschedule_requested, .schedule-event--pending { border-color: var(--amber); color: #8a5808; background: var(--amber-soft); }
.schedule-event--cancelled { border-color: #b1bac8; color: #667085; background: #eef1f5; text-decoration: line-through; }
.schedule-event--completed { border-color: #07855b; color: #086647; background: #e5f4ed; }
.schedule-day__more { color: var(--muted); font-size: 9px; text-align: right; }
.schedule-list { border-top: 1px solid #edf1f6; }
.schedule-mobile-agenda { display: none; }
.status--pending, .status--reschedule_requested { color: var(--amber); background: var(--amber-soft); }
.status--confirmed, .status--available { color: var(--green); background: var(--green-soft); }
.status--blocked { color: #667085; background: #eef1f5; }
.schedule-evaluator-picker { display: flex; align-items: end; gap: 10px; margin-bottom: 16px; padding: 16px; }
.schedule-evaluator-picker .field { flex: 1; }
.schedule-form small, .field > small { color: var(--muted); font-size: 10px; }
.schedule-form button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.schedule-detail { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(330px,.55fr); gap: 16px; }
.schedule-detail__main { overflow: hidden; }
.schedule-date-card { display: flex; align-items: center; gap: 18px; padding: 22px; border-bottom: 1px solid var(--border); background: #fbfcfe; }
.schedule-date-card > div { display: grid; place-items: center; flex: 0 0 70px; height: 70px; border-radius: 12px; color: #fff; background: var(--navy); }
.schedule-date-card > div span { margin-bottom: -8px; font-size: 27px; font-weight: 700; }
.schedule-date-card > div strong { font-size: 10px; }
.schedule-date-card section small { color: var(--blue); font-size: 10px; font-weight: 700; }
.schedule-date-card h2 { margin: 2px 0; font-size: 20px; }
.schedule-date-card p { margin: 0; color: var(--muted); font-size: 12px; }
.schedule-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.schedule-meta > div { padding: 17px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.schedule-meta > div:nth-child(2n) { border-right: 0; }
.schedule-meta dt { color: var(--muted); font-size: 10px; }
.schedule-meta dd { margin: 4px 0 0; font-size: 13px; font-weight: 600; }
.schedule-meta dd small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.schedule-meeting-link { display: grid; gap: 2px; margin: 18px 20px 0; padding: 14px 16px; border: 1px solid #a9c8ff; border-radius: 9px; color: #174ba2; background: var(--blue-soft); }
.schedule-meeting-link strong { font-size: 13px; }.schedule-meeting-link span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-notes { display: grid; gap: 0; padding: 5px 20px 20px; }
.schedule-notes section { padding: 16px 0; border-bottom: 1px solid #edf1f6; }.schedule-notes section:last-child{border-bottom:0}
.schedule-notes h3 { margin: 0 0 5px; font-size: 13px; }.schedule-notes p{margin:0;color:#47556b;font-size:12px;line-height:1.8}.schedule-notes .is-danger{color:var(--red)}
.schedule-actions__body { display: grid; gap: 16px; padding: 17px; }.schedule-actions__body form{display:grid;gap:10px;padding-bottom:16px;border-bottom:1px solid var(--border)}.schedule-actions__body form:last-child{padding-bottom:0;border-bottom:0}
.schedule-history .timeline-item { grid-template-columns: 16px minmax(0,1fr); }.schedule-history .timeline{padding-top:8px}
.availability-filter { display: grid; grid-template-columns: minmax(240px,1fr) 190px 190px auto; align-items: end; gap: 12px; margin-bottom: 20px; padding: 16px; }
.availability-browser > header { margin-bottom: 13px; }.availability-browser h2{margin:0;font-size:18px}.availability-browser header p{margin:3px 0 0;color:var(--muted);font-size:11px}
.availability-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.availability-slot { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 16px; }
.availability-slot time { display: grid; place-items: center; height: 62px; border-radius: 10px; color: var(--blue); background: var(--blue-soft); }.availability-slot time strong{font-size:22px;line-height:1}.availability-slot time span{font-size:9px}
.availability-slot small,.availability-slot span,.availability-slot em{display:block;color:var(--muted);font-size:9px}.availability-slot h3{margin:1px 0;font-size:13px}.availability-slot p{margin:2px 0;color:#344258;font-size:11px}.availability-slot em{margin-top:3px;font-style:normal}
.availability-manage { display: grid; grid-template-columns: minmax(340px,.72fr) minmax(0,1.28fr); align-items: start; gap: 16px; }
.availability-create { position: sticky; top: 86px; }
.availability-weekdays { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 8px; }.availability-weekdays legend{padding:0 6px;color:#354258;font-size:11px;font-weight:600}
.availability-manage-list { display: grid; }
.availability-edit { padding: 14px 16px; border-bottom: 1px solid var(--border); }.availability-edit:last-child{border-bottom:0}.availability-edit.is-reserved{background:#fbfdfc}
.availability-edit__summary { display: grid; grid-template-columns: 130px minmax(0,1fr) auto auto; align-items: center; gap: 12px; }.availability-edit__summary time strong,.availability-edit__summary time span{display:block}.availability-edit__summary time strong{font-size:12px}.availability-edit__summary time span,.availability-edit__summary p,.availability-edit__summary small{margin:2px 0;color:var(--muted);font-size:9px}
.availability-edit details { position: relative; }.availability-edit summary{list-style:none;cursor:pointer}.availability-edit summary::-webkit-details-marker{display:none}.availability-edit details[open] summary{border-color:var(--blue)}
.availability-edit details form { position: absolute; z-index: 15; top: 42px; right: 0; width: min(520px,80vw); padding: 15px; border: 1px solid var(--border); border-radius: 10px; background:#fff;box-shadow:0 18px 50px rgba(20,35,60,.18)}
.availability-edit__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px;margin-bottom:12px }
.manual-nav { display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px;padding:10px;border:1px solid var(--border);border-radius:10px;background:#fff }.manual-nav a{padding:7px 11px;border-radius:7px;color:var(--blue);font-size:10px;font-weight:700}.manual-nav a:hover{background:var(--blue-soft)}
.manual-layout { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.5fr);align-items:start;gap:16px }.manual-section{overflow:hidden;scroll-margin-top:86px}.manual-steps{display:grid;gap:0;margin:0;padding:0;list-style:none;counter-reset:manual-step}.manual-steps li{position:relative;display:grid;gap:2px;padding:16px 20px 16px 54px;border-bottom:1px solid #edf1f6;counter-increment:manual-step}.manual-steps li:last-child{border-bottom:0}.manual-steps li::before{position:absolute;top:16px;left:18px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;color:#fff;background:var(--blue);font-size:10px;font-weight:700;content:counter(manual-step)}.manual-steps strong{font-size:12px}.manual-steps span{color:var(--muted);font-size:10px;line-height:1.7}
.manual-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.manual-guide-grid section{position:relative;padding:20px;border-right:1px solid #edf1f6;border-bottom:1px solid #edf1f6}.manual-guide-grid section:nth-child(2n){border-right:0}.manual-guide-grid section:nth-last-child(-n+2){border-bottom:0}.manual-guide-grid section>span{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;color:var(--blue);background:var(--blue-soft);font-size:11px;font-weight:800}.manual-guide-grid h3{margin:9px 0 3px;font-size:13px}.manual-guide-grid p{margin:0;color:var(--muted);font-size:10px;line-height:1.75}
.manual-role-list{display:grid}.manual-role-list section{padding:15px 20px;border-bottom:1px solid #edf1f6}.manual-role-list section:last-child{border-bottom:0}.manual-role-list section.is-current{border-left:4px solid var(--blue);background:#f7f9ff}.manual-role-list h3{margin:0;font-size:12px}.manual-role-list p{margin:3px 0 0;color:var(--muted);font-size:10px;line-height:1.7}.manual-statuses{display:grid}.manual-statuses>div{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:10px;padding:12px 20px;border-bottom:1px solid #edf1f6}.manual-statuses>div:last-child{border-bottom:0}.manual-statuses p{margin:0;color:var(--muted);font-size:10px}.manual-quick{display:grid;overflow:hidden}.manual-quick h2{margin:0;padding:17px 18px;border-bottom:1px solid var(--border);font-size:15px}.manual-quick a{padding:13px 18px;border-bottom:1px solid #edf1f6}.manual-quick a:last-child{border-bottom:0}.manual-quick strong,.manual-quick span{display:block}.manual-quick strong{color:var(--blue);font-size:11px}.manual-quick span{margin-top:2px;color:var(--muted);font-size:9px}.manual-checklist{display:grid;gap:10px;margin:0;padding:16px 20px 18px 38px;color:#47556b;font-size:10px;line-height:1.7}
.error-page { display: grid; place-items: center; min-height: 60vh; text-align: center; }
.error-page > strong { color: #ccd5e3; font-size: 100px; line-height: 1; }
.error-page h1 { margin: 8px 0 0; }.error-page p { margin: 4px 0 20px; color: var(--muted); }
.sidebar-backdrop { display: none; }

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .status-panel { grid-template-columns: 170px 1fr; }
    .topbar__title span { display: none; }
    .rubric-item { grid-template-columns: 32px minmax(220px, 1fr) 130px 90px 90px 32px; }
    .rubric-item__required { grid-column: 2; }
    .schedule-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }.schedule-filter .button{align-self:end}
    .schedule-main-layout { grid-template-columns:1fr; }
    .schedule-upcoming-sidebar { position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); }
    .schedule-upcoming-sidebar__heading { grid-column:1/-1; }
    .schedule-agenda-group+.schedule-agenda-group { border-top:0;border-left:1px solid var(--border); }
    .schedule-detail { grid-template-columns: 1fr; }
    .availability-manage { grid-template-columns: 1fr; }.availability-create{position:static}
    .manual-layout{grid-template-columns:1fr}
}

@media (max-width: 820px) {
    .app-shell { display: block; }
    .sidebar { transform: translateX(-105%); transition: transform .2s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(8, 19, 38, .5); }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .page { min-height: 100vh; }
    .menu-toggle { display: inline-grid; }
    .topbar { min-height: 62px; padding: 0 16px; }
    .topbar__title strong { font-size: 13px; }
    .topbar__user > span:last-child { display: none; }
    .content { padding: 22px 16px 34px; }
    .page-heading { align-items: center; }
    .guest-shell { grid-template-columns: 1fr; }
    .guest-brand { grid-template-rows: auto auto auto; gap: 18px; min-height: auto; padding: 24px 28px 28px; }
    .guest-brand__visual { width: 100%; border-radius: 16px; }
    .guest-brand__image { max-height: 260px; object-position: center 42%; }
    .guest-brand h1 { max-width: none; font-size: 30px; }
    .guest-brand__description { margin-top: 7px; font-size: 12px; }
    .guest-panel { min-height: auto; padding: 40px 28px 24px; }
    .rubric-item { grid-template-columns: 28px 1fr 1fr; align-items: end; }
    .rubric-item__label { grid-column: 2 / -1; }
    .rubric-item__type { grid-column: 2 / -1; grid-row: 2; }
    .rubric-item__max { grid-column: 2; grid-row: 3; }
    .rubric-item__weight { grid-column: 3; grid-row: 3; }
    .rubric-item__required { grid-column: 2; grid-row: 4; }
    .rubric-item__remove { grid-column: 3; grid-row: 4; justify-self: end; }
    .project-summary { grid-template-columns: 1fr 1fr; }
    .project-summary > div:nth-child(2) { border-right: 0; }
    .project-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .alert-panel { align-items: stretch; flex-direction: column; }
    .alert-panel form { flex-direction: column; }.alert-panel select { min-width: 0; }
    .score-row { grid-template-columns: 1fr; }
    .media-actions, .reflection-grid { grid-template-columns: 1fr; }
    .project-evidence__forms { grid-template-columns: 1fr; }
    .evaluator-document-upload { grid-template-columns: 1fr; }
    .evaluator-document-card__manage, .evaluator-document-card__manage > form { grid-template-columns: 1fr; }
    .evaluator-document-card__manage > div { align-items: stretch; }
    .video-link-row { grid-template-columns: 1fr 1fr 34px; }
    .evidence-upload-item { grid-template-columns: minmax(140px,1fr) minmax(100px,.55fr) 105px 62px; }
    .settings-grid { grid-template-columns: 1fr; }
    .schedule-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .schedule-toolbar { align-items: stretch; flex-direction: column; }.schedule-month-nav{justify-content:space-between}.schedule-view-switch{align-self:flex-end}
    .schedule-calendar { display: none !important; }.schedule-list{display:none!important}.schedule-mobile-agenda{display:grid;border-top:1px solid var(--border)}
    .schedule-mobile-agenda > a { display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid #edf1f6 }.schedule-mobile-agenda time{color:var(--blue);font-size:9px;font-weight:700}.schedule-mobile-agenda strong,.schedule-mobile-agenda span{display:block}.schedule-mobile-agenda strong{font-size:11px}.schedule-mobile-agenda div span{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
    .availability-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }.availability-grid{grid-template-columns:1fr}
    .manual-guide-grid{grid-template-columns:1fr}.manual-guide-grid section{border-right:0}.manual-guide-grid section:nth-last-child(2){border-bottom:1px solid #edf1f6}
}

@media (max-width: 560px) {
    .page-heading { align-items: stretch; flex-direction: column; }
    .page-heading .button { width: 100%; }
    .creation-evidence { margin: 0 16px 18px; }
    .creation-evidence__heading { align-items: stretch; flex-direction: column; }
    .creation-evidence__optional { align-self: flex-start; }
    .creation-evidence__body { padding: 15px; }
    .evaluator-document-row { grid-template-columns: 1fr 36px; }
    .evaluator-document-row .field { grid-column: 1 / -1; }
    .evaluator-document-row__remove { position: absolute; top: 10px; right: 10px; }
    .evaluator-document-card { grid-template-columns: 58px minmax(0,1fr); gap: 11px; padding: 13px; }
    .evaluator-document-card__icon { width: 58px; height: 58px; }
    .evaluator-document-card__title { align-items: flex-start; flex-direction: column; gap: 6px; }
    .evaluator-document-card__manage > div { flex-direction: column; }
    .evaluator-document-card__manage .button { width: 100%; }
    .video-link-builder__heading { align-items: stretch; flex-direction: column; }
    .video-link-builder__heading .button { width: 100%; }
    .video-link-row { grid-template-columns: 1fr 34px; }
    .video-link-row .field:first-child { grid-column: 1 / -1; }
    .evidence-upload-item { grid-template-columns: minmax(0,1fr) 64px; gap: 7px 10px; }
    .evidence-upload-item__progress { grid-column: 1 / -1; grid-row: 2; }
    .evidence-upload-item__status { grid-column: 1; grid-row: 3; }
    .evidence-upload-item__action { grid-column: 2; grid-row: 3; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { min-height: 112px; padding: 15px; }
    .stat > strong { font-size: 27px; }
    .stat__meta { font-size: 10px; }
    .progress-row { grid-template-columns: 1fr 42px; }
    .progress-track { grid-column: 1 / -1; grid-row: 2; }
    .status-panel { grid-template-columns: 1fr; }
    .legend { margin: 5px 22px 5px; }
    .topbar__user { display: none; }
    .guest-brand { gap: 14px; padding: 18px 16px 22px; }
    .guest-brand__identity .brand-mark--large { width: 46px; height: 46px; font-size: 13px; }
    .guest-brand__identity strong { font-size: 13px; }
    .guest-brand__identity span { max-width: 255px; font-size: 9px; }
    .guest-brand__image { max-height: 190px; }
    .guest-brand h1 { font-size: 25px; }
    .guest-brand__description { display: none; }
    .guest-panel { padding: 32px 20px 20px; }
    .guest-panel__footer { margin-top: 28px; }
    .login-demo__heading { align-items: start; }
    .login-demo__heading small { white-space: normal; text-align: right; }
    .login-demo__account { grid-template-columns: 34px minmax(0, 1fr); }
    .login-demo__account button { grid-column: 1 / -1; min-height: 40px; }
    .form-grid { grid-template-columns: 1fr; padding: 18px; }
    .field--full { grid-column: 1; }
    .filter-bar { grid-template-columns: 1fr; }
    .filter-bar .button { width: 100%; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .form-actions { padding: 14px 18px; }
    .project-heading .heading-actions { align-items: stretch; flex-direction: column; }
    .project-summary { grid-template-columns: 1fr; }
    .project-schedule__list > a { grid-template-columns: 1fr auto; }.project-schedule__list time{grid-column:1/-1}.project-schedule__list div{min-width:0}
    .project-summary > div { border-right: 0; border-bottom: 1px solid var(--border); }
    .project-summary > div:last-child { border-bottom: 0; }
    .result-overview, .video-grid { grid-template-columns: 1fr; }
    .file-list a { grid-template-columns: 64px minmax(0,1fr); }
    .file-list a small { grid-column: 2; }
    .bar-chart { padding-right: 14px; padding-left: 8px; }
    .result-overview > div { border-right: 0; border-bottom: 1px solid var(--border); }
    .reopen-panel, .reopen-panel form { align-items: stretch; flex-direction: column; }
    .notification-item { grid-template-columns: 10px 1fr; }.notification-item form { grid-column: 2; }
    .schedule-heading__actions { display:grid;width:100%; }.schedule-stat-grid{gap:8px}.schedule-stat-grid article{min-height:98px;padding:14px}.schedule-stat-grid strong{font-size:25px}.schedule-filter{grid-template-columns:1fr}.schedule-month-nav div{min-width:0}.schedule-month-nav h2{font-size:15px}.schedule-view-switch{width:100%}.schedule-view-switch a{flex:1}.schedule-mobile-agenda > a{grid-template-columns:78px minmax(0,1fr)}.schedule-mobile-agenda > a>.status{grid-column:2;justify-self:start}
    .schedule-upcoming-sidebar { grid-template-columns:1fr; }
    .schedule-upcoming-sidebar__heading { grid-column:1; }
    .schedule-agenda-group+.schedule-agenda-group { border-top:1px solid var(--border);border-left:0; }
    .schedule-evaluator-picker { align-items:stretch;flex-direction:column }.schedule-date-card{align-items:flex-start;padding:16px}.schedule-date-card>div{flex-basis:58px;height:58px}.schedule-date-card>div span{font-size:22px}.schedule-date-card h2{font-size:16px}.schedule-meta{grid-template-columns:1fr}.schedule-meta>div{border-right:0}.availability-filter{grid-template-columns:1fr}.availability-slot{grid-template-columns:54px minmax(0,1fr)}.availability-slot>a{grid-column:1/-1;width:100%}.availability-edit__summary{grid-template-columns:1fr auto}.availability-edit__summary>div{grid-row:2;grid-column:1/-1}.availability-edit details form{position:fixed;inset:80px 12px auto;width:auto;max-height:75vh;overflow-y:auto}.availability-edit__grid{grid-template-columns:1fr}
    .report-meta, .report-signatures { grid-template-columns: 1fr; }.report-meta__wide{grid-column:1}.report-round dl{grid-template-columns:1fr}.report-round dd{padding-top:0}
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.library-picker-panel > form { display:grid;gap:14px;padding:18px; }
.library-picker-search { position:relative;display:grid;gap:8px;padding:14px;border:1px solid #d7e2f0;border-radius:10px;background:#f8fbff; }
.library-picker-popover { position:absolute;z-index:30;top:calc(100% - 7px);right:14px;left:14px;overflow:hidden;border:1px solid #bfd0e4;border-radius:10px;background:#fff;box-shadow:0 18px 40px rgba(15,35,65,.2); }
.library-picker-search__summary { display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px; }
.library-picker-popover .library-picker-search__summary { padding:10px 12px;border-bottom:1px solid var(--border);background:#f8fbff; }
.library-picker-search__summary strong { color:var(--blue);font-size:10px;white-space:nowrap; }
.document-upload-item { grid-template-columns:minmax(150px,.75fr) minmax(220px,1fr) minmax(100px,.55fr) 115px 70px; }
.document-upload-item__title span { display:block;margin-bottom:4px;color:var(--muted);font-size:9px; }
.document-upload-item__title .form-control { min-height:38px;padding:7px 9px;font-size:10px; }
.library-picker-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:320px;overflow:auto; }
.library-picker-popover .library-picker-list { grid-template-columns:1fr;max-height:min(420px,55vh);padding:8px; }
.library-picker-list label { display:flex;gap:10px;align-items:center;padding:11px;border:1px solid var(--border);border-radius:9px;background:#fff;cursor:pointer; }
.library-picker-list label:has(input:checked) { border-color:var(--blue);background:#f0f6ff; }
.library-picker-list input { width:17px;height:17px;margin-top:2px; }
.library-picker-list strong,.library-picker-list small { display:block; }
.library-picker-list strong { font-size:10px; }
.library-picker-list small { margin-top:3px;color:var(--muted);font-size:8px; }
.library-picker-list__preview { display:grid!important;place-items:center;flex:0 0 52px;width:52px;height:52px;overflow:hidden;border-radius:8px;color:var(--blue);background:var(--blue-soft);font-size:9px;font-weight:800; }
.library-picker-list__preview img { width:100%;height:100%;object-fit:cover; }
.library-picker-list__content { min-width:0; }
.library-picker-list__description { display:-webkit-box!important;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.45; }
.library-picker-actions { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.library-picker-actions > span { color:var(--muted);font-size:10px; }
.library-picker-actions .button:disabled { cursor:not-allowed;opacity:.5; }
.project-document-hub { display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:center;gap:18px;margin-bottom:16px;padding:18px 20px; }
.project-document-hub__eyebrow { color:var(--blue);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase; }
.project-document-hub h2 { margin:3px 0 4px;font-size:16px; }
.project-document-hub p { margin:0;color:var(--muted);font-size:10px; }
.project-document-hub__list { display:grid;grid-column:1/-1;gap:8px;padding-top:14px;border-top:1px solid var(--border); }
.project-document-hub__item { display:grid;grid-template-columns:44px minmax(0,1fr) auto auto;align-items:center;gap:11px;min-width:0;padding:8px;border:1px solid var(--border);border-radius:11px;background:#f8fafc; }
.project-document-hub__preview { display:grid;place-items:center;width:44px;height:44px;overflow:hidden;border-radius:8px;color:var(--blue);background:#e8f1ff;font-size:9px;font-weight:800;text-decoration:none; }
.project-document-hub__preview img { width:100%;height:100%;object-fit:cover; }
.project-document-hub__content { display:grid;gap:2px;min-width:0; }
.project-document-hub__content strong { overflow:hidden;color:var(--text);font-size:11px;text-overflow:ellipsis;white-space:nowrap; }
.project-document-hub__content small { overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap; }
.project-document-hub__action,.project-document-hub__more { color:var(--blue);font-size:10px;font-weight:800;text-decoration:none; }
.project-document-hub__action { white-space:nowrap; }
.project-document-hub__more { justify-self:end;padding:4px 2px;border:0;background:transparent;cursor:pointer; }
.project-documents-dialog { position:fixed;width:min(1080px,calc(100vw - 32px));max-width:none;height:min(760px,calc(100vh - 32px));max-height:none;padding:0;border:0;border-radius:16px;background:#fff;box-shadow:0 30px 80px rgba(15,35,65,.35); }
.project-documents-dialog::backdrop { background:rgba(15,28,48,.58);backdrop-filter:blur(3px); }
.project-documents-dialog__shell { display:grid;grid-template-rows:auto auto minmax(0,1fr);height:100%;overflow:hidden; }
.project-documents-dialog__shell>header { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--border); }
.project-documents-dialog__shell>header span { color:var(--blue);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase; }
.project-documents-dialog__shell>header h2 { margin:2px 0 0;font-size:17px; }
.project-documents-dialog__shell>header button { display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;color:var(--muted);background:#eef2f7;font-size:22px;cursor:pointer; }
.project-documents-tabs { display:flex;gap:6px;padding:10px 20px;border-bottom:1px solid var(--border);background:#f8fafc; }
.project-documents-tabs button { display:flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid transparent;border-radius:8px;color:var(--muted);background:transparent;font-size:11px;font-weight:800;cursor:pointer; }
.project-documents-tabs button span { min-width:22px;padding:2px 6px;border-radius:99px;background:#e7edf5;font-size:8px;text-align:center; }
.project-documents-tabs button[aria-selected="true"] { border-color:#bfd3ef;color:var(--blue);background:#fff; }
.project-documents-dialog__body { min-height:0;overflow:auto;background:#f5f8fc; }
.project-documents-panel { min-height:100%;background:#fff; }
.project-documents-panel[hidden] { display:none; }
.project-documents-panel__heading { display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 20px;border-bottom:1px solid var(--border); }
.project-documents-panel__heading h3 { margin:0;font-size:14px; }
.project-documents-panel__heading p { margin:3px 0 0;color:var(--muted);font-size:10px; }
.project-documents-panel__empty { display:grid;place-items:center;gap:4px;min-height:150px;padding:24px;color:var(--muted);font-size:10px;text-align:center; }
.project-documents-panel__empty strong { color:var(--navy);font-size:13px; }
.project-documents-dialog .evaluator-document-list { padding-bottom:28px; }
.project-documents-dialog .library-picker-popover { z-index:40; }
.document-edit-dialog { position:fixed;width:min(560px,calc(100vw - 32px));max-width:none;padding:0;border:0;border-radius:14px;background:#fff;box-shadow:0 28px 70px rgba(15,35,65,.35); }
.document-edit-dialog::backdrop { background:rgba(15,28,48,.58);backdrop-filter:blur(3px); }
.document-edit-dialog form { padding:0; }
.document-edit-dialog header { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid var(--border); }
.document-edit-dialog header span { color:var(--blue);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase; }
.document-edit-dialog header h2 { margin:2px 0 0;font-size:16px; }
.document-edit-dialog header button { display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:8px;color:var(--muted);background:#eef2f7;font-size:21px;cursor:pointer; }
.document-edit-dialog__body { display:grid;gap:14px;padding:18px; }
.document-edit-dialog__body textarea { min-height:105px; }
.document-edit-dialog__body small { color:var(--muted);font-size:9px; }
.document-edit-dialog footer { display:flex;justify-content:flex-end;gap:8px;padding:13px 18px;border-top:1px solid var(--border);background:#f8fafc; }
@media (max-width:1100px) {
    .document-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .document-list-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .document-upload-item { grid-template-columns:minmax(140px,.7fr) minmax(190px,1fr) minmax(90px,.5fr) 100px 64px; }
}
@media (max-width:900px) {
    .project-document-hub { grid-template-columns:minmax(0,1fr) auto; }
    .document-library-layout { grid-template-columns:1fr; }
    .document-folder-sidebar { position:static; }
    .document-folder-sidebar__heading { padding:12px 14px; }
    .document-folder-list { display:flex;gap:6px;overflow-x:auto;padding:8px; }
    .document-folder-list>a,.document-folder-list>a.is-child { flex:0 0 auto;grid-template-columns:18px auto auto;min-height:36px;padding:7px 10px; }
    .document-folder-sidebar__empty { padding:8px 14px 14px; }
}
@media (max-width:700px) {
    .document-edit-dialog { width:calc(100vw - 16px); }
    .document-edit-dialog header,.document-edit-dialog__body,.document-edit-dialog footer { padding-right:14px;padding-left:14px; }
    .project-document-hub { grid-template-columns:1fr;padding:15px; }
    .project-document-hub>.button { width:100%; }
    .project-document-hub__item { grid-template-columns:40px minmax(0,1fr) auto;gap:9px; }
    .project-document-hub__preview { width:40px;height:40px; }
    .project-document-hub__action { grid-column:2/-1;justify-self:start; }
    .project-document-hub__content strong,.project-document-hub__content small { white-space:normal;overflow-wrap:anywhere; }
    .project-documents-dialog { width:calc(100vw - 16px);height:calc(100vh - 16px);border-radius:12px; }
    .project-documents-dialog__shell>header,.project-documents-panel__heading { padding:13px 14px; }
    .project-documents-tabs { overflow-x:auto;padding:8px 12px; }
    .project-documents-tabs button { flex:0 0 auto; }
    .document-grid,.library-picker-list { grid-template-columns:1fr; }
    .library-picker-search__summary,.library-picker-actions { align-items:stretch;flex-direction:column; }
    .library-picker-actions .button { width:100%; }
    .document-upload-panel form { padding:14px; }
    .document-dropzone { padding:18px 12px; }
    .document-upload-item { grid-template-columns:minmax(0,1fr) 62px; }
    .document-upload-item__file,.document-upload-item__title { grid-column:1/-1; }
    .document-upload-item__bar { grid-column:1/-1; }
    .document-upload-item em { grid-column:1; }
    .document-list-filters { grid-template-columns:1fr; }
    .document-create-page .form-actions { align-items:flex-start;margin:16px -14px -14px;padding-right:0;padding-bottom:64px; }
    .document-cancel-form { right:14px;bottom:14px;left:14px; }
    .document-cancel-form .button { width:100%; }
    .document-card__preview { height:130px; }
}
