:root{color-scheme:light;--bg: #f3f5f7;--surface: #ffffff;--text: #1a2330;--muted: #445468;--border: #c7d0db;--focus: #0b5cab;--danger: #8a1f1f;--sidebar: #1a2330;--sidebar-text: #e8eef4;--sidebar-muted: #b7c3d0;font-family:Segoe UI,Helvetica Neue,Arial,sans-serif;line-height:1.5;font-weight:400;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh}#root{min-height:100vh}h1{margin:0 0 1rem;font-size:clamp(1.5rem,3vw,2rem);font-weight:700;line-height:1.2}h2{margin:0 0 .5rem;font-size:1.125rem}p{margin:0 0 .75rem;color:var(--muted);font-size:1.0625rem}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}button{font:inherit;cursor:pointer}.brand-kicker{margin:0 0 .35rem;font-size:.8125rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.login-page{min-height:100vh;display:grid;place-items:center;padding:1.5rem}.login-card{width:min(100%,26rem);background:var(--surface);border:1px solid var(--border);padding:2rem 1.5rem}.login-lead{margin-bottom:1.25rem}.field{margin-bottom:1rem}.field label{display:block;margin-bottom:.35rem;font-weight:600}.field input,.field select{width:100%;font:inherit;padding:.6rem .7rem;border:1px solid var(--border);background:var(--surface);color:var(--text)}.form-error{color:var(--danger);font-size:.95rem}.login-card button[type=submit],.status-panel button,.logout-button,.menu-toggle,.queue-toolbar button,.queue-pagination button{background:var(--focus);color:#fff;border:0;padding:.65rem 1rem}.login-card button[type=submit]{width:100%;margin-top:.5rem}.login-card button[type=submit]:disabled{opacity:.7;cursor:not-allowed}.status-panel{max-width:36rem;margin:3rem auto;padding:1.5rem}.admin-shell{min-height:100vh;display:grid;grid-template-columns:16.5rem 1fr}.admin-sidebar{background:var(--sidebar);color:var(--sidebar-text);padding:1.25rem 1rem}.admin-sidebar .brand-kicker,.admin-sidebar .sidebar-title,.admin-sidebar p{color:var(--sidebar-muted)}.sidebar-title{margin:0 0 1.25rem;font-weight:700;color:var(--sidebar-text)}.admin-sidebar nav{display:flex;flex-direction:column;gap:.25rem}.nav-link{color:var(--sidebar-text);text-decoration:none;padding:.5rem .6rem;border-left:3px solid transparent}.nav-link.is-active,.nav-link[aria-current=page]{border-left-color:#7eb6e6;background:#ffffff0f}.admin-body{display:flex;flex-direction:column;min-width:0}.admin-header{display:flex;align-items:center;gap:1rem;padding:.85rem 1.25rem;background:var(--surface);border-bottom:1px solid var(--border)}.session-meta{flex:1;min-width:0}.session-org,.session-profile{margin:0;font-size:.95rem}.session-org{color:var(--text);font-weight:600}.menu-toggle,.nav-backdrop{display:none}.logout-button{background:transparent;color:var(--focus);border:1px solid var(--focus)}.admin-content{padding:1.5rem}.home-cards{list-style:none;margin:1.25rem 0 0;padding:0;display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}.home-card{display:block;background:var(--surface);border:1px solid var(--border);padding:1.1rem;text-decoration:none;color:inherit;min-height:8rem}.home-card p{margin:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.queue-toolbar{display:flex;flex-wrap:wrap;gap:.75rem 1rem;align-items:flex-end;margin:1.25rem 0}.queue-toolbar .field{margin:0;min-width:11rem;flex:1 1 11rem}.queue-toolbar-actions{display:flex;gap:.5rem}.queue-summary{margin-bottom:.75rem}.queue-table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--border)}.queue-table{width:100%;border-collapse:collapse}.queue-table th,.queue-table td{text-align:left;padding:.65rem .75rem;border-bottom:1px solid var(--border);vertical-align:top}.queue-table tbody tr:last-child td{border-bottom:0}.queue-cards{display:none;list-style:none;margin:0;padding:0;gap:.75rem}.queue-card{background:var(--surface);border:1px solid var(--border);padding:1rem}.queue-card p{margin:0 0 .4rem}.queue-card-protocol{font-weight:700}.queue-card-label{display:inline-block;min-width:6.5rem;color:var(--muted);font-weight:600}.queue-badges{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.35rem}.queue-badge{display:inline-block;padding:.15rem .45rem;border:1px solid var(--border);font-size:.8125rem}.queue-indicators-empty{color:var(--muted);font-size:.9rem}.queue-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:1rem}.queue-pagination p{margin:0}.queue-pagination button:disabled,.queue-toolbar button:disabled{opacity:.55;cursor:not-allowed}.detail-breadcrumb ol{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;margin:0 0 1rem;padding:0;color:var(--muted)}.detail-breadcrumb li:not(:last-child):after{content:"→";margin-left:.35rem}.detail-header h1{margin-bottom:.4rem}.detail-kicker{margin:0 0 .25rem;color:var(--muted);font-size:.85rem}.detail-summary{display:flex;flex-wrap:wrap;gap:.4rem 1rem;margin:0 0 .75rem}.detail-card{background:var(--surface);border:1px solid var(--border);padding:1rem 1.1rem;margin:0 0 .85rem}.detail-card h2{margin:0 0 .65rem;font-size:1.05rem}.detail-narrative{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.detail-fields{display:grid;gap:.65rem;margin:0}.detail-fields dt{color:var(--muted);font-size:.85rem}.detail-fields dd{margin:.1rem 0 0}.detail-attachments,.detail-workflow,.detail-timeline{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}.detail-note{color:var(--muted);font-size:.9rem}@media(max-width:48rem){.admin-shell{grid-template-columns:1fr}.menu-toggle{display:inline-flex}.admin-sidebar{position:fixed;inset:0 auto 0 0;width:min(18rem,86vw);z-index:20;transform:translate(-105%)}.admin-shell.is-nav-open .admin-sidebar{transform:translate(0)}.nav-backdrop{display:block;position:fixed;inset:0;border:0;padding:0;background:#1a233073;z-index:10}.admin-header{padding:.75rem 1rem}.admin-content{padding:1rem}.queue-table-wrap{display:none}.queue-cards{display:grid}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
