/* BlueQuill 2026 workspace. Local assets only; no fonts or runtime CDN calls. */
:root {
  --bg:#f2f5f9; --nav:#0b2032; --panel:#fff; --panel-2:#f7f9fc; --panel-3:#eaf0f7;
  --line:#cbd5e1; --line-2:#dce3eb; --line-3:#e9eef4;
  --text:#172b40; --muted:#526579; --dim:#66778a;
  --accent:#0964ca; --accent-ink:#fff; --accent-wash:#eaf3ff; --accent-edge:#88b7ec;
  --ok:#187653; --warn:#9b5709; --danger:#b63739;
  --r:12px; --r-lg:18px; --r-xl:22px;
  --workspace-shadow:0 4px 20px #15355706; --rail-width:224px;
  color-scheme:light;
}
:root[data-theme="night"] {
  --bg:#0b1520; --nav:#09121c; --panel:#122232; --panel-2:#162a3d; --panel-3:#1c344a;
  --line:#345169; --line-2:#263e53; --line-3:#213449;
  --text:#edf4fc; --muted:#b0c2d4; --dim:#96abc0;
  --accent:#72b7ff; --accent-ink:#071d32; --accent-wash:#183b5c; --accent-edge:#326c9e;
  --ok:#66d1a3; --warn:#ffc275; --danger:#ff9395; --workspace-shadow:0 8px 30px #00000012;
  color-scheme:dark;
}
body { display:block; min-height:100vh; height:auto; font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing:-.015em; }
button,input,select,textarea { font:inherit; }
a { text-underline-offset:3px; }
button,a,input,select,textarea,summary { touch-action:manipulation; }
:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.skip-link { position:fixed; left:calc(240px + var(--safe-left)); top:-80px; z-index:1000; background:var(--panel); padding:12px; }
.skip-link:focus { top:calc(12px + var(--safe-top)); }
#topbar { position:fixed; inset:0 auto 0 0; width:calc(var(--rail-width) + var(--safe-left)); z-index:20; display:flex; flex-direction:column; flex-wrap:nowrap; align-items:stretch; padding:calc(34px + var(--safe-top)) 18px calc(20px + var(--safe-bottom)) calc(18px + var(--safe-left)); gap:0; background:var(--nav); border:0; color:#dce9f5; }
.brand { display:flex; align-items:center; gap:11px; color:#fff; text-decoration:none; font-size:22px; letter-spacing:-.055em; font-weight:650; padding:0 8px; }
.brand small { display:block; margin-top:0; font-size:9px; font-weight:600; letter-spacing:.18em; color:#89a6bf; }
.brand-mark { font-size:35px; line-height:40px; font-weight:800; letter-spacing:-.15em; color:#74baff; padding-right:4px; }
.brand-mark span { color:#d7ebff; }
.rail-context { display:flex; align-items:center; gap:8px; margin:35px 10px 23px; font-size:12px; color:#9db6cb; letter-spacing:0; }
.rail-dot { width:5px; height:5px; border-radius:50%; background:#82b7e1; }
.mainnav { display:flex; flex-direction:column; gap:7px; align-items:stretch; flex-wrap:nowrap; }
.mainnav a { display:flex; gap:13px; width:100%; min-height:49px; padding:11px 15px; border:0; border-radius:10px; color:#a7bfd3; font-size:15px; font-weight:500; text-transform:none; letter-spacing:-.01em; }
.mainnav a:hover { background:#142e43; color:#fff; }
.mainnav a.on { color:#fff; background:#173851; border:0; box-shadow:inset 2px 0 #83c3ff; }
.nav-active-dot { height:5px; width:5px; border-radius:50%; background:#95d0ff; margin-left:auto; }
.nav-section { color:#8da8be; font-size:10px; letter-spacing:.12em; margin:28px 14px 6px; }
.rail-bottom { margin-top:auto; padding:30px 10px 0; }
.rail-caption { font-size:12px; color:#8ca7bd; padding-bottom:25px; }
.whoami { display:flex; align-items:center; gap:10px; color:#dce9f5; white-space:normal; padding-top:20px; border-top:1px solid #244056; }
.whoami b { color:#edf6ff; font-size:12px; font-weight:600; display:block; }
.whoami small { color:#91acc3; font-size:11px; display:block; text-transform:capitalize; }
.account-avatar { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; background:#213e54; border-radius:10px; color:#cfe7fa; font-size:11px; font-weight:600; }
#logout { margin-top:16px; min-height:32px; font-size:12px; color:#aac2d5; border-color:#294357; background:transparent; }
.workspacebar { display:flex; gap:18px; align-items:center; margin-left:var(--rail-width); min-height:calc(78px + var(--safe-top)); padding:calc(18px + var(--safe-top)) 42px 18px; background:var(--panel); border-bottom:1px solid var(--line-2); }
.workspacebar-title { font-size:13px; color:var(--muted); margin-right:auto; }
.proto { padding:4px 8px; font-size:10px; border:1px solid var(--line); color:var(--muted); letter-spacing:.065em; white-space:normal; line-height:1.4; border-radius:4px; }
.appearance-button { display:grid; place-items:center; flex-shrink:0; width:38px; height:38px; border:1px solid var(--line-2); border-radius:50%; background:var(--panel); color:var(--text); cursor:pointer; font-size:23px; }
.subbar { margin-left:var(--rail-width); padding:9px 42px; display:flex; gap:12px; flex-wrap:wrap; background:transparent; border:0; }
.tag { font-size:11px; color:var(--muted); letter-spacing:0; text-transform:capitalize; }
#enginetag { font-size:11px; }
.freshnessbar { margin-left:var(--rail-width); padding:0 42px; }
.asof,.asof.lost,.asof.aging { display:inline-block; border:0; background:transparent; padding:0; color:var(--muted); font:11px/1.5 inherit; font-size:11px; max-width:100%; white-space:normal; }
.asof.lost { color:var(--danger); }
#banners { margin-left:var(--rail-width); }
#banners:empty { display:none; }
#stage { margin-left:var(--rail-width); min-width:0; }
.page { max-width:1540px; margin:0 auto; padding:30px 42px 60px; }
.page-h1 { font-size:32px; font-weight:650; line-height:1.2; letter-spacing:-.045em; text-transform:none; }
.page-lede { font-size:16px; color:var(--muted); max-width:70ch; }
.ui-icon { width:20px; height:20px; flex-shrink:0; vertical-align:middle; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:43px; padding:10px 16px; border:1px solid var(--line); border-radius:9px; font-size:14px; font-weight:600; line-height:1.3; letter-spacing:-.01em; text-transform:none; background:var(--panel); color:var(--text); cursor:pointer; text-decoration:none; }
.btn:hover { border-color:var(--accent-edge); background:var(--panel-2); }
.btn.primary,.btn.hero-btn { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); box-shadow:0 3px 8px #0964ca13; }
.btn.primary:hover { filter:brightness(1.08); }
.btn.ghost { background:transparent; border-color:transparent; color:var(--muted); }
.btn.sm { min-height:35px; padding:7px 12px; font-size:13px; }
.btn:disabled { opacity:.5; cursor:default; }
.btn .ui-icon { width:17px; height:17px; }
input:not([type="checkbox"]):not([type="radio"]),textarea,select { width:100%; background:var(--panel); color:var(--text); border:1px solid var(--line); padding:12px 14px; border-radius:9px; font-size:16px; min-width:0; }
textarea { line-height:1.75; resize:vertical; }
label { color:var(--text); }
.panel,.card { background:var(--panel); border-color:var(--line-2); box-shadow:var(--workspace-shadow); }
.section-h { text-transform:none; font-size:15px; letter-spacing:0; color:var(--text); }
.section-note,.meta,.hint { font-size:14px; color:var(--muted); }
.w-page { max-width:1460px; margin:0 auto; padding:32px 42px 60px; }
.eyebrow { display:block; color:var(--muted); font-size:10px; font-weight:650; line-height:1.5; letter-spacing:.15em; text-transform:uppercase; }
.w-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:22px; flex-wrap:wrap; margin-bottom:34px; }
.w-heading h1 { font-size:clamp(30px,3.3vw,46px); font-weight:600; line-height:1.1; letter-spacing:-.06em; margin:9px 0 10px; }
.w-heading p { margin:0; font-size:15px; color:var(--muted); }
.w-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.w-section-title { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:25px 0 14px; }
.w-section-title h2 { margin:0; font-size:17px; font-weight:600; letter-spacing:-.025em; }
.w-section-title a { font-size:13px; text-decoration:none; font-weight:550; }
.w-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr); gap:26px; align-items:start; }
.w-stack { display:grid; gap:18px; }
.w-focus { position:relative; border-radius:20px; overflow:hidden; background:var(--panel); border:1px solid var(--line-2); border-top:3px solid var(--accent); box-shadow:var(--workspace-shadow); }
.w-focus-body { padding:28px; }
.w-focus h2 { margin:18px 0 10px; font-size:30px; font-weight:600; line-height:1.17; letter-spacing:-.045em; }
.w-focus p { color:var(--muted); font-size:15px; line-height:1.7; max-width:65ch; margin:12px 0 24px; }
.w-focus-footer { display:flex; gap:18px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:18px 28px; border-top:1px solid var(--line-3); background:var(--panel-2); }
.w-source { display:flex; gap:8px; flex-wrap:wrap; align-items:center; font-size:12px; color:var(--muted); }
.w-source strong { font-weight:600; }
.w-pill { display:inline-flex; align-items:center; gap:5px; border-radius:5px; padding:4px 7px; background:var(--accent-wash); color:var(--accent); font-size:11px; font-weight:650; letter-spacing:.01em; }
.w-pill.warn { background:color-mix(in srgb,var(--warn) 10%,var(--panel)); color:var(--warn); }
.w-pill.good { background:color-mix(in srgb,var(--ok) 10%,var(--panel)); color:var(--ok); }
.w-pill.neutral { background:var(--panel-3); color:var(--muted); }
.w-small { font-size:13px; color:var(--muted); }
.w-icon-block { display:grid; place-items:center; width:44px; height:44px; background:var(--accent-wash); color:var(--accent); border-radius:12px; flex-shrink:0; }
.w-icon-block .ui-icon { width:23px; height:23px; }
.w-row { display:flex; align-items:center; gap:15px; padding:20px 0; border-bottom:1px solid var(--line-2); color:var(--text); text-decoration:none; min-width:0; }
.w-row:last-child { border-bottom:0; }
.w-row:hover .w-row-title { color:var(--accent); }
.w-row-content { flex:1; min-width:0; }
.w-row-title { display:block; font-size:15px; font-weight:600; margin-bottom:4px; overflow-wrap:anywhere; }
.w-row-meta { color:var(--muted); font-size:12px; line-height:1.65; }
.w-row-end { display:flex; gap:12px; align-items:center; color:var(--muted); font-size:12px; }
.w-panel { background:var(--panel); border:1px solid var(--line-2); border-radius:17px; padding:22px; box-shadow:var(--workspace-shadow); }
.w-panel h2,.w-panel h3 { margin:0 0 14px; font-size:17px; font-weight:600; letter-spacing:-.02em; }
.w-panel p { color:var(--muted); font-size:14px; }
.w-panel .w-row { padding:15px 0; }
.w-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin-bottom:30px; padding-bottom:26px; border-bottom:1px solid var(--line-2); }
.w-metric { padding:0 24px; border-right:1px solid var(--line-2); }
.w-metric:first-child { padding-left:0; }.w-metric:last-child { border:0; }
.w-metric span { font-size:12px; color:var(--muted); }.w-metric strong { display:block; font-size:28px; font-weight:500; letter-spacing:-.055em; line-height:1.5; }
.w-empty { color:var(--muted); padding:25px 0; font-size:14px; }.w-empty strong { display:block; color:var(--text); font-size:16px; margin-bottom:7px; font-weight:600; }
.w-inline-status { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
.w-error { color:var(--danger); background:color-mix(in srgb,var(--danger) 7%,var(--panel)); padding:13px 16px; border-radius:8px; font-size:14px; margin:12px 0; }
.w-tabs { display:flex; gap:4px; flex-wrap:wrap; border-bottom:1px solid var(--line-2); margin-bottom:24px; }
.w-tabs button { border:0; border-bottom:2px solid transparent; background:transparent; padding:13px 18px; font-size:14px; color:var(--muted); cursor:pointer; min-height:46px; }
.w-tabs button[aria-selected="true"] { color:var(--accent); border-bottom-color:var(--accent); font-weight:650; }
.w-back { display:inline-flex; gap:7px; align-items:center; color:var(--muted); font-size:13px; text-decoration:none; margin-bottom:22px; }
.w-detail-heading { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.w-detail-heading h1 { margin:8px 0; }
.w-brief { font-size:17px; line-height:1.75; margin:20px 0; max-width:75ch; white-space:pre-wrap; overflow-wrap:anywhere; }
.w-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:26px 0 0; padding-top:23px; border-top:1px solid var(--line-2); }
.w-facts dt { color:var(--muted); font-size:12px; margin-bottom:5px; }.w-facts dd { margin:0; font-size:14px; overflow-wrap:anywhere; }
.w-receipt { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; margin-top:16px; }
.w-task { border-left:2px solid var(--accent); padding-left:17px; margin:18px 0; }
.w-task strong { display:block; font-size:15px; }.w-task span { display:block; font-size:13px; color:var(--muted); margin-top:6px; }
.w-message { padding:18px 0; border-bottom:1px solid var(--line-2); }
.w-message-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.w-message-head strong { font-size:14px; font-weight:600; color:var(--text); }
.w-message p { margin:8px 0 0; font-size:15px; color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; }
.w-message.event p { color:var(--muted); font-size:13px; }
.w-compose { margin-top:20px; }.w-compose label { font-size:13px; display:block; margin-bottom:8px; }.w-compose textarea { margin-bottom:12px; }
.w-local { font-size:12px; color:var(--muted); margin:14px 0; }
.w-editor { background:var(--panel); padding:30px; border:1px solid var(--line-2); border-radius:18px; }
.w-editor label { font-size:13px; display:block; margin-bottom:8px; font-weight:600; }.w-editor input { margin-bottom:25px; }.w-editor textarea { min-height:300px; }
.w-savebar { display:flex; gap:12px; justify-content:space-between; align-items:center; flex-wrap:wrap; margin-top:20px; }
.w-tools-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.w-tool { display:flex; flex-direction:column; gap:15px; padding:24px; border:1px solid var(--line-2); background:var(--panel); border-radius:15px; text-decoration:none; color:var(--text); }.w-tool:hover { border-color:var(--accent-edge); }.w-tool strong { font-size:16px; }.w-tool p { margin:0; color:var(--muted); font-size:13px; }
.w-tool .ui-icon { color:var(--accent); }
.w-filter { max-width:400px; margin:20px 0 26px; }
.w-dialog { max-width:650px; width:calc(100% - 32px - var(--safe-left) - var(--safe-right)); padding:28px; border:1px solid var(--line); border-radius:16px; background:var(--panel); color:var(--text); }
.w-dialog::backdrop { background:#06172799; }.w-dialog h2 { margin:0 0 14px; font-size:22px; }.w-dialog p { font-size:15px; color:var(--muted); }.w-dialog textarea { margin:12px 0; }
.signed-out #topbar { display:none; }.signed-out #stage,.signed-out .workspacebar,.signed-out .subbar,.signed-out .freshnessbar,.signed-out #banners { margin-left:0; }
.signed-out .subbar,.signed-out .freshnessbar { display:none; }.signed-out .workspacebar { background:var(--bg); border:0; }
.login-wrap { max-width:1160px; width:100%; margin:35px auto 60px; padding:0 35px; display:grid; grid-template-columns:.85fr 1.15fr; gap:0; }
.login-story { padding:60px 45px; border-radius:24px 0 0 24px; background:#0b2032; color:#f3f9ff; display:flex; flex-direction:column; }
.login-story .eyebrow { color:#a0bdd4; font-size:10px; }.login-story h2 { font-size:clamp(36px,4vw,58px); font-weight:500; line-height:1.12; letter-spacing:-.065em; margin:55px 0 25px; }.login-story p { color:#a9c2d7; font-size:17px; line-height:2; }.login-story-foot { margin-top:auto; padding-top:80px; font-size:22px; font-weight:600; letter-spacing:-.04em; }.login-story-foot span { display:block; font-size:12px; color:#96b1c7; font-weight:400; letter-spacing:0; }
.login-card { width:auto; max-width:none; padding:40px; margin:0; border:1px solid var(--line-2); border-left:0; border-radius:0 24px 24px 0; box-shadow:0 10px 55px #0b203210; background:var(--panel); }
.login-card h1 { font-size:29px; line-height:1.2; letter-spacing:-.05em; margin:10px 0; }.login-card .lede { font-size:14px; line-height:1.7; color:var(--muted); }
.demo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.demo-btn { background:var(--panel); border:1px solid var(--line-2); padding:16px; border-radius:10px; }.demo-btn:hover { border-color:var(--accent); background:var(--accent-wash); }.demo-btn b { font-size:14px; color:var(--text); }.demo-btn span { font-size:11px; color:var(--muted); text-transform:none; letter-spacing:0; }.demo-btn em { display:none; }.demo-btn[data-demo="officer"] { grid-column:1 / -1; border-color:var(--accent); background:var(--accent-wash); }.demo-btn[data-demo="camden"],.demo-btn[data-demo="da-camden"] { padding:10px 16px; }
.login-note { font-size:12px; }.login-card #login-form { display:grid; grid-template-columns:1fr 1fr auto; gap:9px; align-items:end; }.login-card #login-form .field { margin:0; }.login-card #login-form label { font-size:11px; }.login-card #login-form input { padding:10px; font-size:14px; }.login-card #login-go { min-height:43px; }
@media (min-width:1600px) { .w-page,.page { padding-top:40px; } }
@media (max-width:1100px) { :root { --rail-width:190px; } #topbar { padding-inline:calc(12px + var(--safe-left)) 12px; }.brand { font-size:20px; }.w-page,.page { padding:28px; }.workspacebar,.subbar,.freshnessbar { padding-left:28px; padding-right:28px; }.w-grid { grid-template-columns:minmax(0,1.5fr) minmax(235px,1fr); gap:20px; }.w-tools-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:850px) { :root { --rail-width:78px; } #topbar { padding:calc(25px + var(--safe-top)) 12px calc(25px + var(--safe-bottom)) calc(12px + var(--safe-left)); }.brand { padding:0; justify-content:center; }.brand>span:last-child,.rail-context,.rail-caption,.whoami,.mainnav a>span,.nav-section { display:none; }.mainnav { margin-top:45px; }.mainnav a { padding:14px; justify-content:center; }.mainnav a .ui-icon { width:23px; height:23px; }.rail-bottom { padding:0; }.rail-bottom #logout { font-size:10px; padding:8px 3px; width:100%; }.w-grid { grid-template-columns:minmax(0,1fr); }.workspacebar-title { display:none; }.workspacebar { justify-content:space-between; }.w-heading { gap:18px; }.login-wrap { grid-template-columns:1fr; max-width:650px; }.login-story { display:none; }.login-card { border-left:1px solid var(--line-2); border-radius:20px; }.w-heading h1 { font-size:36px; } }
/* The installed app on an iPhone held sideways: 852 to 956px wide on current models, 393 to 440px tall.
   The full rail is about 520px tall before its insets, so there it would run past its bottom padding,
   under the home indicator and off the screen; the compact rail above (about 365px) fits. Keyed on
   the WIDTH alone, never the height: the keyboard shrinks the web view (resize "native"), so a height
   query (or orientation, the view's aspect) switches the rail as the keyboard opens and closes, and
   the page moves sideways under a finger on Send (contract section 5; safe-areas.test.mjs). From 851
   to 1000px wide there is no iPad held either way (upright at most 834, sideways from 1024), only a
   phone held sideways or a narrow iPad window. App only: a desktop window this narrow keeps its rail.
   Before the 560px block, so the safe-area test reads the rail's padding against the full-height rail. */
@media (min-width:851px) and (max-width:1000px) { html.bq-native { --rail-width:78px; } html.bq-native #topbar { padding:calc(25px + var(--safe-top)) 12px calc(25px + var(--safe-bottom)) calc(12px + var(--safe-left)); } html.bq-native .brand { padding:0; justify-content:center; } html.bq-native .brand>span:last-child,html.bq-native .rail-context,html.bq-native .rail-caption,html.bq-native .whoami,html.bq-native .mainnav a>span,html.bq-native .nav-section { display:none; } html.bq-native .mainnav { margin-top:45px; } html.bq-native .mainnav a { padding:14px; justify-content:center; } html.bq-native .mainnav a .ui-icon { width:23px; height:23px; } html.bq-native .rail-bottom { padding:0; } html.bq-native .rail-bottom #logout { font-size:10px; padding:8px 3px; width:100%; } }
@media (max-width:560px) {
  :root { --rail-width:0px; } #topbar { inset:auto 0 0; width:100%; height:calc(70px + var(--safe-bottom)); padding:0 calc(8px + var(--safe-right)) var(--safe-bottom) calc(8px + var(--safe-left)); background:var(--panel); border-top:1px solid var(--line-2); }.brand,.rail-bottom { display:none; }.mainnav { margin:0; height:100%; display:flex; flex-direction:row; justify-content:space-around; gap:2px; }.mainnav a { display:flex; flex-direction:column; gap:4px; min-height:60px; width:auto; flex:1; justify-content:center; padding:8px 5px; color:var(--muted); border-radius:0; font-size:10px; }.mainnav a.on { background:transparent; color:var(--accent); box-shadow:inset 0 2px var(--accent); }.mainnav a:hover { color:var(--accent); background:var(--accent-wash); }.mainnav a>span:not(.nav-active-dot) { display:block; }.mainnav .nav-active-dot,.mainnav .nav-section { display:none; }.mainnav a .ui-icon { width:21px; height:21px; }
  .workspacebar { min-height:calc(54px + var(--safe-top)); padding:calc(11px + var(--safe-top)) 18px 11px; gap:10px; }.proto { font-size:8px; max-width:255px; }.appearance-button { width:32px; height:32px; }.subbar { padding:9px 20px 0; gap:4px; }.subbar .spacer { display:none; }.tag { font-size:10px; } #enginetag { display:none; }.freshnessbar { padding:0 20px; }.asof { font-size:10px; }
  .w-page,.page { padding:24px 20px 110px; }.w-heading { margin-bottom:26px; }.w-heading h1 { font-size:35px; }.w-heading p { font-size:14px; }.w-heading .w-actions { width:100%; }.w-heading .w-actions>.btn:first-child { flex:1; }.w-focus h2 { font-size:27px; }.w-focus-body { padding:23px; }.w-focus-footer { padding:16px 23px; }.w-focus-footer .btn { width:100%; }.w-metric { padding:0 15px; }.w-metric span { font-size:11px; }.w-metric strong { font-size:25px; }.w-section-title { margin-top:20px; }.w-row-end .w-pill { display:none; }.w-tools-grid { grid-template-columns:minmax(0,1fr); }.w-tool { padding:20px; }.w-editor { padding:20px; }.w-editor textarea { min-height:310px; }.w-facts { gap:20px; }.w-tabs button { padding:12px; }.w-savebar .w-actions { width:100%; }.w-savebar .btn { flex:1; }.btn { min-height:46px; }.w-dialog { padding:22px; }.login-wrap { padding:0 16px; margin:10px auto 30px; }.login-card { padding:26px 22px; }.login-card #login-form { grid-template-columns:1fr 1fr; }.login-card #login-go { grid-column:1 / -1; }.signed-out #topbar { display:none; }.signed-out .page { padding-bottom:30px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; } }
@media print { #topbar,.workspacebar,.subbar,.freshnessbar,#banners,.w-actions,.w-tabs,.skip-link { display:none!important; } #stage { margin:0; }.w-page { padding:0; } }
/* Legacy report and feed surfaces keep readable semantic pairings in both appearances. */
:root[data-theme="day"] { --on-alert:#fff; --on-ok:#fff; --on-warn:#fff; }
:root[data-theme="day"] .card.warn,
:root[data-theme="day"] .loudstrip,
:root[data-theme="day"] .grantline { background:#fff4df; color:#172b40; }
:root[data-theme="day"] .loudstrip.red { background:#fff0f0; color:#172b40; }
:root[data-theme="day"] .chip.ok { background:#e4f5ed; color:#17603f; }
:root[data-theme="day"] .chip.stale,
:root[data-theme="day"] .doc .gap { background:#fff0cc; color:#754309; }
:root[data-theme="day"] .chip.bad { background:#ffe7e8; color:#a22b32; }
:root[data-theme="day"] .chip.info { background:#e2efff; color:#155da8; }
:root[data-theme="day"] .st-active { color:#0964ca; border-color:#7dabdc; }
:root[data-theme="day"] .datafile-label { color:#425e8c; }
.skip-link { left:calc(max(16px,calc(var(--rail-width) + 16px)) + var(--safe-left)); max-width:calc(100vw - 32px - var(--safe-left) - var(--safe-right)); }
.w-error:empty { display:none; }

/* Department reports keep the account central and the next decision in view. */
.department-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}
.department-editor label{display:block;margin:20px 0 8px;font-size:14px;font-weight:650}
.department-editor label:first-child{margin-top:0}.department-editor input,.department-editor select,.department-editor textarea{width:100%;box-sizing:border-box}
.department-editor textarea{line-height:1.75;font-size:16px;resize:vertical}.department-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.department-people{display:grid;gap:12px}.department-people label,.department-attest{display:flex!important;align-items:flex-start;gap:12px;padding:12px 0;line-height:1.55}
.department-people input,.department-attest input{width:20px!important;min-width:20px;height:20px;margin-top:3px;accent-color:var(--accent,#4b91cd)}
.department-people strong,.department-people small,.department-export strong,.department-export small{display:block}.department-people small,.department-export small{color:var(--muted);font-size:14px}
.department-export{padding:18px 0;border-bottom:1px solid var(--border)}.department-export .w-actions{margin-top:14px}.department-export .btn{font-size:14px}
#report-review select,#report-review textarea{width:100%;box-sizing:border-box}#report-review label:not(.department-attest){display:block;margin:16px 0 8px}
.department-editor [readonly]{opacity:.85}.department-editor [hidden]{display:none!important}
@media(max-width:1050px){.department-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){.department-fields{grid-template-columns:1fr}.department-editor{padding:20px}.department-layout{gap:20px}}

/* Agency and alert setup use the same calm, readable field rhythm. */
.w-form-page form label{display:grid;gap:8px;margin:18px 0;font-size:14px;font-weight:600;line-height:1.55}
.w-form-page form label:first-child{margin-top:0}
.w-form-page form input:not([type=checkbox]),.w-form-page form select,.w-form-page form textarea{width:100%;min-width:0;box-sizing:border-box;font-weight:400}
.w-form-page form textarea{resize:vertical;line-height:1.65}
.w-form-page form label:has(>input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;font-weight:500}
.w-form-page form input[type=checkbox]{width:19px;height:19px;flex:none;margin-top:2px;accent-color:var(--accent)}
.w-form-page .w-actions>label{margin:8px 0}
#agency-form .department-fields{gap:0 18px}
#agency-form .department-fields label{margin:8px 0}
#clear-credentials{margin-top:12px}

/* One predictable Back control outside page-specific render mounts. */
.workspace-back { margin-left:var(--rail-width); padding:12px 42px 0; display:flex; align-items:center; gap:13px; }
.workspace-back[hidden] { display:none; }
.workspace-back-link { min-height:44px; display:inline-flex; align-items:center; gap:9px; padding:8px 13px; border:1px solid var(--line-2); border-radius:9px; background:var(--panel); color:var(--text); font-size:14px; font-weight:650; text-decoration:none; }
.workspace-back-link:hover { border-color:var(--accent-edge); background:var(--accent-wash); }
.workspace-back-link[aria-disabled="true"] { color:var(--dim); background:transparent; cursor:default; }
.workspace-back-destination { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.workspace-back-dialog { max-width:510px; width:calc(100% - 32px - var(--safe-left) - var(--safe-right)); padding:28px; border:1px solid var(--line); border-radius:18px; background:var(--panel); color:var(--text); box-shadow:0 24px 80px #0003; }
.workspace-back-dialog::backdrop { background:#061b2c88; }
.workspace-back-dialog h2 { margin:0 0 14px; font-size:24px; letter-spacing:-.03em; }
.workspace-back-dialog p { color:var(--muted); font-size:14px; }
.workspace-back-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
@media(max-width:1100px) { .workspace-back { padding-inline:28px; } }
@media(max-width:560px) { .workspace-back { padding:12px 20px 0; } .workspace-back-dialog { padding:22px; } .workspace-back-actions .btn { width:100%; } }
@media print { .workspace-back,.workspace-back-dialog { display:none!important; } }

/* Safe areas: the installed iPhone/iPad app (Michael's rule, 2026-10-07; brief section 3 step 7).
   Nothing is drawn under the island, notch, status bar, home indicator or the landscape sides, on any
   screen, the connect screen and sign-in included; backgrounds may run edge to edge. The tokens are in
   style.css :root and are 0px in a desktop browser, so every rule here that does not start with
   html.bq-native is exactly the old layout there. app/test/safe-areas.test.mjs holds the rule.
   The rail, the phone tab bar and the workspace bar (whose background runs up under the status bar)
   pad themselves above. */
/* The document scrolls (body is display:block above), so body holds the side and bottom insets for
   everything in flow, as PADDING: a bottom margin sits outside the scroll range and clears nothing, a
   padding scrolls with the page, so the last line ends above the home indicator. Left, it starts the
   page beside the rail, which is wider by the same inset; signed out, beside the screen edge. */
body { padding:0 var(--safe-right) var(--safe-bottom) var(--safe-left); }
/* A modal dialog is fixed by the browser itself (the top layer) and centered by margin:auto, so its
   offsets live here: all four at the insets centers it inside them, and its caps leave them out.
   :where() keeps this at zero specificity, so a dialog's own size or placement (the Messenger sheet)
   still wins; in a desktop browser these are the browser's own values. */
:where(dialog:modal) { inset:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left); max-width:calc(100% - 6px - 2em - var(--safe-left) - var(--safe-right)); max-height:calc(100% - 6px - 2em - var(--safe-top) - var(--safe-bottom)); }
/* In the app only, two scrims (Sentinel's, Sentinel-ios docs/app/safe-areas.md): bands exactly one
   inset tall that hold nothing and take the taps there, so a page scrolled up under the status bar or
   down under the home indicator never shows there. Above Leaflet's controls (1000); a modal dialog's
   top layer is above them. The top one is the rail's navy over the rail and the workspace bar's panel
   beside it, so at the top of a page it is invisible; at phone width the tab bar's own background
   covers the bottom inset, so the bottom scrim steps aside there. 0px tall in a desktop browser. */
html.bq-native body::before { content:""; position:fixed; top:0; left:0; right:0; height:var(--safe-top); z-index:1001; background:linear-gradient(to right,var(--nav) calc(var(--rail-width) + var(--safe-left)),var(--panel) 0); }
html.bq-native body.signed-out::before { background:var(--bg); }
html.bq-native body::after { content:""; position:fixed; bottom:0; left:0; right:0; height:var(--safe-bottom); z-index:1001; background:var(--bg); }
@media (max-width:560px) { html.bq-native body:not(.signed-out)::after { display:none; } }
/* iOS WebKit zooms the page into a field under 16px when it is focused, and the app cannot be pinched
   back out (Capacitor turns pinch off); zoomed, the page pans and its edges slide under the insets.
   !important, because rules such as the sign-in form's 14px fields outrank this selector. The connect
   screen's field (native.js) sets the same size inline. */
html.bq-native input, html.bq-native select, html.bq-native textarea { font-size:max(16px, 1em) !important; }
/* While typing in the app on a view too short for the field and its button, keyboard-reveal.js holds
   html.bq-native[data-kb-layout="compact"] (contract section 5): what changes then hangs off that mark,
   never off a query on the view's height, which the keyboard changes under the finger. At phone width
   the tab bar steps aside (70px of the view above the keyboard), and the home-indicator scrim it stands
   in for is drawn meanwhile: 0px tall while the keyboard is up, the inset again while a press holds the
   mark as the keyboard closes. The incident's update composer is two lines tall, so it and Post local
   update fit above the keyboard on an iPhone held sideways. */
@media (max-width:560px) { html.bq-native[data-kb-layout="compact"] #topbar { display:none; } html.bq-native[data-kb-layout="compact"] body:not(.signed-out)::after { display:block; } }
html.bq-native[data-kb-layout="compact"] .w-compose textarea { height:82px; min-height:0; margin-bottom:6px; }
