/* The viewer is an app surface; the printed/captured document is always paper. */
@media screen {
 html[data-nineaccord-ui][data-share-theme="graphite"] #docview{background:#090b0e!important;color:#edf1f7!important;color-scheme:dark}
 html[data-nineaccord-ui][data-share-theme="graphite"] #docview .dv-toolbar{background:#111419!important;border-color:#343a44!important;gap:12px}
 html[data-nineaccord-ui][data-share-theme="graphite"] #docview .dv-tab{color:#c1c8d2!important}
 html[data-nineaccord-ui][data-share-theme="graphite"] #docview .dv-tab.on{background:#213047!important;color:#fff!important;border-color:#526783!important}
 html[data-nineaccord-ui][data-share-theme="graphite"] #docview .dv-tab small{opacity:1;color:#bac5d4!important}
 html[data-nineaccord-ui][data-share-theme="graphite"] #docview .dv-btn{background:#20242b!important;color:#edf1f7!important;border-color:#48515e!important}
 html[data-nineaccord-ui][data-share-theme="graphite"] #docview .dv-btn:is(.primary,.on){background:#1b63d3!important;color:#fff!important;border-color:#508fe9!important}
 html[data-nineaccord-ui][data-share-theme="graphite"] #docview .dv-scroll{min-height:0;overscroll-behavior:contain;scrollbar-color:#667184 #111419}
 html[data-nineaccord-ui][data-share-theme="graphite"]:not([data-document-export]) #docview .dv-page{background:#14171c!important;color:#edf1f7!important;box-shadow:0 0 0 1px #343a44,0 12px 40px #0006!important}
 html[data-nineaccord-ui][data-share-theme="graphite"]:not([data-document-export]) #docview .dv-page *{color:#edf1f7!important;border-color:#424b58!important;background-color:transparent!important}
 html[data-nineaccord-ui][data-share-theme="graphite"]:not([data-document-export]) #docview .dv-page [style*="background"]{background-color:#1c222c!important}
 html[data-nineaccord-ui][data-share-theme="graphite"]:not([data-document-export]) #docview .dv-page :is(thead,thead tr,thead th){background:#283140!important;color:#f5f7fc!important}
 html[data-nineaccord-ui][data-share-theme="graphite"]:not([data-document-export]) #docview .dv-page tbody tr:nth-child(even)>td{background:#191e26!important}
 html[data-nineaccord-ui][data-share-theme="graphite"]:not([data-document-export]) #docview .dv-page :is([style*="color:#77808b"],[style*="color:#868d96"],[style*="color:#6d7785"],[style*="color:#707984"]){color:#b8c4d5!important}
 html[data-nineaccord-ui][data-share-theme="graphite"]:not([data-document-export]) #docview .dv-page img[alt="NINE ACCORD"]{filter:invert(1);mix-blend-mode:screen!important}
 html[data-nineaccord-ui][data-share-theme="graphite"]:not([data-document-export]) #docview .dv-page img[style*="mix-blend-mode"]{filter:invert(1);mix-blend-mode:screen!important}
 html[data-nineaccord-ui][data-share-theme="graphite"]:not([data-document-export]) #docview .dv-page[contenteditable="true"]{outline-color:#7bb5ff!important}
}
@media screen and (max-width:600px){
 #docview .dv-toolbar{padding:8px;gap:8px}
 #docview .dv-tabs{width:100%;flex-wrap:nowrap;overflow-x:auto}
 #docview .dv-tab{flex-shrink:0}
 #docview .dv-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 #docview .dv-actions .dv-btn{padding:8px 4px;font-size:12px;min-height:44px;white-space:nowrap}
 #docview .dv-scroll{padding:12px 10px 28px}
 #docview .dv-page{width:760px;min-width:760px;box-sizing:border-box;padding:26px}
}
/* html2canvas uses a cloned document. This marker never touches the live UI. */
html[data-document-export][data-nineaccord-ui] :is(#docview .dv-page,.dv-page),html[data-document-export][data-nineaccord-ui] :is(#docview .dv-page,.dv-page) *{color:#172033!important;border-color:#c5cbd5!important;background-color:#fff!important;color-scheme:light}
html[data-document-export][data-nineaccord-ui] :is(#docview .dv-page,.dv-page) :is(thead,thead tr,thead th){background:#edf0f4!important;color:#303a49!important}
html[data-document-export][data-nineaccord-ui] :is(#docview .dv-page,.dv-page) img{filter:none!important;mix-blend-mode:normal!important;background:transparent!important}
html[data-document-export][data-nineaccord-ui] :is(#docview .dv-page,.dv-page){box-shadow:none!important;outline:none!important}
@media print{
 html body.dv-printing #docview,html body.dv-printing #docview .dv-page,html body.dv-printing #docview .dv-page *{color:#172033!important;border-color:#c5cbd5!important;background-color:#fff!important;color-scheme:light}
 html body.dv-printing #docview .dv-page :is(thead,thead tr,thead th){background:#edf0f4!important;color:#303a49!important}
 html body.dv-printing #docview .dv-page img{filter:none!important;mix-blend-mode:normal!important;background:transparent!important}
 html body.dv-printing #docview .dv-page{outline:none!important;min-width:0!important}
}
