/* Professional Pastel UI: screen only, document previews excluded. */
@media screen {
html{--ui-text:#1e293b;--ui-muted:#475569;--ui-accent:#624487;--ui-border:#dcd3e8;--ui-surface:#fff;--ui-shadow:0 3px 12px #38254e12}
html[data-theme=dark]{--ui-text:#f5f3ff;--ui-muted:#c9c5da;--ui-accent:#d6baff;--ui-border:#51466a;--ui-surface:#1c2032;--ui-shadow:0 3px 12px #0004}
html,body{font-size:16px!important}main#app{font-size:16px;color:var(--ui-text);line-height:1.5}
#app :is(h1,h2,h3,h4,p,label,.muted,.note,.sales-note,.v4-muted,.card b):not(:is(.classic-doc,.pdfpage,.livepaper,.preview,.quote-doc) *){color:var(--ui-text)!important}
#app :is(.muted,.note,.sales-note,.v4-muted,small):not(:is(.classic-doc,.pdfpage,.livepaper,.preview,.quote-doc) *){color:var(--ui-muted)!important;font-size:14px!important;line-height:1.5}
#app :is(p,label,button,input,select,textarea):not(:is(.classic-doc,.pdfpage,.livepaper,.preview,.quote-doc) *){font-size:16px!important;line-height:1.45}
#app h1:not(:is(.classic-doc,.pdfpage,.livepaper,.preview,.quote-doc) *){font-size:27px!important;font-weight:750;line-height:1.25}
#app h2:not(:is(.classic-doc,.pdfpage,.livepaper,.preview,.quote-doc) *){font-size:22px!important;font-weight:700;line-height:1.3}
#app :is(h3,h4):not(:is(.classic-doc,.pdfpage,.livepaper,.preview,.quote-doc) *){font-size:18px!important;font-weight:650}
#app :is(.sales-table,.cm-table) :is(td,th){font-size:14px!important;line-height:1.45}#app :is(.sales-table,.cm-table) th{font-weight:700}
#app :is(.sales-kpi strong,.customer-mini b,.totals strong){font-size:26px!important;font-weight:750}
aside#sidebar{overflow-y:auto;overscroll-behavior:contain;padding-inline:10px!important}
aside#sidebar button{font-size:15px!important;font-weight:550;line-height:1.35!important;color:var(--ui-text)!important;background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;border-radius:11px!important;margin:4px 0!important;padding:9px 10px!important;min-height:44px;transition:transform .16s,box-shadow .16s,background .16s;white-space:normal;text-align:left}
aside#sidebar button.active{background:#e6daf5!important;color:#422765!important;border-color:#b69bd5!important;box-shadow:inset 3px 0 #7953a4;font-weight:700}
html[data-theme=dark] aside#sidebar button.active{background:#392952!important;color:#f3e5ff!important;border-color:#a78bd5!important}
aside#sidebar .sub{color:var(--ui-muted)!important;font-size:12px!important;font-weight:750;letter-spacing:.05em;border-top:1px solid var(--ui-border);margin-top:8px}
#app .hero.ganesha-hero .ganesha-copy h1{font-size:34px!important;font-weight:800!important;color:var(--ui-text)!important;line-height:1.2}
#app .hero.ganesha-hero .ganesha-copy p{font-size:17px!important;color:var(--ui-muted)!important;line-height:1.5}
#app .hero.ganesha-hero .ganesha-copy{background:linear-gradient(90deg,#ffffffb8,#ffffff55);border-radius:16px;padding:16px;max-width:55%}
html[data-theme=dark] #app .hero.ganesha-hero .ganesha-copy{background:#151326b8}
#app .cards{gap:12px!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
#app .cards .card{border:1px solid var(--ui-border)!important;box-shadow:var(--ui-shadow);border-radius:16px!important;padding:16px!important;min-height:136px!important;transition:transform .18s,box-shadow .18s;text-align:left;color:var(--ui-text)!important}
#app .cards .card b{font-size:18px!important;font-weight:750;line-height:1.3;margin:9px 0!important}
#app .cards .card>span:first-child{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;font-size:24px!important;box-shadow:var(--ui-shadow)}
#app .cards .card .muted{display:inline-block;font-size:13px!important;transition:transform .18s}
#app :is(button,input,select,textarea):focus-visible,aside#sidebar button:focus-visible{outline:3px solid #9470c5;outline-offset:2px}
@media(hover:hover) and (pointer:fine){aside#sidebar button:hover{transform:translateY(-1px);box-shadow:0 4px 10px #59427524}#app .cards .card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #59427526}#app .cards .card:hover .muted{transform:translateX(3px)}}
@media(max-width:760px){main#app{padding:10px!important}#app h1:not(:is(.classic-doc,.pdfpage,.livepaper,.preview,.quote-doc) *){font-size:23px!important}#app h2:not(:is(.classic-doc,.pdfpage,.livepaper,.preview,.quote-doc) *){font-size:20px!important}#app .hero.ganesha-hero .ganesha-copy h1{font-size:27px!important}#app .hero.ganesha-hero .ganesha-copy{max-width:100%;padding:12px}#app .hero.ganesha-hero .ganesha-copy p{font-size:16px!important}#app .cards .card{padding:12px!important;min-height:124px!important}#app .cards .card b{font-size:17px!important}#app :is(.sales-kpi strong,.customer-mini b){font-size:22px!important}aside#sidebar button{font-size:15px!important}}
@media(prefers-reduced-motion:reduce){aside#sidebar button,#app .cards .card,#app .cards .card .muted{transition:none!important;transform:none!important}}
}
