/* Clear surfaces, readable detail and strong action states. */
:root {
  --paper:#e5e9f1;
  --white:#fff;
  --ink:#0b1221;
  --muted:#25324f;
  --line:#536183;
  --accent:#b74424;
  --accent-light:#fff0e7;
  --green:#0b1b40;
  --sidebar:#dde2ed;
  --shadow:0 4px 14px #0c152c14;
}
body{background:var(--paper);color:var(--ink)}
button{font-weight:650}button:disabled{opacity:.58}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a73c1e;outline-offset:3px}
svg.icon{stroke-width:2}
.sidebar{background:var(--sidebar);border-right:2px solid #536183}
.topbar{background:#fff;border-bottom:2px solid #97a3be}
.breadcrumbs,.breadcrumbs strong,.studio-tag,.nav-heading,.sidebar-footer,.sidebar-footer small,.workspace-label small{color:#1e2a47;font-weight:650}
.breadcrumbs,.workspace-label small,.nav-heading,.sidebar-footer,.sidebar-footer small{font-size:12px;line-height:1.6}
.workspace-avatar,.profile-avatar{background:#132144;color:#fff;border-color:#132144;outline-color:#132144}
.new-workflow,.button-dark{background:#0b1b40;color:#fff;border:1px solid #0b1b40;box-shadow:0 2px 4px #0a173426;font-weight:750}
.new-workflow:hover,.button-dark:hover{background:#08132f;border-color:#08132f}
.new-workflow{font-size:14px;min-height:46px}
.workflow-nav-item,.library-nav{font-size:13px;color:#141f39;font-weight:650}
.workflow-nav-item.active,.library-nav.active{background:#0b1b40;color:#fff;box-shadow:0 2px 5px #0b183724}
.workflow-nav-item:hover,.library-nav:hover{background:#b6c0d7;color:#09132a}
.workflow-nav-item.active:hover,.library-nav.active:hover{background:#08132f;color:#fff}
.nav-indicator{background:#fff}
.button{font-size:13px;min-height:42px;font-weight:700}
.button-light{background:#fff;color:#111c36;border:1.5px solid #4b597a}
.button-light:hover{background:#dee3ee;border-color:#162547}
.button-danger{background:#a62e25;color:#fff;border:1px solid #8b2019}
.icon-button{color:#192542;min-width:36px;min-height:36px}
.icon-button:hover:enabled{background:#d9dfec;color:#0a142b}
.document-library{padding-top:32px}
.library-heading h1{color:#0b1327;font-size:34px;font-weight:800;letter-spacing:-1px}
.library-heading h1>span{color:#b74424}
.library-heading p,.library-footer,.library-footer button{color:#1e2a47;font-size:14px;line-height:1.7}
.library-heading>.button{font-size:14px;min-height:46px;padding:13px 18px}
.library-stats>div{border:1.5px solid #536183;background:#fff;box-shadow:0 3px 0 #08153310;border-radius:10px;padding:22px}
.library-stats>div>span:first-child{font-size:13px;color:#1d2a47;font-weight:750;letter-spacing:1px}
.library-stats strong{font-size:40px;font-weight:800;color:#091737;line-height:1.15;margin:10px 0 7px}
.library-stats small{font-size:14px;color:#232f4b;font-weight:500}
.library-stats .library-future{background:#dce1ed;border:1.5px dashed #505e7f;box-shadow:none}
.library-future strong{font-size:23px;color:#14203a;font-weight:750}
.library-future .planned-tag{font-size:11px;font-weight:750;border:1px solid #485574;color:#162340;background:#fff;padding:5px 8px}
.library-tools{border-bottom:0;gap:16px;margin-bottom:24px}
.library-filters{gap:6px;flex-wrap:wrap;padding:4px;background:#c7cedf;border:1px solid #5e729f;border-radius:9px;align-self:auto}
.library-filters button{font-size:13px;font-weight:700;color:#18243f;padding:11px 14px;border:0;border-radius:6px;min-height:44px;line-height:1.35}
.library-filters button[aria-pressed=true]{background:#0b1b40;color:#fff;border:0;box-shadow:0 2px 3px #08142f26;font-weight:750}
.library-filters button:not([aria-pressed=true]):hover{background:#e7ebf3}
.library-search{border:1.5px solid #404f70;background:#fff;padding:11px 13px;border-radius:8px;max-width:270px;margin-bottom:0;min-height:47px;gap:10px}
.library-search:focus-within{outline:3px solid #a73c1e;outline-offset:3px}
.library-search>span{color:#132144}.library-search svg{width:18px;height:18px}
.library-search input{font-size:14px;line-height:1.5;color:#0b1221;min-height:24px}
.library-search input::placeholder{color:#2f3a56;opacity:1}
.document-card{background:#fff;border:1.5px solid #4a587a;border-radius:11px;box-shadow:0 4px 0 #0b183610}
.document-card:hover{border-color:#0b1b40;box-shadow:0 5px 15px #0c193820}
.document-card:focus-within{outline:3px solid #0b1b40;outline-offset:3px}
.document-card-top{padding:20px 20px 8px}
.document-glyph{width:39px;height:39px;background:#0b1b40;color:#fff;border:1px solid #0b1b40}
.document-glyph svg{width:21px;height:21px}
.document-status{font-size:13px;font-weight:750;color:#684409;background:#fff0c2;border:1px solid #a97921;padding:5px 9px}
.document-status.archived{background:#e4eaf0;color:#2c445b;border-color:#768b9f}
.document-card-top>.icon-button{color:#132242;min-width:40px;min-height:40px}
.document-card-top>.icon-button svg{width:18px;height:18px}
.document-open{padding:0 20px 22px}
.document-open h2{font-size:21px;line-height:1.4;font-weight:800;color:#0c172f;letter-spacing:-.4px;min-height:59px;margin:14px 0 10px}
.document-open p,.document-open p>span{font-size:14px;color:#1e2b48;font-weight:550}
.document-tags{gap:7px;margin-top:18px}
.document-tags>span{font-size:12px;font-weight:650;color:#172545;background:#e6e9f2;border:1px solid #5c71a1;padding:5px 8px}
.document-tags>.procedure-tag{background:#e5edf7;color:#244364;border-color:#7c94b2}
.document-card-bottom{background:#e3e7f1;border-top:1px solid #7f8dae;padding:13px 20px;color:#1b2846;font-size:13px;font-weight:550;gap:10px}
.document-card-bottom>span:last-child{font-size:13px;font-weight:750;color:#1b2846}
.library-empty h2{color:#0f1a34;font-weight:750}.library-empty p{color:#1e2b49;font-size:14px}
.library-empty>span{background:#dee3ee;border-color:#50618a;color:#132141}
.library-footer{margin-top:24px}
.eyebrow{font-size:11px;letter-spacing:1.4px;color:#1e2a46;font-weight:800}
.workflow-title{color:#0b1429;font-weight:800}
.subtitle,.save-status,.panel-intro,.field-hint,.optional,.diagram-meta,.map-counts{color:#23304e}
.subtitle,.save-status,.panel-intro,.field-hint{font-size:13px;line-height:1.6}
.builder{border:1.5px solid #495879;box-shadow:0 4px 12px #0a173614}
.panel-header,.diagram-header{background:#e2e6f0;border-bottom:1px solid #55668f}
.panel-title h1,.panel-title h2{font-size:15px;font-weight:800;color:#0f1a33}
.count-badge{font-size:12px;font-weight:750;color:#0b1837;background:#fff;border-color:#4a597d}
.steps-panel{border-right-color:#55668f}
.step-card{border:1.5px solid #566893}.step-card.selected{border:2px solid #a84627;box-shadow:0 0 0 2px #f3d9c9}
.step-number{background:#e0e4ef;color:#132141;border-color:#46577d;font-weight:800;font-size:12px}
.selected .step-number{background:#ffe9d7;color:#813717;border-color:#aa5732}
.step-number.decision{background:#fff0be;color:#62470c;border-color:#ab822a}
.step-action-preview{font-size:14px;font-weight:750;color:#101a30}
.step-person-preview{font-size:12px;color:#202e4f;line-height:1.6}
.field-label,.account-card .field-label,.contribution-main .field-label{font-size:13px;font-weight:750;color:#182442;line-height:1.6}
.field-input,.account-card .field-input,.contribution-main .field-input,.team-dialog .field-input{font-size:15px;color:#0c1529;border:1.5px solid #4d5c80;background:#fff}
.field-input::placeholder,.account-card .field-input::placeholder,.contribution-main .field-input::placeholder,.team-dialog .field-input::placeholder{font-size:13px;color:#2f3b55;opacity:1}
.field-input.select{font-size:13px;min-height:40px}
.field-input[readonly]{background:#eaedf4;color:#16223f}
.field-input:focus{border-color:#0b1b40;outline-color:#a73c1e}
.step-form{border-top-color:#7f8cac}.step-form-bottom{border-top-color:#919ebc}
.position-control,.position-control select{font-size:13px;color:#162340}
.position-control select{border:1px solid #4c5b7e;background:#fff;min-height:36px}
.add-step{background:#0b1b40;color:#fff;border:1px solid #0b1b40;font-size:14px;min-height:44px;font-weight:750}
.add-step:hover{background:#08132f}.add-decision{font-size:13px;font-weight:750;color:#5b430f}
.panel-footnote,.workspace-footer,.workspace-footer button{font-size:12px;color:#222f4e}
.diagram-panel{background:#e6eaf2}.diagram-viewport{background-image:radial-gradient(#8e9bb9 1px,transparent 1px)}
.diagram-header .live-badge{font-size:11px;font-weight:700;color:#102045;border-color:#47587e;background:#f9fafc}
.diagram-legend{font-size:11px;color:#182543;background:#fff;border:1px solid #7e8cae}
.canvas-controls{border-color:#4b5a7e}.canvas-controls>span{font-size:12px;color:#131f3d;font-weight:700}
.piece-tabs{border-bottom-color:#5a6c97}.piece-tabs button{font-size:13px;font-weight:750;color:#1e2b48}
.piece-tabs button[aria-pressed=true]{color:#091737;border-bottom:3px solid #0b1b40}
.piece-card{border:1.5px solid #54658d;background:#fff}.piece-card h3{color:#111d38;font-size:15px;font-weight:750}
.piece-card p,.piece-position{font-size:13px;color:#1e2c4c}.piece-card-label>span{font-size:11px;color:#1d2a49;font-weight:750}
.sop-toolbar{background:#e2e6f0;border-color:#54658e}.sop-state{font-size:13px;color:#192747;font-weight:750}
.sop-document{color:#0f192f}.sop-document h1,.sop-document h2,.sop-document h3{color:#0b1837;font-weight:800}
.sop-document p,.sop-document li{color:#16213a;font-size:16px;line-height:1.8}
.sop-document th,.sop-document td{color:#18233e;font-size:14px;border-color:#7a8aad}
.sop-bottom,.sop-bottom>span,.sop-or{font-size:13px;color:#202d4a}.sop-empty p{font-size:14px;color:#222f4e}
.button-ai{background:#fff;color:#653b24;border:1.5px solid #9c6948;font-weight:750}
.sop-stale{color:#69400b;background:#fff0c8;border-color:#ad7d28;font-size:13px}
.dropdown{border:1.5px solid #4b5a7e}.dropdown button{font-size:14px;color:#111c37}.dropdown small{font-size:12px;color:#2d3a57}
.menu-separator{background:#8a97b7}
.dialog-header h2{color:#0d1832;font-weight:800}.dialog-description,.email-privacy,.request-privacy-note,.email-status,.field-hint,.request-existing p{font-size:13px;color:#1e2b49;line-height:1.7}
.consent-label,.consent-label small{color:#1e2a46;font-size:13px}
.account-story{background:#dde2ee}.account-story h1{color:#0b1732;font-weight:800}
.account-story-content>p,.account-benefits,.account-story-footer{color:#1d2a49}
.account-card h2{color:#0c1730;font-weight:800}.account-card>p{color:#202d4c;font-size:14px}
.social-button{border:1.5px solid #516186;color:#121d39;font-weight:700;background:#fff}
.account-card .account-status,.account-card .account-fine-print,.account-trust,.account-main-footer,.account-preview{font-size:13px;color:#1f2c4b}
.account-trust{border-color:#8290b2}.account-preview{font-weight:750;text-decoration:underline;text-underline-offset:3px}
.email-auth-tabs{background:#c8cfe1;border:1px solid #566995}
.email-auth-tabs button{font-size:13px;color:#192643;font-weight:750}
.email-auth-tabs button[aria-pressed=true]{background:#0b1b40;color:#fff}
.email-auth-status,.email-auth-hint,.email-auth-link{color:#1e2c4c;font-size:13px}
.account-card .account-error,.email-auth-status.account-error{color:#8b2b1d}
.team-workspace-bar{background:#dbe0ed;border-bottom:1px solid #52638c}
.team-workspace-picker,.team-workspace-picker>span{color:#182442;font-size:12px;font-weight:750}
.team-workspace-select,.team-workspace-select:disabled{border:1.5px solid #465579;background:#fff;color:#0e1b37;font-size:14px;font-weight:700;min-height:42px}
.team-role-badge{background:#0b1b40;color:#fff;border-color:#0b1b40;font-size:12px;font-weight:750}
.team-dialog .team-summary,.team-dialog section>p,.team-dialog .team-preview p,.team-member-identity small,.team-member-current-role,.team-role-guide dd,.team-new-link p,.team-empty{font-size:13px;color:#202d4b}
.team-dialog h3,.team-member-identity strong,.team-role-guide dt{color:#111d38;font-weight:750}.team-member-identity strong{font-size:14px}
.team-dialog .button,.team-refresh,.team-remove,.team-dialog .team-member-role{font-size:13px}
.team-dialog .field-label{font-size:13px;color:#192745;font-weight:750}
.team-dialog section,.team-member,.team-invite-row{border-color:#7f8daf}
.policy-links a{font-size:14px;font-weight:650;color:#152447;text-decoration-thickness:1.5px}
.legal-page h1,.legal-page h2,.legal-page h3{color:#0d1832;font-weight:800}
.legal-page p,.legal-page li,.legal-page td,.legal-page th{color:#19253f}
.contribution-lead,.contribution-state>p,.contribution-privacy{color:#1d2a47;font-size:14px}
.request-brief{border:1.5px solid #566994;background:#e3e7f0}.request-brief p,.request-brief>span{color:#1e2b4a}
.guest-step{border:1.5px solid #52648d}.guest-step legend{color:#152345;font-weight:750}
@media(max-width:620px){
  .document-library{padding:27px 18px}
  .library-heading h1{font-size:30px;line-height:1.25}.library-heading p{font-size:14px}
  .library-heading>.button{width:100%;margin-top:20px;min-height:48px}
  .library-stats{gap:12px;margin:24px 0}.library-stats>div{padding:19px 16px}
  .library-stats strong{font-size:39px}.library-stats .library-future{padding:18px 16px}
  .library-stats .library-future strong{font-size:22px;display:block;margin:10px 0 9px}
  .library-stats .library-future>span:first-child{font-size:12px}
  .library-future small,.library-stats small{font-size:14px}
  .library-tools{gap:16px}.library-search{width:100%;max-width:none;min-height:50px;margin:0;padding:12px}
  .library-search input{font-size:16px}.library-filters{width:100%;gap:3px;justify-content:space-between}
  .library-filters button{font-size:13px;padding:11px 9px;flex:1}
  .document-open h2{font-size:22px;min-height:0}.document-open p{font-size:14px}
  .document-card-bottom,.document-card-bottom>span:last-child{font-size:13px}
  .document-card-top{padding-top:17px}.library-footer{font-size:14px}
  .field-input,.account-card .field-input,.contribution-main .field-input,.team-dialog .field-input,.sop-editor,.position-control select{font-size:16px}
  .field-input.select{font-size:14px}.button,.request-control,.history-control,.header-actions .button-dark{font-size:13px;min-height:44px}
  .save-status{font-size:12px;white-space:normal;width:100%}.header-actions{gap:8px}
  .step-action-preview{font-size:14px}.step-person-preview{font-size:12px}
  .panel-footnote{font-size:11px}.diagram-legend{font-size:10px}.eyebrow{font-size:11px}
  .workspace-footer{font-size:11px;gap:12px;line-height:1.6}.workspace-footer button{font-size:12px}
  .team-workspace-picker>span{font-size:12px}.team-role-badge{font-size:12px;max-width:none}
  .policy-links{gap:12px 17px}.policy-links a{font-size:14px}
}
@media(max-width:359px){
  .library-filters button{font-size:12px;padding:11px 6px}
  .library-stats>div>span:first-child{font-size:12px;letter-spacing:.6px}
  .document-card-bottom{padding:12px 16px}
  .team-workspace-picker{width:calc(100% - 70px)}
}
.sidebar-account,.sidebar-account strong{color:#141f3a;font-size:13px;font-weight:700}
.sidebar-account small{color:#222f4f;font-size:12px;line-height:1.6}
#diagram .flow-node text{font-weight:650}
#diagram .flow-node text[font-size="14"]{font-weight:800}
#diagram .flow-node:hover .node-box{stroke:#a84627;stroke-width:2}
#diagram .flow-node:focus-visible .node-box{stroke:#a84627;stroke-width:3}
@media(max-width:359px){.library-filters button{font-size:13px;padding:11px 5px}.library-stats>div>span:first-child{font-size:13px;letter-spacing:.4px}}
dialog{border:1.5px solid #4b5a7e}
.account-detail-avatar{background:#0b1b40;color:#fff;font-weight:750}
.account-details h3{color:#111d38;font-size:21px;font-weight:800}
.account-details>p,.account-details dt,.account-details dd,.account-details #account-preference-status{font-size:14px;color:#1e2b49;line-height:1.7}
.account-details dl{border-color:#5e72a0;gap:14px}
.settings-action{font-size:14px;color:#15213c;font-weight:700;border-color:#8290b2}
.settings-action small{font-size:12px;color:#222f4f;line-height:1.6}
.request-row,.version-row{border-color:#7f8dae}
.request-row strong,.version-row strong{font-size:14px;color:#182543;font-weight:750}
.request-row small,.version-row small{font-size:13px;color:#222f4f;line-height:1.6}
.request-row .button,.version-row .button{font-size:13px;min-height:40px}
.version-row strong>span{font-size:11px;color:#142140;border-color:#556895;background:#e2e7f0}
.team-role-guide dt{font-size:13px}
.view-tabs button{font-size:13px;color:#202d4d;font-weight:700}
.view-tabs button[aria-selected=true]{color:#0b1b40;border-bottom:3px solid #0b1b40;font-weight:800}
@media(max-width:620px){.diagram-header{padding-left:12px;padding-right:12px}.view-tabs{gap:12px}.diagram-header .live-badge{font-size:10px;padding:5px 6px}}
@media(max-width:359px){.diagram-header .live-badge{display:none}}
