:root{--blue:#315bc4;--brand:#4b2428;color:var(--ink);background:#f7f7f8;font-family:Poppins,sans-serif}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font-family:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #315bc4;outline-offset:3px}svg{flex-shrink:0}h1,h2,h3,.empty h3{font-family:Poppins,sans-serif}button,a{transition:background .16s,color .16s,box-shadow .16s}aside{position:fixed;inset:0 auto 0 0;width:var(--sidebar);display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;z-index:30}.brand{display:inline-flex;margin:0;padding:0}.brand img{display:block;object-fit:contain}.brand .brand-mini{display:none}.collapse-control{position:absolute;padding:4px;border:0;background:transparent;color:var(--muted);border-radius:5px;display:grid;place-items:center}.collapse-control svg{width:17px;height:17px}.workspace-profile{display:flex;align-items:center;border:1px solid #dfdfe2}.profile-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-size:14px;flex-shrink:0}.workspace-profile strong{display:block}.workspace-profile small{display:block}aside>.nav-section{font-size:13px!important;letter-spacing:0;font-weight:400}aside nav{display:flex;flex-direction:column}.nav{position:relative;display:flex;width:100%;border:0;text-align:left;color:#4e5057;background:transparent;margin:0}.nav svg{width:19px;height:19px;stroke-width:1.65}.aside-note{position:static;max-width:none;margin-top:auto;border-top:1px solid #e3e3e5;padding:22px 10px 0;color:var(--muted);font-size:13px}.aside-note strong{font-size:13px;color:#56555c;font-weight:400;display:block}.aside-note small{display:block;font-size:13px;margin:5px 0 18px}.aside-note a{text-decoration:none}main{margin-left:var(--sidebar);padding:0 48px 48px;width:calc(100% - var(--sidebar));max-width:none}header{height:82px;border:0;display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted)}header>span{display:flex;gap:14px;align-items:center}.header-tag{font-size:13px;letter-spacing:0;color:var(--muted)}.breadcrumb-divider{color:var(--muted)}#pageTitle{font-weight:400;color:#72727b}header>div{display:flex;gap:16px;align-items:center}#account{font-size:13px;color:var(--muted)}#signout{font-size:13px;padding:8px}.icon-button{width:36px;display:inline-grid;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--muted)}.icon-button:hover{background:#eaeaec}.dashboard-heading h1{margin:0;color:var(--ink);line-height:1.4}.dashboard-heading p{font-size:13px;color:var(--muted);margin:8px 0 0}.primary{color:white;border:1px solid #4b2428;padding:12px 18px;font-size:13px;line-height:1.5;box-shadow:none}.new-task{display:flex;align-items:center;gap:8px;white-space:nowrap}.new-task svg{width:16px;height:16px}.report-tabs button{display:flex;align-items:center;border:0;border-radius:7px;background:transparent}.report-tabs svg{width:16px;height:16px}.report-tabs button.active{background:#fff;box-shadow:0 1px 4px #0000000c}.report-cards{display:grid}.create-report-card,.saved-report-card{background:#fff;border:1px solid #ececef;text-align:left;min-width:0;color:var(--ink)}.create-report-card{display:flex;flex-direction:column;align-items:flex-start}.empty-card-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px}.empty-card-icon svg{width:23px;height:23px}.create-report-card>span:not(.empty-card-icon):not(.card-link){margin-top:12px}.card-link{display:flex;align-items:center;gap:9px}.card-link svg{width:14px;height:14px;transform:rotate(90deg)}.getting-started{grid-column:span 2;max-width:490px;padding:29px 32px;background:transparent}.getting-started .eyebrow{font-size:13px;letter-spacing:1.5px;color:var(--muted)}.getting-started h2{font-size:21px;letter-spacing:-.6px;font-weight:400;line-height:1.5;margin:16px 0 22px;color:#5f5962}.getting-started ol{padding:0;list-style:none;counter-reset:steps;margin:0;display:grid;gap:16px}.getting-started li{counter-increment:steps;font-size:13px;color:#75717b;display:flex;align-items:center;gap:12px}.getting-started li:before{content:counter(steps);font-size:13px;background:#eeecef;color:var(--muted);width:23px;height:23px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.getting-started p{font-size:13px;color:var(--muted);line-height:1.8;margin:24px 0 0}.dashboard-footnote{font-size:13px;color:var(--muted);margin-top:38px}.saved-report-card{display:flex;flex-direction:column}.report-cover{flex-direction:column;align-items:flex-start}.report-cover svg{width:29px;height:29px;margin-bottom:17px}.report-cover span{font-size:13px;letter-spacing:1.4px}.cover-lines{height:19px;width:80%;border-top:2px solid #d2c7ca;border-bottom:2px solid #d2c7ca;margin-top:12px}.saved-report-card>strong{overflow-wrap:anywhere}.card-status{margin:0 9px;align-self:flex-start}.saved-report-card small{padding:0 9px}
/* Report creation is a separate, quiet workspace, not the landing screen. */
.intro{display:none;padding:26px 0 0;margin:0;text-align:left}.workspace-heading{display:block;margin-bottom:30px}.workspace-heading h1{font-size:29px;letter-spacing:-1px;font-weight:600;color:var(--ink);margin:18px 0 8px;line-height:1.4}.workspace-heading p{font-size:13px;color:var(--muted);margin:0}.back-reports{padding:0!important;font-size:13px!important}.report-setup{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;max-width:900px;margin:0}.setup-main{padding:20px;background:#fff;border:1px solid #e7e5e8;border-radius:14px;text-align:left}.setup-heading{display:flex;align-items:center;gap:12px}.step-number{display:none}.setup-heading h2{font-size:16px;margin:0;font-weight:600}.setup-heading p{font-size:13px;color:var(--muted);margin:6px 0 0}.project-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.project-fields label{font-size:13px;color:var(--muted);margin:0 0 8px}.project-fields label span{color:var(--muted);font-size:13px;margin-left:5px}.project-fields input{width:100%;padding:12px;font-size:13px;background:white;border:1px solid #dfdde2;border-radius:7px}.source-well{display:flex;gap:13px;flex-wrap:wrap;align-items:center;padding:14px;border:1px dashed #d7d0d8;border-radius:10px}.source-symbol{color:#806975}.source-copy{flex:1;min-width:160px}.source-copy h3{font-size:13px;margin:0}.source-copy p{font-size:13px;color:var(--muted);margin:6px 0}.selection-summary{font-size:13px;color:var(--muted);margin-top:10px}.selection-summary strong{font-weight:400;overflow-wrap:anywhere}#sourceAction .secondary{display:flex;align-items:center;gap:7px;font-size:13px}#sourceAction svg{width:15px;height:15px}.source-privacy{font-size:13px!important;color:var(--muted)!important;display:flex;gap:6px;line-height:1.8!important;margin:10px 0 14px!important}.template-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #eeebef;padding-top:20px}.template-icon{color:var(--muted)}.template-row>div{flex:1;min-width:160px}.template-row strong{display:block;font-size:13px;font-weight:400}.template-row #templateName{display:block;color:var(--muted);font-size:13px;margin-top:5px;overflow-wrap:anywhere}.template-row button{font-size:13px}.report-outline{display:flex;align-items:center;gap:14px;padding:0 6px}.report-outline>h2,.report-outline>p,.outline-top,.paper-preview{display:none}.report-outline label{font-size:13px;white-space:nowrap;color:var(--muted);margin:0}.report-outline select{width:220px;font-size:13px;padding:10px;background:white;border:1px solid #dfdbe3;border-radius:7px;margin:0}.grid{display:block;max-width:1000px;margin:auto}.composer{display:none;position:relative;max-width:900px;margin:16px 0 32px;padding:20px;background:white;border:1px solid #e2dde5;border-radius:13px}.composer-heading{justify-content:space-between;align-items:center;margin-bottom:12px}.composer-heading>span{font-size:13px;font-weight:600}.composer-heading small{display:none}.composer #prompt{width:100%;background:white;border:0;border-radius:3px;margin:0;color:var(--ink)}.composer-toolbar{display:flex;align-items:center;border-top:1px solid #f0edf2}.composer-toolbar #source{border:0;padding:8px;background:white;margin:0}.composer-toolbar #runButton{align-items:center;gap:10px;font-size:13px}.composer-toolbar #runButton svg{width:15px;height:15px}.composer-caption{color:var(--muted);text-align:center;margin:15px 0 0}.composer-options{position:absolute;bottom:85px;right:15px;z-index:50;width:410px;max-width:calc(100% - 30px);max-height:55vh;overflow:auto;padding:24px;background:white;border:1px solid #ddd7e1;border-radius:12px;box-shadow:0 12px 44px #2e1b351a}.composer-options #fileSection>.folder-card,.composer-options #fileSection>p{display:none}.composer-options .options{display:grid;gap:16px}.composer-options .voice{margin:0 0 20px;padding:16px}.composer-options label,.composer-options p{font-size:13px}.composer-options select{font-size:13px}.compose-mode{font-size:13px!important;margin-bottom:12px}.results{display:none;background:white;border:1px solid #e7e2eb;border-radius:14px;padding:30px;margin:30px auto 22px}.results h2{font-size:18px}.results .badge{font-size:13px;background:#f1eef3;color:#7b7085}.saved{display:none}.saved h2{font-size:24px}.saved .routine{background:white;border:1px solid #e7e2eb;padding:20px;border-radius:12px}.saved .hint{font-size:13px}.saved .section-title>.hint{display:none}.saved #routines>.subtle{display:block;text-align:left;padding:18px;background:white;border:1px solid #e7e2eb;border-radius:8px;margin-top:10px;width:100%}body.writing-report .intro,body.writing-report .composer{display:block}body.writing-report .report-dashboard,body.viewing-report .report-dashboard{display:none}body.viewing-report .results,body.viewing-report .composer{display:block}body.viewing-report .composer{position:relative;bottom:auto;z-index:15}body.viewing-report .grid{display:flex;flex-direction:column}.viewing-report .results{order:0;width:100%}.viewing-report .composer{order:1;width:100%;max-width:1000px}body[data-view=routines] .report-dashboard{display:none}body[data-view=routines] .saved{display:block}body[data-view=history] .saved{display:none}footer{display:none}.secondary{border:1px solid #dedbe1;border-radius:7px;padding:10px 14px;font-size:13px}.subtle{border:0;background:transparent;font-size:13px}.badge{border-radius:5px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Dialogs and navigation share the same restrained controls. */
dialog{border:1px solid #e5dfe9;border-radius:15px;background:white;padding:28px;max-width:min(620px,calc(100vw - 32px));box-shadow:0 20px 80px #24142e24}dialog::backdrop{background:#21132e40}dialog h2{font-size:20px}dialog p{font-size:13px;line-height:1.9}dialog .section-title{margin-bottom:20px}.consent-dialog{max-width:440px}.consent-symbol{width:42px;height:42px;border-radius:10px;background:#eee9f1;display:grid;place-items:center;color:var(--muted);margin-bottom:20px}.consent-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.consent-privacy{font-size:13px;color:var(--muted)}.notification-dialog{margin:80px 28px auto auto;width:380px;max-height:70vh}.notification-item{display:block;text-align:left;border:0;border-bottom:1px solid #eee9f2;background:transparent;padding:18px 0;width:100%}.notification-item strong{font-size:13px;display:block}.notification-item span{font-size:13px;line-height:1.7;display:block;margin-top:7px;color:var(--muted)}.notification-empty{font-size:13px;padding:20px 0}#notificationCount{box-sizing:border-box;flex-shrink:0;font-size:12px;font-weight:600;background:var(--accent);color:white;border-radius:999px;min-width:20px;height:20px;padding:0 6px;display:grid;place-items:center;margin-left:auto;font-style:normal;white-space:nowrap;font-variant-numeric:tabular-nums}#toast{font-size:13px;border-radius:10px;background:#4b2428;max-width:calc(100vw - 32px)}.sidebar-collapsed .sidebar-top{padding:0 7px;height:28px}.sidebar-collapsed .brand img{display:none}.sidebar-collapsed .brand .brand-mini{display:block;width:27px;height:27px}.sidebar-collapsed .collapse-control{position:static;margin:22px auto 20px}.sidebar-collapsed .workspace-profile,.sidebar-collapsed .nav-section,.sidebar-collapsed .aside-note,.sidebar-collapsed .nav>span{display:none}.sidebar-collapsed .nav{justify-content:center;min-height:44px}.sidebar-collapsed #notificationCount{position:absolute;right:0;top:0}.sidebar-collapsed .nav:hover:after,.sidebar-collapsed .nav:focus-visible:after{content:attr(data-tooltip);position:absolute;top:8px;padding:7px 11px;background:var(--ink);color:white;border-radius:5px;white-space:nowrap;font-size:13px;z-index:60}.signin-page aside,.signin-page header{display:none}.signin-page main{margin:0;width:100%;padding:0}.signin-page .composer{display:none!important}
@media(min-width:1500px){main{padding-left:64px;padding-right:64px}.report-dashboard{margin-top:60px}}
@media(max-width:1100px){:root{--sidebar:220px}aside{padding-left:18px;padding-right:18px}.brand img{width:130px}.collapse-control{right:5px}main{padding-left:30px;padding-right:30px}.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.getting-started{grid-column:span 1;padding:25px 10px}.report-tabs button{font-size:13px;padding:9px 11px}.report-dashboard{margin-top:30px}}
@media(max-width:800px){:root{--sidebar:72px}aside{padding:26px 11px}.sidebar-top{padding:0 10px;height:28px}.brand img{display:none}.brand .brand-mini{display:block;width:27px;height:27px}.collapse-control{display:none}.workspace-profile,.nav-section,.aside-note,.nav>span{display:none}aside nav{margin-top:40px}.nav{justify-content:center;min-height:44px;padding:11px}#notificationCount{position:absolute;right:0;top:0}.nav:hover:after,.nav:focus-visible:after{content:attr(data-tooltip);position:absolute;left:58px;top:8px;background:var(--ink);color:white;padding:7px 10px;border-radius:5px;white-space:nowrap;font-size:13px}main{padding:0 24px 30px}header{height:64px}#account{display:none}.report-dashboard{margin-top:24px}.dashboard-heading h1{font-size:26px}.dashboard-heading p{font-size:13px;max-width:200px}.report-cards{gap:16px}.create-report-card{padding:23px 20px}.getting-started{padding:23px 8px}.getting-started h2{font-size:19px}.report-tabs{display:flex;flex-wrap:wrap;width:max-content;max-width:100%}.project-fields{grid-template-columns:1fr}.setup-main{padding:23px}.source-copy{min-width:100px}.composer-toolbar{flex-wrap:wrap}.composer-toolbar #source{max-width:160px}.composer-caption{line-height:1.7}.composer-heading{font-size:13px}.results{padding:22px}}
@media(max-width:520px){main{padding:0 17px 24px}.report-cards{grid-template-columns:1fr}.getting-started{display:none}.dashboard-heading{align-items:flex-start;gap:10px}.dashboard-heading p{max-width:170px}.new-task{font-size:13px;padding:10px;gap:5px}.new-task svg{width:13px;height:13px}.dashboard-heading h1{font-size:24px}.report-tabs{gap:2px;padding:3px}.report-tabs button{font-size:13px;padding:8px;gap:4px}.report-tabs svg{display:none}.create-report-card{min-height:300px}.source-well{padding:15px}.source-symbol{display:none}.template-row>div{min-width:110px}.template-icon{display:none}.report-outline{flex-wrap:wrap}.report-outline select{width:100%}.composer{padding:16px}.composer-toolbar #source{width:100%;max-width:calc(100% - 50px)}.composer-toolbar #runButton{width:100%;justify-content:center}.workspace-heading h1{font-size:26px}.results{padding:17px}.notification-dialog{margin:65px 10px auto auto}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

body[data-view=routines] .saved .eyebrow,body[data-view=routines] #routines>[data-history]{display:none}
body.writing-report .workspace-heading{max-width:none;margin:0 0 20px}.report-outline[aria-labelledby]{overflow:visible}

.composer .reply-form{margin:0;padding:0;border:0}.composer .reply-form label{margin:14px 0 10px}.composer .reply-form textarea{min-height:110px}.composer .reply-form .hint{font-size:13px}.composer .compose-mode{padding:0 0 12px}.dashboard-footnote,.getting-started p{color:#79747e}.report-cover{color:#705a61}
/* Reference pass: compact account/navigation block and large, ordered cards. */
:root{--sidebar:280px}
aside{padding:32px 28px 24px}
.sidebar-top{padding:0 10px;height:36px}.brand img{width:154px;height:36px}
.collapse-control{right:16px;top:39px;width:24px;height:24px}
.workspace-profile{margin:26px 0 28px;padding:10px 12px;border-radius:12px;gap:11px;min-height:56px;background:transparent;text-align:left;width:100%;color:var(--ink)}
.workspace-profile strong{font-size:13px;font-weight:400}.workspace-profile small{font-size:13px;margin-top:1px}.profile-chevron{margin-left:auto;color:#62656d}.profile-chevron .ui-icon{width:16px;height:16px}
aside>.nav-section{margin:0 10px 8px;font-size:13px!important;color:var(--muted)}
aside nav{gap:2px}.nav{min-height:40px;padding:9px 10px;gap:10px;border-radius:7px;font-size:14px;font-weight:400;line-height:22px;align-items:center}
.nav .ui-icon{display:block;width:20px;height:20px;flex:0 0 20px;stroke-width:1.8;overflow:visible}
.nav.active{font-weight:400}
.nav span{line-height:22px}.nav #notificationCount{line-height:20px}
main{padding-left:72px;padding-right:48px}.report-dashboard{margin-top:50px}.dashboard-heading h1{font-weight:400}.dashboard-heading .new-task{font-size:13px}
.report-tabs{margin-bottom:16px;padding:5px;border-radius:12px}.report-tabs button{gap:8px}.report-tabs .ui-icon{width:18px;height:18px}.report-tabs button.active{border-radius:8px}
.report-cards{align-items:stretch}
.create-report-card{min-height:370px;padding:30px;border-radius:20px;max-width:410px}.create-report-card>strong{font-size:20px;max-width:260px;font-weight:400;line-height:1.4}.create-report-card>span:not(.empty-card-icon):not(.card-link){color:var(--muted)}.empty-card-icon{margin-bottom:46px}.card-link{margin-top:auto;padding-top:26px;font-size:13px}
.saved-report-card{padding:12px 10px 19px;border-radius:20px;gap:13px;box-shadow:0 2px 4px #00000008}.saved-report-card>strong{font-size:21px;line-height:1.35;font-weight:600;letter-spacing:-.5px;padding:0 8px}.saved-report-card small{font-size:13px;color:var(--muted)}
.report-card-meta{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.4}.report-card-meta small{display:block;color:var(--muted)}.report-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.report-avatar .ui-icon{width:19px;height:19px}
.report-cover{height:205px;overflow:hidden;padding:24px 27px 0;border-radius:10px}.report-paper{padding:24px 20px;min-height:230px;transform:rotate(-2deg);box-shadow:0 2px 12px #40312d12;border-radius:3px;color:#4b2428}.report-paper strong{font-size:16px;line-height:1.5;font-weight:600}.report-paper p{font-size:13px;line-height:1.8;color:#76727b;white-space:pre-line}.card-status{font-size:13px;padding:4px 9px;border:1px solid #e4e6eb;border-radius:14px}
.ui-icon{display:inline-block;vertical-align:middle;flex-shrink:0}
.sidebar-collapsed{--sidebar:80px}.sidebar-collapsed .nav{padding:10px;gap:0}.sidebar-collapsed .nav .ui-icon{width:20px;height:20px}.sidebar-collapsed .profile-chevron{display:none}
@media(max-width:1100px){:root{--sidebar:250px}aside{padding-left:20px;padding-right:20px}main{padding-left:36px;padding-right:28px}.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.saved-report-card>strong{font-size:18px}.report-dashboard{margin-top:40px}.report-tabs button{font-size:13px}}
@media(max-width:800px){:root{--sidebar:72px}aside{padding:26px 11px}.sidebar-top{padding:0 10px}.workspace-profile{display:none}main{padding:0 22px 30px}.report-dashboard{margin-top:24px}.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.nav{padding:10px;min-height:44px}.report-tabs button{font-size:13px}.saved-report-card>strong{font-size:17px}.report-card-meta{font-size:13px}.report-cover{padding:20px 14px 0}.report-paper{padding:18px 14px}}
@media(max-width:520px){main{padding:0 17px 24px}.report-cards{grid-template-columns:1fr}.report-tabs button{font-size:13px;padding:8px}.dashboard-heading h1{font-size:26px}.dashboard-heading .new-task{font-size:13px}.create-report-card{min-height:340px}.report-dashboard{margin-top:25px}}
/* Live landing-page tokens, with coordinated navigation motion. */
:root{--ink:#252c39;--paper:#faf9f6;--accent:#315bc4;--pale-blue:#c3d9eb;--nav-surface:#f5f7fb;--nav-ease:cubic-bezier(.22,1,.36,1);--nav-duration:440ms}
body{background:var(--paper);color:var(--ink)}main{background:var(--paper);transition:margin-left var(--nav-duration) var(--nav-ease),width var(--nav-duration) var(--nav-ease)}
aside{background:var(--nav-surface);border-right:1px solid #e6ebf3;transition:width var(--nav-duration) var(--nav-ease),padding var(--nav-duration) var(--nav-ease);overflow:visible}
.primary{background:var(--accent);border-color:var(--accent);border-radius:12px}.primary:hover{background:#274da9;border-color:#274da9}.new-task{border-radius:24px;padding:12px 20px}.nav.active{background:#e4ebfc;color:#244baf}.nav.active:hover{background:#dbe5fa}.nav:not(.active){color:#566176}.nav:hover{background:#e9eef8}.report-tabs{background:#edf0f5}.report-tabs button{color:#5c687d}.report-tabs button.active{color:#315bc4}.report-tabs button:hover{background:#f8faff}.dashboard-heading h1,.workspace-heading h1{color:#252c39}.create-report-card,.saved-report-card{border-color:#e4eaf3}.create-report-card:hover,.saved-report-card:hover{border-color:#b8c9ed;box-shadow:0 8px 24px #243c6c0a}.empty-card-icon{color:#315bc4;background:#edf2fc}.card-link{color:#315bc4}.report-cover{background:#e4edf5}.report-paper{background:#fffdf9}.report-avatar{background:#e4ebfc;color:#315bc4}.profile-avatar{background:#e1e8f5;color:#3d587e}.card-status{background:#f0f4fb;color:#5c687d;border-color:#dce5f5}.source-well{background:#f8faff;border-color:#d7e0ef}.source-symbol,.template-icon{color:#5c687d}.secondary:hover{background:#edf2fc}.composer{border-color:#dce3f0;box-shadow:0 4px 15px #243c6c08}
/* Both logo layers stay mounted, allowing a crossfade instead of a layout swap. */
.sidebar-top,.sidebar-collapsed .sidebar-top{position:relative;padding:0 10px;height:36px;flex:0 0 36px}
.brand,.sidebar-collapsed .brand{display:block;position:relative;width:154px;height:36px;overflow:visible;transition:width var(--nav-duration) var(--nav-ease)}
.brand img,.sidebar-collapsed .brand img{position:absolute;top:0;left:0;display:block;width:154px;height:36px;object-fit:contain;opacity:1;transform:translateX(0);transition:opacity 180ms ease,transform var(--nav-duration) var(--nav-ease)}
.brand .brand-mini,.sidebar-collapsed .brand .brand-mini{display:block;width:25px;height:30px;top:3px;opacity:0;transform:scale(.88);transition:opacity 200ms ease,transform var(--nav-duration) var(--nav-ease)}
.sidebar-collapsed .brand{width:25px}.sidebar-collapsed .brand img:not(.brand-mini){opacity:0;transform:translateX(-8px);pointer-events:none}.sidebar-collapsed .brand .brand-mini{opacity:1;transform:scale(1)}
.collapse-control,.sidebar-collapsed .collapse-control{position:absolute;top:85px;right:24px;margin:0;display:grid;border:1px solid #e0e7f2;background:#fff;color:#64728b;transition:right var(--nav-duration) var(--nav-ease),background .2s}
.collapse-control:hover{background:#e4ebfc}.collapse-control .ui-icon{transition:transform var(--nav-duration) var(--nav-ease)}
aside>.nav-section,.sidebar-collapsed aside>.nav-section{display:block;height:18px;margin:57px 10px 10px;opacity:1;overflow:hidden;white-space:nowrap;transition:opacity 160ms ease}
.sidebar-collapsed aside>.nav-section{opacity:0;pointer-events:none}
.nav,.sidebar-collapsed .nav{justify-content:flex-start;gap:10px;padding:10px;min-height:44px;transition:background .18s,color .18s,padding var(--nav-duration) var(--nav-ease)}
.nav>span,.sidebar-collapsed .nav>span{display:block;white-space:nowrap;overflow:hidden;opacity:1;transform:translateX(0)}
.sidebar-collapsed .nav>span{opacity:0;transform:translateX(-6px);pointer-events:none;width:0}
.aside-note,.sidebar-collapsed .aside-note{display:block;margin-top:auto;max-width:none;padding:18px 0 0;border:0}
.aside-note a{display:flex;align-items:center;gap:11px;position:relative;padding:10px;font-size:13px;color:#5c687d;white-space:nowrap;border-radius:8px;min-height:40px}
.aside-note a:hover{background:#e9eef8;text-decoration:none}.aside-note .ui-icon{width:20px;height:20px;flex:0 0 20px}.aside-note a span{overflow:hidden;opacity:1;transition:opacity 150ms ease}.sidebar-collapsed .aside-note a span{opacity:0;width:0;pointer-events:none}
.workspace-profile,.sidebar-collapsed .workspace-profile{display:flex;flex:0 0 62px;margin:12px 0 0;padding:12px 10px;gap:10px;border:1px solid #e0e7f2;border-radius:12px;background:#fff;overflow:hidden;min-width:0;min-height:62px;width:100%;transition:background .18s,padding var(--nav-duration) var(--nav-ease),border-color .18s}
.workspace-profile:hover{background:#f0f4fb;border-color:#c6d3eb}.workspace-profile>div{overflow:hidden;white-space:nowrap;min-width:0;opacity:1;transform:translateX(0);transition:opacity 160ms ease,transform 240ms var(--nav-ease)}
.workspace-profile .profile-avatar{width:32px;height:32px;flex:0 0 32px;font-size:13px}.workspace-profile strong{color:#39455b}.workspace-profile small{color:#5c687d}
.sidebar-collapsed .workspace-profile{padding:12px 4px;border-color:transparent;background:transparent}.sidebar-collapsed .workspace-profile>div{opacity:0;transform:translateX(-8px);pointer-events:none;width:0}.profile-chevron,.sidebar-collapsed .profile-chevron{display:block;opacity:1;transition:opacity 150ms ease}.sidebar-collapsed .profile-chevron{opacity:0;width:0;overflow:hidden}
.sidebar-collapsed aside{padding:32px 18px 24px}.sidebar-collapsed .sidebar-top{padding-left:9px}.sidebar-collapsed .aside-note a{padding-left:10px}.sidebar-collapsed .nav:hover:after,.sidebar-collapsed .nav:focus-visible:after{left:54px}.sidebar-collapsed .aside-note a:hover:after,.sidebar-collapsed .aside-note a:focus-visible:after{content:attr(data-tooltip);position:absolute;left:54px;white-space:nowrap;padding:7px 10px;background:#252c39;color:white;border-radius:5px;font-size:13px}
@media(max-width:1100px){.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){aside,.sidebar-collapsed aside{padding:26px 11px 16px}.sidebar-top,.sidebar-collapsed .sidebar-top{padding-left:10px}.brand{width:25px}.brand img:not(.brand-mini){opacity:0;pointer-events:none}.brand .brand-mini{opacity:1;transform:none}.collapse-control,.sidebar-collapsed .collapse-control{display:none}aside>.nav-section,.sidebar-collapsed aside>.nav-section{display:none}aside nav{margin-top:30px}.nav>span{opacity:0;width:0;pointer-events:none}.workspace-profile,.sidebar-collapsed .workspace-profile{display:flex;padding:12px 8px;border:0;background:transparent}.workspace-profile>div,.profile-chevron{opacity:0;width:0;pointer-events:none}.aside-note a span{opacity:0;width:0}.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.report-cards{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){aside,main,.brand,.brand img,.nav,.nav>span,.workspace-profile,.workspace-profile>div,.collapse-control,.collapse-control .ui-icon,.aside-note a span{transition:none!important}}
body:not(.signin-page)>main{min-height:100vh}
.nav>span,.sidebar-collapsed .nav>span{width:auto;max-width:180px;min-width:0;transition:opacity 150ms ease,transform 260ms var(--nav-ease),max-width var(--nav-duration) var(--nav-ease)}
.sidebar-collapsed .nav>span{max-width:0}
.workspace-profile>div,.sidebar-collapsed .workspace-profile>div{width:160px;max-width:160px;flex:0 1 160px;transition:opacity 150ms ease,transform 260ms var(--nav-ease),max-width var(--nav-duration) var(--nav-ease)}
.sidebar-collapsed .workspace-profile>div{max-width:0}
@media(max-width:800px){.sidebar-collapsed{--sidebar:72px}.nav>span,.workspace-profile>div{max-width:0}}
@media(prefers-reduced-motion:reduce){.nav>span,.workspace-profile>div{transition:none!important}}
/* Top-aligned report workspace. */
body:not(.signin-page)>main>header{display:none}
body:not(.signin-page)>main{padding:32px 36px 220px}
.report-dashboard{margin:0;max-width:none}
.account-session{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e0e7f2;padding-top:18px;margin-top:24px}
.account-session #account{font-size:13px;overflow-wrap:anywhere}.account-session #signout{font-size:13px}

.composer:focus-within{border-color:#b9c9ed;box-shadow:0 8px 36px #243c6c12}
.composer-heading{display:none}.composer #prompt{min-height:48px;max-height:180px;padding:4px 2px;font-size:14px;resize:vertical}.composer-toolbar{padding-top:8px;margin-top:4px;gap:8px}.composer-attach{display:flex;align-items:center;gap:7px;padding:9px 10px;border:0;background:#f0f4fb;color:#566176;border-radius:9px;font-size:13px;white-space:nowrap}.composer-attach .ui-icon{width:17px;height:17px}.composer-toolbar #source{max-width:200px;font-size:13px}.composer-toolbar #runButton{width:36px;height:36px;padding:0;display:grid;place-items:center;border-radius:50%;margin-left:0}.composer-toolbar #runButton span{display:none}.composer-mic{margin-left:auto}.composer-caption{font-size:13px;margin-top:8px}.composer-selection{font-size:13px;line-height:1.6;color:#315bc4;background:#edf2fc;border-radius:7px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:8px;width:fit-content}.voice-dialog{width:460px;max-width:calc(100% - 32px)}.voice-close{margin-left:auto}.voice-dialog .voice{margin:12px 0 0;border-color:#e0e7f2}.voice-dialog audio{width:100%}.voice-dialog #liveCaptions{overflow:auto}.voice-dialog .voice .actions{flex-wrap:wrap}
body:not(.signin-page).writing-report>main,body:not(.signin-page).viewing-report>main{padding-bottom:40px}
@media(min-width:1500px){body:not(.signin-page)>main{padding-left:40px;padding-right:40px}.report-dashboard{margin:0}}
@media(max-width:800px){body:not(.signin-page)>main{padding:25px 22px 220px}.report-dashboard{margin:0}.composer-toolbar{flex-wrap:nowrap}.composer-toolbar #source{display:none}.composer-toolbar #runButton{width:34px;height:34px;flex:0 0 34px}.composer-toolbar .icon-button{width:32px;min-width:32px}.composer-attach{font-size:13px;padding:8px}.composer #prompt{font-size:13px}.composer-caption{font-size:13px}.dashboard-heading .new-task{padding:10px 13px}}
@media(prefers-reduced-motion:reduce){.composer{transition:none!important}}
/* Sidebar destinations are full workspace views; account actions remain a modal. */
body[data-view=connections] .report-dashboard,body[data-view=notifications] .report-dashboard,
body[data-view=connections] .composer,body[data-view=notifications] .composer{display:none!important}
dialog.workspace-page[open]{display:block;position:relative;inset:auto;margin:0;width:100%;max-width:1000px;max-height:none;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;overflow:visible;animation:none}
dialog.workspace-page h2{font-size:var(--title-size);font-weight:400;letter-spacing:-.5px}.workspace-page .connection{background:#fff;border:1px solid #e0e7f2;border-radius:12px;padding:18px;margin:12px 0}.workspace-page .connection strong{color:#252c39;font-size:14px}.workspace-page>.section-title button{display:none}.workspace-page .notification-empty{background:white;border:1px solid #e0e7f2;border-radius:14px;padding:28px;margin-top:24px}.workspace-page .notification-item{background:white;border:1px solid #e0e7f2;border-radius:12px;padding:20px;margin-bottom:12px}.workspace-page .notification-item strong{font-size:14px}
.collapse-control,.sidebar-collapsed .collapse-control{border-radius:50%;width:30px;height:30px}.collapse-control .ui-icon{width:17px;height:17px;transform:rotate(-90deg)}.sidebar-collapsed .collapse-control .ui-icon{transform:rotate(90deg)}
body[data-view=connections]>main,body[data-view=notifications]>main,body[data-view=routines]>main{padding-bottom:40px}.saved{margin:0;max-width:none}
/* Compact command bar and small report stacks. */
body:not(.signin-page)>main{padding-bottom:48px}
.sidebar-top{padding-left:10px}.brand img:not(.brand-mini){object-position:left center}
body:not(.sidebar-collapsed) .brand img:not(.brand-mini){width:144px}
.dashboard-heading{display:grid;gap:28px;margin-bottom:28px}
.dashboard-actions{display:flex;gap:10px;align-items:center}.header-voice{width:42px;height:42px;min-width:42px;margin:0;border:1px solid #dce3f0;border-radius:50%;background:white;color:#53647e}
.command-slot{width:100%;min-width:0;position:relative;z-index:25}
body:not(.signin-page):not(.writing-report):not(.viewing-report)[data-view=home] .composer.header-composer,
body:not(.signin-page):not(.writing-report):not(.viewing-report)[data-view=history] .composer.header-composer{position:relative;inset:auto;transform:none;display:block;width:100%;padding:6px 8px;margin:0;border-radius:26px;background:white;box-shadow:0 2px 8px #243c6c05;transition:box-shadow .22s,border-color .22s}
.header-composer #taskForm{display:flex;align-items:center;gap:6px;position:relative}.header-composer #prompt{height:32px;min-height:32px;max-height:32px;resize:none;font-size:13px;line-height:22px;padding:5px 4px;flex:1;min-width:0;order:1}
.header-composer .composer-toolbar{display:contents}.header-composer .composer-attach{order:0;border-radius:50%;background:transparent;width:32px;height:32px;padding:7px}.header-composer .composer-toolbar>.icon-button{display:none}.header-composer #runButton{order:2;width:30px;height:30px}.header-composer .composer-caption{display:none}.header-composer .composer-selection{position:absolute;top:50px;left:0;max-width:100%;font-size:13px}.header-composer .composer-options{top:48px;bottom:auto;right:0;max-width:min(410px,calc(100vw - var(--sidebar) - 45px));width:410px}
.command-sources{position:absolute;top:calc(100% + 14px);left:-8px;right:-8px;padding:14px;background:#fff;border:1px solid #dce3f0;border-radius:20px;box-shadow:0 18px 45px #243c6c16;z-index:60;animation:source-unfold .24s cubic-bezier(.22,1,.36,1);transform-origin:top center}.command-sources p{font-size:13px;color:var(--muted);margin:0 10px 8px}.command-sources button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:transparent;border-radius:12px;padding:12px;color:#33415c;font-size:13px}.command-sources button:hover{background:#f2f5fc}.command-sources button small{display:block;font-size:13px;color:var(--muted);margin-top:3px}.command-sources .ui-icon{width:20px;height:20px}.composer:not(.header-composer) .command-sources{top:auto;bottom:70px;left:12px;right:12px}.composer:not(.header-composer) .composer-toolbar #runButton{margin-left:auto}
@keyframes source-unfold{from{opacity:0;transform:translateY(-8px) scale(.96)}to{opacity:1;transform:none}}
.report-tabs{display:flex;max-width:100%;margin:0 auto 30px}.report-cards{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.create-report-card,.saved-report-card{position:relative;min-height:190px;padding:20px;border-radius:16px;gap:12px;box-shadow:0 5px 0 -2px #f3f5fa,0 5px 0 -1px #dde4ef,0 10px 0 -4px #f3f5fa,0 10px 0 -3px #e3e8f1}
.create-report-card .empty-card-icon{width:32px;height:32px;border-radius:9px;margin-bottom:0}.create-report-card>strong,.saved-report-card>strong{font-size:14px;font-weight:600;line-height:1.5;padding:0;max-width:none}.create-report-card>span:not(.empty-card-icon):not(.card-link){font-size:13px;margin:0;line-height:1.6}.create-report-card .card-link{margin-top:auto;font-size:13px}.report-cover{display:none}.report-card-meta{padding:0}.report-card-meta>span:last-child{font-size:13px}.report-card-meta small{font-size:13px;padding:0}.saved-report-card .card-status{margin:0;align-self:flex-start;font-size:13px}.saved-report-card>small{padding:0;margin-top:auto;font-size:13px}.getting-started{display:none}
@media(min-width:1600px){.report-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.dashboard-heading{gap:16px;grid-template-columns:auto minmax(180px,1fr) auto}.dashboard-heading h1{font-size:26px}.new-task{padding:10px 12px;font-size:13px}.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.dashboard-heading{grid-template-columns:1fr auto}.command-slot{grid-column:1/-1;grid-row:2}.dashboard-actions{grid-column:2;grid-row:1}.report-tabs{margin-bottom:24px}.header-composer #prompt{font-size:13px}}
@media(max-width:520px){.report-cards{grid-template-columns:1fr}.report-tabs button{padding:8px;font-size:13px}.header-voice{width:34px;height:34px;min-width:34px}.dashboard-actions{gap:6px}.dashboard-heading{gap:16px}.dashboard-heading h1{font-size:23px}.dashboard-heading .new-task{padding:9px;font-size:13px}.create-report-card,.saved-report-card{min-height:180px}}
@media(prefers-reduced-motion:reduce){.command-sources{animation:none}}
.header-composer .compose-mode{display:none!important}
body:not(.sidebar-collapsed) .brand img:not(.brand-mini){object-fit:contain;object-position:left center}
@media(max-width:800px){body:not(.sidebar-collapsed) .sidebar-top{padding-left:10px}}
@media(max-width:800px){body:not(.sidebar-collapsed) .sidebar-top{padding-left:10px}}
/* Focus belongs to the rounded command frame, not the textarea inside it. */
.header-composer #prompt:focus,.header-composer #prompt:focus-visible{outline:none;box-shadow:none}
.header-composer:focus-within{border-radius:26px}
.dashboard-heading h1{font-size:23px;letter-spacing:-.5px}
body:not(.sidebar-collapsed) .sidebar-top{padding-left:7px}
.result-back{display:flex;align-items:center;gap:8px;margin:0 0 22px;padding:6px 0;color:#526685;font-size:13px}.result-back svg{width:16px;height:16px;transform:rotate(-90deg)}
.report-stack{position:relative;min-width:0}.report-stack .saved-report-card{width:100%;box-shadow:0 2px 7px #243c6c05;padding-bottom:46px}
.report-stack.has-stack .saved-report-card{box-shadow:0 5px 0 -2px #f3f5fa,0 5px 0 -1px #dde4ef,0 10px 0 -4px #f3f5fa,0 10px 0 -3px #e3e8f1}
.stack-controls{position:absolute;right:14px;display:flex;align-items:center;gap:5px}.stack-controls button{padding:4px;border:1px solid #e2e8f2;border-radius:50%;background:#fff;color:#526685;display:grid;place-items:center}.stack-controls button:hover:not(:disabled){background:#eef3fc}.stack-controls button:disabled{opacity:.35}.stack-controls svg{width:13px;height:13px}.stack-next svg{transform:rotate(180deg)}.stack-controls span{color:var(--muted);min-width:30px;text-align:center}
@media(max-width:800px){.dashboard-heading{grid-template-columns:1fr auto}.command-slot{max-width:400px}.dashboard-heading h1{font-size:23px}}
@media(max-width:800px){body:not(.sidebar-collapsed) .sidebar-top{padding-left:10px}}
/* Local selection stays inside the source dropdown. */
.local-selection{padding:0}.local-selection #localSelectionStatus{display:block;font-size:13px;overflow-wrap:anywhere}.local-selection button>span{flex:1}.local-selection button>.ui-icon:last-child{width:14px;height:14px;color:var(--muted)}.source-divider{height:1px;background:#e5eaf3;margin:8px 10px}.command-sources{max-height:min(540px,70vh);overflow:auto}
/* Equal side tracks keep command and filters on the same center line. */
.dashboard-heading{grid-template-columns:minmax(0,1fr) minmax(200px,400px) minmax(0,1fr);justify-content:normal}
.dashboard-actions{justify-self:end}.command-slot{justify-self:center}
.report-stack .saved-report-card{height:216px;min-height:216px;max-height:216px;display:grid;align-content:start;overflow:hidden}
.report-stack .report-card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;height:42px;max-height:42px;line-height:21px;overflow-wrap:anywhere;margin:0}
.report-stack .report-card-meta{min-width:0;overflow:hidden}.report-stack .saved-report-card>.card-status{margin:0;justify-self:start;align-self:start;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.report-stack .saved-report-card>small{margin:0;align-self:start}
.report-title-tooltip{position:absolute;left:12px;right:12px;top:103px;z-index:15;padding:12px 14px;border-radius:10px;border:1px solid #dce4f2;background:#fff;box-shadow:0 8px 28px #243c6c22;font-size:13px;line-height:1.65;color:#29394f;overflow-wrap:anywhere;max-height:240px;overflow:auto;text-align:left}.report-stack:has(.report-title-tooltip:not([hidden])){z-index:16}
@media(max-width:1100px){.dashboard-heading{grid-template-columns:1fr auto}.command-slot{grid-column:1/-1;grid-row:2;max-width:400px}.dashboard-actions{grid-column:2;grid-row:1}}
.local-selection #localSelectionStatus{padding:12px 14px;margin:10px 0 8px;background:#f3f6fc;border:1px solid #e3eaf7;border-radius:12px;color:#586b88;line-height:1.7}
.report-card-title:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:3px}
.command-search{position:absolute;top:calc(100% + 14px);left:-8px;right:-8px;z-index:60;background:white;border:1px solid #dce3f0;border-radius:18px;padding:12px;box-shadow:0 18px 45px #243c6c16;max-height:55vh;overflow:auto;font-size:13px;color:#52627c}.command-search p{font-size:13px;margin:6px 8px 10px}.command-search button{display:block;width:100%;border:0;background:none;text-align:left;padding:10px;border-radius:9px;color:#29394f;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.command-search button:hover{background:#eff3fc}.command-search small{display:block;border-top:1px solid #e5eaf3;margin-top:8px;padding:12px 8px 2px;font-size:13px;line-height:1.6}
.composer-selection{display:flex;align-items:center;gap:8px;padding:4px 6px 4px 10px}.composer-selection>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.remove-source{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border:0;border-radius:50%;background:transparent;color:#526b91;font-size:19px;padding:0}.remove-source:hover{background:#dce6fb}.work-activity{position:absolute;right:-54px;top:2px;z-index:40;animation:orb-separate .55s cubic-bezier(.22,1,.36,1)}.activity-orb{position:relative;display:grid;place-items:center;width:42px;height:42px;background:#edf2ff;border:1px solid #d4e0fa;border-radius:50%;color:#315bc4;box-shadow:0 4px 16px #315bc412}.is-working .activity-orb:before{content:'';position:absolute;inset:-3px;border:2px solid transparent;border-top-color:#6e8bd9;border-right-color:#c2d2f7;border-radius:50%;animation:work-orbit 1.7s linear infinite}.activity-panel{position:absolute;top:55px;right:0;width:340px;max-width:calc(100vw - var(--sidebar) - 35px);max-height:60vh;overflow:auto;padding:20px;background:white;border:1px solid #dce4f2;border-radius:18px;box-shadow:0 16px 45px #243c6c18}.activity-panel h3{font-size:14px;font-weight:600;margin:0 0 16px}.activity-item{padding:12px 0;border-top:1px solid #edf1f7}.activity-item strong{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-item p{font-size:13px;color:var(--muted);line-height:1.6;margin:7px 0;overflow-wrap:anywhere}.activity-item button{font-size:13px;border:0;background:none;padding:5px 0;color:#315bc4}.activity-panel>small{display:block;font-size:13px;color:var(--muted);line-height:1.6;margin-top:12px}
@keyframes orb-separate{from{opacity:0;transform:translateX(-40px) scale(.65)}to{opacity:1;transform:none}}@keyframes work-orbit{to{transform:rotate(360deg)}}
@media(max-width:1100px){.command-slot:has(.work-activity:not([hidden])){width:calc(100% - 54px);margin-right:54px}.activity-panel{right:0}}
@media(prefers-reduced-motion:reduce){.work-activity,.is-working .activity-orb:before{animation:none}}

.activity-item summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;border-radius:8px;padding:5px 2px}
.activity-item summary::-webkit-details-marker{display:none}
.activity-item summary>span:first-child{flex:1;min-width:0}
.activity-item summary small{display:block;font-size:13px;color:var(--muted);margin-top:5px}
.activity-chevron{color:var(--muted);transition:transform .22s ease;font-size:18px}
.activity-item[open] .activity-chevron{transform:rotate(180deg)}
.activity-item summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.activity-detail{padding:2px 2px 0;animation:activity-reveal .2s ease}
@keyframes activity-reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.activity-detail{animation:none}.activity-chevron{transition:none}}
.share-person{display:flex;gap:8px;margin-top:12px}.share-person input{flex:1;min-width:0}.share-person select{width:105px}.share-person .ui-icon{width:16px;height:16px}
.download-control{position:relative;display:inline-block}.download-control>.secondary{display:inline-flex;align-items:center;gap:7px}.download-control .ui-icon{width:16px;height:16px}
.download-options{position:absolute;z-index:90;top:calc(100% + 8px);left:0;width:220px;background:white;border:1px solid #dce4f2;box-shadow:0 10px 35px #243c6c18;border-radius:14px;padding:8px}
.download-options button{display:block;width:100%;text-align:left;background:none;border:0;border-radius:8px;padding:11px;color:#33435e;font-size:13px}.download-options button:hover,.download-options button:focus-visible{background:#eef3ff}.download-control>[role=status]{display:block;max-width:260px;margin-top:6px}
.remove-source .ui-icon{width:14px;height:14px}.activity-chevron .ui-icon{width:16px;height:16px}
#sourceAction{position:relative}.command-sources.setup-sources{top:calc(100% + 10px);bottom:auto;left:auto;right:0;width:340px;max-width:calc(100vw - 70px);z-index:70}
.writing-report .composer #prompt{min-height:72px}.writing-report .composer-heading small{line-height:1.7}
@media(max-width:650px){.command-sources.setup-sources{left:0;right:auto;max-width:calc(100vw - 80px)}.share-person{flex-wrap:wrap}.share-person input{flex-basis:100%}}
.back-reports .ui-icon{width:15px;height:15px;transform:rotate(-90deg);margin-right:6px}
.work-activity.floating-activity{position:fixed;right:28px;top:24px;z-index:90}.activity-voice-actions{display:flex;gap:15px;flex-wrap:wrap}.activity-voice-actions button{min-height:32px}.voice-close{display:inline-flex;align-items:center;gap:7px}

/* Voice is a non-modal call: the workspace remains available. */
.voice-dialog[open]{position:fixed;inset:20px 24px auto auto;margin:0;width:330px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;padding:18px;border:1px solid #dfe6f2;border-radius:24px;background:#fff;box-shadow:0 16px 56px #24385426;z-index:110}
.call-heading{display:flex;align-items:center;gap:9px}.call-heading>strong{font-size:16px}.call-heading>span{font-size:13px;color:#65728b}.call-heading .voice-close{margin-left:auto;padding:6px;font-size:13px}.call-heading .ui-icon{width:16px;height:16px}.voice-dialog .voice{border:0;background:transparent;padding:0;margin-top:14px}.voice-dialog .section-title,.voice-dialog .voice>p:first-of-type{display:none}.voice-dialog .actions{gap:8px}.voice-dialog .actions button{font-size:13px;padding:9px 12px;min-height:38px}.voice-dialog #liveEnd{color:#a52d37;background:#fff0f1}.voice-dialog #liveStatus{font-size:13px}.voice-dialog #liveCaptions{max-height:130px;font-size:13px;line-height:1.6}.voice-dialog audio{height:30px}.call-source{font-size:13px;color:#65728b;overflow-wrap:anywhere;margin:12px 0 8px}.call-records{display:flex;gap:6px;align-items:center;border:0;border-radius:12px;background:#eef3ff;color:#315bc4;padding:9px 12px;font-size:13px}.call-records .ui-icon{width:16px;height:16px}.voice-dialog .command-sources{position:relative;inset:auto;min-width:0;width:100%;margin-top:10px;box-shadow:none}.call-wave{display:flex;align-items:center;justify-content:center;gap:3px;height:24px;width:28px}.call-wave i{display:block;width:3px;height:calc(4px + var(--voice-level,0)*20px);border-radius:9px;background:currentColor;transition:height 80ms linear}.call-wave i:nth-child(2),.call-wave i:nth-child(4){height:calc(6px + var(--voice-level,0)*12px)}.call-wave i:nth-child(1),.call-wave i:nth-child(5){height:calc(3px + var(--voice-level,0)*8px)}.activity-orb.has-voice{animation:none}.voice-connected .work-activity.floating-activity{z-index:109}@media(max-width:600px){.voice-dialog[open]{inset:12px 12px auto auto;width:300px;max-width:calc(100vw - 24px)}.voice-connected:not(.voice-minimized) .work-activity.floating-activity{visibility:hidden}.work-activity.floating-activity{right:16px;top:16px}}@media(prefers-reduced-motion:reduce){.call-wave i{transition:none}}

/* Selected sources occupy their own row, so report filters never sit underneath. */
.command-slot>.composer-selection{position:relative;inset:auto;margin:8px 0 0 12px;max-width:calc(100% - 24px);width:fit-content;font-size:13px;box-sizing:border-box}.composer-selection .source-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:transparent;color:inherit;padding:2px 0;text-align:left;font:inherit}.dashboard-heading{align-items:start}.dashboard-heading>h1,.dashboard-actions{align-self:start}.voice-active{position:relative;background:#edf2ff;color:#315bc4;box-shadow:0 0 0 3px #315bc414}.voice-live-indicator{position:absolute;bottom:-4px;right:-4px;display:flex;align-items:center;justify-content:center;gap:2px;width:20px;height:16px;border-radius:8px;background:#315bc4;border:2px solid white;color:white}.voice-live-indicator i{width:2px;height:calc(3px + var(--voice-level,0)*7px);background:currentColor;border-radius:2px;transition:height 80ms linear}.voice-live-indicator i:nth-child(2){height:calc(5px + var(--voice-level,0)*7px)}.voice-muted .voice-live-indicator{background:#738098}.floating-voice{position:fixed;right:24px;top:24px;z-index:108}.voice-connected:not(.voice-minimized) .work-activity.floating-activity{right:80px;top:24px}.voice-dialog .actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.voice-dialog .actions .ui-icon{width:16px;height:16px}.voice-dialog #liveCaptions:not(:has(#liveUser:not(:empty),#liveAssistant:not(:empty))){display:none}@media(max-width:600px){.voice-connected:not(.voice-minimized) .work-activity.floating-activity{visibility:visible;right:64px}.floating-voice{right:16px;top:16px}}
/* Shared component contracts; page-specific layout remains scoped above. */
.dashboard-heading h1,.workspace-heading h1,.saved h2,.workspace-page h2{font-size:var(--title-size);font-weight:400;line-height:1.4;letter-spacing:-.5px;margin-top:0}
:is(input,select,textarea),.project-fields input,.report-outline select,.composer-options select{border-color:var(--field-border);font-size:14px;color:var(--ink)}
.primary,.secondary,.subtle,.new-task{border-radius:var(--button-radius,999px);font-size:14px;line-height:1.5;min-height:40px}.secondary{border-color:var(--field-border);color:var(--ink);background:#fff}.subtle{color:var(--muted)}
.icon-button{min-height:40px;min-width:40px}.header-composer #runButton{min-width:32px;min-height:32px}
.report-tabs{flex-wrap:wrap;width:fit-content;justify-content:center;gap:4px}.report-tabs button{font-size:13px;white-space:nowrap;min-height:40px;padding:8px 12px}
.report-card-meta small,.saved-report-card>small,.report-stack .saved-report-card>.card-status{font-size:13px;color:var(--muted)}
.report-stack .saved-report-card{grid-template-rows:40px 42px 28px 20px;gap:6px;padding:16px 18px 42px}.report-stack .report-card-meta{height:40px}.report-card-meta>span:last-child{min-width:0;overflow:hidden}.report-card-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-card-meta .report-avatar{width:28px;height:28px}
.stack-controls{bottom:10px}.stack-controls button{width:28px;height:28px}.stack-controls span{font-size:13px}
.writing-report .intro{padding-top:0}.writing-report .composer-heading{display:flex}.composer-heading label{margin:0;font-size:14px}.writing-report .composer-toolbar #runButton{display:inline-flex;width:auto;height:auto;min-height:44px;gap:8px;padding:10px 16px;border-radius:var(--control-radius)}.writing-report .composer-toolbar #runButton span{display:inline}.writing-report .composer-attach{display:none}.writing-report .composer-toolbar{flex-wrap:wrap}.writing-report .composer-caption{text-align:left;font-size:13px;line-height:1.6}.source-privacy,.template-row #templateName{font-size:13px!important;color:var(--muted)!important}.source-privacy svg{flex-shrink:0;width:16px;height:20px}
.composer:not(.header-composer) #prompt{border:1px solid var(--field-border);padding:10px;border-radius:var(--control-radius)}
.header-composer:focus-within{outline:3px solid var(--accent);outline-offset:3px;box-shadow:0 0 0 3px #fff!important}
.command-sources{overscroll-behavior:contain}.command-sources p,.command-sources button small{font-size:13px;color:var(--muted)}
dialog{color:var(--ink)}dialog p,dialog .hint{font-size:14px;line-height:1.7}.hint{color:var(--muted)}dialog .section-title h2{min-width:0}dialog .section-title{align-items:flex-start}dialog .section-title button{flex-shrink:0}
.connection,.workspace-page .connection{display:flex;align-items:flex-start;flex-wrap:wrap;gap:16px;min-width:0;padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:12px}.connection>div:first-child{flex:1 1 180px;min-width:0;overflow-wrap:anywhere}.connection .actions,.connection-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%}.connection button{white-space:normal;max-width:100%}.connection small{font-size:13px;color:var(--muted)}
.connection-switch{display:inline-flex;gap:8px;align-items:center;min-height:40px;padding:6px 8px;background:transparent;color:var(--ink);border:1px solid transparent;border-radius:10px;font-size:13px}.switch-track{position:relative;display:inline-block;width:34px;height:20px;border-radius:20px;background:#626b78;flex-shrink:0}.switch-track:before{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff}.connection-switch[aria-checked=true] .switch-track{background:var(--accent)}.connection-switch[aria-checked=true] .switch-track:before{left:17px}
.connection-migration{margin:18px 0;color:var(--muted);font-size:14px}.connection-migration summary{cursor:pointer;min-height:32px}
.danger-zone{border-top:1px solid #e8c6cb;padding-top:20px;margin-top:24px}.danger,.primary.danger{background:var(--error);border-color:var(--error);color:#fff}.secondary.danger,.subtle.danger{color:var(--error);border:1px solid var(--error);background:#fff}
#accountDialog #account{display:block;font-size:14px;overflow-wrap:anywhere}.account-session{flex-wrap:wrap}
#routines{display:grid;gap:14px}.saved .routine{gap:16px}.routine strong{font-size:15px}.routine small,.schedule-summary{font-size:13px;line-height:1.7;color:var(--muted)}.routine details{font-size:13px;overflow-wrap:anywhere}.routine summary{cursor:pointer;margin-top:10px;min-height:28px}.routine .actions{flex-wrap:wrap}.schedule-summary{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--nav-surface)}
#reportIdentity{font-size:13px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}.notification-item time,.notification-item small{display:block;font-size:13px;color:var(--muted);margin-top:6px}.notification-item[data-unread=true]{border-left:3px solid var(--accent)}
@media(max-width:800px){:root,.sidebar-collapsed{--sidebar:72px}body:not(.signin-page)>main{padding:24px 20px 40px}.nav>span,.workspace-profile>div{max-width:0}.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-heading h1,.dashboard-heading h1{font-size:var(--title-size)}}
@media(max-width:600px){.report-cards{grid-template-columns:1fr}.setup-main{padding:16px}.project-fields{gap:12px;margin:14px 0}.report-outline{padding:0;gap:8px}.report-outline select{width:100%}.source-copy,.template-row>div{min-width:0;flex-basis:100%}.source-well{padding:12px}.connection,.workspace-page .connection{padding:16px;flex-direction:column}.connection>div:first-child{flex-basis:auto;width:100%}.connection .actions,.connection-actions{width:100%}.connection .actions button,.connection-actions button{flex:1 1 auto}.report-tabs{width:100%;justify-content:flex-start;margin-bottom:24px}.report-tabs button{flex:1 1 auto;font-size:13px;padding:8px}.dashboard-heading .new-task{font-size:13px;padding:9px 10px}.dashboard-heading{gap:14px}.dashboard-actions{gap:6px}.writing-report .composer-toolbar #runButton{width:100%;justify-content:center}.workspace-page{min-width:0}.source-privacy{display:block}.source-privacy svg{vertical-align:middle;margin-right:6px}.share-person input{width:100%}.share-person select{flex:1}.consent-actions{flex-wrap:wrap}}
@media(max-width:380px){body:not(.signin-page)>main{padding:20px 12px 32px}.dashboard-heading{grid-template-columns:1fr}.dashboard-actions{grid-column:1;grid-row:2;justify-self:start}.command-slot{grid-row:3}.report-tabs button{flex-basis:100%;justify-content:center}.report-stack .saved-report-card{padding-left:14px;padding-right:14px}.report-card-meta{gap:7px}}
.header-composer .composer-heading,.header-composer .prompt-label,.header-composer #scheduleSummary{display:none}
.connected-source-picker{border-top:1px solid var(--line);padding:12px}.connected-source-picker label{margin:0 0 8px;font-size:14px}.connected-source-picker select{max-width:100%;width:100%;font-size:14px;border:1px solid var(--field-border);padding:10px;border-radius:var(--control-radius)}
#selectedConnectedSource{font-size:13px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}.notification-item.is-unread{border-left:3px solid var(--accent)}.routine-actions{display:flex;gap:8px;flex-wrap:wrap}.empty-schedules{padding:24px;background:#fff;border:1px solid var(--line);border-radius:12px}
.connection-identity strong,.connection-identity small{display:block}.connection-identity small{margin-top:6px}
@media(max-width:600px){.saved>.section-title{flex-wrap:wrap;align-items:flex-start}.saved>.section-title h2{max-width:100%}.routine-actions{width:100%}}
body.writing-report .grid{max-width:none;margin:0}.writing-report .composer{max-width:900px;margin-left:0}.prompt-label{font-size:14px;margin:12px 0 8px}
#optionalReportDetails{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}#optionalReportDetails>summary{font-size:14px;color:var(--ink);cursor:pointer;min-height:32px;line-height:1.6}#optionalReportDetails .project-fields{margin:16px 0}#optionalReportDetails .template-row{margin-top:12px}.setup-heading p{margin-top:4px}
/* Keep the visible prompt label; avoid repeating headings above each field. */
.writing-report .setup-heading,.writing-report .composer-heading{display:none}
.writing-report .workspace-heading{margin-bottom:16px}.writing-report .composer{margin-top:12px;padding:16px 20px}.writing-report .prompt-label{margin-top:0}.writing-report .composer-toolbar{margin-top:0;padding-top:8px}.writing-report .composer-caption{margin-top:8px}

/* A stable command surface independent of result rendering and route panels. */
.universal-heading{position:relative;z-index:30}
.universal-command{position:relative;display:flex;align-items:center;gap:6px;width:100%;padding:6px 8px;background:#fff;border:1px solid var(--field-border);border-radius:26px;box-sizing:border-box}
.universal-command:focus-within{outline:3px solid var(--accent);outline-offset:3px}
.universal-command input{flex:1;min-width:0;width:100%;margin:0;padding:6px 2px;border:0;background:transparent;font-size:13px;line-height:22px;border-radius:20px}
.universal-command input:focus-visible{outline:none;box-shadow:none}
.universal-command .composer-attach{flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:transparent;padding:7px}
.universal-command>button[type=submit]{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-width:32px;min-height:32px;max-height:32px;box-sizing:border-box;padding:0;border:0;border-radius:50%;line-height:1}
.universal-command>button[type=submit]>svg{display:block;width:20px;height:20px;margin:0}
.universal-command .command-search{top:calc(100% + 12px);z-index:65}
.universal-command .command-search button{white-space:normal}
body.writing-report .universal-command .composer-attach{display:flex}
@media print{.universal-heading{display:none!important}}
@media(max-width:600px){.universal-heading{grid-template-columns:minmax(0,1fr);gap:14px}.universal-heading .dashboard-actions{grid-column:1;grid-row:2;justify-self:start}.universal-heading .command-slot{grid-column:1;grid-row:3;width:100%;max-width:100%}.universal-command .command-search{left:0;right:0}}

/* Keep schedule creation beside the content it starts, not in the page header. */
.empty-schedules #newSchedule{margin-top:12px}.schedule-create-actions{margin-top:20px}#newSchedule{display:inline-flex;align-items:center;justify-content:center;gap:8px}#newSchedule svg{width:18px;height:18px}

/* New-report setup stays in a single accessible modal, using existing task contracts. */
#localSelectionStatus:empty{display:none}
.new-report-dialog{width:min(680px,calc(100vw - 32px));max-width:680px;max-height:calc(100dvh - 32px);padding:28px;overflow:auto;border:1px solid var(--line);border-radius:24px;background:var(--paper,#fff);color:var(--ink)}
.new-report-dialog::backdrop{background:rgba(25,35,55,.32);backdrop-filter:blur(3px)}
.new-report-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.new-report-heading h2{font-size:24px;font-weight:500;margin:0}
.new-report-heading .icon-button{width:36px;height:36px;padding:8px;border-radius:50%}
body .new-report-dialog .intro{display:block!important;margin:0;padding:0}
.new-report-dialog [hidden]{display:none!important}
body .new-report-dialog .report-setup{display:block;margin:0}
body .new-report-dialog .setup-main{border:0;padding:0;background:transparent;box-shadow:none}
body .new-report-dialog .project-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 20px}
.new-report-dialog label{font-size:14px;font-weight:600}
.new-report-dialog .project-fields label span{font-size:13px;font-weight:400;color:var(--muted);margin-left:6px}
body .new-report-dialog .source-well{display:flex;align-items:center;gap:12px;padding:14px;margin:0 0 20px;background:var(--soft,#f4f6fb);border:1px solid var(--line);border-radius:16px}
.new-report-dialog .source-symbol{display:none}
.new-report-dialog .source-copy{flex:1;min-width:0}.new-report-dialog .source-copy h3{font-size:14px;margin:0;font-weight:600}
.new-report-dialog #sourceAction{margin:0}.new-report-dialog #selectContent{white-space:normal}
body .new-report-dialog .template-row{margin:0 0 20px;padding:0;border:0;display:flex;align-items:center;gap:12px}
.new-report-dialog .template-icon{display:none}.new-report-dialog .template-row>div{flex:1;min-width:0}
.new-report-dialog .template-row strong{font-size:14px;font-weight:600}.new-report-dialog #templateApplicability{display:none}
body .new-report-dialog .report-style-field{display:block;border:0;background:none;padding:0;margin:0 0 20px}
.new-report-dialog .report-style-field select{width:100%}
body .new-report-dialog .composer{display:block!important;position:static!important;width:100%;max-width:none;margin:0;padding:0;border:0;background:none;box-shadow:none}
.new-report-dialog .composer-heading,.new-report-dialog .compose-mode{display:none!important}
.new-report-dialog #prompt{min-height:110px;font-size:14px;resize:vertical}
.new-report-dialog .composer-toolbar{justify-content:flex-end;border:0;margin:12px 0 0;padding:0;gap:12px}
.new-report-dialog .composer-options{position:static;margin:12px 0}
@media(max-width:600px){.new-report-dialog{padding:20px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}body .new-report-dialog .project-fields{grid-template-columns:1fr;gap:14px}.new-report-dialog .source-well,.new-report-dialog .template-row{flex-wrap:wrap}.new-report-dialog #sourceAction{width:100%}.new-report-dialog .template-row>div{flex-basis:50%}}

body.writing-report .new-report-dialog .composer-toolbar #runButton{border-radius:999px;padding:10px 20px;min-height:44px}

.new-report-dialog #sourceAction{display:flex;align-items:center;gap:10px}.selection-ready-check{display:inline-grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#eaf0ff;color:var(--accent)}.selection-ready-check svg{width:16px;height:16px}.selection-ready-check[hidden]{display:none}

/* Source-first modal: essentials first, optional project context progressively disclosed. */
.new-report-dialog{width:min(600px,calc(100vw - 32px));max-width:600px}
.new-report-heading{margin-bottom:20px}
body .new-report-dialog .source-well{background:none;border:0;border-radius:0;padding:0 0 16px;margin:0;gap:16px}
body .new-report-dialog .template-row{padding:0 0 20px;margin:0 0 20px;border-bottom:1px solid var(--line);gap:16px}
.new-report-dialog .optional-label,.report-project-details summary small{font-weight:400;font-size:13px;color:var(--muted);margin-left:6px}
.new-report-dialog .selection-summary,.new-report-dialog #templateName{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.new-report-dialog #prompt{margin-bottom:20px;min-height:104px}
body .new-report-dialog .report-style-field{margin:0 0 18px}
.new-report-dialog .report-style-field label{display:block;margin:0 0 8px}
.report-project-details{margin:0 0 20px}
.report-project-details>summary{display:flex;justify-content:space-between;align-items:center;min-height:36px;cursor:pointer;list-style:none;font-size:14px;font-weight:500;color:var(--ink);border-radius:8px}
.report-project-details>summary::-webkit-details-marker{display:none}.report-project-details>summary svg{width:16px;height:16px;transition:transform .18s ease}.report-project-details[open]>summary svg{transform:rotate(180deg)}
body .new-report-dialog .report-project-details .project-fields{margin:14px 0 0;grid-template-columns:1fr;gap:14px;padding-left:14px;border-left:2px solid var(--line)}
.new-report-dialog .composer-toolbar{padding-top:16px;border-top:1px solid var(--line)}
@media(max-width:600px){body .new-report-dialog .source-well{flex-wrap:nowrap}.new-report-dialog #sourceAction{width:auto;flex-shrink:0}.new-report-dialog #selectContent{max-width:180px}.new-report-dialog .source-copy{flex-basis:auto}.new-report-dialog .selection-summary,.new-report-dialog #templateName{max-width:160px}body .new-report-dialog .template-row{flex-wrap:wrap}.new-report-dialog .template-row>div{flex-basis:auto}}
@media(prefers-reduced-motion:reduce){.report-project-details>summary svg{transition:none}}

.new-report-dialog .report-options-trigger{display:inline-flex;align-items:center;gap:8px;width:auto;border-radius:999px;padding:8px 10px;font-size:13px}.new-report-dialog .report-options-trigger svg{width:18px;height:18px}.new-report-dialog .template-unavailable #templateApplicability{display:block;font-size:13px}

/* Branded modal controls: balanced insets and consistent field hierarchy. */
.new-report-heading{margin:-28px -28px 24px;padding:24px 28px;background:transparent;border-radius:23px 23px 0 0}
.new-report-dialog .report-style-field label,.new-report-dialog .source-copy h3,.new-report-dialog .template-row strong{color:var(--ink);font-size:14px;font-weight:600}
.new-report-dialog #selectContent,.new-report-dialog #selectTemplate{width:190px;max-width:none;min-height:42px;justify-content:center;padding:10px 14px;flex-shrink:0}
.report-project-details>summary{padding:10px 14px;min-height:44px}
.report-style-picker{position:relative}
.new-report-dialog .report-style-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:14px;text-align:left;min-height:46px}
.report-style-trigger>svg,.report-style-list svg{width:16px;height:16px;flex-shrink:0}.report-style-trigger>svg{transition:transform .18s ease}.report-style-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}
.report-style-list{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:20;background:#fff;border:1px solid var(--line);border-radius:14px;padding:6px;box-shadow:0 10px 28px rgba(31,51,96,.12)}
.new-report-dialog .report-style-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 8px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-size:14px;text-align:left}
.new-report-dialog .report-style-list button[aria-selected=true]{background:#edf2ff;color:var(--accent)}.report-style-list button[aria-selected=false] svg{visibility:hidden}.new-report-dialog .report-style-list button:hover,.new-report-dialog .report-style-list button:focus-visible{background:#edf2ff;outline:2px solid var(--accent);outline-offset:-2px}
@media(max-width:600px){.new-report-heading{margin:-20px -20px 20px;padding:20px}.new-report-dialog #selectContent,.new-report-dialog #selectTemplate{width:164px;font-size:12px}body .new-report-dialog .source-well,body .new-report-dialog .template-row{gap:10px}}
@media(prefers-reduced-motion:reduce){.report-style-trigger>svg{transition:none}}

/* Compact devices use labelled destinations within thumb reach. The same DOM
   keeps route handlers, account state and selected local readers intact. */
@media(max-width:800px),(max-width:1000px) and (max-height:500px){
 :root{--mobile-nav-height:72px;--mobile-header-height:64px}
 body:not(.signin-page),body.sidebar-collapsed:not(.signin-page),body.shared-page{--sidebar:0px;--rail:0px}
 html{scroll-padding-top:calc(80px + env(safe-area-inset-top,0px));scroll-padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
 body:not(.signin-page)>aside.workspace-sidebar{
  inset:0 0 auto;width:100%;height:calc(var(--mobile-header-height) + env(safe-area-inset-top,0px));
  display:block;padding:env(safe-area-inset-top,0px) max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));
  background:var(--paper,#f7f7f8);border:0;border-bottom:1px solid var(--line);z-index:45;transition:none;
 }
 body:not(.signin-page)>aside.workspace-sidebar .sidebar-top{display:flex;align-items:center;height:64px;padding:0;margin:0}
 body:not(.signin-page)>aside.workspace-sidebar .brand{display:flex;align-items:center;width:128px;min-height:44px}
 body:not(.signin-page)>aside.workspace-sidebar .brand img:not(.brand-mini){position:static;display:block;width:128px;height:32px;opacity:1;transform:none;pointer-events:auto;object-fit:contain;object-position:left center}
 body:not(.signin-page)>aside.workspace-sidebar .brand .brand-mini{display:none}
 body:not(.signin-page)>aside.workspace-sidebar .collapse-control,
 body:not(.signin-page)>aside.workspace-sidebar>.nav-section{display:none}
 body:not(.signin-page)>aside.workspace-sidebar nav{
  position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;
  height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px));margin:0;
  padding:4px max(4px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(4px,env(safe-area-inset-left,0px));
  border-top:1px solid var(--line);background:#fff;box-shadow:0 -3px 18px #243c6c08;isolation:isolate;
 }
 body:not(.signin-page)>aside.workspace-sidebar nav .nav{
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;
  width:100%;min-width:0;min-height:56px;height:64px;margin:0;padding:7px 1px;
  border-radius:12px;line-height:16px;text-align:center;text-decoration:none;color:var(--muted);font-size:11px;
 }
 body:not(.signin-page)>aside.workspace-sidebar nav .nav>span{display:block;opacity:1;transform:none;width:auto;max-width:100%;pointer-events:auto;line-height:16px;white-space:nowrap;overflow:visible;font-size:11px}
 body:not(.signin-page)>aside.workspace-sidebar nav .nav .ui-icon{width:22px;height:22px;flex:0 0 22px}
 body:not(.signin-page)>aside.workspace-sidebar nav .nav.active{background:#edf2ff;color:var(--accent);font-weight:600}
 body:not(.signin-page)>aside.workspace-sidebar nav .nav:after,
 body:not(.signin-page)>aside.workspace-sidebar .aside-note a:after{display:none}
 body:not(.signin-page)>aside.workspace-sidebar #notificationCount{position:absolute;margin:0;top:3px;right:calc(50% - 26px);min-width:18px;height:18px;font-size:10px;line-height:18px;padding:0 4px}
 body:not(.signin-page)>aside.workspace-sidebar .workspace-profile{
  position:absolute;right:max(12px,env(safe-area-inset-right,0px));top:calc(10px + env(safe-area-inset-top,0px));
  display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:4px;margin:0;border:0;border-radius:50%;background:#e8eefb;gap:0;
 }
 body:not(.signin-page)>aside.workspace-sidebar .workspace-profile>div,
 body:not(.signin-page)>aside.workspace-sidebar .profile-chevron{display:none}
 body:not(.signin-page)>aside.workspace-sidebar .workspace-profile .profile-avatar{width:32px;height:32px;font-size:14px;color:var(--accent)}
 body:not(.signin-page)>aside.workspace-sidebar .aside-note{display:block;position:absolute;right:calc(max(12px,env(safe-area-inset-right,0px)) + 52px);top:calc(10px + env(safe-area-inset-top,0px));margin:0;padding:0;border:0;width:44px;height:44px}
 body:not(.signin-page)>aside.workspace-sidebar .aside-note a{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;margin:0;border-radius:50%;color:var(--muted)}
 body:not(.signin-page)>aside.workspace-sidebar .aside-note a span{display:none}
 body:not(.signin-page)>aside.workspace-sidebar .aside-note .ui-icon{width:22px;height:22px}
 body:not(.signin-page)>main,body.shared-page>main.shared-report{
  margin-left:0;width:100%;max-width:none;
  padding-top:calc(var(--mobile-header-height) + 24px + env(safe-area-inset-top,0px));
  padding-bottom:calc(var(--mobile-nav-height) + 24px + env(safe-area-inset-bottom,0px));
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));transition:none;
 }
 body:not(.signin-page) .int-banner{bottom:calc(var(--mobile-nav-height) + 8px + env(safe-area-inset-bottom,0px))}
 body:not(.signin-page) #toast{bottom:calc(var(--mobile-nav-height) + 12px + env(safe-area-inset-bottom,0px))}
}

/* Recovery stays inside the report surface; creation fields belong to the modal. */
.report-recovery{padding:20px;margin:0 0 24px;border:1px solid var(--line);border-radius:16px;background:var(--paper,#fff);color:var(--ink);font-family:Poppins,sans-serif}
.report-recovery-message{font-size:14px;font-weight:500;line-height:1.6;margin:0 0 8px;overflow-wrap:anywhere}
.report-recovery .hint{font-size:13px;line-height:1.6;margin:0 0 16px;color:var(--muted)}
.report-recovery .primary{font-family:inherit;font-size:14px;font-weight:500;min-height:44px;border-radius:999px;padding:11px 20px;max-width:100%;white-space:normal}
@media(max-width:600px){.report-recovery{padding:16px;margin-bottom:20px}.report-recovery .primary{width:100%}}

/* Selected records stay beside their labels; adding/removing does not move action buttons. */
.new-report-dialog .selected-source-items{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;min-width:0}
.new-report-dialog .selected-source-items:empty{display:none}
.new-report-dialog .selected-record-chip,.new-report-dialog .template-selection{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-width:0}
.new-report-dialog .selected-record-chip{padding:3px 4px 3px 9px;border:1px solid var(--line);border-radius:999px;background:#f1f5fc;color:var(--muted);font-size:13px}
.new-report-dialog .selected-record-chip>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.new-report-dialog .remove-record{display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;min-width:28px;min-height:28px;padding:5px;border:0;border-radius:50%;background:transparent;color:var(--muted)}
.new-report-dialog .remove-record:hover{background:#e4ebfa;color:var(--ink)}
.new-report-dialog .remove-record svg{width:16px;height:16px}
.new-report-dialog .remove-record[hidden]{display:none}
.new-report-dialog .template-selection #templateName{margin:0;min-width:0;max-width:100%}
.new-report-dialog .template-selection{margin-top:5px}
.new-report-dialog .source-copy,.new-report-dialog .template-row>div{min-width:0}
.new-report-dialog #schedule,.new-report-dialog #model{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566173' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding:12px 44px 12px 14px}
.new-report-dialog{margin-block:6vh auto;max-height:88dvh}.new-report-dialog .source-well,.new-report-dialog .template-row{align-items:start}.new-report-dialog #sourceAction{align-self:start}.new-report-dialog .selected-source-items{max-height:120px;overflow:auto}.new-report-dialog .template-selection{max-width:100%;overflow-wrap:anywhere}.new-report-dialog .template-selection #templateName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.new-report-dialog #selectTemplate,.new-report-dialog #selectContent{width:190px;min-width:190px}.new-report-dialog .selection-ready-check{display:none!important}.report-stack .saved-report-card{grid-template-rows:auto 1fr auto}
@media(max-width:600px){.new-report-dialog #selectTemplate,.new-report-dialog #selectContent{width:160px;min-width:160px}.new-report-dialog .remove-record{width:36px;height:36px;flex-basis:36px}}
@media(forced-colors:active){.new-report-dialog #schedule,.new-report-dialog #model{appearance:auto;background-image:none}}
.new-report-dialog .composer-toolbar{position:sticky;bottom:0;z-index:3;background:var(--bg,#faf9f6);padding-bottom:8px}
.new-report-dialog .composer-options{max-width:100%;box-sizing:border-box}

/* Home dashboard view switcher (cards vs list) and sort controls. */
.report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.report-toolbar .report-tabs{margin-bottom:0}
.report-view-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.report-sort{width:auto;min-width:142px;min-height:38px;padding:7px 34px 7px 12px;border:1px solid #dce3f0;border-radius:10px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23566173' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;color:var(--ink,#252c39);font:500 13px/1.3 Poppins,sans-serif;appearance:none;-webkit-appearance:none;cursor:pointer;transition:border-color .14s ease,background-color .14s ease}
.report-sort:hover{border-color:#b8c9e8;background-color:#fafcff}
.view-toggle{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #dce3f0;border-radius:10px;background:#f3f6fb}
.view-toggle button{display:inline-grid;place-items:center;width:34px;height:32px;padding:0;border:0;border-radius:7px;background:transparent;color:#5c687d;cursor:pointer;transition:background-color .14s ease,color .14s ease,box-shadow .14s ease}
.view-toggle button:hover{color:#315bc4;background:#e8effd}
.view-toggle button.active{background:#fff;color:#315bc4;box-shadow:0 1px 4px rgba(37,44,57,.08)}
.view-toggle svg{width:16px;height:16px}
.report-toolbar{display:grid;grid-template-columns:1fr auto 1fr}
.report-toolbar .report-tabs{grid-column:2;justify-self:center}
.report-toolbar .report-view-controls{grid-column:3;justify-self:end}
@media(max-width:1100px){.report-toolbar{display:flex;flex-direction:column;align-items:center}.report-toolbar .report-view-controls{margin:0;width:auto}}
.report-cards.is-list{display:block;padding:0}
.report-list-section{margin:0 0 16px}
.report-list-section summary{width:fit-content;padding:8px 4px;font-weight:600;font-size:14px;cursor:pointer}
.report-list-section ul{margin:0;padding:0;list-style:none}
.report-list-section li+li{border-top:1px solid #dce2eb}
.report-list-row{display:grid;grid-template-columns:20px minmax(0,1fr) minmax(100px,16%) minmax(92px,13%) minmax(105px,13%);gap:14px;align-items:center;width:100%;min-height:46px;padding:8px 12px;background:transparent;border:0;border-radius:4px;color:var(--ink);text-align:left;font-size:13px}
.report-list-row:hover,.report-list-row:focus-visible{background:#edf2fb}
.report-list-row svg{width:18px;height:18px;color:#315bc4}
.report-list-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-list-row .list-name{font-weight:500}
.report-list-row :is(.list-source,.list-date,.list-status){color:#515e74}
@media(max-width:700px){.report-list-row{grid-template-columns:18px minmax(0,1fr) 98px;gap:8px}.report-list-row .list-source{display:none}.report-list-row .list-status{grid-column:2;font-size:12px}.report-list-row .list-date{grid-column:3;grid-row:1}}
@media(max-width:600px){.report-toolbar{margin-bottom:18px}.report-view-controls{width:100%;justify-content:space-between}.report-sort{flex:1;min-width:0}}
@media(prefers-reduced-motion:reduce){.report-sort,.view-toggle button,.report-cards.is-list .report-stack{transition:none}}

.report-list-section li{display:flex;align-items:center}
.report-list-section .report-list-row{flex:1;min-width:0}
button.dashboard-delete{display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:50%;color:var(--muted);background:transparent}
button.dashboard-delete[hidden]{display:none}
button.dashboard-delete:hover,button.dashboard-delete:focus-visible{color:#ae2637;background:#fff1f2}
.dashboard-delete svg{width:17px;height:17px}
.report-stack>.dashboard-delete{position:absolute;right:8px;top:8px;z-index:1}
.report-stack .report-card-meta{padding-right:36px}
