/* Design philosophy: 嚴謹、可讀、可稽核的教務控制台；白色行政基底、藍青色表示已確認系統狀態。 */
:root { color: #153459; background: #eaf1f8; font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(18, 120, 232, .38); outline-offset: 2px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top right, #d2edff 0, transparent 34%), #edf4fa; }
.auth-panel { width: min(460px, 100%); padding: 34px; border: 1px solid #d7e2ef; border-top: 4px solid #1478e8; background: #fff; box-shadow: 0 20px 55px rgba(23, 61, 104, .12); }
.auth-panel h1, .topbar h1, h2 { margin: 4px 0 0; letter-spacing: -.035em; }
.auth-panel h1, .topbar h1 { font-size: clamp(24px, 3vw, 34px); }
.lead, .muted { color: #687d97; line-height: 1.7; font-size: 14px; }
.eyebrow { margin: 0; color: #1478e8; font: 800 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.form-stack { display: grid; gap: 14px; margin-top: 22px; }
.form-stack label, .form-stack fieldset { display: grid; gap: 6px; color: #244360; font-size: 13px; font-weight: 700; }
.form-stack fieldset { margin: 0; padding: 12px; border: 1px solid #d7e2ef; }
input, textarea, select { width: 100%; padding: 10px 11px; color: #153459; border: 1px solid #cbd9e7; background: #f8fbfe; border-radius: 6px; }
textarea { resize: vertical; }
.primary { min-height: 44px; border: 0; color: #fff; background: #1478e8; border-radius: 7px; font-weight: 800; box-shadow: 0 9px 16px rgba(20, 120, 232, .2); }
.primary:hover { background: #0969ce; }.primary:active { transform: scale(.98); }
.quiet { border: 1px solid #cbd9e7; padding: 8px 10px; color: #21425f; background: #fff; border-radius: 7px; font-weight: 700; }
.notice { min-height: 20px; margin: 0; color: #687d97; font-size: 12px; }.notice[data-kind="success"] { color: #078b71; }.notice[data-kind="warning"] { color: #a86000; }.notice[data-kind="error"] { color: #bd2b35; }
.console-shell { min-height: 100vh; background: linear-gradient(135deg, #f8fbfe, #e7f0f8); }
.topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(20px, 4vw, 58px); border-bottom: 1px solid #d7e2ef; background: rgba(255,255,255,.92); }
.userbar { display: flex; align-items: center; justify-content: end; gap: 8px; color: #4e6987; font-size: 13px; font-weight: 700; }
.status-strip { display: flex; align-items: center; gap: 9px; max-width: 1800px; margin: 14px auto 0; padding: 0 clamp(20px, 4vw, 28px); color: #607891; font-size: 12px; }.status-strip p { margin: 0; }.status-strip span { width: 8px; height: 8px; border-radius: 50%; background: #f0a322; box-shadow: 0 0 0 4px rgba(240,163,34,.14); }
.layout { max-width: 1800px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 340px); gap: 20px; margin: 0 auto; padding: 18px clamp(20px, 4vw, 28px) 64px; }
.main-deck, .action-panel, .audit-panel, .library-panel { min-width: 0; }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 8px 0 14px; }.section-heading h2, .action-panel h2 { font-size: 22px; }.section-heading small { color: #788da5; font-size: 11px; }
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.room-card { min-height: 172px; padding: 16px; overflow: hidden; border: 1px solid #d7e2ef; border-left: 4px solid #8ea5bc; background: #fff; }.room-card.online { border-left-color: #09ad8c; }.room-card header { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #e7edf4; }.room-card strong { font-size: 28px; letter-spacing: -.06em; }.room-card header span { color: #078b71; font-size: 12px; font-weight: 800; }.room-card.offline header span { color: #788da5; }.course { min-height: 42px; margin: 12px 0; color: #244360; font-size: 13px; font-weight: 700; }.room-card dl { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin: 0; }.room-card dt { color: #788da5; font-size: 10px; }.room-card dd { margin: 2px 0 0; color: #244360; font-size: 12px; font-weight: 800; }
.action-panel, .audit-panel, .library-panel { padding: 18px; border: 1px solid #d7e2ef; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(32, 67, 107, .05); }.action-panel { border-top: 4px solid #1478e8; }.target-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.target-grid label { display: block; padding: 10px; border: 1px solid #d7e2ef; background: #f8fbfe; text-align: center; }.target-grid input { width: auto; margin: 0 5px 0 0; }.action-panel hr { border: 0; border-top: 1px solid #e4ebf2; margin: 22px 0; }
.library-panel { margin-top: 18px; border-top: 4px solid #09ad8c; }.library-list { display: grid; max-height: 360px; overflow: auto; border-top: 1px solid #e7edf4; }.library-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #e7edf4; }.library-item strong { color: #244360; font-size: 13px; }.library-item p { margin: 4px 0 0; color: #788da5; font-size: 11px; }.library-item span { flex: 0 0 auto; color: #687d97; font-size: 11px; font-weight: 700; }.empty-state { margin: 0; padding: 16px 0; color: #788da5; font-size: 13px; }
.audit-panel { margin-top: 18px; }.audit-list { display: grid; gap: 7px; }.audit-list article { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #e7edf4; font-size: 12px; }.audit-list article span, .audit-list article small { color: #687d97; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; }.action-panel { order: -1; }.room-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .topbar { align-items: flex-start; flex-direction: column; }.userbar { width: 100%; justify-content: flex-start; flex-wrap: wrap; }.room-grid { grid-template-columns: 1fr; }.section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }.audit-list article { grid-template-columns: 1fr; gap: 3px; }.auth-panel { padding: 26px 22px; }.library-item { align-items: flex-start; flex-direction: column; gap: 5px; } }
