* { box-sizing: border-box }
:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #16233a; background: #f3f5f8; line-height: 1.5; --muted: #526179; --line: #dde4ee; --navy: #111e36; --teal: #007b79 }
body { margin: 0 }
[hidden] { display: none !important }
h1,h2,h3,p { margin: 0 }
h1,h2,h3 { letter-spacing: -.025em; line-height: 1.16 }
a { color: #006966 }
button,input,select,textarea { font: inherit }
button,.button { padding: .62rem .9rem; border: 1px solid var(--line); border-radius: .65rem; background: #fff; color: var(--navy); font-size: .9rem; font-weight: 650; cursor: pointer; display: inline-flex; align-items:center; justify-content:center; text-decoration:none }
button:hover,.button:hover { background:#edf2f7 }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,canvas:focus-visible,.button:focus-within { outline: 3px solid #289e9b; outline-offset: 3px }
button:disabled,select:disabled { opacity: .55; cursor: not-allowed }
.primary { color:#fff; background:var(--teal); border-color:var(--teal) }
.primary:not(:disabled):hover { background:#006362 }
.ghost { border-color:transparent; background:transparent }
label { display: grid; gap: .38rem; font-size: .9rem; font-weight: 630 }
input:not([type=radio]),select,textarea { width:100%; min-width:0; border: 1px solid #ccd6e2; border-radius: .62rem; padding: .68rem .78rem; color:#16233a; background:#fff }
select { appearance:none; padding-right:2rem; background-image: linear-gradient(45deg, transparent 50%, #526179 50%), linear-gradient(135deg,#526179 50%,transparent 50%); background-position:calc(100% - 1.1rem) 50%,calc(100% - .84rem) 50%;background-size: .26rem .26rem; background-repeat:no-repeat }
textarea { min-height: 5rem; resize:vertical }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.error { color:#a61c50; font-size:.9rem; min-height:1.35rem }
.login-layout { display:grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); min-height:100svh; background:#fff }
.login-brand { display:flex; flex-direction:column; justify-content:space-between; gap:3rem; padding: clamp(2rem,7vw,7.5rem); color:#fff; background:radial-gradient(ellipse at 3% 95%, #0c555e 0%, transparent 62%), linear-gradient(135deg,#101d32,#111b31 68%,#1a2544) }
.login-brand img,.topbar img { max-width:100%; height:auto; display:block }
.brand-overline { color:#96dcdb; font-size:.92rem; font-weight:700; margin-bottom:1rem }
.login-brand img { mix-blend-mode: screen }
.login-brand h1 { font-size:clamp(2rem,5vw,5.6rem); max-width:11ch }
.login-content { display:grid; place-items:center; padding:2.5rem 1.5rem }
.login-form { display:grid; gap:1.2rem; width:min(100%,25rem) }
.login-form h2 { font-size:2rem; margin-bottom:.2rem }
.areas { display:flex; border:0; border-radius:.75rem; background:#edf1f7; padding:.25rem; margin:0 }
.areas label { flex:1; position:relative; display:block; text-align:center; cursor:pointer; padding:.6rem; border-radius:.55rem; white-space:nowrap }
.areas label:has(:checked) { background:#fff; box-shadow:0 1px 5px #14244118 }
.areas label:has(:focus-visible) { outline: 3px solid #289e9b }
.areas input { appearance:none; position:absolute; inset:0; margin:0; cursor:pointer }
.topbar { min-height:5rem; display:flex; align-items:center; gap:clamp(1rem,4vw,4rem); padding:.7rem clamp(1rem,4vw,4rem); border-bottom:1px solid var(--line); background:white }
.topbar nav,.account,.button-row { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem }
.topbar nav button { border-color:transparent; color:var(--muted) }
.topbar nav [aria-current=page] { background:#e7f4f3; color:#005c5b }
.account { margin-left:auto; font-size:.9rem }
#account-name { font-weight:650; padding-right:.3rem }
.content { max-width: 90rem; margin: 0 auto; padding:clamp(1rem,4vw,3rem) }
.page-title { margin-bottom:1.45rem }
.page-title h1 { font-size:clamp(1.85rem,4vw,2.65rem) }
.page-title p,.panel p { color:var(--muted); margin-top:.4rem }
.remote-layout { display:grid; grid-template-columns:minmax(16rem,20rem) minmax(0,1fr); gap:1.2rem; align-items:start }
.panel { background:#fff; border:1px solid var(--line); border-radius:1rem; box-shadow:0 8px 26px #162b4507 }
.selection { display:grid; gap:1rem; padding:1.25rem }
.panel h2 { font-size:1.22rem }
.documents { border-top: 1px solid var(--line); padding-top:1rem; margin-top:.25rem }
.documents h3 { font-size:1rem }
.documents p { font-size:.9rem; margin-bottom:.5rem }
.viewer { overflow:hidden }
.viewer header,.viewer footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.75rem; padding:1rem 1.25rem }
.viewer footer { justify-content:flex-start }
.viewer footer form { display:flex; gap:.5rem; flex:1; min-width:min(100%,13rem) }
.viewer header p { font-size:.9rem }
.screen { min-height:clamp(20rem,56vh,43rem); background:radial-gradient(ellipse at 50% 25%,#263852,#111b2d 75%); display:grid; place-items:center; padding:1rem }
.screen p { color:#d5e0ee; text-align:center; margin-top:1rem }
.screen-icon { display:block; margin:auto; width:2.3rem; height:3.6rem; border:2px solid #86a4bd; border-radius:.45rem; position:relative }
.screen-icon:after { content:''; position:absolute; width:.65rem; height:2px; left:50%; bottom:.35rem; transform:translateX(-50%); background:#86a4bd }
canvas { display:block; max-width:100%; max-height:65vh; width:auto; height:auto; touch-action:none }
#notice { margin-bottom:1rem; border:1px solid #9ed5d0; background:#eaf8f6; padding:.75rem 1rem; border-radius:.7rem }
#notice[data-error] { border-color:#eaa5b9; background:#fff0f5; color:#901746 }
.admin-panel { padding:1.15rem }
.tabs,.list-tools { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1rem }
.tabs [aria-pressed=true] { color:#005c5b; border-color:#a6d7d4; background:#e7f4f3 }
.list-tools { justify-content:space-between }
.list-tools input { max-width:20rem }
.table-wrap { overflow:auto }
table { width:100%; border-collapse:collapse; text-align:left }
td,th { padding:.74rem; border-bottom:1px solid var(--line) }
th { color:var(--muted); font-weight:650; font-size:.87rem }
td:last-child { white-space:nowrap }
td button { margin-right:.25rem }
dialog { border:1px solid var(--line); border-radius:1rem; width:min(40rem,calc(100% - 2rem)); max-height:calc(100% - 2rem); overflow:auto; color:var(--navy); padding:1.25rem }
dialog::backdrop { background:#101a2cb0 }
dialog header,dialog footer { display:flex; justify-content:space-between; align-items:center; gap:1rem }
#dialog-content { display:grid; gap:.8rem; margin:1rem 0 }
#dialog-actions { justify-content:flex-end }
@media (max-width: 820px) { .topbar { flex-wrap:wrap; gap:.5rem 1rem } .topbar img { width:140px } .remote-layout {grid-template-columns:1fr} }
@media (max-width: 620px) { .login-layout {grid-template-columns:1fr} .login-brand {padding:2rem;gap:1.25rem} .login-brand h1 {max-width:20ch} .login-brand img {width:190px} .account {margin-left:0} .topbar nav {order:3; width:100%} td,th {padding:.5rem} }
