/* NovaPDF 2.1 — responsive workspace. Scope to app chrome, not document content. */
:root{--ui-radius:14px;--ui-gap:20px}
#topHeader .nova-mark{width:36px;height:36px;min-width:36px;flex:0 0 36px;border:0;border-radius:9px;overflow:hidden}
#topHeader .nova-mark img{width:36px!important;height:36px!important;max-width:100%;object-fit:contain}
#topHeader .brand{min-width:0;gap:9px}#topHeader .brand>div{min-width:0}#topHeader .brand strong{font-size:16px;white-space:nowrap}#topHeader .brand small{font-size:11px;white-space:nowrap}
#topHeader .headControls{display:flex;gap:6px;align-items:center;flex:none}#topHeader .headControls button{min-height:40px;min-width:40px}#topHeader #settings6{margin:0}#topHeader .actions button{min-height:40px}
.v2editorShortcuts{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:5px 10px;background:var(--panel);border-bottom:1px solid var(--line);flex:none}
.v2editorShortcuts #n7SignBar,.v2editorShortcuts .v2tooltoggle{margin:0;align-self:auto;min-height:38px;padding:7px 12px;font-size:12px;white-space:nowrap;border-radius:9px;background:var(--panel);color:var(--ink)}
.v2editorShortcuts #n7SignBar{background:#087b89!important;color:white!important;border-color:#087b89!important}
#workspace .toolbar{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;background:var(--panel)}#workspace .toolbar .row{flex:none;flex-wrap:nowrap}#workspace .toolbar #fileName{flex:1;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis}
#workspace .foot{background:var(--panel);color:var(--muted);border-color:var(--line)}#workspace #txBanner{padding:6px 10px;margin-bottom:8px;border-radius:9px;box-shadow:none}
/* Dashboard: flat, spacious surfaces, a compact navigation rail and legible tool labels. */
html[data-theme=dark] body.homeMode #homeScreen{background:#091b29}
body.homeMode #homeScreen .homeInner{grid-template-columns:220px minmax(0,1fr)}
body.homeMode .nd-sidebar{background:#0b2434;padding:24px 12px;gap:30px;border-right:1px solid #234354}
body.homeMode .nd-sidebar:after{display:none}body.homeMode .nd-logo{padding:0 8px;gap:10px}body.homeMode .nd-logoicon{width:38px;height:38px;border-radius:9px}body.homeMode .nd-logo strong{font-size:17px}body.homeMode .nd-logo small{font-size:9px;background:transparent;color:#a5cbd3;padding:0;letter-spacing:1px}
body.homeMode .nd-menu{gap:5px}body.homeMode .nd-menu button{min-height:46px;font-size:14px;padding:10px 12px;border-radius:9px}body.homeMode .nd-menu button.nd-selected{background:#10546a!important;box-shadow:inset 3px 0 #45d6d9}body.homeMode .nd-sidefoot{font-size:12px;color:#aac4d1;line-height:1.6}
body.homeMode .nd-main{width:100%;max-width:1480px;margin:0 auto;padding:30px 32px 40px;overflow-x:clip}
body.homeMode .nd-top{gap:16px;margin-bottom:28px}body.homeMode .nd-top h1{font-size:29px;line-height:1.2;font-weight:700;letter-spacing:-.6px}body.homeMode .nd-top p{font-size:14px;margin-top:6px;line-height:1.4}body.homeMode .nd-topright{gap:8px}body.homeMode .nd-search{min-width:170px;width:clamp(180px,23vw,360px)}body.homeMode .nd-search input{font-size:14px!important;height:46px;border-radius:11px}body.homeMode .nd-iconbtn{height:46px;width:44px}body.homeMode .nd-lang{width:auto;padding:0 10px}
body.homeMode .nd-layout{grid-template-columns:minmax(0,1fr) minmax(245px,290px);gap:22px}body.homeMode .nd-center,body.homeMode .nd-right{gap:24px}body.homeMode .nd-lower{grid-template-columns:1fr;gap:18px}
body.homeMode .nd-card{padding:20px;border-radius:var(--ui-radius);box-shadow:none}body.homeMode .nd-card h2,body.homeMode .nd-heading h2{font-size:18px;line-height:1.3}body.homeMode .nd-heading{margin-bottom:14px}body.homeMode .nd-link{font-size:13px;min-height:36px}
body.homeMode .nd-hero{min-height:250px;padding:28px;grid-template-columns:minmax(0,1.35fr) minmax(125px,.65fr);gap:15px;border-radius:18px;background:linear-gradient(120deg,#edfaff,#bfeaf1);color:#102e40}body.homeMode .nd-hero:before,body.homeMode .nd-hero:after{opacity:.17}body.homeMode .nd-hero h2{font-size:clamp(27px,2.4vw,37px);line-height:1.12;margin-bottom:12px}body.homeMode .nd-hero p{font-size:14px;line-height:1.5;margin-bottom:20px}body.homeMode .nd-hero-art{max-height:185px}body.homeMode .nd-hero .heroActions button{font-size:13px;min-height:44px;padding:9px 13px;white-space:normal}
body.homeMode .nd-actiongrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}body.homeMode .nd-actiongrid button{min-height:100px;font-size:13px;line-height:1.3;gap:10px;padding:12px 6px;border-radius:12px}body.homeMode .nd-actiongrid button svg{width:27px;height:27px}html[data-theme=dark] body.homeMode .nd-actiongrid button{background:#0f2c3d;border-color:#25495a}html[data-theme=dark] body.homeMode .nd-actiongrid button:hover{background:#153c4d;border-color:#3a8999}
body.homeMode .nd-creategrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}body.homeMode .nd-creategrid button{font-size:12px;min-height:76px}body.homeMode .nd-card p,body.homeMode .nd-note,body.homeMode .nd-storageinfo{font-size:13px;line-height:1.55}body.homeMode .nd-empty{padding:25px 10px;min-height:105px}body.homeMode .nd-empty strong{font-size:14px}body.homeMode .nd-empty span{font-size:12px}body.homeMode .nd-brandcard{display:none}body.homeMode .nd-tips{background:var(--dash-card)}
/* Narrow desktop / tablet: do not squeeze three columns into a tiny viewport. */
@media (min-width:1001px) and (max-width:1250px){body.homeMode #homeScreen .homeInner{grid-template-columns:190px minmax(0,1fr)}body.homeMode .nd-main{padding:24px}body.homeMode .nd-layout{grid-template-columns:minmax(0,1fr)}body.homeMode .nd-right{grid-template-columns:repeat(2,minmax(0,1fr))}body.homeMode .nd-top h1{font-size:25px}body.homeMode .nd-top p{font-size:13px}}
@media(max-width:1000px){
 body.homeMode #homeScreen .homeInner{grid-template-columns:minmax(0,1fr)}body.homeMode .nd-sidebar{position:fixed;top:0;left:0;width:245px;height:100dvh;transform:translateX(-105%);transition:transform .18s ease;z-index:50}body.homeMode .nd-sidebar.nd-open{transform:translateX(0)}body.homeMode .nd-mobilebackdrop.nd-open{display:block;position:fixed;inset:0;background:#03142199;z-index:49}body.homeMode .nd-menu-toggle{display:grid}
 body.homeMode .nd-main{padding:18px 18px 96px;max-width:820px}body.homeMode .nd-top{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;margin-bottom:18px}body.homeMode .nd-top h1{font-size:24px}body.homeMode .nd-top p{font-size:13px}body.homeMode .nd-topright{grid-column:1/-1;display:flex;flex-wrap:nowrap;justify-content:initial;gap:7px}body.homeMode .nd-search{flex:1;min-width:0;width:auto}body.homeMode .nd-search input{height:46px;font-size:14px!important}body.homeMode .nd-iconbtn{width:42px;height:44px}body.homeMode .nd-lang{width:auto;white-space:nowrap;font-size:11px}
 body.homeMode .nd-layout{grid-template-columns:1fr;gap:20px}body.homeMode .nd-center,body.homeMode .nd-right{gap:20px}body.homeMode .nd-hero{min-height:215px;padding:20px;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}body.homeMode .nd-hero h2{font-size:27px}body.homeMode .nd-hero p{font-size:13px;margin-bottom:12px}body.homeMode .nd-hero-art{max-height:145px}body.homeMode .nd-hero .heroActions button{font-size:12px;min-height:40px;padding:8px 10px}body.homeMode .nd-main .nav6{display:flex!important;position:fixed!important;bottom:max(8px,env(safe-area-inset-bottom));left:10px;right:10px;background:var(--dash-card);border:1px solid var(--dash-border);border-radius:13px}body.homeMode .nd-main .nav6 button{font-size:11px;min-height:46px}body.homeMode .nd-card{padding:16px}
 body:not(.homeMode) #topHeader{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'brand controls' 'actions actions';align-items:center;gap:7px;padding:8px 10px}
 #topHeader .brand{grid-area:brand}#topHeader .headControls{grid-area:controls;margin:0;justify-self:end;gap:5px}#topHeader .actions{grid-area:actions;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#topHeader #homeBtn{display:none}#topHeader .headControls button{min-height:36px;min-width:36px;padding:6px}#topHeader .actions button{font-size:12px;min-height:38px;padding:6px 3px}#topHeader .brand strong{font-size:14px}#topHeader .brand small{font-size:10px}#topHeader .nova-mark{width:32px;height:32px;min-width:32px;flex-basis:32px}#topHeader .nova-mark img{width:32px!important;height:32px!important}
 .v2editorShortcuts{justify-content:stretch;gap:7px}.v2editorShortcuts button{flex:1;min-width:0}.v2editorShortcuts #n7SignBar,.v2editorShortcuts .v2tooltoggle{font-size:12px;min-height:36px;padding:6px 4px}.nxnav62{padding:4px 8px}.v8-tabbar{padding:4px 8px}#workspace .toolbar{padding:4px 7px}#workspace .toolbar #fileName{font-size:10px}#workspace .toolbar button{min-height:34px;padding:4px 6px}#workspace #txBanner b{font-size:12px}#workspace #txBanner button{min-height:34px}
}
@media(max-width:540px){body.homeMode .nd-main{padding:14px 12px 90px}body.homeMode .nd-top h1{font-size:22px}body.homeMode .nd-top p{font-size:12px}body.homeMode .nd-hero{padding:17px 14px;min-height:205px;gap:6px}body.homeMode .nd-hero h2{font-size:24px}body.homeMode .nd-hero p{font-size:12px}body.homeMode .nd-actiongrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}body.homeMode .nd-actiongrid button{min-height:86px;font-size:11px;padding:8px 4px;gap:7px}body.homeMode .nd-actiongrid button svg{width:24px;height:24px}body.homeMode .nd-card h2,body.homeMode .nd-heading h2{font-size:17px}body.homeMode .nd-creategrid{grid-template-columns:repeat(2,minmax(0,1fr))}#topHeader .brand small{display:none}#topHeader .headControls button{min-width:34px}#topHeader .actions button{font-size:11px}#workspace .toolbar #fileName{display:none}#workspace .toolbar{justify-content:space-between}#workspace .toolbar .row{gap:4px}}
@media(max-width:345px){body.homeMode .nd-hero{grid-template-columns:1fr}body.homeMode .nd-hero-art{display:none}body.homeMode .nd-actiongrid{grid-template-columns:repeat(3,minmax(0,1fr))}#topHeader .brand strong{font-size:12px}#topHeader .headControls{gap:3px}}

@media(min-width:1251px){body.homeMode .nd-lower{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:stretch}body.homeMode .nd-lower .nd-card{min-width:0;padding:16px}body.homeMode .nd-lower .nd-card h2{font-size:16px}body.homeMode .nd-lower .nd-heading{gap:6px}body.homeMode .nd-lower .nd-heading .nd-link{font-size:11px}}
@media(min-width:1001px){#topHeader .actions{flex:1;justify-content:center}#topHeader .brand{flex:none}}

/* 2.2 — one document strip, no duplicate close action. */
#workspace .nova-docnav{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0;flex:0 0 auto;padding:6px 10px;background:var(--panel);border-bottom:1px solid var(--line)}
#workspace .nova-docnav #tabBar8{flex:1 1 0;min-width:0;gap:8px;padding:0;border:0;background:transparent}
#workspace .nova-docnav #nxBack62,#workspace .nova-docnav #nxClose62{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:7px 10px;border-radius:8px;white-space:nowrap;font-size:12px}
#workspace .nova-docnav #nxClose62{margin-left:auto;color:var(--ink)}
#workspace .nova-docnav:has(#tabBar8[hidden]) #nxClose62:disabled{display:none}
#workspace .nova-docnav #nxClose62:hover:not(:disabled){color:#b42335;border-color:#b42335}
html[data-theme=dark] #workspace .nova-docnav #nxClose62:hover:not(:disabled){color:#ffb5b5;border-color:#ffb5b5}
#workspace .nova-docnav .v8-tab.active .v8-tabclose{display:none}
#workspace .nova-docnav .v8-tab{min-width:105px;max-width:240px;min-height:40px;border-radius:8px}
#workspace .nova-docnav .v8-tab.active{border-color:var(--accent);box-shadow:inset 0 -2px var(--accent)}
#workspace .nova-docnav .v8-tabname{min-height:38px;text-align:left;padding:7px 10px!important}
#workspace .nova-docnav .v8-tabclose{min-height:38px}
#workspace .nova-docnav #newTab8{min-height:40px;flex:none;border-radius:8px}
#topHeader .headControls #n7VoiceHeader{display:grid;place-items:center;flex:none;width:40px;min-width:40px;max-width:40px;padding:7px;margin:0}
#topHeader .headControls #n7VoiceHeader svg{width:19px;height:19px}
@media(max-width:1000px){
 #workspace .nova-docnav{padding:5px 8px;gap:6px}
 #workspace .nova-docnav #tabBar8{gap:6px}
 #workspace .nova-docnav #nxBack62,#workspace .nova-docnav #nxClose62{width:42px;min-width:42px;height:42px;padding:0}
 #workspace .nova-docnav #nxBack62 span,#workspace .nova-docnav #nxClose62 span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #workspace .nova-docnav #nxBack62 svg,#workspace .nova-docnav #nxClose62 svg{width:20px;height:20px}
 #workspace .nova-docnav .v8-tab{min-width:100px;max-width:180px;min-height:40px}
 #workspace .nova-docnav .v8-tablist:has(.v8-tab:only-child) .v8-tab{flex:1 1 0;max-width:none;min-width:0}
 #workspace .nova-docnav #newTab8{min-height:42px;padding:6px 8px!important;white-space:nowrap}
 #topHeader .headControls #n7VoiceHeader{width:36px;min-width:36px;max-width:36px;height:36px}
}
@media(max-width:345px){#workspace .nova-docnav{gap:4px;padding:4px 6px}#workspace .nova-docnav #tabBar8{gap:4px}#workspace .nova-docnav #newTab8{padding:6px!important;font-size:11px!important}#topHeader .headControls #n7VoiceHeader{width:34px;min-width:34px;max-width:34px}}
