/* Served exclusively by valuroa-mobile on /mobile/. Desktop never loads this file. */
.mobile-startup { position:fixed; z-index:101; left:14px; right:14px; top:calc(10px + env(safe-area-inset-top, 0px)); margin:auto; max-width:520px; padding:14px 16px; border:1px solid var(--border, #d6d8d3); border-radius:14px; background:var(--surface, #f8f7f4); color:var(--text, #272c30); box-shadow:0 4px 24px #0002; font:15px/1.5 system-ui,sans-serif; }
.mobile-startup p { margin:0 0 10px; }
.mobile-startup button { min-height:44px; padding:10px 16px; border:0; border-radius:10px; background:var(--accent, #365f58); color:#fff; font:inherit; }
:root { -webkit-text-size-adjust:100%; text-size-adjust:100%; background:var(--bg, #f8f7f4); }
html, body { width:100%; margin:0; padding:0; border:0; }
body { min-height:100svh; min-height:100dvh; background:var(--bg, #f8f7f4); overscroll-behavior-y:none; }
button, a, summary { touch-action:manipulation; }
input, textarea, select { font-size:16px; }
.mobile-tools { display:flex; align-items:start; gap:8px; margin:8px 0 12px; position:relative; }
.mobile-details-toggle, .mobile-install { flex:1; min-width:0; margin:0; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); font-size:13px; line-height:1.5; }
.mobile-install { padding:0; }
.mobile-details-toggle { display:flex; justify-content:space-between; align-items:center; min-height:44px; padding:10px 12px; }
.mobile-install summary { min-height:44px; display:flex; align-items:center; justify-content:space-between; padding:10px 12px; font-size:13px; font-weight:600; cursor:pointer; list-style:none; }
.mobile-install summary::-webkit-details-marker { display:none; }
.mobile-chevron { display:inline-block; font-size:18px; }
.mobile-install[open] .mobile-chevron { transform:rotate(180deg); }
.mobile-install-panel { position:absolute; z-index:25; right:0; top:calc(100% + 6px); width:min(360px,calc(100vw - 28px)); padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); box-shadow:var(--shadow); }
.mobile-install p { margin:8px 0; }
.mobile-install button { min-height:44px; margin:6px 0; }
.mobile-install [hidden] { display:none!important; }
.filing-active .mobile-tools { display:none; }
.mobile-tools button:focus-visible, .mobile-install summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.mobile-network { position:fixed; z-index:100; bottom:calc(12px + env(safe-area-inset-bottom, 0px)); left:16px; right:16px; padding:12px 16px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); box-shadow:var(--shadow); font-size:14px; }
.mobile-network[hidden] { display:none; }
.mobile-company-toggle { display:none; }
@media (max-width:1100px) {
 :root { --mobile-gutter-right:max(14px, env(safe-area-inset-right, 0px)); --mobile-gutter-left:max(14px, env(safe-area-inset-left, 0px)); }
 .app-shell { width:100%; min-height:100svh; }
 main, .filing-active main { width:100%; min-width:0; height:auto; overflow:visible; padding:0 var(--mobile-gutter-right) calc(24px + env(safe-area-inset-bottom, 0px)) var(--mobile-gutter-left); }
 .desk-rail { display:none; position:fixed; z-index:40; inset:0 auto 0 0; width:min(290px,85vw); height:100dvh; overflow:auto; padding:calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)); align-items:stretch; }
 .nav-open .desk-rail { display:flex; }
 .nav-open .rail-scrim { display:block; z-index:39; position:fixed; inset:0; }
 .rail-wordmark { display:block; }
 .rail-brand { display:flex; align-items:center; }
 .rail-toggle { display:inline-flex; width:44px; min-height:44px; flex:none; justify-content:center; }
 :is(.tabs button,.rail-about) { min-height:48px; font-size:14px; flex-direction:row; text-align:left; justify-content:flex-start; padding:12px; }
 .page-intro { height:auto; min-height:76px; margin:0 calc(0px - var(--mobile-gutter-right)) 0 calc(0px - var(--mobile-gutter-left)); padding:calc(12px + env(safe-area-inset-top, 0px)) var(--mobile-gutter-right) 12px var(--mobile-gutter-left); display:flex; flex-wrap:wrap; gap:10px; }
 .page-intro>.brand-line { display:flex; gap:8px; }
 .brand-line h1 { font-size:29px; }
 .brand-line p { display:none; }
 .brand-mark { width:28px; height:28px; }
 .topbar-actions { margin-left:auto; gap:4px; }
 .topbar-actions button { width:44px; min-height:44px; padding:10px; }
 .topbar-actions button span { display:none; }
 .header-company-search { order:3; width:100%; max-width:none; min-width:0; flex-basis:100%; height:50px; }
 .header-company-search>input, .header-company-search>input:focus { font-size:16px; }
 .header-company-search>button[type=submit] { width:46px; height:46px; min-height:46px; flex-basis:46px; }
 .company-search-results button { min-height:48px; font-size:14px; }
 .sidebar { z-index:80; width:min(380px,100%); max-width:100%; max-height:100dvh; overflow-y:auto; padding-top:calc(16px + env(safe-area-inset-top, 0px)); padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px)); }
 .settings-scrim { z-index:79; }
 .sidebar input, .sidebar select, .question-field textarea, .outline-search input, .reader-search input { font-size:16px; }
 .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .metrics>div { min-width:0; overflow-wrap:anywhere; }
 main:not([data-mobile-details="open"])>.metrics, main:not([data-mobile-details="open"])>.public-access-note { display:none; }
 main[data-mobile-details="open"]>.metrics { display:grid; }
 main[data-mobile-details="open"]>.public-access-note { display:block; font-size:13px; }
 .workspace-heading { padding:12px 0 4px; gap:6px; }
 .workspace-heading>.workspace-motto { margin:4px 0 6px; font-size:20px; line-height:1.35; }
 .research-step strong { font-size:12px; }
 .filing-tab { display:block; }
 .filing-active .filing-ready { height:auto; min-height:0; overflow:visible; }
 .filing-ready>.filing-desk { min-height:0; }
 .filing-desk { min-width:0; }
 .filing-desk .desk-columns, .filing-ready .desk-columns, .contents-collapsed .desk-columns { display:block; min-width:0; min-height:0; overflow:visible; }
 .filing-desk .desk-reader, .filing-ready .desk-reader { display:flex; flex-direction:column; height:auto; min-height:0; padding:0 clamp(16px,4vw,32px) 18px; overflow:visible; }
 .filing-desk .desk-assistant, .filing-ready .desk-assistant { height:auto; max-height:none; min-height:0; padding:18px; border-left:0; overflow:visible; }
 .filing-desk.pane-reader .desk-assistant, .filing-desk.pane-assistant .desk-reader { display:none; }
 .mobile-panes { display:flex; border-bottom:1px solid var(--border); padding:6px 10px; gap:8px; }
 .mobile-panes button { flex:1; margin:0; min-height:46px; font-size:14px; }
 .mobile-panes button[aria-pressed=true] { background:var(--soft-accent); color:var(--accent); }
 .document-topbar { flex-wrap:wrap; gap:8px; min-height:0; padding:10px; }
 .document-topbar>.reader-strip { flex-basis:100%; flex-wrap:wrap; margin:0; }
 .reader-tools { display:flex; flex-wrap:wrap; width:100%; gap:6px; }
 .reader-tools button, .reader-controls .icon-button, .contents-close { min-height:44px; min-width:44px; }
 .reader-tools .contents-toggle { display:inline-flex; margin-right:auto; }
 .reader-controls { margin-left:auto; flex-wrap:wrap; gap:4px; }
 .reader-size select { min-height:44px; font-size:16px; width:105px; min-width:105px; }
 .desk-contents:not(.contents-open) { display:none!important; }
 .filing-desk .desk-contents.contents-open, .filing-ready .desk-contents.contents-open { display:flex; position:fixed; z-index:60; inset:0 auto 0 0; width:min(340px,88vw); height:100dvh; max-height:100dvh; overflow-y:auto; padding:calc(18px + env(safe-area-inset-top, 0px)) 14px calc(24px + env(safe-area-inset-bottom, 0px)); }
 .filing-desk .contents-scrim { position:fixed; z-index:59; inset:0; width:100vw; height:100dvh; }
 .contents-close { display:inline-flex; }
 .outline-item { min-height:48px; }
 .outline-item strong { font-size:14px; }
 .contents-view-switch button { min-height:44px; font-size:13px; }
 .document-heading { padding-top:22px; }
 .document-heading h2 { font-size:clamp(25px,5.5vw,32px); overflow-wrap:anywhere; }
 .filing-desk .filing-reader-text, .filing-ready .filing-reader-text { width:100%; max-width:100%; height:clamp(280px,62svh,800px); min-height:0; flex:none; overflow:auto; -webkit-overflow-scrolling:touch; line-height:1.85; }
 .filing-table-scroll { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
 .reader-navigation button { min-width:44px; min-height:44px; }
 .reader-navigation { gap:6px; font-size:12px; }
 .reader-navigation span { min-width:0; overflow-wrap:anywhere; }
 .active-filing-bar { height:auto; min-height:46px; flex-wrap:wrap; white-space:normal; gap:8px; padding:7px 10px; }
 .active-filing-bar>span { min-width:0; flex:1; }
 .active-filing-bar button { min-height:44px; font-size:12px; }
 .filing-ready>.filing-library[open] { position:relative; top:auto; right:auto; width:100%; max-height:65dvh; }
 .question-field textarea { min-height:150px; line-height:1.6; }
 .question-prompts button, .research-submit, .voice-actions button { min-height:46px; font-size:14px; }
 .research-submit { width:100%; }
 .desk-assistant .answer-body { font-size:18px!important; line-height:1.85; overflow-wrap:anywhere; }
 .answer-body table { display:block; max-width:100%; overflow-x:auto; }
 .research-result-tabs { overflow-x:auto; }
 .research-result-tabs button { min-height:44px; font-size:12px; }
 .standard-tab { min-width:0; overflow-wrap:anywhere; }
 .standard-tab .table-wrap, .table-scroll { max-width:100%; overflow:auto; }
 .site-risk-footer { padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width:380px) {
 .brand-line h1 { font-size:25px; }
 .brand-mark { display:none; }
 .topbar-actions { gap:0; }
 .research-step strong { font-size:11px; }
}
/* A quieter mobile workspace: primary actions first, optional tools on demand. */
@media (max-width:1100px) {
 :root { --mobile-radius:16px; }
 button, input, textarea, select, summary { -webkit-tap-highlight-color:transparent; }
 button:focus-visible, summary:focus-visible, a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
 .page-intro { gap:8px; min-height:72px; padding-bottom:10px; }
 .topbar-actions .header-ask { display:none; }
 .filing-active .mobile-company-toggle { display:inline-flex; align-items:center; justify-content:center; }
 .filing-active main:not([data-mobile-search="open"]) .header-company-search { display:none; }
 .header-company-search { border-radius:14px; background:var(--surface); }
 .mobile-details-toggle, .mobile-install { border-radius:12px; }
 .sidebar>.mobile-install { margin:18px 0 0; flex:none; }
 .sidebar>.mobile-install .mobile-install-panel { position:static; width:auto; margin-top:4px; border:0; border-top:1px solid var(--border); border-radius:0; box-shadow:none; }
 .workspace-heading { padding-top:20px; }
 .workspace-heading h2 { font-size:28px; line-height:1.2; }
 .workspace-heading .eyebrow { display:none; }
 .workspace-heading>.workspace-motto { font-size:20px; line-height:1.4; }
 .research-start { gap:8px; }
 .research-step { border-radius:12px; min-height:64px; padding:12px 8px; }
 .research-step small { font-size:11px; line-height:1.5; }
 .filing-tab:not(.filing-ready)>.research-start,
 .filing-tab:not(.filing-ready)>.filing-desk { display:none; }
 .filing-library { border-radius:var(--mobile-radius); overflow:hidden; }
 .filing-library>summary { min-height:52px; }
 .filing-library .primary { min-height:48px; width:100%; font-size:15px; border-radius:12px; }
 .filing-motto { height:auto; min-height:44px; padding:10px 14px!important; }
 .filing-motto p { margin:0!important; font-size:15px!important; line-height:1.5!important; }
 .active-filing-bar { padding:10px 12px; gap:4px 10px; border-radius:14px 14px 0 0; min-height:64px; display:grid; grid-template-columns:minmax(0,1fr) auto; }
 .active-filing-bar>strong { grid-column:1; font-size:13px; }
 .active-filing-bar>span { grid-column:1; font-size:11px; line-height:1.5; }
 .active-filing-bar>button { grid-column:2; grid-row:1 / span 2; max-width:128px; min-height:44px; white-space:normal; font-size:12px; line-height:1.4; border-radius:10px; padding:8px 10px; }
 .filing-desk { border-radius:0 0 var(--mobile-radius) var(--mobile-radius); }
 .document-topbar { min-height:0; gap:8px; padding:10px 12px; }
 .document-topbar>.reader-tools { display:grid; grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr); gap:8px; order:-1; }
 .reader-tools .contents-toggle { order:0; margin:0; justify-content:center; width:100%; font-size:13px; }
 .reader-tools .reader-search-toggle { order:1; width:44px; }
 .reader-tools .mobile-reader-more { order:2; width:100%; padding:8px; justify-content:space-between; font-size:12px; gap:4px; }
 .reader-tools>button:not(.contents-toggle):not(.reader-search-toggle):not(.mobile-reader-more) { order:3; width:100%; font-size:13px; }
 .reader-tools>button.bookmark { order:4; }
 .reader-tools>button:not(.contents-toggle):not(.reader-search-toggle):not(.mobile-reader-more):not(.bookmark) { grid-column:1 / span 2; }
 .filing-desk:not([data-mobile-tools="open"]) .reader-strip,
 .filing-desk:not([data-mobile-tools="open"]) .reader-tools>button:not(.contents-toggle):not(.reader-search-toggle):not(.mobile-reader-more) { display:none; }
 .filing-desk[data-mobile-tools="open"] .mobile-reader-more span { transform:rotate(180deg); }
 .document-topbar>.reader-strip { border-top:1px solid var(--border); padding-top:10px; font-size:11px; line-height:1.5; }
 .filing-desk.pane-assistant .document-topbar { display:none; }
 .document-heading { padding-top:18px; }
 .document-heading>.eyebrow { margin-top:0; }
 .document-heading h2 { font-size:26px; margin-bottom:18px; }
 .filing-desk .filing-reader-text { height:clamp(340px,66svh,850px); line-height:1.8; scrollbar-width:thin; }
 .filing-reader-text h3 { line-height:1.4; }
 .reader-navigation { padding:12px 0 0; }
 .mobile-panes { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:5px; margin:8px 12px; gap:5px; }
 .mobile-panes button { border:0; border-radius:11px; min-height:48px; font-size:14px; background:transparent; color:var(--muted); box-shadow:none; }
 .mobile-panes button[aria-pressed="true"] { color:var(--accent); background:var(--soft-accent); font-weight:650; }
 .filing-desk .desk-assistant { padding:20px 18px 24px; }
 .desk-assistant .pane-heading { margin-bottom:16px; }
 .desk-assistant .assistant-welcome { border:0; border-radius:0; padding:0; box-shadow:none; background:transparent; margin:0 0 14px; }
 .assistant-welcome h4 { font-size:25px; line-height:1.25; margin:0 0 8px; }
 .assistant-welcome .assistant-intro { font-size:14px; line-height:1.65; margin:0; }
 .desk-assistant .filing-voice { border-radius:12px; margin:0 0 12px; box-shadow:none; }
 .desk-assistant .filing-voice:not([open]) { padding:0; }
 .filing-voice>summary { min-height:48px; padding:12px; font-size:14px; }
 .filing-voice .voice-disclosure { font-size:12px; line-height:1.6; }
 .question-prompts { margin:0 0 14px; }
 .question-prompts>span { display:none; }
 .question-prompts .mobile-suggestions-toggle { border:0; margin:0; padding:8px 0; min-height:44px; color:var(--accent); background:transparent; box-shadow:none; font-size:14px; }
 .question-prompts:not([data-mobile-ideas="open"])>button:not(.mobile-suggestions-toggle) { display:none; }
 .question-prompts[data-mobile-ideas="open"] .mobile-suggestions-toggle span { transform:rotate(180deg); }
 .question-field { margin:0; }
 .question-field label { font-size:14px; font-weight:600; }
 .question-field textarea { height:130px; min-height:130px; border-radius:14px; padding:14px; resize:vertical; }
 .question-field>p { display:none; }
 .question-field small { font-size:11px; margin-top:6px; }
 .mobile-stale-question { margin:8px 0 0; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:var(--soft-accent); color:var(--text); font-size:13px; line-height:1.5; }
 .research-submit { border-radius:12px; min-height:48px; font-size:15px; margin:12px 0 0; }
 .mobile-network { bottom:calc(84px + env(safe-area-inset-bottom,0px)); }
}
@media (max-width:600px) {
 .filing-active main { padding-bottom:calc(96px + env(safe-area-inset-bottom,0px)); }
 .filing-active .filing-desk .mobile-panes { position:fixed; z-index:35; left:0; right:0; bottom:0; margin:0; padding:8px 14px calc(8px + env(safe-area-inset-bottom,0px)); border:0; border-top:1px solid var(--border); border-radius:0; box-shadow:0 -6px 22px #00000008; }
 .mobile-panes .ui-icon { width:19px; height:19px; }
 .brand-line h1 { font-size:27px; }
 .page-intro>.brand-line { gap:6px; }
 .filing-active .brand-mark { width:25px; height:25px; }
 .filing-desk .desk-reader { padding-inline:18px; }
 .reader-navigation .reader-page-note { font-size:11px; }
}
@media (max-width:360px) {
 .brand-line h1 { font-size:23px; }
 .page-intro { gap:6px; }
 .filing-motto p { font-size:14px!important; }
 .reader-tools .mobile-reader-more { font-size:11px; }
 .active-filing-bar>button { max-width:112px; }
 .filing-desk .desk-assistant, .filing-desk .desk-reader { padding-inline:14px; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto!important; } }

/* Isolated mobile viewport hardening; desktop is served by another Worker. */
@media screen and (max-width:1100px) {
 html, body { max-width:100%; margin:0; border:0; background:var(--bg,#f8f7f4); overflow-x:clip; }
 .app-shell { max-width:100%; margin:0; border-inline:0; box-shadow:none; }
}

@media (max-width:1100px) { .mobile-ai-progress-note { padding:10px 12px; border:1px solid var(--border); border-radius:10px; font-size:13px; line-height:1.5; color:var(--text); background:var(--surface); } }

/* Mobile keyboard and table usability v9; scoped to the isolated mobile Worker. */
@media (max-width:600px) {
 html.mobile-keyboard-open .filing-active .filing-desk .mobile-panes { display:none!important; }
 html.mobile-keyboard-open .filing-active main { padding-bottom:calc(16px + env(safe-area-inset-bottom,0px)); }
 .filing-desk .filing-reader-text table, .filing-reader-text table { max-width:none; }
 .filing-table-scroll, .desk-assistant .answer-body table, .standard-tab .table-wrap { overscroll-behavior-x:contain; }
 .question-field textarea { scroll-margin-bottom:96px; }
 .mobile-install-panel { max-width:calc(100vw - 28px); }
}

.rail-about{font-family:inherit;display:flex;text-decoration:none;margin-top:6px!important;box-sizing:border-box}.rail-about::before{content:"";display:block;flex:none;width:17px;height:17px;background:currentColor;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E")}
