:root{
  --whro-blue:#00577b;--whro-blue-deep:#00445f;--whro-gold:#f1cf00;
  --whro-bg:#f3f7f9;--whro-surface:#fff;--whro-surface-2:#f8fafb;
  --whro-text:#172833;--whro-muted:#6f7e87;--whro-line:#d9e3e7;
  --whro-success:#23865d;--whro-shadow:0 10px 32px rgba(20,42,54,.07)
}
:root[data-theme="dark"]{
  --whro-bg:#101a20;--whro-surface:#17242b;--whro-surface-2:#1c2b33;
  --whro-text:#f1f5f6;--whro-muted:#a8b7bf;--whro-line:#2d414a;
  --whro-shadow:0 14px 38px rgba(0,0,0,.28)
}
*{box-sizing:border-box}
body.whro-unified{margin:0;background:var(--whro-bg);color:var(--whro-text)}
.whro-shell-header{position:relative;background:var(--whro-surface);border-bottom:1px solid var(--whro-line);z-index:80}
.whro-shell-header-inner{height:72px;max-width:1540px;margin:0 auto;padding:0 30px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:34px}
.whro-shell-brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--whro-text);min-width:max-content}
.whro-shell-brand img{width:48px;height:48px;object-fit:contain;border-radius:8px}
.whro-shell-brand-rule{width:1px;height:38px;background:var(--whro-line)}
.whro-shell-product{display:grid;gap:1px}.whro-shell-product strong{font-size:20px;line-height:1;letter-spacing:-.03em}.whro-shell-product small{font-size:9px;text-transform:uppercase;letter-spacing:.18em;color:var(--whro-muted);font-weight:700}
.whro-shell-nav{justify-self:center;display:flex;gap:4px;padding:5px;border:1px solid var(--whro-line);border-radius:13px;background:var(--whro-surface-2);box-shadow:0 4px 16px rgba(28,54,67,.04)}
.whro-shell-nav a{display:flex;align-items:center;gap:7px;padding:9px 13px;border-radius:9px;text-decoration:none;color:var(--whro-muted);font-size:13px;font-weight:700;white-space:nowrap}
.whro-shell-nav a:hover{background:var(--whro-surface);color:var(--whro-text)}
.whro-shell-nav a.active{background:var(--whro-surface);color:var(--whro-blue);box-shadow:0 2px 9px rgba(25,52,65,.08)}
.whro-shell-nav-icon{font-size:12px;color:var(--whro-blue)}
.whro-shell-account{display:flex;align-items:center;gap:10px;justify-self:end}
.whro-shell-trust{display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;background:color-mix(in srgb,var(--whro-success) 8%,var(--whro-surface));color:var(--whro-success);font-size:10px;font-weight:800;white-space:nowrap}
.whro-shell-trust-dot{width:7px;height:7px;border-radius:50%;background:var(--whro-success);box-shadow:0 0 0 4px color-mix(in srgb,var(--whro-success) 12%,transparent)}
.whro-shell-theme{border:1px solid var(--whro-line);background:var(--whro-surface-2);color:var(--whro-text);border-radius:9px;padding:7px 9px;font-size:11px;font-weight:700;display:flex;align-items:center;gap:5px}
.whro-shell-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e5f2f6;color:var(--whro-blue);font-weight:800;font-size:12px}
:root[data-theme="dark"] .whro-shell-avatar{background:#203a45;color:#9fd6e8}
.whro-shell-usercopy{display:grid;line-height:1.1;min-width:max-content}.whro-shell-usercopy strong{font-size:11px}.whro-shell-usercopy small{margin-top:3px;color:var(--whro-muted);font-size:9px}
.whro-shell-logout{border:0;background:transparent;color:var(--whro-muted);font-size:10px;font-weight:700;padding:7px}.whro-shell-logout:hover{color:var(--whro-text)}
.whro-shell-accent{height:4px;background:var(--whro-blue-deep);position:relative;overflow:hidden}.whro-shell-accent span{display:block;width:64px;height:100%;margin-left:68%;background:var(--whro-gold)}
.whro-shell-main{width:min(1480px,calc(100% - 56px));margin:0 auto;padding:46px 0 64px;min-height:calc(100vh - 112px)}
.whro-signing-main:has(.document-editor-shell){width:100%;max-width:none;padding:0;min-height:auto}
.whro-signing-main:has(.document-editor-shell)+.whro-shell-footer{display:none}
.whro-shell-footer{border-top:1px solid var(--whro-line);padding:18px max(28px,calc((100vw - 1480px)/2));display:flex;justify-content:space-between;color:var(--whro-muted);font-size:10px;background:var(--whro-surface)}
.whro-shell-footer div{display:flex;gap:9px}.whro-shell-footer strong{color:var(--whro-text)}
.whro-shell-notices{width:min(1480px,100%);margin:0 auto 18px}.whro-shell-notice{display:flex;gap:10px;align-items:center;background:var(--whro-surface);border:1px solid var(--whro-line);border-radius:12px;padding:12px 14px;box-shadow:var(--whro-shadow);font-size:12px}.whro-shell-notice>span{color:var(--whro-success);font-weight:900}
/* Remove historical portal chrome when legacy templates still include it. */
.portal7-header,.portal7-accent,.portal7-footer{display:none!important}
/* Studio pages used to reserve a left rail. Force all current content into the same centered application frame. */
.studio-shell,.cohesive-shell{display:block!important;min-height:0!important;background:transparent!important}.rail,.cohesive-rail{display:none!important}.workspace,.cohesive-workspace{padding:0!important;margin:0!important;max-width:none!important;width:auto!important;background:transparent!important}
/* Old templates/packages affordances are intentionally retired. */
a[href*="/templates/"],form[action*="/templates/"]{display:none!important}
@media(max-width:1050px){.whro-shell-header-inner{grid-template-columns:auto 1fr;gap:18px;height:auto;min-height:68px;padding:10px 20px}.whro-shell-nav{order:3;grid-column:1/-1;justify-self:stretch;justify-content:center}.whro-shell-account{grid-column:2;grid-row:1}.whro-shell-trust,.whro-shell-usercopy{display:none}.whro-shell-main{width:calc(100% - 32px);padding-top:28px}}
@media(max-width:650px){.whro-shell-header-inner{display:flex;flex-wrap:wrap}.whro-shell-brand{flex:1}.whro-shell-nav{width:100%;order:3}.whro-shell-nav a{flex:1;justify-content:center;padding:9px 7px;font-size:11px}.whro-shell-theme span[data-theme-label],.whro-shell-logout,.whro-shell-usercopy{display:none}.whro-shell-brand img{width:40px;height:40px}.whro-shell-product small{display:none}.whro-shell-main{width:calc(100% - 24px);padding-top:22px}.whro-shell-footer{padding:16px 14px}.whro-shell-footer>span{display:none}}
