/* Shared screen design. Stationery/PDF rendering keeps its existing styles. */
@media screen{
 :root{--modern-font:'Jost',system-ui,sans-serif;--modern-ink:#172d25;--modern-green:#164f3b;--modern-ground:#f3f5f1;--modern-line:#e2e7e1}
 body{background:var(--modern-ground);color:var(--modern-ink);font-family:var(--modern-font);font-size:16px}
 body>header{height:auto;min-height:86px;background:#fff;box-shadow:none;border:0;padding:22px max(24px,calc((100vw - 1320px)/2));gap:24px}
 .header-links{gap:20px}.header-links a,.account-nav a{font-family:var(--modern-font);font-size:14px}
 .brand .site-logo{width:140px}.brand span{display:none}
 main{max-width:1380px;padding:0 28px;margin:0 auto}
 .modern-hero{grid-template-columns:1.05fr 1fr;gap:18px;padding:24px 0 40px;min-height:660px;align-items:stretch}
 .modern-hero .hero-copy{background:#e8eee5;padding:64px 42px 42px;max-width:none;border-radius:12px;display:flex;flex-direction:column;justify-content:center}
 .modern-hero h1{font:600 clamp(42px,5.2vw,76px)/1.02 var(--modern-font);letter-spacing:-.055em;margin:0 0 30px;color:var(--modern-ink)}
 .modern-hero .hero-copy>p{font-size:18px;color:#435c4c;line-height:1.6;max-width:470px}
 .modern-hero .hero-actions{gap:18px;align-items:flex-start;flex-wrap:wrap;margin:30px 0 0}
 .hero-actions .hero-primary{background:#172d25;border-radius:7px;box-shadow:none;padding:16px 20px;color:#fff;font:500 16px var(--modern-font);gap:22px;transition:transform .2s,background .2s}
 .hero-actions .hero-primary:hover{background:#28543e;box-shadow:none;transform:translateY(-2px)}
 .hero-actions .hero-secondary{font:500 16px var(--modern-font);padding:16px 0;gap:10px}
 .modern-hero .hero-copy>.hero-footnote{font-size:14px;margin-top:26px;color:#526b59}
 .modern-hero .document-scene{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#164f3b;min-height:560px;height:auto;border-radius:12px;padding:32px;isolation:isolate;overflow:hidden;position:relative}
 .scene-caption{align-self:flex-start;font-size:15px;color:#d0e3d2;margin:0 0 22px}
 .scene-document{width:min(100%,350px);background:#fff;padding:30px 27px 36px;border-radius:4px;transform:translateY(calc(var(--hero-progress,0)*-24px)) rotate(calc(-3deg + var(--hero-progress,0)*3deg));transform-origin:50% 70%;will-change:transform;position:relative;z-index:1}
 .scene-document img{width:105px;height:auto;display:block;margin-bottom:28px}
 .document-mode-tabs{display:flex;gap:8px;margin-bottom:24px}.document-mode-tabs button{border:0;background:#edf2ec;color:#4c6455;padding:7px 12px;border-radius:4px;font:500 13px var(--modern-font);min-height:36px}
 .document-mode-tabs button[aria-pressed=true]{background:#173f2e;color:#fff}
 .scene-document-title{font:500 40px/1.08 var(--modern-font);letter-spacing:-1.7px;margin:0 0 18px;color:#193c2d}
 .scene-document p{font-size:15px;line-height:1.6;color:#4e6557;max-width:280px;margin:0 0 26px}
 .scene-document-link{display:flex;justify-content:space-between;gap:10px;font-size:15px;color:#184d35;font-weight:500;text-decoration:none}
 .scene-export{display:flex;align-items:center;gap:16px;width:min(100%,350px);background:#c8e5b8;border-radius:6px;padding:18px;margin-top:-10px;z-index:2;position:relative;transform:translate(calc(15px - var(--hero-progress,0)*15px),calc(var(--hero-progress,0)*-48px)) rotate(calc(3deg - var(--hero-progress,0)*3deg));will-change:transform;color:#153e28}
 .scene-export>span:first-child{font-weight:600;font-size:16px}.scene-export>span:last-child{margin-left:auto;font-size:22px}.scene-export strong{font-size:17px;font-weight:500}.scene-export p{font-size:12px;margin:5px 0 0;color:#315a3c;line-height:1.4}
 .scene-progress{display:flex;align-items:center;gap:14px;align-self:stretch;justify-content:center;margin-top:28px;color:#e2efdf;font-size:14px}.scene-progress i{width:24px;height:2px;background:#77a87c;transform:scaleX(calc(.3 + var(--hero-progress,0)*.7));transform-origin:left}
 #workspaceHub{border:0;border-radius:12px;box-shadow:none;background:#fff;margin:0 0 36px;padding:38px;grid-template-columns:1fr 1.3fr;gap:38px}
 #workspaceHub .workspace-hub-label,.workspace-hub-number{display:none}
 #workspaceHub h2{font:500 clamp(27px,3vw,40px)/1.12 var(--modern-font);letter-spacing:-1.2px;margin:0 0 20px;color:var(--modern-ink)}
 #workspaceHub p{font-size:16px;line-height:1.65;color:#4b6354}
 #workspaceHub .workspace-hub-cta{border-radius:6px;font:500 15px var(--modern-font);padding:14px 18px;background:#172d25;color:#fff!important}
 #workspaceHub .workspace-hub-intro>small{font-size:13px;line-height:1.65}
 #workspaceHub .workspace-hub-links>a{border:0;border-radius:6px;background:#f2f5ef;padding:20px;box-shadow:none}
 #workspaceHub .workspace-hub-links>a:hover{background:#e6eee1}.workspace-hub-links strong{font:500 17px var(--modern-font)!important}.workspace-hub-links small{font:400 13px/1.6 var(--modern-font)!important}
 #workspaceHub .workspace-hub-links>a[href="/orders.html?view=board"]{border:0;background:#e3f0e6}
 .template-picker,.account-panel,.dashboard,.expense-entry-banner{box-shadow:none;border-color:var(--modern-line);border-radius:10px}
 .section-heading h2,.template-picker h2,.learn-section h2{font-family:var(--modern-font);font-weight:500;letter-spacing:-.5px}
 .editor,.preview-area{box-shadow:none;border:1px solid var(--modern-line);border-radius:10px;background:white}
 .editor{font-size:15px}.editor h3{font:500 16px var(--modern-font);text-transform:none;letter-spacing:0}.editor label{font:400 13px var(--modern-font);color:#3d5948}.editor input,.editor select,.editor textarea{font:400 15px var(--modern-font);border-radius:6px;min-height:42px}.editor button,.export-actions button{font-family:var(--modern-font);font-size:14px;border-radius:6px;min-height:42px}
 #paper{font-family:'DM Sans',Arial,sans-serif}.template-buttons button{box-shadow:none;border-radius:7px}.learn-section{background:#fff;border:0;border-radius:10px;padding:32px}.learn-section p,.learn-links a{font-size:16px}.learn-section .eyebrow,.template-picker .eyebrow{display:none}
 .site-footer{font-family:var(--modern-font);border-color:#dce5da}.site-footer h2{font-family:var(--modern-font);font-size:15px}.site-footer a,.site-footer-brand p{font-size:14px}.site-footer-bottom strong{font-size:13px}
 /* Working screens stay quiet and compact. */
 body:has(.orders-main){background:#f5f6f3;font-family:var(--modern-font);--cream:#f5f6f3;--line:#e3e7e1;--forest:#183d2c;--muted:#566b5e}
 .order-sidebar{width:228px;background:#fafbf8;border-color:#e3e7e1;padding:27px 18px;gap:28px}.order-brand small{font:400 13px var(--modern-font);letter-spacing:0;margin-top:14px;color:#5a7162}.order-brand img{width:128px}
 .order-sidebar nav button,.order-sidebar nav a{font:500 14px var(--modern-font);padding:12px 14px;min-height:44px;border-radius:6px}.order-sidebar nav button[aria-current=page]{background:#e7ece4;color:#153e28}
 .order-profile{border:0;background:#eef2e9;border-radius:6px;padding:16px}.order-profile strong{font-weight:500}.order-profile p:empty{display:none}
 .orders-main{margin-left:228px;max-width:none;padding:0 36px 24px}.orders-top{padding:24px 0;border-color:#e5e9e1;font:400 13px var(--modern-font);letter-spacing:0}.orders-top a{text-decoration:none;font-weight:500}
 .orders-heading{margin:30px 0 18px;gap:20px}.orders-heading .eyebrow{font:400 14px var(--modern-font);letter-spacing:0;color:#55745e;margin:0 0 12px}.orders-heading h1{font:500 30px/1.1 var(--modern-font);letter-spacing:-1px}.orders-heading p{font-size:15px}
 .orders-main h2,dialog h2{font:500 19px var(--modern-font);letter-spacing:-.4px}.orders-main h3,dialog h3{font:500 17px var(--modern-font)}
 .orders-main button,dialog button{font:500 14px var(--modern-font);border-radius:6px;min-height:42px;box-shadow:none}.orders-main .primary,dialog .primary{background:#192d22;border-color:#192d22}.orders-main input,.orders-main select,dialog input,dialog select,dialog textarea{font-family:var(--modern-font);font-size:14px;border-radius:6px;min-height:42px}
 .order-metrics{gap:0;border:1px solid #e1e7dc;background:#fff;border-radius:8px;overflow:hidden}.metric{border:0;border-right:1px solid #e8ece3;border-radius:0;padding:24px;box-shadow:none}.metric:last-child{border-right:0}.metric span{font-size:13px;color:#526a59}.metric strong{font:500 29px var(--modern-font);letter-spacing:-.7px;font-variant-numeric:tabular-nums;margin:20px 0 8px}.metric small{font-size:12px;line-height:1.6;color:#5d7264}
 .order-panel{border-color:#e2e8dd;border-radius:8px;box-shadow:none}.panel-heading{padding:22px 24px;border-color:#edf0e8}.panel-heading p,.order-info p,.order-meta{font-size:13px}.order-row{padding:20px 24px;border-color:#edf0e8}.order-info strong{font-weight:500}.order-right strong{font-weight:500;font-variant-numeric:tabular-nums}.order-right small{font-size:12px}
 .production-board{gap:12px}.stage-column{background:#edf1e9;border:0;border-radius:7px;padding:14px;min-height:230px}.stage-column h2{font:500 16px var(--modern-font)}.production-card{border-color:#e0e5db;border-radius:6px;box-shadow:none;padding:16px}.production-card strong{font-weight:500}.production-card p{font-size:13px}.stage-pill{font-size:12px}.empty{font-size:14px}.hint{font-size:13px}.order-filters{padding:22px 24px;border-color:#edf0e8}
 dialog{font-family:var(--modern-font);border-radius:12px}.order-footer{font-size:13px}
 @media(max-width:1100px){.modern-hero .hero-copy{padding:40px 28px}.modern-hero{min-height:580px}.modern-hero .document-scene{padding:25px;min-height:520px}.modern-hero h1{font-size:clamp(39px,5.8vw,62px)}.orders-main{padding:0 24px 24px}}
 @media(max-width:1000px){body>header{padding:18px 20px;min-height:76px}.brand .site-logo{width:115px}main{padding:0 16px}.modern-hero{grid-template-columns:1fr;gap:12px;padding:14px 0 22px;min-height:0}.modern-hero .hero-copy{padding:38px 26px}.modern-hero h1{font-size:clamp(36px,8.5vw,58px);line-height:1.05;letter-spacing:-1.8px;margin-bottom:22px}.modern-hero .hero-copy>p{font-size:17px}.modern-hero .hero-actions{gap:10px;margin-top:24px}.modern-hero .hero-actions a{font-size:14px;padding:14px 16px}.modern-hero .hero-actions .hero-secondary{padding-left:0}.modern-hero .hero-copy>.hero-footnote{font-size:13px}.modern-hero .document-scene{min-height:500px;padding:26px 30px}.scene-document-title{font-size:35px}.scene-document{max-width:300px;padding:26px}.scene-export{max-width:300px}.scene-caption{font-size:14px}.scene-progress{font-size:13px}#workspaceHub{grid-template-columns:1fr;padding:27px;gap:25px}#workspaceHub h2{font-size:30px;letter-spacing:-.8px}#workspaceHub .workspace-hub-links{grid-template-columns:1fr 1fr}#workspaceHub .workspace-hub-links>a{padding:17px}.workspace-hub-links strong{font-size:15px!important}.workspace-hub-links small{font-size:12px!important}.editor,.preview-area{padding:20px}.orders-main{margin:0;padding:0 18px 20px}.order-sidebar{position:static;width:100%;padding:18px;gap:16px;background:#fff}.order-sidebar .order-brand{padding:0}.order-brand img{width:112px}.order-brand small{display:none}.order-sidebar nav{display:flex;overflow-x:auto;gap:3px}.order-sidebar nav button,.order-sidebar nav a{white-space:nowrap;font-size:13px;padding:10px}.order-profile{display:flex;padding:9px 12px;margin:0;gap:10px;align-items:center;font-size:12px}.order-profile a{margin-left:auto}.orders-top{padding:17px 0;font-size:12px}.orders-heading h1{font-size:27px}.orders-heading{margin-top:24px}.metric{padding:20px 16px;border-bottom:1px solid #e8ece3}.metric strong{font-size:26px}.metric:nth-child(2){border-right:0}.orders-context{margin:20px 0}.order-panel{margin-bottom:20px}}
 @media(max-width:400px){#workspaceHub .workspace-hub-links{grid-template-columns:1fr}.modern-hero .hero-actions{flex-direction:column}.hero-actions .hero-primary{width:100%;justify-content:space-between}.scene-document{padding:23px}.scene-document-title{font-size:32px}}
 @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.scene-document,.scene-export{transform:none!important;will-change:auto}.scene-progress i{transform:none}.modern-reveal{animation:none!important}}
}
@media print{.modern-hero,.local-preview-notice{display:none!important}}
@media screen{.modern-hero .document-scene{width:100%;max-width:none;transform:none;margin:0;aspect-ratio:auto}}
