:root {
  --desk-paper: #faf9f6;
  --desk-ink: #252622;
  --desk-rule: #d8d6cd;
  --desk-accent: #a03b24;
  --desk-pad: max(clamp(22px, 5.2vw, 84px), calc((100vw - 1392px) / 2));
  --page: var(--desk-paper);
  --ink: var(--desk-ink);
  --line: var(--desk-rule);
  --surface: #fffefa;
}
body, #app:has(.desk-header) { background: var(--desk-paper); }
.desk-header { z-index: 8; border: 0; border-bottom: 1px solid var(--desk-rule); background: var(--desk-paper); }
.head-inside { min-height: 73px; display: flex; align-items: center; gap: clamp(26px, 4.5vw, 82px); padding-inline: var(--desk-pad); }
.desk-header .product-brand { flex: none; display:inline-flex; align-items:center; gap:9px; color:var(--desk-ink); font:720 30px/1.08 var(--font-title); letter-spacing:-.02em; }
.desk-header .product-mark { width:32px; height:35px; background:transparent; border-radius:0; display:inline-block; transform:rotate(-5deg); }
.desk-header .product-mark i,.desk-header .product-mark i:nth-child(2) { inset:4px auto auto 2px; width:18px; height:25px; transform:skewY(-10deg); border:1.8px solid #2c3128; border-radius:1px 1px 4px 1px; background:var(--desk-paper); }
.desk-header .product-mark i:nth-child(2) { top:9px;left:10px;border-color:#943924;background:#ad4a31; }
.desk-header .product-nav { align-self:stretch; display:flex; align-items:stretch; gap:clamp(19px,2.7vw,50px); }
.desk-header .product-nav a { position:relative; min-height:44px; padding:0 1px; color:#575851; font-size:15px; font-weight:540; line-height:1.25; letter-spacing:.012em; }
.desk-header .product-nav a:hover,.desk-header .product-nav a[aria-current] { color:var(--desk-ink); }
.desk-header .product-nav a[aria-current] { font-weight:720; }
.desk-header .product-nav a[aria-current]::after { height:3px;inset:auto 0 -1px;background:var(--desk-accent); }
.head-tools { margin-inline-start:auto;display:flex; gap:clamp(12px,2.2vw,35px); align-items:center; }
.head-find, .head-account { display:inline-flex; align-items:center; justify-content:center; min-height:40px; gap:8px; color:var(--desk-ink); background:transparent; border:0; text-decoration:none; font:550 14px/1.3 var(--font-sans); white-space:nowrap; }
.head-find { cursor:pointer; padding:0; color:#595b54; }.head-find:hover,.head-account:hover { color:var(--desk-accent); }
.head-find > i { width:15px;height:15px;position:relative; }
.head-find > i::before { content:'';position:absolute;inset:0 3px 3px 0;border:1.5px solid;border-radius:50%; }.head-find > i::after { content:'';position:absolute;width:7px;height:1.5px;background:currentColor;transform:rotate(46deg);top:12px;left:9px; }
.head-find kbd { padding:2px 5px;border:1px solid #d9d8d2;border-radius:3px;color:#68675f;font:500 11px/1.2 ui-monospace,monospace; }
.head-account { position:relative; padding-left:clamp(12px,1.7vw,27px); }
.head-account::before { content:''; position:absolute;left:0;height:20px;width:1px;background:var(--desk-rule); }
.head-monogram { border-radius:50%;background:#ece6da;width:29px;height:29px;display:grid;place-items:center;color:#4b493e;font:650 15px/1 var(--font-title); }
.head-monogram i { width:16px;height:17px;position:relative; }.head-monogram i::before,.head-monogram i::after { content:'';position:absolute;box-sizing:border-box;border:1.5px solid; }.head-monogram i::before{inset:1px 5px 9px;border-radius:50%;}.head-monogram i::after{inset:10px 1px 1px;border-radius:7px 7px 2px 2px;}
.head-account[aria-current] { color:var(--desk-accent); }.head-account[aria-current] .head-monogram,.head-pending { background:#efdbd1;color:#853221; }
.head-pending { border-radius:3px; padding:2px 5px; font-size:12px; }
.desk-header :is(a,button):focus-visible,.desk-jump :is(a,button):focus-visible { outline:2px solid var(--desk-accent);outline-offset:3px; }
#app:has(.desk-header) > .product-main { width:100%; max-width:none; min-width:0; margin:0; --page-gutter:var(--desk-pad);--library-edge:var(--desk-pad);--supply-edge:var(--desk-pad);padding-top:clamp(24px,3.6vw,55px); }
#app:has(.desk-header) > .product-main:has(> .partner-directory,> .case-directory) { padding:0 0 60px; }
#app:has(.desk-header) > .product-main:has(.case-editor,.production-account,.case-detail-page) { max-width:1180px; margin:auto; padding-inline:clamp(18px,4vw,64px); }
#app:has(.desk-header) > .shell { display:block; min-width:0; width:100%;margin:0; }
.desk-header ~ .shell .topbar { padding-inline:var(--desk-pad); background:var(--desk-paper); border-bottom:1px solid var(--desk-rule); }
.project-spread { display:grid; grid-template-columns:clamp(170px,15vw,225px) minmax(0,1fr); width:100%; max-width:1820px; padding-inline:var(--desk-pad); margin:auto; }
.desk-header ~ .shell .project-spread .workspace { min-width:0; width:100%; padding:clamp(20px,2.7vw,44px) 0 54px clamp(24px,3vw,54px); margin:0; }
.project-rail { align-self:start; position:sticky; top:0; padding:32px 18px 36px 0; }
.project-rail section + section { margin-top:24px; }
.project-rail h2 { font:650 14px/1.45 var(--font-sans); color:#575c53; margin:0 0 8px; }
.project-rail ul { padding:0; margin:0; list-style:none; border-left:1px solid #d4d2c7; }
.project-rail a { display:block; margin-left:-1px; border-left:3px solid transparent; padding:8px 10px 8px 14px; color:#494e45; font:500 15px/1.5 var(--font-sans); text-decoration:none; }
.project-rail small { display:block; font-size:13px; font-weight:400; }
.project-rail a[aria-current] { border-color:var(--desk-accent); background:#f0e9df; color:#7d3727; font-weight:700; }
.project-rail a:hover, .project-rail a:focus-visible { color:#823725; text-decoration:underline; text-underline-offset:4px; }
.project-phase-switch { display:none; }
@media screen and (max-width:1039px) {
  .project-spread { display:block; padding:0; }
  .project-rail { display:none; }
  .desk-header ~ .shell .project-spread .workspace { padding:22px var(--desk-pad) 42px; }
  .project-phase-switch { display:flex; align-items:center; justify-content:space-between; padding:6px var(--desk-pad); gap:12px; border-bottom:1px solid var(--desk-rule); background:#f2efe8; font-size:14px; color:#4b5248; }
  .project-phase-switch .workspace-stage-select { display:block; padding:7px 10px; max-width:55%; min-height:38px; border:1px solid #c2c3b6; border-radius:3px; background:#fffdf9; color:#2a3d30; font:600 14px/1.4 var(--font-sans); }
}
@media(max-width:900px){
  .head-inside { gap:24px; }.head-find > span,.head-find kbd { display:none; }.head-find {min-width:35px;}
}
@media(max-width:680px){
  :root { --desk-pad:clamp(15px,4vw,25px); }
  .head-inside {display:grid;grid-template-columns:1fr auto;grid-template-areas:"brand tools" "nav nav"; gap:0; padding-top:5px;}
  .desk-header .product-brand {grid-area:brand;font-size:22px;gap:6px;}
  .desk-header .product-mark {display:inline-block;width:24px;height:28px;transform:scale(.8);transform-origin:left center;margin-right:-4px;}
  .head-tools {grid-area:tools;gap:8px;}
  .head-account,.head-find{min-height:38px;font-size:13px;}
  .head-monogram{height:24px;width:24px;}
  .desk-header .product-nav {grid-area:nav;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;}
  .desk-header .product-nav a {min-height:42px;justify-content:center;white-space:nowrap;font-size:14px;}
  .desk-header .product-nav a[aria-current]::after {inset:auto 20% -1px;height:2px;}
  #app:has(.desk-header) > .product-main {padding-top:22px;}
}
@media print{
  .desk-header,.project-rail,.project-phase-switch,.desk-jump {display:none!important;}
  .project-spread {display:block;padding:0;max-width:none;}
  #app:has(.desk-header) > :is(.product-main,.shell) {margin:0!important;width:100%!important;padding:0!important;}
  .desk-header ~ .shell .project-spread .workspace {padding:0;}
}
.desk-jump { inset:0; width:min(520px,calc(100% - 28px)); max-height:80dvh; padding:0; border:1px solid #adb9aa; border-radius:12px; color:var(--desk-ink); background:#fffef8; box-shadow:0 16px 82px #10291f35; }
.desk-jump::backdrop { background:#13241c6b; }
.desk-jump-inner { padding:20px; }
.desk-jump-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.desk-jump-heading h2 { font:650 23px/1.3 var(--font-title); }
.desk-jump-heading button { background:transparent; border:0; color:#526452; padding:6px; font:inherit; cursor:pointer; }
.desk-jump input { width:100%; min-height:43px; padding:8px 12px; font:inherit; border:1px solid #92a391; background:#fafbf5; color:#183826; border-radius:4px; }
.desk-jump ul { list-style:none; padding:0; margin:12px 0 0; max-height:48vh; overflow:auto; }
.desk-jump li a { display:flex; justify-content:space-between; align-items:center; text-decoration:none; color:var(--desk-ink); gap:10px; border-bottom:1px solid #e2e4d9; padding:9px 6px; font-size:15px; }
.desk-jump li a:hover,.desk-jump li a:focus-visible { background:#edf1e7; }
.desk-jump li span { overflow-wrap:anywhere; }
.desk-jump li small { flex:none; color:#576a58; }

.desktop-sign-in { display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr); align-items:stretch; max-width:1100px;margin:0 auto; border:1px solid var(--desk-rule);background:#fffef8;border-radius:7px;overflow:hidden; }
.sign-in-cover { display:grid;grid-template-rows:auto auto minmax(150px,1fr);gap:20px;background:#173e31;color:#fff8e8; }
.sign-in-brand { padding:25px 30px 0;font:650 25px/1.2 var(--font-title); }
.sign-in-cover p { padding:0 30px;font:600 clamp(28px,3.25vw,52px)/1.25 var(--font-title); }
.sign-in-cover img { display:block;width:100%;height:100%;max-height:480px;object-fit:cover; }
.desktop-sign-in .production-narrow { align-self:center;padding:clamp(20px,3.1vw,45px); }
.desktop-sign-in .production-narrow .production-panel { border:0;box-shadow:none;background:transparent; }
.desktop-sign-in .production-narrow :is(.field-grid,.production-actions) { padding-inline:0; }
@media(max-width:800px){
  .desktop-sign-in { display:block;max-width:510px; }
  .sign-in-cover { display:flex;align-items:center;justify-content:space-between;padding:14px 20px; }
  .sign-in-cover p,.sign-in-cover img { display:none; }.sign-in-brand { padding:0; }
  .production-entry:has(.desktop-sign-in) { padding-top:clamp(17px,6vh,48px); }
}
