:root{--ink:#12100b;--paper:#f5f3ee;--surface:#fffefa;--line:#ddd8ce;--muted:#70695e;--taupe:#b3aa9f;--green:#356649;--red:#ac3c35;--amber:#8a621c;--blue:#3b627b;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-size:14px;line-height:1.5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-underline-offset:3px}h1,h2,h3,p{margin:0}h2{font-size:23px;letter-spacing:-.6px;font-weight:500}h3{font-size:15px;font-weight:600}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #5e8aae;outline-offset:3px}[hidden]{display:none!important}.muted,.hint{color:var(--muted)}.hint{font-size:12px;line-height:1.6}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.7px;color:var(--muted)}.accent{color:var(--taupe)}.button{border:1px solid var(--line);border-radius:6px;background:var(--surface);padding:10px 16px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-weight:600;font-size:13px;text-decoration:none;min-height:41px;white-space:nowrap;transition:background .15s}.button:hover{background:#eae6dd}.button.primary{background:var(--ink);color:var(--surface);border-color:var(--ink)}.button.primary:hover{background:#3b362e}.button.quiet{background:transparent;border-color:transparent}.button.small{padding:7px 11px;min-height:34px;font-size:11px}.button.danger{color:var(--red)}.icon-button{border:1px solid var(--line);background:transparent;border-radius:50%;width:35px;height:35px;font-size:24px;line-height:1;flex-shrink:0}.wordmark{font-size:26px;font-weight:800;letter-spacing:3px;text-decoration:none;display:flex;align-items:center;gap:25px;white-space:nowrap}.wordmark span{font-size:9px;line-height:1.6;letter-spacing:1.4px;font-weight:500;border-left:1px solid var(--line);padding-left:25px}.badge,.pill{display:inline-flex;align-items:center;border:1px solid var(--line);padding:2px 7px;font-size:10px;border-radius:4px;white-space:nowrap}.badge{letter-spacing:1px;font-weight:600}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#94af7e}.empty{padding:25px;color:var(--muted);font-size:13px}.skip-link{position:fixed;top:-60px;left:20px;background:var(--ink);color:white;padding:12px;z-index:100}.skip-link:focus{top:10px}label{display:block;font-size:12px;font-weight:600;margin-bottom:17px}label input,label select,label textarea{display:block;margin-top:7px;font-weight:400}input,select,textarea{width:100%;min-width:0;border:1px solid #d7d1c6;border-radius:6px;background:var(--surface);padding:10px 12px;line-height:1.45}textarea{resize:vertical}input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--ink)}fieldset{border:0;margin:0;padding:0;min-width:0}summary{cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.required{color:var(--red)}
.foundation-content{padding:20px 23px;font-size:14px;line-height:1.8;color:#5d574c;overflow-wrap:break-word}.foundation-content ul{margin:0;padding-left:21px}.foundation-content li+li{margin-top:5px}.foundation-content p{margin:0}
.foundation-mission,.foundation-strategy{grid-column:1/-1}.strategy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;margin-top:22px}.strategy-grid h3{font-size:18px;line-height:1.4;margin:0 0 12px;color:var(--ink)}.strategy-grid p+ul,.strategy-grid p+p{margin-top:12px}@media(max-width:800px){.strategy-grid{grid-template-columns:1fr;gap:22px}.foundation-content{padding:17px}}
/* Sign-in */
.login-layout{min-height:100dvh;display:grid;grid-template-columns:1.12fr 1fr}.login-story{background:var(--ink);color:#f7f5ee;padding:45px 7vw 32px;display:flex;flex-direction:column;position:relative;overflow:hidden}.login-story:after{content:'';position:absolute;width:500px;height:500px;border:1px solid #ffffff08;border-radius:50%;right:-350px;bottom:80px;box-shadow:0 0 0 65px #ffffff03,0 0 0 130px #ffffff02;pointer-events:none}.login-story .wordmark{font-size:33px;flex-wrap:wrap;gap:8px}.login-story .wordmark span{border:0;padding:0;width:100%;font-size:8px;letter-spacing:2px;color:#b3aa9f}.login-statement{margin:auto 0;padding:70px 0}.login-statement h1{font-size:clamp(48px,5.4vw,86px);line-height:1.02;letter-spacing:-4px;font-weight:400;margin:24px 0 30px}.login-statement>.eyebrow{color:#b3aa9f;font-size:9px}.login-statement>p:last-of-type{font-size:15px;line-height:1.8;color:#bcb6ac}.login-chain{display:flex;align-items:center;gap:16px;margin-top:50px;font-size:11px}.login-chain span{padding:10px 15px;border:1px solid #ffffff26;border-radius:5px}.login-chain b{color:#b3aa9f;font-weight:400}.login-story footer{display:flex;justify-content:space-between;font-size:9px;color:#aaa396;gap:15px}.login-access{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:60px 6vw;background:var(--paper)}.login-form-wrap{width:100%;max-width:370px;margin:auto}.edition{display:flex;gap:8px;align-items:center;font-size:9px;font-weight:600;letter-spacing:1.1px;color:var(--muted);margin-bottom:43px}.login-access h2{font-size:36px;letter-spacing:-1px;margin-bottom:12px}.login-access .muted{font-size:13px;line-height:1.8}.login-form-wrap form{margin-top:35px}.login-form-wrap label{font-size:11px;margin-bottom:22px}.login-form-wrap input{min-height:49px;background:transparent}.password-wrap{position:relative}.password-wrap input{padding-right:82px}.password-wrap button{position:absolute;right:12px;top:15px;border:0;background:transparent;font-size:10px;color:var(--muted)}.login-submit{width:100%;margin-top:8px;justify-content:space-between;min-height:50px}.login-submit span{font-size:19px}.login-note{margin-top:24px;font-size:10px;line-height:1.9;color:var(--muted)}.login-note strong{font-weight:500;color:var(--ink)}.login-bottom{font-size:9px;color:var(--muted);padding-top:50px}.login-error{color:var(--red);padding:12px 0;font-size:12px}
/* Application shell */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:79px;padding:17px 32px;border-bottom:1px solid var(--line);background:var(--surface);position:relative;z-index:10}.topbar-right{display:flex;align-items:center;gap:12px;font-size:12px}.user-avatar{width:29px;height:29px;display:grid;place-items:center;background:#e8e3d9;border:1px solid var(--line);border-radius:50%;font-size:11px;font-weight:600}#connection-status{font-size:10px;color:var(--green);max-width:210px}#connection-status[data-state=error]{color:var(--red)}.app-layout{display:grid;grid-template-columns:213px minmax(0,1fr)}.rail{padding:34px 19px 20px 24px;border-right:1px solid var(--line);align-self:start;position:sticky;top:0;height:100dvh;overflow-y:auto}.rail>.eyebrow{padding-left:8px;margin-bottom:23px}.rail nav{display:flex;flex-direction:column;gap:5px}.rail nav a{display:flex;gap:12px;padding:10px 9px;border-radius:6px;text-decoration:none;align-items:baseline;color:#665e52;font-size:11px;line-height:1.4}.rail nav a:hover,.rail nav a.active{background:#e9e5dc;color:var(--ink)}.rail nav a span{color:#a39a8b;font-size:10px;min-width:18px}.risk-module-link{display:flex;justify-content:space-between;gap:12px;margin:35px 8px 20px;border-top:1px solid var(--line);padding-top:22px;font-size:11px;text-decoration:none}.rail-note{font-size:10px;line-height:1.8;color:var(--muted);padding:0 8px}.main-content{min-width:0;padding:0 35px}.overview{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:40px 0 27px}.overview h1{font-size:clamp(28px,2.4vw,43px);font-weight:400;letter-spacing:-1.7px;line-height:1.2;margin:10px 0}.subtitle{color:var(--muted);font-size:12px}.overview-stats{display:flex;align-items:center}.overview-stats>div,.overview-stats>button{display:flex;flex-direction:column;align-items:flex-start;padding:0 21px;border:0;border-left:1px solid var(--line);background:transparent;min-width:80px}.overview-stats strong{font-size:30px;font-weight:400;line-height:1.2}.overview-stats span{font-size:9px;color:var(--muted);margin-top:8px;white-space:nowrap}#alerts-button strong{color:var(--amber)}.focus-strip{display:flex;align-items:center;gap:18px;padding:14px 18px;background:#eae6dc;border:1px solid #dcd5c8;border-radius:7px;font-size:12px;margin-bottom:24px}.focus-strip>.eyebrow{white-space:nowrap;font-size:9px}.focus-strip button{background:transparent;border:0;text-align:left;font-size:13px;font-weight:600;padding:0}.notice,.meeting-banner{background:#f6e7d2;border:1px solid #e0cba8;border-radius:7px;padding:13px 16px;margin-bottom:16px;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:15px}.meeting-banner{background:#e5ede6;border-color:#bfcfbf}.workspace{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:clip}.workspace-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 22px;flex-wrap:wrap}.view-tabs{display:flex;padding:3px;background:#eeebe4;border-radius:6px;gap:3px}.view-tabs button{border:0;background:transparent;border-radius:4px;padding:7px 13px;font-size:12px;color:var(--muted)}.view-tabs button.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #12100b12}.toolbar-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.filters{display:flex;align-items:center;gap:12px;margin:0 22px;padding:14px 0;border-top:1px solid var(--line);flex-wrap:wrap}.filters input{border:0;background:transparent;padding:7px 0;font-size:12px;flex:1;min-width:200px}.filters select{width:auto;max-width:180px;background:#f3f0e9;border:0;padding:8px 25px 8px 9px;font-size:11px}.board-section{scroll-margin-top:15px;border-top:1px solid var(--line)}.board-section>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 23px;background:#f4f1ea}.section-heading{display:flex;align-items:center;gap:13px}.section-number{font-size:11px;color:#8f8474;letter-spacing:1px}.board-section h2{font-size:18px;letter-spacing:-.4px}.section-count{font-size:10px;border:1px solid #d8d1c5;border-radius:4px;padding:0 6px;color:#796e5c}.section-layout{display:grid;grid-template-columns:minmax(0,1fr) 215px}.section-cards{padding:20px 22px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:13px;align-content:start}.section-help{padding:20px 19px;border-left:1px solid #ebe5da;background:#faf8f3;font-size:11px;line-height:1.65;color:#756b5d}.section-help strong{font-size:9px;letter-spacing:1px;font-weight:600;display:block;color:#8b7e6a;margin-bottom:8px}.section-help ul{padding-left:15px;margin:8px 0 0}.section-help li{margin-bottom:7px}.section-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;border:1px dashed #d8d1c6;border-radius:6px;padding:28px 16px;font-size:12px;color:#8c8170;text-align:center;min-height:103px}.section-empty button{border:0;background:transparent;color:inherit}.situation-card{border:1px solid #d8d2c7;background:#f5f0e7;border-radius:7px;padding:14px;position:relative;min-height:157px;text-align:left;cursor:pointer;overflow-wrap:anywhere;transition:box-shadow .15s,transform .15s;display:flex;flex-direction:column}.situation-card:hover{transform:translateY(-2px);box-shadow:0 5px 13px #12100b12}.situation-card[data-status=blocked]{background:#f8dfd9;border-color:#e2b8af}.situation-card[data-status=done]{background:#e3ecdf;border-color:#c0cfb9}.situation-card[data-status=archived]{opacity:.65;background:#eeece7}.situation-card[data-priority=P0]{border-left:4px solid var(--red)}.card-top{font-size:9px;color:#756953;display:flex;gap:8px;justify-content:space-between;margin-bottom:10px}.card-title{font-size:17px;line-height:1.25;font-weight:600;letter-spacing:-.35px;margin-bottom:13px}.card-summary{font-size:11px;color:#726959;line-height:1.5;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-facts{display:flex;gap:5px;flex-wrap:wrap;font-size:10px;margin-top:auto}.card-facts .pill{font-size:9px;background:#ffffff35;border-color:#c7beae}.card-bottom{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#766c5c;border-top:1px solid #12100b18;padding-top:10px;margin-top:12px}.card-alert{font-size:10px;color:#944327;margin-top:9px;font-weight:600}.secret-mark{font-size:9px;color:#8a3d36}.ai-panel{margin:30px 0 24px;padding:26px;border:1px solid var(--line);border-radius:10px;background:#efebe2}.ai-panel>header{display:flex;justify-content:space-between;gap:20px;align-items:center}.ai-panel h2{margin:7px 0 10px}.ai-panel .muted{font-size:12px}.ai-panel details{border-top:1px solid #d7cebf;padding:16px 0}.ai-panel #ai-comments{margin-top:22px}.ai-panel summary{font-size:13px}.comment-meta{font-size:10px;color:var(--muted);margin:8px 0}.comment-body{white-space:pre-wrap;font-size:13px;line-height:1.7;overflow-wrap:anywhere;background:#fbf9f3;padding:18px;border-radius:6px;margin-top:12px}.stale{color:var(--amber);font-size:10px;margin-left:8px}.page-footer{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:var(--muted);padding-bottom:24px;flex-wrap:wrap}
/* Editors and connected views */
dialog{padding:0;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);max-height:94dvh;box-shadow:0 25px 90px #12100b3b;overflow:auto}dialog::backdrop{background:#12100b75;backdrop-filter:blur(3px)}.card-dialog{width:1100px;max-width:calc(100vw - 30px)}.medium-dialog{width:580px;max-width:calc(100vw - 30px)}.wide-dialog{width:820px;max-width:calc(100vw - 30px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:2}.dialog-header h2{margin-top:3px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px}.editor-content{padding:25px 27px;min-width:0}.editor-aside{border-left:1px solid var(--line);padding:25px 22px;background:#f2eee5;min-width:0}.editor-aside h3{margin-bottom:7px}.editor-aside #card-provenance{font-size:11px;line-height:1.7;padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid #d9d0c1;color:var(--muted)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}.field-grid .full{grid-column:1/-1}.dept-choices{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.dept-choice{display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid var(--line);border-radius:5px;font-size:10px;margin:0}.dept-choice:has(input:checked){border-color:#b0a594;background:#eee8dc}.section-fields-heading{border-top:1px solid var(--line);padding-top:21px;margin:9px 0 18px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:13px;font-weight:600}.section-fields-heading small{font-size:9px;color:var(--muted);font-weight:400}.extra-fields{border-top:1px solid var(--line);padding-top:17px;margin-top:4px}.extra-fields summary{font-size:12px;margin-bottom:17px}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:11px;padding:17px 25px;border-top:1px solid var(--line);background:var(--surface);position:sticky;bottom:0;z-index:2}.dialog-footer .hint{margin-right:auto;font-size:10px}.dialog-body{padding:24px 27px}.dialog-body>p{margin-bottom:18px}.form-feedback{padding:12px 14px;background:#f9e6df;border:1px solid #e1c2b8;color:#8f3029;border-radius:6px;font-size:12px;white-space:pre-line}.conflict-panel{background:#fff1d7;border:1px solid #dcc39c;padding:16px;border-radius:6px;margin-top:15px;font-size:12px}.conflict-panel p{margin:9px 0}.conflict-panel pre{max-height:200px;overflow:auto;background:#fff9ee;padding:10px}.conflict-panel .button{white-space:normal;text-align:left;margin:5px 0}.linked-item{border-bottom:1px solid #d8cebd;padding:11px 0;font-size:11px}.linked-item>button:first-child{border:0;background:transparent;text-align:left;padding:0;font-weight:600;text-decoration:underline;text-decoration-color:#b3aa9f}.linked-caption{color:var(--muted);font-size:10px;margin:4px 0}.unlink{border:0;background:transparent;font-size:10px;color:var(--red);padding:2px 0}.editor-aside #add-link{margin-top:13px}.editor-aside #section-question{font-size:11px;line-height:1.7;border-top:1px solid var(--line);padding-top:18px;margin-top:25px;color:var(--muted)}.editor-aside #card-alerts{margin-top:22px}.alert-item{border-bottom:1px solid var(--line);padding:15px 0;display:flex;gap:15px;align-items:flex-start}.alert-item strong{font-size:12px}.alert-item p{font-size:12px;color:var(--muted);margin-top:6px}.alert-item button{border:0;background:transparent;text-align:left;padding:0;flex:1}.alert-dot{width:7px;height:7px;background:#ac762a;border-radius:50%;flex:none;margin-top:7px}.alert-dot.high,.alert-dot.critical{background:var(--red)}.history-event{border-bottom:1px solid var(--line);padding:15px 0;font-size:12px}.history-event summary{line-height:1.7}.history-event .pill{margin-right:7px}.history-diff{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:10px}.history-diff pre{font-size:11px;background:#f4f0e7;padding:12px;max-height:330px;overflow:auto}.graph-heading{display:flex;justify-content:space-between;gap:20px;padding:25px;align-items:center;border-top:1px solid var(--line)}.graph-heading select{max-width:360px}.graph-heading p{font-size:12px;margin-top:7px}.graph-neighborhood{display:grid;grid-template-columns:1fr 1fr 1fr;gap:34px;padding:25px 35px 35px;align-items:start;background:linear-gradient(90deg,#f9f6ee,white,#f9f6ee)}.graph-column>h3{text-transform:uppercase;letter-spacing:1px;font-size:10px;color:var(--muted);margin-bottom:20px}.graph-node{position:relative;margin:0 0 16px;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:15px;width:100%;text-align:left;overflow-wrap:anywhere}.graph-node strong{display:block;font-size:14px;line-height:1.35}.graph-node small{display:block;color:var(--muted);font-size:10px;margin:7px 0}.graph-node.center{background:#eae4d7;border:2px solid #8c806c;margin-top:36px;padding:22px}.graph-edge-label{font-size:10px;color:var(--blue);margin-top:10px;display:block;border-top:1px solid var(--line);padding-top:8px}.graph-left .graph-node:after{content:'→';position:absolute;right:-28px;top:45%;color:#9e9079}.graph-right .graph-node:before{content:'→';position:absolute;left:-28px;top:45%;color:#9e9079}.restore-counts{padding:16px;background:#e7ede1;border-radius:6px;margin:20px 0}.restore-counts pre{font-size:12px;max-height:250px;overflow:auto}
body.meeting .rail{display:none}body.meeting .app-layout{grid-template-columns:1fr}body.meeting .main-content{padding:0 30px}body.meeting .card-title{font-size:21px}body.meeting .section-cards{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}body.meeting .section-help{font-size:13px}body.meeting .board-section h2{font-size:22px}
@media(min-width:1900px){.main-content{padding:0 50px}.section-layout{grid-template-columns:minmax(0,1fr) 260px}.section-cards{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.situation-card{min-height:180px}.card-title{font-size:20px}.section-help{font-size:12px}.overview{padding:50px 0 35px}}
@media(max-width:1150px){.app-layout{grid-template-columns:175px minmax(0,1fr)}.rail{padding:28px 12px}.main-content{padding:0 20px}.topbar{padding:16px 20px}.topbar .wordmark span{display:none}.overview{align-items:flex-start}.overview-stats>div,.overview-stats>button{padding:0 12px;min-width:60px}.overview-stats strong{font-size:25px}.section-layout{grid-template-columns:1fr}.section-help{border-left:0;border-top:1px solid #eee7dc;padding:12px 22px}.section-help ul{display:flex;gap:12px;flex-wrap:wrap;list-style:none;padding:0}.section-help li{margin:0}.section-help li+li:before{content:'· ';color:#a59b8c}.editor-layout{grid-template-columns:minmax(0,1fr) 250px}.toolbar-actions{gap:4px}.toolbar-actions .button{padding:6px 8px}}
@media(max-width:800px){.login-layout{grid-template-columns:1fr}.login-story{padding:30px;min-height:360px}.login-statement{padding:40px 0}.login-statement h1{font-size:48px;letter-spacing:-2px;margin:14px 0}.login-statement>p:last-of-type{font-size:12px}.login-chain,.login-story footer{display:none}.login-access{padding:40px 25px}.edition{margin-bottom:22px}.app-layout{grid-template-columns:1fr}.rail{display:none}.topbar{padding:15px;gap:10px}.topbar .wordmark{font-size:20px;letter-spacing:2px}.topbar-right{gap:6px}.topbar-right>.badge,.topbar-right>#refresh,.topbar-right>.user-avatar{display:none}#connection-status{max-width:120px;font-size:9px}.main-content{padding:0 13px}.overview{padding:24px 0;display:block}.overview h1{font-size:30px;letter-spacing:-1px}.overview-stats{margin-top:23px}.overview-stats>div,.overview-stats>button{padding:0 18px}.overview-stats>div:first-child{border:0;padding-left:0}.focus-strip{gap:10px;align-items:flex-start;flex-direction:column;margin-bottom:16px}.workspace-toolbar{padding:15px;gap:14px}.filters{margin:0 15px;gap:7px}.filters select{max-width:150px;font-size:10px}.filters input{width:100%;flex:auto}.board-section>header{padding:15px}.board-section h2{font-size:16px}.section-cards{padding:15px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.section-help{padding:12px 15px}.ai-panel{padding:20px 16px}.ai-panel>header{display:block}.ai-panel>header>.button{margin-top:15px}.editor-layout{grid-template-columns:1fr}.editor-aside{border-left:0;border-top:1px solid var(--line)}.editor-content{padding:20px}.dialog-header{padding:18px 20px}.dialog-footer{padding:13px;gap:7px;flex-wrap:wrap}.dialog-footer .hint{width:100%;order:-1}.dialog-footer .button{padding:8px 10px;font-size:11px}.dialog-body{padding:20px}.graph-heading{display:block;padding:20px}.graph-heading select{max-width:100%;margin-top:15px}.graph-neighborhood{grid-template-columns:1fr;gap:10px;padding:20px}.graph-node.center{margin-top:0}.graph-left .graph-node:after,.graph-right .graph-node:before{display:none}.history-diff{grid-template-columns:1fr}.meeting-banner{font-size:11px}body.meeting .main-content{padding:0 13px}.section-fields-heading{align-items:flex-start;flex-direction:column;gap:5px}}
@media(max-width:430px){.field-grid{grid-template-columns:1fr}.topbar-right #viewer-name{display:none}.section-heading{gap:8px}.section-number{font-size:9px}.board-section h2{font-size:15px}.section-count{display:none}.section-cards{grid-template-columns:1fr}.login-story .wordmark{font-size:27px}.login-statement h1{font-size:43px}.login-story{min-height:325px}.toolbar-actions{gap:7px}.page-footer{line-height:1.7}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:white;font-size:11px}.topbar,.rail,.workspace-toolbar,.filters,.overview-stats,.page-footer,.meeting-banner,dialog,.button{display:none!important}.app-layout{display:block}.main-content{padding:0}.workspace{border:0}.board-section{break-inside:avoid}.section-cards{grid-template-columns:repeat(3,1fr)}.situation-card{break-inside:avoid;box-shadow:none}.section-layout{grid-template-columns:1fr}.section-help{display:none}.ai-panel{break-before:page}.ai-panel details{break-inside:avoid}.comment-body{display:block}.overview{padding:10px 0}.overview h1{font-size:26px}#connections[hidden]{display:none}}

/* Management route: color identifies a destination, never completion. */
.app-layout{display:block}.main-content{max-width:1760px;margin:0 auto;padding:0 35px}.route-map{padding:24px 0 18px;border-bottom:1px solid var(--line)}.route-map-heading{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin-bottom:12px}.route-map-heading>p:last-child{font-size:10px;color:var(--muted)}.route-scroll-hint{display:none}#route-nav{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;padding:3px}.route-stop{--stop:#e9ddc8;display:flex;align-items:center;gap:8px;min-height:54px;padding:9px 10px;background:var(--stop);border:1px solid #12100b12;border-radius:7px;text-decoration:none;font-size:10px;line-height:1.35;position:relative;color:var(--ink);transition:box-shadow .15s,border-color .15s}.route-stop:hover{box-shadow:0 2px 7px #12100b14;border-color:#12100b60}.route-number{font-size:10px;font-weight:600;opacity:.72;flex:none}.route-stop[aria-current=page]{border:2px solid var(--ink);padding:8px 9px;box-shadow:0 0 0 2px var(--surface);font-weight:700}.route-stop[aria-current=page] .route-number{opacity:1;text-decoration:underline;text-underline-offset:4px}.route-stop:nth-child(2){--stop:#e6d1c5}.route-stop:nth-child(3){--stop:#d9ccb6}.route-stop:nth-child(4){--stop:#d9ddc4}.route-stop:nth-child(5){--stop:#cbded1}.route-stop:nth-child(6){--stop:#c4d7d3}.route-stop:nth-child(7){--stop:#d3e3df}.route-stop:nth-child(8){--stop:#c8dbe3}.route-stop:nth-child(9){--stop:#cbd2e4}.route-stop:nth-child(10){--stop:#d9d2e7}.route-stop:nth-child(11){--stop:#e6d4e2}.route-stop:nth-child(12){--stop:#e9d2d4}.route-stop:nth-child(13){--stop:#ecdac8}.route-stop:nth-child(14){--stop:#e8e0c2}.route-stop:nth-child(15){--stop:#d8dfc9}.route-stop:nth-child(16){--stop:#cbd5cf}.route-utilities{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:17px}.route-utilities>div{display:flex;align-items:center;gap:10px}.route-utilities .eyebrow{font-size:9px;letter-spacing:1px}.overview{padding:18px 0 26px}.page-heading{max-width:1040px;min-width:0}.overview h1{font-size:clamp(29px,2.7vw,43px);letter-spacing:-1.3px;max-width:1050px}.overview .subtitle{max-width:850px;line-height:1.7}.page-heading>.eyebrow{font-size:9px;letter-spacing:1.4px}#page-title:focus{outline:none}#page-title:focus-visible{outline:2px solid #867967;outline-offset:7px;border-radius:2px}#route-content:empty{display:none}.foundation-grid,.scenario-grid,.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.foundation-slot,.scenario-slot{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}.slot-heading{padding:20px 23px;display:flex;align-items:baseline;gap:15px;border-bottom:1px solid #12100b12}.slot-heading h2{font-size:23px}.foundation-idea .slot-heading{background:#e9ddc8}.foundation-model .slot-heading{background:#e6d1c5}.foundation-principles .slot-heading{background:#d3e3df}.foundation-mission .slot-heading{background:#d9d2e7}.foundation-strategy .slot-heading{background:#e9d2d4}.empty-content{min-height:152px;margin:18px;border:1px dashed #d7d0c3;border-radius:6px;background:linear-gradient(180deg,#f8f6f1,#fffefa)}.scenario-slot .slot-heading{background:#e6e0d1}.scenario-slot:nth-child(2) .slot-heading{background:#dee3da}.scenario-slot .empty-content{min-height:185px}.team-member{border:1px solid var(--line);border-radius:10px;padding:25px;background:var(--surface);position:relative;min-height:227px}.member-avatar{display:grid;place-items:center;width:42px;height:42px;background:#e6d1c5;border-radius:50%;font-size:12px;font-weight:600;margin-bottom:18px}.team-member:nth-child(2) .member-avatar{background:#d9ddc4}.team-member:nth-child(3) .member-avatar{background:#c8dbe3}.team-member:nth-child(4) .member-avatar{background:#d9d2e7}.member-role{color:var(--muted);font-size:11px;margin-bottom:4px}.team-member h2{font-size:25px;margin-bottom:12px}.team-member>p:last-child{font-size:13px;line-height:1.75;max-width:570px;color:#5d574c}.route-note{font-size:12px;line-height:1.7;color:var(--muted);margin:20px 0}.horizon-guide{margin-top:25px;padding:25px;border:1px solid var(--line);border-radius:10px;background:#efebe2}.horizon-guide>h2{font-size:23px;margin-bottom:9px}.horizon-guide>p{font-size:12px;line-height:1.7;max-width:890px}.horizon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;margin-top:23px}.horizon-grid article{border-top:1px solid #cfc5b7;padding-top:15px}.horizon-grid h3{font-size:16px;margin-bottom:8px}.horizon-grid p{font-size:12px;line-height:1.7;color:#655d50}.horizon-guide .route-note{margin-bottom:0}.section-guide{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);gap:25px;background:#ede9e0;border:1px solid #dcd5c8;border-radius:9px;padding:22px 24px;margin-bottom:22px}.section-guide h2{font-size:14px;font-weight:600;letter-spacing:0;margin-bottom:9px}.section-guide p,.section-guide li{font-size:12px;line-height:1.7;color:#655d50}.section-guide ol{margin:0;padding-left:17px}.section-guide li+li{margin-top:9px}.expected-outcome{border-left:1px solid #d6cdbf;padding-left:24px}.section-route-link{text-decoration:none}.section-route-link:hover{text-decoration:underline}.section-route-link>span{font-size:14px;color:var(--muted);margin-left:3px}.route-pager{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin:29px 0 22px;padding-top:21px}.route-pager>a:not(.pager-overview){text-decoration:none;display:flex;flex-direction:column;gap:4px;max-width:38%;padding:10px 0}.route-pager a span{font-size:10px;color:var(--muted)}.route-pager a strong{font-size:13px;font-weight:600}.route-pager #route-next{text-align:right;margin-left:auto}.route-pager>a:hover strong{text-decoration:underline}.pager-overview{font-size:11px;color:var(--muted)}.overview-stats{flex:none}.page-footer a{color:var(--muted)}
@media(min-width:1500px){.team-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.team-member{min-height:310px}.route-stop{font-size:11px}.route-map{padding-top:28px}}
@media(max-width:1150px){.main-content{padding:0 20px}.route-stop{font-size:10px;padding:8px 7px;gap:5px}.route-stop[aria-current=page]{padding:7px 6px}.section-guide{grid-template-columns:1fr 1.5fr;gap:20px}.expected-outcome{grid-column:1/-1;border-left:0;padding:16px 0 0;border-top:1px solid #d6cdbf}.overview h1{font-size:33px}.overview:has(.overview-stats:not([hidden])){flex-wrap:wrap}}
@media(max-width:800px){.main-content,body.meeting .main-content{padding:0 15px}.route-map{padding:18px 0 15px;min-width:0}.route-map-heading{display:block;margin-bottom:9px}.route-map-heading>p:last-child{margin-top:5px;font-size:10px}.route-scroll-hint{display:inline}#route-nav{grid-template-columns:repeat(8,112px);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 3px 9px;gap:6px}.route-stop{min-height:54px;font-size:10px}.route-utilities{align-items:flex-start;gap:8px;padding-top:13px}.route-utilities>div{gap:2px;flex:none}.route-utilities .button.small{font-size:10px;padding:6px 8px}.route-utilities .eyebrow{font-size:9px;line-height:1.8;letter-spacing:.5px;padding-top:7px}.overview{padding:18px 0 22px}.overview h1{font-size:30px;line-height:1.17;letter-spacing:-1px;overflow-wrap:anywhere}.page-heading>.eyebrow{font-size:8px;letter-spacing:1px}.overview .subtitle{font-size:12px;margin-top:12px}.foundation-grid,.scenario-grid,.team-grid{gap:13px}.slot-heading{padding:17px;gap:10px}.slot-heading h2{font-size:21px}.empty-content{min-height:125px;margin:13px}.team-member{padding:20px}.team-member h2{font-size:23px}.horizon-guide{padding:20px}.horizon-grid{grid-template-columns:1fr;gap:17px}.horizon-guide>h2{font-size:21px}.section-guide{grid-template-columns:1fr;gap:18px;padding:20px}.expected-outcome{padding-top:16px}.section-guide p,.section-guide li{font-size:12px}.route-pager{gap:10px;flex-wrap:wrap}.pager-overview{order:3;width:100%;text-align:center;padding-top:10px}.route-pager>a:not(.pager-overview){max-width:47%}.route-pager a strong{font-size:12px}.section-help ul{display:block;padding-left:16px;list-style:disc}.section-help li+li:before{content:none}.section-help li{margin-bottom:7px}.workspace-toolbar{justify-content:flex-end}.workspace-toolbar:has(#view-tabs:not([hidden])){justify-content:space-between}.route-note{font-size:11px}.page-footer{line-height:1.7}}
@media(max-width:560px){.foundation-grid,.scenario-grid,.team-grid{grid-template-columns:1fr}.foundation-slot .empty-content{min-height:118px}.scenario-slot .empty-content{min-height:150px}.team-member{min-height:auto}.member-avatar{float:right;margin:0 0 13px 12px}.team-member h2{font-size:24px}.member-role{max-width:240px}.slot-heading h2{font-size:23px}.section-heading{min-width:0}.section-heading h2{overflow-wrap:anywhere}.board-section>header>.button{flex:none}.filters input{min-width:0}.filters select{max-width:100%}.topbar-right{min-width:0}.topbar{gap:8px}.topbar-right .button{padding:6px}.route-utilities{flex-wrap:wrap}.route-utilities>div{margin-left:auto}}
@media print{.route-map,.route-utilities,.route-pager{display:none!important}.section-guide,.team-member,.foundation-slot,.scenario-slot{break-inside:avoid}.main-content{padding:0}.overview h1{font-size:26px}.section-guide{grid-template-columns:1fr}.expected-outcome{border-left:0;padding-left:0}}

/* Section-specific compact cards, fields and connected route arrows. */
#route-nav{gap:9px 2px;padding:8px 5px 10px 0;overflow:visible}
.route-stop,.route-stop[aria-current=page]{min-height:44px;padding:7px 15px 7px 22px;border:0;border-radius:0;background:transparent;box-shadow:none;isolation:isolate;font-size:11px;gap:6px;transition:filter .18s}
.route-stop:nth-child(8n+1){padding-left:10px}
.route-shape{position:absolute;inset:0 -10px 0 0;background:var(--stop);z-index:-1;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%,12px 50%)}
.route-stop:nth-child(8n+1) .route-shape{clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%)}
.route-stop:hover,.route-stop:focus-visible{box-shadow:none;border:0;filter:drop-shadow(0 0 5px var(--stop)) brightness(1.03);z-index:1}
.route-stop[aria-current=page] .route-shape{background:var(--ink)}
.route-stop[aria-current=page]{color:var(--surface);font-weight:700}
.route-stop[aria-current=page] .route-number{opacity:1;text-decoration:none}
.route-number{font-size:11px}
.department-filters{display:flex;gap:7px;flex-wrap:wrap;padding:0 22px 15px}
.department-filter{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:6px;background:transparent;padding:6px 10px;min-height:36px;font-size:12px}
.department-filter span{font-size:11px;opacity:.7}
.department-filter[aria-pressed=true]{background:#e5ece6;border-color:#88a68f;color:#294b34;font-weight:600}
.section-cards{padding:15px 18px;gap:11px;align-items:start}
.situation-card.compact-card{padding:12px;min-height:0}
.compact-card .card-top{font-size:10px;margin-bottom:7px;display:block;color:#655a49}
.compact-card .card-title{font-size:17px;line-height:1.3;margin-bottom:7px}
.compact-card .card-summary{font-size:12px;line-height:1.45;margin-bottom:8px;color:#655d50}
.compact-card .card-facts{margin-top:1px;gap:4px}
.compact-card .card-facts .pill{font-size:11px;line-height:1.4;white-space:normal;text-align:left}
.compact-card .card-bottom{font-size:11px;padding-top:7px;margin-top:8px}
.compact-card .card-alert{font-size:11px;line-height:1.4;margin-top:7px}
.resource-ratings{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:7px}
.resource-rating{display:flex;flex-direction:column;font-size:10px;border-radius:4px;background:#e8e5dd;padding:4px 5px;color:#625c51}
.resource-rating b{font-size:11px}.resource-rating[data-rating="0"]{background:#f4d9d2;color:#7e2b24}.resource-rating[data-rating="1"]{background:#f1e6cc;color:#75531d}.resource-rating[data-rating="2"]{background:#dce8db;color:#365738}
.card-dialog{width:1040px}.editor-layout{grid-template-columns:minmax(0,1fr) 235px}.editor-content{padding:18px 22px}.editor-aside{padding:18px;font-size:12px}.editor-aside #card-provenance{padding-bottom:14px;margin-bottom:14px}.editor-aside #card-provenance summary{font-size:12px}
.card-field{min-width:0;margin-bottom:14px;position:relative}.card-field-wide{grid-column:1/-1}.card-core-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(130px,1fr);gap:15px}
.field-caption{display:flex;align-items:center;gap:6px;position:relative;margin-bottom:5px;min-height:26px}.field-caption label{margin:0;font-size:13px;font-weight:600;line-height:1.4}
.card-field input,.card-field select,.card-field textarea{margin:0;font-size:14px;padding:9px 10px;min-width:0;width:100%}.card-field textarea{min-height:64px;resize:vertical}
.field-help-toggle{width:26px;height:26px;flex:0 0 26px;border:1px solid #c8c2b6;border-radius:50%;background:transparent;color:#6a6255;font-size:12px;padding:0}
.field-help{position:absolute;top:calc(100% + 5px);left:0;width:max-content;max-width:min(320px,100%);padding:10px 12px;border-radius:7px;background:#28251f;color:#fffefa;box-shadow:0 5px 18px #12100b30;font-size:12px;line-height:1.5;font-weight:400;z-index:10;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .12s;white-space:normal}
.field-caption:hover .field-help,.field-caption:focus-within .field-help,.field-caption.help-open .field-help{visibility:visible;opacity:1}
.card-departments .dept-choices{gap:5px;margin-top:0}.card-departments .dept-choice{font-size:11px;padding:5px 7px;min-height:32px;gap:5px;line-height:1.4}.card-departments input{width:14px;height:14px;padding:0;flex:none}
.section-fields-heading{padding-top:15px;margin:2px 0 14px}.section-fields-heading small{font-size:11px}.extra-fields{padding-top:12px;margin-top:3px}.extra-fields summary{font-size:12px;margin-bottom:12px}.legacy-fields dt{font-weight:600;margin-top:8px}.legacy-fields dd{margin:2px 0 10px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
@media(max-width:1100px){.route-stop,.route-stop[aria-current=page]{font-size:10px;gap:4px;padding-left:18px;padding-right:8px}.route-number{font-size:10px}}
@media(max-width:800px){#route-nav{display:flex;gap:2px;overflow-x:auto;overflow-y:hidden;padding:8px 12px 12px 0}.route-stop,.route-stop[aria-current=page]{flex:0 0 148px;min-height:44px;font-size:11px;padding:7px 15px 7px 22px}.route-stop:nth-child(8n+1){padding-left:22px}.route-stop:nth-child(8n+1) .route-shape{clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%,12px 50%)}.route-stop:first-child{padding-left:10px}.route-stop:first-child .route-shape{clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%)}.editor-layout{grid-template-columns:1fr}.editor-aside{border-left:0;border-top:1px solid var(--line)}.department-filters{padding:0 14px 14px;gap:5px}.department-filter{min-height:40px}.field-help-toggle{width:32px;height:32px;flex-basis:32px}.card-core-row{grid-template-columns:1fr}.card-departments .dept-choice{min-height:38px}.section-cards{padding:14px}.editor-content{padding:16px}}
@media(prefers-reduced-motion:reduce){.route-stop,.field-help{transition:none}}
@media print{.department-filters{display:none!important}.compact-card{break-inside:avoid}}

.compact-card[data-section=risks][data-state="угроза снята"],.compact-card[data-section=decisions][data-state="выполнено"]{background:#e3ecdf;border-color:#c0cfb9}
.compact-card[data-section=risks][data-state="событие произошло"]{background:#f8dfd9;border-color:#e2b8af}

/* Foundations: compact business idea followed immediately by its business model. */
.foundation-grid{grid-template-areas:"idea principles" "model principles" "mission mission" "strategy strategy";align-items:start}
.foundation-idea{grid-area:idea}.foundation-model{grid-area:model}.foundation-principles{grid-area:principles}.foundation-mission{grid-area:mission}.foundation-strategy{grid-area:strategy}
.foundation-idea .slot-heading{padding:13px 20px}.foundation-idea .foundation-content{padding:14px 20px;line-height:1.65}
.foundation-model .foundation-content p+p{margin-top:14px}.foundation-model .foundation-content strong{font-weight:600;color:var(--ink)}
@media(max-width:800px){.foundation-grid{grid-template-columns:1fr;grid-template-areas:"idea" "model" "principles" "mission" "strategy"}.foundation-idea .slot-heading{padding:13px 17px}.foundation-idea .foundation-content{padding:14px 17px}}

/* Common evidence and classification controls. Native radios retain keyboard semantics. */
.card-owner-field{max-width:280px}.card-quick-fields{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(150px,1fr);gap:0 16px;align-items:start}.card-quick-fields [data-card-field=influenceScore]{grid-column:1/-1}
.card-choices{display:flex;flex-wrap:wrap;gap:7px}.card-choice{position:relative;display:flex;align-items:center;gap:7px;min-height:40px;padding:8px 10px;margin:0;border:1px solid #c8c2b6;border-radius:6px;font-size:13px;background:var(--surface);cursor:pointer}
.card-choice input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;padding:0;margin:0}.choice-check{width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #968d7f;border-radius:3px;color:transparent;background:#fff;flex:none;font-size:13px}
.card-choice:has(input:checked){background:#e4eee7;border-color:#6c8e76}.card-choice input:checked+.choice-check{background:#285b3b;border-color:#285b3b;color:#fff}.card-choice:focus-within{outline:3px solid #5e8aae;outline-offset:2px}.influence-choices .card-choice{min-width:57px;justify-content:center}
.classifier-choices{display:flex;gap:6px;flex-wrap:wrap}.classifier-choice.field-caption{display:flex;align-items:center;gap:0;min-width:0;max-width:100%;margin:0;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.classifier-choice .dept-choice{border:0;padding:6px 5px 6px 8px;gap:6px;min-height:38px;cursor:pointer;font-size:11px;flex:1;min-width:0}.classifier-choice .dept-choice span{overflow-wrap:anywhere}.card-classifiers .dept-choice input,.all-entities-choice input{width:15px;height:15px;padding:0;flex:none}.classifier-choice:has(input:checked){background:#eee8dc;border-color:#b0a594}.classifier-choice:has(input:disabled) .dept-choice{opacity:.55;cursor:not-allowed}.classifier-choice .field-help-toggle{border:0;width:28px;height:32px;flex-basis:28px}.classifier-choice .field-help{max-width:min(310px,75vw);min-width:210px}.all-entities-choice{margin:12px 0 8px}.all-entities-choice>.dept-choice{display:inline-flex;font-size:12px;min-height:38px;font-weight:600}.card-classifiers{margin-bottom:16px}
.compact-card[data-influence-score="2"]{background:#187a42;border-color:#116335;color:white}.compact-card[data-influence-score="1"]{background:#dff1e3;border-color:#acd0b5}.compact-card[data-influence-score="0"]{background:#fff;border-color:#d8d2c7}.compact-card[data-influence-score="-1"]{background:#f9dfdf;border-color:#dfb1b1}.compact-card[data-influence-score="-2"]{background:#b62935;border-color:#94202a;color:white}
.compact-card[data-influence-score="2"] :is(.card-top,.card-summary,.card-bottom,.card-alert),.compact-card[data-influence-score="-2"] :is(.card-top,.card-summary,.card-bottom,.card-alert){color:#fff}.compact-card[data-influence-score="2"] .pill,.compact-card[data-influence-score="-2"] .pill{border-color:#ffffff85;background:#00000018}.influence-badge{font-weight:700;font-variant-numeric:tabular-nums;min-width:28px;justify-content:center}
@media(max-width:560px){.card-quick-fields{grid-template-columns:1fr}.card-owner-field{max-width:none}.card-choice{min-height:44px}.classifier-choice .dept-choice{min-height:40px}.classifier-choice .field-help-toggle{width:32px;flex-basis:32px;min-height:40px}.classifier-choice .field-help{left:0;min-width:0;width:240px;max-width:min(240px,65vw)}}
@media(forced-colors:active){.card-choice input:checked+.choice-check{background:Highlight;color:HighlightText;border-color:Highlight}.card-choice:has(input:checked){border-color:Highlight}}
/* Keep full names within the classifier group, including its rightmost chip. */
.classifier-choices{position:relative}.classifier-choice.field-caption{position:static}.classifier-choice .field-help{left:0;min-width:0;max-width:100%}
/* The archive label carries state without washing out influence colors or text. */
.compact-card[data-influence-score][data-status=archived]{opacity:1}
/* The latest pointer or keyboard target wins over a previously pinned tooltip. */
.classifier-choices[data-help-managed] .classifier-choice:not(.help-active) .field-help{visibility:hidden;opacity:0}

/* Compact title rows share influence/scenario colors with the card view. */
.regulator-filters{border-top:1px solid var(--line);margin:0 22px;padding:12px 0 15px}
.list-view .section-layout{display:block}.list-view .section-help{display:none}.list-view .section-cards{display:flex;flex-direction:column;gap:5px;padding:10px 18px}.list-view .section-empty{width:100%;min-height:48px;padding:10px}
.situation-card.list-card{width:100%;display:flex;flex-direction:row;align-items:center;gap:10px;min-height:38px;padding:6px 10px;border-radius:5px}.list-card .card-title{flex:1;min-width:0;font-size:14px;line-height:1.4;margin:0}.list-card:hover{transform:none}.list-card:focus-visible{outline:3px solid #5e8aae;outline-offset:2px}
.card-external-links{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin:0 0 7px}.card-external-link{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;padding:3px 5px;border:1px solid currentColor;border-radius:4px;font-size:11px;font-weight:700;text-decoration:none;line-height:1}.card-external-link:hover{background:#ffffff50}.list-card .card-external-links{flex:none;margin:0;max-width:40%;justify-content:flex-end}
.compact-card[data-scenario-type=main]{background:#e4eee7;border-color:#9bbba5;color:var(--ink)}.compact-card[data-scenario-type=secondary]{background:#fbf0cc;border-color:#d7bf76;color:var(--ink)}.compact-card[data-scenario-type][data-status=archived]{opacity:1}
.card-quick-fields [data-card-field=scenarioType]{grid-column:1/-1;order:-1}
@media(max-width:800px){.regulator-filters{margin:0 14px}.list-view .section-cards{padding:8px 10px}.situation-card.list-card{min-height:44px}.list-card .card-title,body.meeting .list-card .card-title{font-size:14px}.card-external-link{min-height:32px;min-width:32px}}
@media print{.regulator-filters{display:none!important}.list-view .section-cards{display:flex}.list-card{break-inside:avoid}}

/* External links are siblings of the native graph navigation control. */
.graph-select{display:block;border:0;background:transparent;padding:0;width:100%;text-align:left;cursor:pointer}.graph-select:hover strong{text-decoration:underline}.graph-node>.card-external-links{margin:8px 0 0}.graph-node.center>.card-external-links{margin:8px 0 12px}

/* Expert resource availability: the same five states cover a whole category and its tile. */
#resource-summary{margin:0 0 22px;padding:22px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.resource-heading p,.resource-expert-note,.resource-filter-note,.resource-legend{font-size:12px;line-height:1.6}.resource-heading p{margin:6px 0 16px;color:var(--muted)}
#resource-horizon-form{max-width:660px;margin-bottom:20px}#resource-horizon-form>label{margin:0 0 5px}.resource-horizon-row{display:flex;align-items:center;gap:10px}#resource-horizon-status{margin-top:6px}
.resource-dashboard{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px}.resource-tile{border:1px solid #bbb;border-radius:6px;padding:10px 8px;min-height:100px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;gap:8px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.resource-tile span{font-size:10px}.resource-tile:disabled{opacity:1;cursor:default}.resource-legend{margin-top:10px;color:var(--muted)}
.resource-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px 20px}.resource-category-card{border:1px solid #bbb;border-radius:8px;padding:18px;display:flex;flex-direction:column;gap:10px;min-width:0;overflow-wrap:anywhere}.resource-category-card h3{font-size:17px;line-height:1.35}.resource-category-card>p{font-size:12px}.resource-category-card>.button{align-self:flex-start;margin-top:auto;white-space:normal}.resource-overall-label{font-size:14px}.resource-filter-note{padding:15px 20px 0;color:var(--muted)}.resource-legacy{margin:6px 20px 20px;border-top:1px solid var(--line);padding-top:15px}.resource-legacy>summary{font-weight:600}.resource-legacy>p{margin-top:10px}
:is(.resource-category-card,.resource-tile)[data-availability=unknown]{background:#eeefef;color:#303638;border-color:#bac0c2}
:is(.resource-category-card,.resource-tile)[data-availability="0"]{background:#b52c38;color:#fff;border-color:#92222b}
:is(.resource-category-card,.resource-tile)[data-availability="1"]{background:#ffd4a6;color:#4d2a00;border-color:#d4a06c}
:is(.resource-category-card,.resource-tile)[data-availability="2"]{background:#dff1e3;color:#163d24;border-color:#a5c6af}
:is(.resource-category-card,.resource-tile)[data-availability="3"]{background:#187a42;color:#fff;border-color:#116335}
.resource-category-card .button{color:inherit;background:#ffffff15;border-color:currentColor}.resource-category-card .card-external-links{color:inherit}
.resource-expert-note{padding:12px;background:#edf2ed;border-radius:6px;margin-bottom:16px}.resource-form-horizon{margin-bottom:16px;font-size:13px}.resource-slider{padding:12px 0;border-bottom:1px solid var(--line);margin-bottom:12px;min-width:0}.resource-slider-label{display:flex;justify-content:space-between;align-items:baseline;gap:15px;flex-wrap:wrap}.resource-slider-label label{font-size:14px;margin:0}.resource-slider-label output{font-size:13px;font-weight:600}.resource-slider input[type=range]{height:34px;margin:5px 0 0;padding:0;border:0;accent-color:#365f48;background:transparent}.resource-scale{display:flex;justify-content:space-between;font-size:11px;padding:0 5px}.resource-scale-help{font-size:11px;color:var(--muted);line-height:1.65;margin-top:5px}.resource-slider .button{padding:3px 0;min-height:32px;font-size:11px}.resource-person{margin:18px 0;border:1px solid var(--line);border-radius:7px;padding:14px}.resource-person legend{font-weight:600;padding:0 5px}.resource-person label{margin-bottom:12px}.resource-person h4{margin:8px 0}.resource-competency{border-left:2px solid #ddd8ce;padding:12px 0 3px 12px}.resource-people-archive{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.resource-people-archive details{margin-top:12px}.resource-people-archive p{font-size:12px;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.list-view .resource-category-grid{display:flex;flex-direction:column;padding:10px 18px;gap:5px}.list-view .resource-category-card{width:100%;flex-direction:row;align-items:center;gap:12px;padding:9px 12px}.list-view .resource-category-card h3{font-size:14px;flex:1}.list-view .resource-category-card>p{display:none}.list-view .resource-overall-label{font-size:12px}.list-view .resource-category-card>.button{margin:0;align-self:center;min-height:32px}.list-view .resource-category-card .card-external-links{margin:0}
@media(max-width:1150px){.resource-dashboard{grid-template-columns:repeat(3,minmax(0,1fr))}.resource-tile{min-height:85px}}
@media(max-width:800px){#resource-summary{padding:16px}.resource-category-grid{grid-template-columns:1fr;padding:14px}.resource-horizon-row{flex-wrap:wrap}.resource-horizon-row input{flex:1;min-width:160px}.resource-horizon-row .button{white-space:normal}.resource-tile{padding:9px 7px;min-height:95px}.resource-category-card{padding:15px}.resource-legacy{margin:5px 14px 16px}.resource-filter-note{padding:14px 14px 0}.list-view .resource-category-card{flex-wrap:wrap;gap:6px 10px}.list-view .resource-category-card h3{flex-basis:100%}.list-view .resource-category-card>.button{margin-left:auto}.resource-slider-label output{font-size:12px}.resource-person{padding:10px}.resource-slider .button{min-height:40px}.resource-person .field-grid{grid-template-columns:1fr}}
@media print{.resource-category-card,.resource-tile{print-color-adjust:exact;break-inside:avoid}.resource-legacy:not([open]){display:none}#resource-horizon-form button{display:none}.resource-dashboard{grid-template-columns:repeat(3,1fr)}}

.risk-workspace{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--white)}.risk-workspace>.section-help{margin:0 20px 20px;padding:20px;border-top:1px solid var(--line)}#risk-view-host{display:block;min-width:0}

@font-face { font-family: Geologica; src: url("/tyrion/geologica-regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Geologica; src: url("/tyrion/geologica-semibold.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
/* OPER presentation layer. Data, semantics and field behavior stay in the source modules. */
:root {
  --ink: #12100b;
  --paper: #f0f0f0;
  --surface: #fff;
  --line: #d7d3ce;
  --muted: #5c544e;
  --taupe: #b3aa9f;
  --white: #fff;
  --oper-card-width: 280px;
  --oper-card-height: 230px;
  font-family: Geologica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
body { background: var(--paper); }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, strong, b { font-weight: 600; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid #386d9c;
  outline-offset: 3px;
}
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.3px; }
.hint { font-size: 12px; }
.button, .button.small { min-height: 40px; padding: 9px 13px; font-size: 12px; border-radius: 7px; line-height: 1.35; }
.button { min-height: 44px; font-size: 13px; }
.button:hover { background: #f0f0f0; border-color: #b3aa9f; }
.button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.primary:hover { background: #39332c; border-color: #39332c; }
.button.danger { color: #9b2832; }
.button.danger:hover { background: #fff0f0; border-color: #d8a2a6; }
.button:disabled { opacity: .48; }
.icon-button { width: 44px; height: 44px; border-radius: 8px; font-size: 27px; background: #fff; }
.icon-button:hover { background: #f0f0f0; }
input, select, textarea { background: #fff; border-color: #aaa49c; border-radius: 7px; min-height: 44px; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: #746c64; opacity: 1; }
label { font-size: 14px; line-height: 1.5; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; }
input[type=radio] { min-height: 0; }

/* Brand asset remains intact, with its own clearspace and separate product title. */
.topbar { min-height: 88px; padding: 8px 28px; gap: 24px; color: #fff; background: var(--ink); border-bottom: 1px solid #38332c; }
.brand-lockup { display: flex; gap: 22px; align-items: center; min-width: 0; }
.wordmark { display: flex; flex: none; padding: 16px; gap: 0; letter-spacing: 0; }
.brand-logo { display: block; width: 140px; height: auto; aspect-ratio: 15081 / 3908; object-fit: contain; }
.product-name { display: flex; flex-direction: column; gap: 3px; padding-left: 22px; border-left: 1px solid #5c544e; font-size: 13px; font-weight: 600; line-height: 1.4; }
.product-name small { font-size: 10px; color: #d2cbc2; letter-spacing: 1.2px; font-weight: 400; }
.topbar-right { gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; }
.topbar-right .badge { border-color: #5c544e; color: #d2cbc2; font-size: 10px; }
.topbar-right .button, .topbar-right .button.quiet { color: #fff; background: transparent; border-color: #5c544e; }
.topbar-right .button:hover { background: #38332c; border-color: #b3aa9f; }
.topbar-right .button.quiet { border-color: transparent; }
.topbar-right .button.quiet:hover { border-color: #5c544e; }
.topbar-right .user-avatar { width: 34px; height: 34px; background: #38332c; color: #fff; border-color: #5c544e; }
#connection-status { color: #b7dfbe; font-size: 11px; line-height: 1.5; max-width: 190px; }
#connection-status[data-state=error] { color: #ffb6b6; }
#viewer-name { max-width: 170px; overflow-wrap: anywhere; }
.skip-link { z-index: 100; background: white; color: #12100b; border: 2px solid #12100b; }

/* One stable route rail; no steps are hidden or reordered. */
.app-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; max-width: 1920px; margin: 0 auto; }
.main-content, body.meeting .main-content { width: 100%; max-width: none; padding: 0 28px; margin: 0; }
.route-map { align-self: start; position: sticky; top: 12px; margin: 0; padding: 24px 12px 20px; border: 0; border-right: 1px solid var(--line); background: #fafafa; min-width: 0; height: calc(100dvh - 12px); max-height: 850px; overflow-y: auto; scrollbar-width: thin; }
.route-map-heading { display: block; padding: 0 12px; margin-bottom: 17px; }
.route-map-heading .eyebrow { font-size: 10px; letter-spacing: 1px; line-height: 1.6; }
.route-map-heading > p:last-child { font-size: 11px; margin-top: 5px; color: var(--muted); }
.route-scroll-hint { display: none; }
#route-nav { display: flex; flex-direction: column; gap: 3px; padding: 2px; overflow: visible; }
.route-stop, .route-stop[aria-current=page], .route-stop:nth-child(8n+1) {
  display: flex; flex: none; align-items: center; min-height: 44px; padding: 9px 12px; gap: 10px;
  border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; box-shadow: none; filter: none;
}
.route-stop .route-shape, .route-stop:nth-child(8n+1) .route-shape { inset: 11px auto 11px 0; width: 3px; border-radius: 3px; clip-path: none; background: var(--stop); }
.route-stop .route-number { font-size: 11px; font-weight: 400; min-width: 19px; color: var(--muted); opacity: 1; font-variant-numeric: tabular-nums; }
.route-stop:hover { background: #eae7e3; border: 1px solid transparent; color: var(--ink); filter: none; }
.route-stop[aria-current=page] { color: white; background: var(--ink); font-weight: 600; border-color: var(--ink); }
.route-stop[aria-current=page] .route-number { color: #d5cec4; }
.route-stop[aria-current=page] .route-shape { background: #b3aa9f; }
.route-stop:focus-visible { outline: 3px solid #386d9c; outline-offset: 2px; filter: none; }
body.meeting .app-layout { grid-template-columns: 236px minmax(0, 1fr); }
.route-utilities { min-height: 58px; padding-top: 12px; gap: 16px; }
.route-utilities .eyebrow { font-size: 10px; letter-spacing: .7px; }
.route-utilities > div { gap: 8px; }
.overview { padding: 8px 0 16px; gap: 20px; align-items: flex-start; }
.overview h1 { font-size: clamp(28px, 2.4vw, 38px); line-height: 1.2; letter-spacing: -1.2px; margin: 6px 0; font-weight: 600; }
.page-heading > .eyebrow { font-size: 10px; letter-spacing: 1px; }
.overview .subtitle { font-size: 13px; line-height: 1.6; max-width: 920px; }
.overview-stats strong { font-size: 29px; font-weight: 600; font-variant-numeric: tabular-nums; }
.overview-stats span { font-size: 11px; white-space: normal; }
.overview-stats > div, .overview-stats > button { padding: 0 16px; }
#page-title { scroll-margin-top: 20px; }
#page-title:focus-visible { outline-color: #386d9c; }
.section-guide { grid-template-columns: .8fr 2fr .8fr; gap: 20px; background: #e8e5e1; padding: 14px 18px; margin-bottom: 16px; border-color: #d7d3ce; border-radius: 9px; }
.section-guide h2 { font-size: 13px; margin-bottom: 6px; }
.section-guide p, .section-guide li { color: var(--muted); font-size: 12px; line-height: 1.6; }
.section-guide li + li { margin-top: 7px; }
.expected-outcome { grid-column: auto; border-top: 0; border-left: 1px solid #c9c2b9; padding: 0 0 0 20px; }
.focus-strip { background: #e8e5e1; border-color: #d7d3ce; margin-bottom: 18px; flex-wrap: wrap; }
.focus-item { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.focus-item > [data-open-card] { overflow-wrap: anywhere; }
.notice, .meeting-banner { font-size: 13px; }
.notice[data-kind=success] { color: #234a30; background: #edf5ef; border-color: #a9c6b1; }

/* Dense working surface: readable filters, explicit active states, semantic card colors. */
.workspace { border-radius: 10px; box-shadow: 0 2px 5px #12100b04; }
.workspace-toolbar { padding: 12px 18px; gap: 12px; }
.view-tabs { padding: 4px; background: #f0f0f0; border-radius: 8px; }
.view-tabs button { min-height: 36px; padding: 8px 12px; font-size: 12px; border-radius: 5px; }
.view-tabs button.active { font-weight: 600; box-shadow: 0 1px 4px #12100b15; }
.toolbar-actions { gap: 6px; }
.filters { margin: 0 18px; padding: 10px 0; gap: 9px; }
.filters input { font-size: 13px; min-height: 42px; padding: 10px 12px; background: #f7f7f7; border: 1px solid #d7d3ce; border-radius: 7px; }
.filters select { min-height: 42px; max-width: 205px; padding: 9px 28px 9px 11px; background: #f7f7f7; border: 1px solid #d7d3ce; font-size: 12px; }
.department-filters { padding: 0 18px 10px; gap: 6px; }
.department-filter { min-height: 36px; padding: 7px 10px; font-size: 11px; border-radius: 6px; background: #fff; border-color: #d7d3ce; }
.department-filter:hover { border-color: #8f877e; background: #f5f4f2; }
.department-filter span { font-size: 10px; opacity: 1; color: #6b6259; font-variant-numeric: tabular-nums; }
.department-filter[aria-pressed=true] { color: #fff; background: #5c544e; border-color: #5c544e; }
.department-filter[aria-pressed=true] span { color: #fff; }
.regulator-filters { margin: 0 18px; padding: 10px 0; }
.board-section > header { padding: 8px 18px; background: #f4f3f1; }
.board-section h2 { font-size: 18px; font-weight: 600; }
.section-number { color: #6d6257; }
.section-count { color: #5c544e; font-size: 11px; }
.section-layout { grid-template-columns: minmax(0,1fr) 205px; }
.section-cards { padding: 14px; gap: 12px; }
.section-help { background: #f8f7f5; color: #5c544e; padding: 18px 16px; font-size: 12px; border-color: #e2ded8; }
.section-help strong { font-size: 10px; color: #5c544e; }
.section-help ul { display: block; list-style: disc; padding-left: 16px; }
.section-help li { margin-bottom: 8px; }
.section-help li + li:before { content: none; }
.situation-card.compact-card { border-radius: 8px; padding: 15px; box-shadow: 0 1px 2px #12100b05; }
.compact-card .card-title { font-size: 15px; line-height: 1.4; letter-spacing: -.2px; margin-bottom: 9px; }
.compact-card .card-top { font-size: 11px; line-height: 1.5; }
.compact-card .card-summary { font-size: 12px; line-height: 1.55; }
.compact-card .card-facts .pill { font-size: 11px; padding: 3px 6px; border-radius: 4px; }
.compact-card .card-bottom { font-size: 11px; line-height: 1.5; }
.situation-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px #12100b14; }
.situation-card:focus-visible { outline: 3px solid #386d9c; outline-offset: 3px; }
.situation-card.list-card { padding: 12px 14px; min-height: 48px; }
.list-card .card-title { font-size: 14px; margin: 0; }
.card-external-link { min-height: 32px; min-width: 32px; }
.ai-panel { background: #e8e5e1; padding: 22px; border-color: #d7d3ce; }
.ai-panel .comment-body { background: #fff; }
.page-footer { font-size: 11px; line-height: 1.7; padding-bottom: 26px; }
.route-pager { margin: 24px 0 20px; }
.route-pager a span { font-size: 11px; }
.route-pager a strong { font-size: 13px; }

/* Editors keep every field visible in its original order and keep actions within reach. */
dialog { border: 1px solid #b3aa9f; border-radius: 13px; background: white; box-shadow: 0 24px 100px #12100b40; max-height: calc(100dvh - 48px); overscroll-behavior: contain; scroll-padding: 132px 0 110px; }
dialog::backdrop { background: #12100b85; backdrop-filter: blur(3px); }
.card-dialog { width: 1160px; max-width: calc(100vw - 48px); }
.dialog-header { padding: 20px 26px; background: #fff; gap: 20px; border-bottom: 1px solid #d7d3ce; z-index: 20; }
.dialog-header > div { min-width: 0; }
.dialog-header h2 { font-size: 24px; font-weight: 600; letter-spacing: -.6px; line-height: 1.3; }
.dialog-header .eyebrow { font-size: 11px; letter-spacing: 1px; margin-bottom: 5px; }
#card-object-title { margin-top: 7px; font-size: 13px; line-height: 1.5; color: #5c544e; overflow-wrap: anywhere; max-width: 900px; }
.editor-layout { grid-template-columns: minmax(0,1fr) 260px; }
.editor-content { padding: 24px 26px; }
.editor-aside { padding: 24px 20px; background: #f4f3f1; border-left: 1px solid #d7d3ce; font-size: 13px; }
.editor-aside h3 { font-size: 14px; }
.editor-aside #card-provenance { font-size: 12px; line-height: 1.7; padding-bottom: 18px; margin-bottom: 18px; }
.editor-aside #card-provenance summary { font-size: 12px; min-height: 32px; }
.editor-aside #section-question { font-size: 12px; line-height: 1.7; padding-top: 18px; }
.editor-aside .hint { font-size: 12px; line-height: 1.7; }
.field-grid { gap: 0 20px; }
.card-field { margin-bottom: 20px; }
.field-caption { min-height: 32px; margin-bottom: 7px; gap: 8px; }
.field-caption label { font-size: 14px; line-height: 1.5; }
.card-field input, .card-field select, .card-field textarea { min-height: 44px; font-size: 14px; padding: 10px 12px; }
.card-field textarea { min-height: 86px; line-height: 1.6; }
#card-title-input { font-size: 16px; font-weight: 600; }
.card-owner-field { max-width: 320px; }
.card-quick-fields { gap: 0 20px; }
.field-help-toggle { width: 30px; height: 30px; flex-basis: 30px; background: #f4f3f1; color: #5c544e; border-color: #c4bdb4; font-size: 12px; }
.field-help { font-size: 12px; background: #29251f; border-radius: 7px; padding: 12px 14px; max-width: min(360px,100%); box-shadow: 0 6px 20px #12100b2b; }
.card-choice { min-height: 44px; padding: 10px 12px; font-size: 13px; border-color: #b3aa9f; }
.card-choice:has(input:checked) { background: #e8e5e1; border-color: #5c544e; }
.card-choice input:checked + .choice-check { background: #12100b; border-color: #12100b; }
.card-choice:focus-within { outline-color: #386d9c; }
.influence-choices .card-choice { min-width: 64px; }
.dept-choice, .card-departments .dept-choice { min-height: 40px; padding: 8px 10px; font-size: 12px; gap: 7px; line-height: 1.4; }
.card-departments input, .card-classifiers .dept-choice input, .all-entities-choice input { width: 17px; height: 17px; min-height: 17px; padding: 0; }
.dept-choice:has(input:checked), .classifier-choice:has(input:checked) { background: #e8e5e1; border-color: #8c8176; }
.classifier-choices { gap: 7px; }
.classifier-choice .dept-choice { min-height: 40px; font-size: 12px; padding: 8px 5px 8px 10px; }
.classifier-choice .field-help-toggle { width: 32px; min-height: 40px; flex-basis: 32px; background: transparent; }
.all-entities-choice { margin: 16px 0 12px; }
.all-entities-choice > .dept-choice { min-height: 40px; font-size: 12px; }
.section-fields-heading { margin: 6px 0 20px; padding-top: 22px; font-size: 15px; }
.section-fields-heading small { font-size: 12px; }
.extra-fields { border-color: #d7d3ce; padding-top: 16px; margin-top: 7px; }
.extra-fields summary { font-size: 13px; font-weight: 600; min-height: 36px; margin-bottom: 12px; line-height: 1.6; }
.dialog-footer { padding: 16px 24px; gap: 10px; z-index: 20; box-shadow: 0 -4px 16px #12100b05; background: #fff; }
.dialog-footer .hint { font-size: 12px; line-height: 1.5; }
.dialog-footer .button { min-height: 44px; padding: 11px 16px; font-size: 13px; }
.dialog-body { padding: 26px; }
.form-feedback { font-size: 13px; line-height: 1.6; scroll-margin-block: 140px 100px; }
.conflict-panel { font-size: 13px; line-height: 1.6; }
.linked-item { font-size: 13px; line-height: 1.5; }
.linked-caption, .unlink { font-size: 12px; }
.unlink { min-height: 36px; }
.alert-item strong, .alert-item p { font-size: 13px; }
.history-event { font-size: 13px; }

/* Foundations and resources share the same spacing and typography. */
.slot-heading, .foundation-idea .slot-heading { padding: 18px 22px; }
.slot-heading h2 { font-size: 22px; font-weight: 600; }
.foundation-slot .slot-heading, .scenario-slot .slot-heading { background: #e8e5e1; }
.foundation-content, .foundation-idea .foundation-content { padding: 20px 22px; font-size: 14px; line-height: 1.8; color: #5c544e; }
.foundation-content strong { color: #12100b; }
.team-member { border-radius: 10px; padding: 24px; }
.member-role { font-size: 12px; }
.team-member h2 { font-size: 24px; font-weight: 600; }
.horizon-guide { background: #e8e5e1; }
#resource-summary { padding: 18px; margin-bottom: 18px; }
.resource-heading h2 { font-weight: 600; font-size: 23px; }
.resource-heading p, .resource-legend, .resource-filter-note { font-size: 12px; line-height: 1.65; }
.resource-heading p { margin-bottom: 12px; }
#resource-horizon-form { margin-bottom: 14px; }
.resource-dashboard { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.resource-tile { padding: 12px 14px; min-height: 82px; border-radius: 7px; font-size: 13px; line-height: 1.5; }
.resource-tile span { font-size: 12px; }
.resource-tile:hover:not(:disabled) { box-shadow: 0 3px 10px #12100b18; }
.resource-category-grid { gap: 14px; padding: 18px; }
.resource-category-card { border-radius: 9px; padding: 20px; }
.resource-category-card h3 { font-size: 15px; }
.resource-category-card > p { font-size: 13px; }
.resource-category-card .button:hover { background: #ffffff30; }
.resource-slider { padding: 17px 0; margin-bottom: 10px; }
.resource-slider-label label { font-size: 14px; }
.resource-slider-label output { font-size: 13px; }
.resource-slider input[type=range] { min-height: 44px; height: 44px; accent-color: #5c544e; }
.resource-scale, .resource-scale-help { font-size: 12px; line-height: 1.6; }
.resource-slider .button { font-size: 12px; min-height: 36px; padding: 5px 0; }
.resource-person { padding: 20px; border-radius: 9px; margin: 24px 0; background: #fafafa; }
.resource-person legend { font-size: 15px; padding: 0 8px; }
.resource-person h4 { font-size: 14px; }
.resource-competency { padding: 16px 0 8px 16px; border-left-color: #b3aa9f; }
.resource-expert-note { font-size: 13px; line-height: 1.65; background: #e8e5e1; padding: 14px; }
.risk-workspace { border-radius: 10px; background: #fff; }
.risk-workspace > .section-help { background: #f4f3f1; border-left: 0; border-radius: 8px; margin: 0 20px 20px; }

/* Sign-in uses the same original brand asset and form controls. */
.login-layout { grid-template-columns: 1.08fr 1fr; }
.login-story { padding: 28px 5vw 32px; background: #12100b; }
.login-story:after { display: none; }
.login-story .brand-lockup { align-items: flex-start; flex-direction: column; gap: 4px; }
.login-story .wordmark { padding: 24px; margin-left: -24px; }
.login-story .brand-logo { width: 220px; }
.login-story .product-name { padding: 0; border: 0; color: #d2cbc2; font-size: 12px; letter-spacing: 1px; }
.login-statement { padding: 60px 0; }
.login-statement h1 { font-size: clamp(46px,4.5vw,70px); font-weight: 400; letter-spacing: -2.6px; line-height: 1.1; margin: 20px 0 25px; }
.login-statement > .eyebrow { color: #d2cbc2; font-size: 10px; letter-spacing: 1.4px; }
.login-statement > p:last-of-type { color: #d2cbc2; font-size: 15px; line-height: 1.9; }
.login-chain { font-size: 12px; gap: 13px; margin-top: 36px; flex-wrap: wrap; }
.login-chain span { padding: 10px 14px; border-color: #5c544e; }
.login-story footer { font-size: 11px; color: #b3aa9f; line-height: 1.6; }
.login-access { background: #fff; padding: 64px 5vw; }
.login-form-wrap { max-width: 400px; }
.edition { font-size: 10px; margin-bottom: 36px; }
.login-access h2 { font-size: 35px; font-weight: 600; line-height: 1.2; }
.login-access .muted { font-size: 14px; line-height: 1.8; }
.login-form-wrap form { margin-top: 32px; }
.login-form-wrap label { font-size: 14px; margin-bottom: 23px; }
.login-form-wrap input { min-height: 52px; background: #fff; font-size: 16px; }
.password-wrap button { right: 6px; top: 4px; min-width: 76px; min-height: 44px; padding: 8px; font-size: 12px; border-radius: 5px; color: #5c544e; }
.password-wrap button:hover { background: #f0f0f0; }
.login-submit { min-height: 52px; margin-top: 10px; font-size: 14px; padding: 13px 17px; }
.login-note { font-size: 12px; line-height: 1.8; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.login-note strong { font-weight: 600; }
.login-bottom { font-size: 11px; }
.login-error { padding: 12px; margin: 12px 0; border: 1px solid #e1b4b4; background: #fff0f0; border-radius: 7px; font-size: 13px; }

/* Desktop utilities share the heading band without adding a separate toolbar row. */
@media (min-width: 1100px) {
  .route-utilities { position: relative; min-height: 0; padding-top: 16px; padding-right: 260px; }
  .route-utilities > div { position: absolute; top: 10px; right: 0; }
  .overview .page-heading { flex: 1; }
  .page-heading > .eyebrow { max-width: calc(100% - 260px); }
}
/* Error text stays adjacent to the unchanged submission controls. */
.card-dialog .dialog-footer { flex-wrap: wrap; }
.card-dialog .dialog-footer > .form-feedback { flex: 1 0 100%; order: -2; margin: 0; }
.card-dialog .dialog-footer > .form-feedback:focus { outline: 3px solid #386d9c; outline-offset: 2px; }
@media (min-width: 1500px) {
  .main-content, body.meeting .main-content { padding-inline: 36px; }
  .resource-dashboard { grid-template-columns: repeat(9,minmax(0,1fr)); }
  .resource-tile { padding: 12px; min-height: 130px; font-size: 12px; }
  .resource-tile span { font-size: 11px; }
}
@media (min-width: 1100px) and (max-width: 1270px) {
  .topbar { padding-inline: 18px; gap: 12px; }
  .brand-lockup { gap: 10px; }
  .product-name { padding-left: 14px; font-size: 12px; }
  .topbar-right { gap: 7px; }
  #viewer-name { max-width: 120px; }
  .main-content, body.meeting .main-content { padding-inline: 22px; }
  .section-layout { grid-template-columns: 1fr; }
  .section-help { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 1099px) {
  .topbar { flex-wrap: wrap; padding: 10px 20px; gap: 8px 18px; }
  .brand-lockup { gap: 12px; }
  .product-name { padding-left: 16px; }
  .topbar-right { flex: 1; }
  .app-layout, body.meeting .app-layout { display: block; }
  .route-map { position: static; height: auto; max-height: none; overflow: visible; padding: 18px 24px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .route-map-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 0; }
  .route-map-heading > p:last-child { margin-top: 0; }
  .route-scroll-hint { display: inline; }
  #route-nav { display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 6px; padding: 5px 3px 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
  .route-stop, .route-stop[aria-current=page], .route-stop:nth-child(8n+1) { flex: 0 0 172px; padding: 10px 12px; min-height: 52px; font-size: 12px; background: #f0f0f0; border-color: #dfdcd7; }
  .route-stop[aria-current=page] { background: #12100b; border-color: #12100b; }
  .main-content, body.meeting .main-content { padding-inline: 24px; }
  .section-layout { grid-template-columns: 1fr; }
  .section-help { border-left: 0; border-top: 1px solid var(--line); }
  .section-guide { grid-template-columns: 1fr 1.5fr 1fr; gap: 16px; }
  .expected-outcome { padding-left: 16px; }
  .resource-dashboard { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .resource-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .toolbar-actions .button { padding: 9px 11px; }
}
@media (max-width: 800px) {
  .topbar { padding: 8px 15px 14px; }
  .brand-lockup { width: 100%; justify-content: flex-start; gap: 8px; }
  .wordmark { padding: 16px; margin-left: -8px; }
  .brand-logo { width: 132px; }
  .product-name { padding-left: 16px; font-size: 12px; }
  .product-name small { font-size: 9px; }
  .topbar-right { flex-basis: 100%; justify-content: flex-start; gap: 8px; }
  .topbar-right > #refresh, .topbar-right > .user-avatar { display: inline-flex; }
  .topbar-right > .user-avatar { display: grid; }
  .topbar-right > .badge { display: none; }
  #connection-status { flex: 1; max-width: none; min-width: 110px; font-size: 11px; }
  #viewer-name { font-size: 11px; max-width: 150px; }
  .topbar-right .button { min-height: 44px; }
  .route-map { padding: 14px 16px 10px; }
  .route-map-heading { display: block; }
  .route-map-heading > p:last-child { margin-top: 4px; font-size: 11px; }
  .main-content, body.meeting .main-content { padding-inline: 16px; }
  .route-utilities { padding-top: 10px; min-height: 58px; align-items: center; flex-wrap: wrap; }
  .route-utilities .button.small { min-height: 44px; font-size: 11px; padding: 9px 10px; }
  .route-utilities .eyebrow { font-size: 10px; padding-top: 0; }
  .overview { padding: 16px 0 20px; display: block; }
  .overview h1 { font-size: 29px; line-height: 1.25; letter-spacing: -.8px; overflow-wrap: break-word; }
  .page-heading > .eyebrow { font-size: 9px; line-height: 1.7; }
  .overview .subtitle { font-size: 13px; margin-top: 10px; }
  .overview-stats { margin-top: 20px; }
  .section-guide { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .section-guide h2 { font-size: 14px; }
  .section-guide p, .section-guide li { font-size: 13px; }
  .expected-outcome { grid-column: auto; padding: 15px 0 0; border-left: 0; border-top: 1px solid #c9c2b9; }
  .button.small, .department-filter, .view-tabs button { min-height: 44px; }
  .workspace-toolbar { padding: 14px; gap: 12px; justify-content: flex-start; }
  .toolbar-actions { gap: 7px; width: 100%; }
  .toolbar-actions .button { min-height: 44px; font-size: 12px; padding: 9px 12px; }
  .view-tabs { width: 100%; }
  .view-tabs button { flex: 1; }
  .filters { margin-inline: 14px; gap: 8px; }
  .filters input, .filters select { font-size: 16px; min-height: 46px; }
  .filters input { flex-basis: 100%; }
  .filters select { flex: 1; max-width: 100%; width: auto; min-width: 0; }
  .department-filters { padding: 0 14px 14px; gap: 7px; }
  .department-filter { font-size: 12px; padding: 9px 10px; }
  .department-filter span { font-size: 11px; }
  .regulator-filters { padding: 14px 0; margin-inline: 14px; }
  .board-section > header { padding: 14px; }
  .board-section h2 { font-size: 17px; }
  .section-cards { padding: 14px; grid-template-columns: repeat(auto-fill,minmax(min(100%,240px),1fr)); }
  .situation-card.compact-card { padding: 16px; }
  .compact-card .card-title { font-size: 15px; }
  .compact-card .card-summary, .compact-card .card-facts .pill, .compact-card .card-bottom { font-size: 12px; }
  .card-external-link { min-width: 44px; min-height: 44px; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-aside { border-left: 0; border-top: 1px solid var(--line); padding: 20px; }
  .editor-content { padding: 20px; }
  .dialog-header { padding: 17px 20px; align-items: flex-start; }
  .dialog-header h2 { font-size: 22px; }
  .dialog-header .eyebrow { font-size: 10px; }
  .dialog-footer { padding: 13px 18px; flex-wrap: wrap; gap: 8px; }
  .dialog-footer .hint { order: -1; width: 100%; font-size: 11px; }
  .dialog-footer .button { font-size: 12px; padding: 10px 12px; }
  .dialog-body { padding: 20px; }
  .field-caption { min-height: 44px; }
  .field-caption label { font-size: 14px; }
  .field-help-toggle { min-width: 44px; width: 44px; height: 44px; flex-basis: 44px; }
  .card-field input, .card-field select, .card-field textarea, input, select, textarea { font-size: 16px; }
  .card-field { margin-bottom: 16px; }
  .field-caption { margin-bottom: 4px; }
  .card-departments .dept-choice, .classifier-choice .dept-choice, .all-entities-choice > .dept-choice { min-height: 44px; font-size: 12px; }
  .classifier-choice .field-help-toggle { width: 44px; min-height: 44px; flex-basis: 44px; }
  .card-owner-field { max-width: none; }
  .card-quick-fields { grid-template-columns: 1fr; }
  .section-fields-heading { gap: 6px; align-items: flex-start; flex-direction: column; }
  .extra-fields summary { min-height: 44px; font-size: 14px; }
  .resource-category-grid { grid-template-columns: 1fr; padding: 14px; }
  #resource-summary { padding: 18px; }
  .resource-horizon-row { flex-wrap: wrap; }
  .resource-horizon-row input { min-width: 0; flex-basis: 100%; }
  .resource-tile { padding: 12px; min-height: 110px; font-size: 12px; }
  .resource-tile span { font-size: 11px; }
  .resource-person { padding: 15px; }
  .resource-person .field-grid { grid-template-columns: 1fr; }
  .resource-slider .button { min-height: 44px; }
  .resource-slider-label { gap: 8px; }
  .resource-scale-help { font-size: 12px; }
  .foundation-content, .foundation-idea .foundation-content { padding: 18px; }
  .slot-heading, .foundation-idea .slot-heading { padding: 17px 18px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { padding: 16px 28px 28px; min-height: auto; }
  .login-story .brand-lockup { width: auto; }
  .login-story .wordmark { padding: 20px; margin-left: -20px; }
  .login-story .brand-logo { width: 168px; }
  .login-story .product-name { font-size: 10px; }
  .login-statement { padding: 32px 0 8px; }
  .login-statement h1 { font-size: 44px; letter-spacing: -1.8px; margin: 16px 0; }
  .login-statement > p:last-of-type { font-size: 13px; }
  .login-chain, .login-story footer { display: none; }
  .login-access { padding: 36px 28px; }
  .edition { margin-bottom: 24px; }
  .login-access h2 { font-size: 30px; }
  .login-bottom { padding-top: 35px; }
}
@media (max-width: 560px) {
  .brand-lockup { gap: 0; }
  .brand-logo { width: 122px; }
  .product-name { font-size: 11px; padding-left: 13px; }
  .product-name small { font-size: 8px; }
  #viewer-name { display: none; }
  .topbar-right .user-avatar { display: none; }
  .route-utilities > div { margin-left: 0; }
  .route-utilities { gap: 6px; }
  .route-utilities .eyebrow { width: 100%; }
  .route-utilities > div { width: 100%; justify-content: space-between; }
  .overview h1 { font-size: 27px; }
  .section-guide { padding: 16px; }
  .filters select { flex-basis: calc(50% - 4px); font-size: 16px; }
  .toolbar-actions #new-card { margin-left: auto; }
  .section-count { display: inline-flex; }
  .section-cards { grid-template-columns: 1fr; }
  .card-dialog, .medium-dialog, .wide-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 10px; }
  dialog { scroll-padding: 150px 0 145px; }
  .dialog-header { padding: 16px; gap: 12px; }
  .dialog-header h2 { font-size: 20px; }
  #card-object-title { font-size: 12px; line-height: 1.45; }
  .editor-content, .editor-aside, .dialog-body { padding: 18px 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-help { width: 100%; }
  .classifier-choice .field-help { width: 100%; max-width: 100%; }
  .card-choices { gap: 6px; }
  .card-choice { font-size: 12px; padding: 10px; }
  .influence-choices .card-choice { min-width: 53px; padding-inline: 9px; }
  .dialog-footer { padding: 12px; gap: 7px; }
  .dialog-footer .button { font-size: 12px; padding: 10px 11px; }
  .card-dialog .dialog-footer > .form-feedback { font-size: 12px; padding: 10px 12px; line-height: 1.5; }
  .dialog-footer .danger { margin-right: auto; }
  .resource-dashboard { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-tile { min-height: 104px; font-size: 13px; }
  .resource-tile span { font-size: 12px; }
  .resource-person { padding: 12px; }
  .risk-workspace > .section-help { margin: 0 12px 12px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .route-stop[aria-current=page], .department-filter[aria-pressed=true] { outline: 2px solid Highlight; }
}
@media print {
  body { background: white; }
  .app-layout, body.meeting .app-layout { display: block; }
  .main-content, body.meeting .main-content { padding: 0; }
  .route-map, .topbar, .route-utilities, .route-pager { display: none !important; }
  .section-layout { grid-template-columns: 1fr; }
  .section-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .resource-dashboard { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .compact-card, .resource-tile, .resource-category-card { print-color-adjust: exact; }
}
/* Card workflow: actions beside the name, with a distinct neutral close. */
.card-title-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.card-title-actions > h3 { flex: 1; min-width: 0; }
.card-archive-action, .card-save-action { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 1px solid #c9bfb1; border-radius: 8px; background: #fffaf5; }
.card-archive-action, .focus-strip .card-archive-action { position: relative; flex: 0 0 32px; width: 32px; height: 32px; min-height: 32px; padding: 9px; color: #a52626; border: 0; background: transparent; }
.card-archive-action::before { content: ''; position: absolute; inset: 4px; border: 1px solid #d7aaaa; border-radius: 5px; background: #fffaf5; }
.card-archive-action:hover, .focus-strip .card-archive-action:hover { background: transparent; }
.card-archive-action:hover::before { background: #f9e7e2; border-color: #a52626; }
.card-save-action { color: #fff; background: #252622; border-color: #252622; }
.card-save-action:hover { background: #47483f; }
.card-archive-action svg, .card-save-action svg { display: block; width: 22px; height: 22px; pointer-events: none; }
.card-archive-action svg { position: relative; width: 14px; height: 14px; }
.card-archive-action:focus-visible, .card-save-action:focus-visible { outline: 3px solid #987333; outline-offset: 3px; }
.card-archive-action:disabled, .card-save-action:disabled { cursor: wait; opacity: .5; }
.list-card > .card-title-actions { flex: 1; align-items: center; }
.card-dialog .card-editor-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; }
.card-editor-header .card-title-row { display: flex; grid-column: 1 / -1; align-items: flex-end; gap: 12px; min-width: 0; }
#card-title-control { flex: 1; min-width: 0; }
#card-title-control .card-field { margin: 0; }
.card-editor-actions { display: flex; gap: 8px; padding-bottom: 1px; }
.card-editor-header #card-feedback { grid-column: 1 / -1; margin: 0; max-height: 100px; overflow: auto; font-size: 12px; }
.card-owner-status-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; align-items: start; }
.card-owner-status-row .card-owner-field { max-width: none; }
.card-owner-status-row > .card-field { min-width: 0; }
.card-date-row { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.card-date-row input, .card-owner-status-row select { width: 100%; min-width: 0; max-width: 100%; }
[data-card-field=opportunityDetails] textarea { resize: vertical; min-height: 130px; }
.resource-tile-wrap { position: relative; min-width: 0; }
.resource-tile-wrap .resource-tile { width: 100%; height: 100%; }
.resource-category-card[data-status=archived] { opacity: .75; }
.bitrix-reminder { display: flex; align-items: center; gap: 14px; margin: 16px 20px 0; padding: 15px 18px; border-left: 4px solid #a0793b; border-radius: 5px; background: #eee7da; color: #423a2f; font-size: 14px; line-height: 1.5; }
.bitrix-reminder > span { flex: none; padding: 6px 8px; background: #252622; color: #fff; border-radius: 5px; font-weight: 600; }
@media (max-width: 560px) {
 .card-dialog .card-editor-header { padding: 12px; gap: 4px 8px; }
 .card-editor-header .card-title-row { gap: 8px; }
 .card-editor-actions { gap: 4px; }
 .card-owner-status-row, .card-date-row { column-gap: 10px; }
 .card-owner-status-row .field-caption, .card-date-row .field-caption { align-items: flex-start; }
 .card-owner-status-row .field-caption label, .card-date-row .field-caption label { font-size: 12px; overflow-wrap: anywhere; }
 .bitrix-reminder { margin: 12px 12px 0; padding: 12px; font-size: 13px; }
 .ai-panel > header { align-items: flex-start; flex-wrap: wrap; }
}
@media print { .card-archive-action, .card-editor-actions { display: none !important; } }

/* Full cards share a footprint; overflow remains scrollable and links reachable. */
#board:not(.list-view) .section-cards, #board:not(.list-view) .resource-category-grid {
 grid-template-columns: repeat(auto-fill,minmax(min(100%,var(--oper-card-width)),var(--oper-card-width)));
}
#board:not(.list-view) :is(.situation-card.compact-card,.resource-category-card) {
 box-sizing: border-box; height: var(--oper-card-height); min-height: 0; overflow: auto; scrollbar-width: thin;
}
#board:not(.list-view) :is(.situation-card.compact-card,.resource-category-card) > * { flex-shrink: 0; }
#board:not(.list-view) :is(.card-title,.resource-category-card h3) {
 font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
#board:not(.list-view) .resource-category-card > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.graph-node, .graph-node.center { box-sizing: border-box; width: min(100%,var(--oper-card-width)); height: var(--oper-card-height); padding: 0; }
/* Keep graph arrows outside the card while its complete contents can scroll. */
.graph-node-body { box-sizing: border-box; height: 100%; padding: 15px; overflow: auto; scrollbar-width: thin; }
.graph-node.center > .graph-node-body { padding: 15px; }
.graph-node strong { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.graph-node-body > .card-external-links { margin: 8px 0 0; }
.graph-node.center > .graph-node-body > .card-external-links { margin-bottom: 12px; }
.list-card .card-title { display: block; }
@media (max-width: 800px), (pointer: coarse) {
 .card-archive-action, .focus-strip .card-archive-action { flex-basis: 44px; width: 44px; height: 44px; min-height: 44px; }
 .card-archive-action::before { inset: 10px; }
}
@media (max-width: 560px) {
 #board:not(.list-view) .section-cards, #board:not(.list-view) .resource-category-grid { grid-template-columns: 1fr; }
 .graph-node, .graph-node.center { width: 100%; }
}
@media print {
 #board:not(.list-view) :is(.situation-card.compact-card,.resource-category-card) { height: auto; overflow: visible; }
 #board:not(.list-view) :is(.card-title,.resource-category-card h3,.resource-category-card > p) { display: block; overflow: visible; }
 .graph-node, .graph-node.center, .graph-node-body { height: auto; overflow: visible; }
 .graph-node strong { display: block; overflow: visible; }
}

/* Scenario tasks: title-only entry with immediate shared action cards. */
.scenario-tasks{margin:18px 0;padding:18px;border:1px solid #d7d3ca;border-radius:12px;background:#f7f5ef;min-width:0}
.scenario-tasks[hidden]{display:none}
.scenario-tasks>header{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.scenario-tasks h3{margin:0;font-size:16px}
.scenario-tasks>label{display:block;margin:14px 0 6px;font-weight:600}
.scenario-tasks textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:96px;background:white}
.scenario-tasks .hint{margin:8px 0}
.scenario-task-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.scenario-task-list li{padding:10px 12px;border-radius:8px;background:white;min-width:0}
.scenario-task-list button{display:block;width:100%;text-align:left;overflow-wrap:anywhere;border:0;background:transparent;color:#221e16;font:inherit;font-weight:600;padding:0;cursor:pointer}
.scenario-task-list button:hover{text-decoration:underline}
.scenario-task-list p{margin:5px 0 0;color:#5e5a51;font-size:12px;overflow-wrap:anywhere}
.scenario-tasks .form-feedback{margin-top:12px}
@media(max-width:600px){.scenario-tasks{padding:12px}.scenario-tasks>button{width:100%;white-space:normal}}

/* Persistent confirmation stays beside the save action in the sticky header. */
.card-editor-header .card-save-status { grid-column: 1 / -1; margin: 0; padding: 6px 10px; border-radius: 5px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.card-save-status[data-state=saved] { color: #17623d; background: #e8f5ec; }
.card-save-status[data-state=dirty], .card-save-status[data-state=saving] { color: #74500e; background: #fff4da; }
.card-save-status[data-state=error] { color: #9c2525; background: #fff0f0; }

.resource-impact-editor{min-width:0;border:1px solid #dedbd5;border-radius:9px;padding:14px;margin:16px 0;background:#faf9f6;color:#39352f}.resource-impact-editor legend{font-size:15px;font-weight:600;padding:0 6px}.resource-impact-help,.resource-impact-legend{font-size:11px;line-height:1.6;color:#70695f;margin:0 0 10px}.resource-impact-legend{margin:12px 0 0}.resource-impact-grid{display:grid;gap:3px}.resource-impact-row{display:grid;grid-template-columns:minmax(120px,1fr) auto 48px;gap:8px;align-items:center;border-bottom:1px solid #e9e5df;padding:4px 0}.resource-impact-row:last-child{border:0}.resource-impact-name{font-size:12px;line-height:1.35}.resource-impact-scale{display:flex;gap:3px}.resource-impact-choice{position:relative;display:block!important;margin:0!important;cursor:pointer}.resource-impact-choice input{position:absolute!important;opacity:0;width:1px!important;height:1px!important;min-height:0!important}.resource-impact-choice span{display:grid;place-items:center;width:34px;height:34px;font-size:12px;border:1px solid #d1ccc4;border-radius:5px;background:#fff;color:#686158;transition:background .15s,color .15s}.resource-impact-choice input:checked+span{background:#3c3934;border-color:#3c3934;color:#fff;font-weight:700;box-shadow:inset 0 -3px 0 #ffffff55}.resource-impact-choice input:focus-visible+span{outline:3px solid #906f3a;outline-offset:2px}.resource-impact-choice input:disabled+span{opacity:.55;cursor:default}.resource-impact-unlink{border:0;background:transparent;color:#71695e;font-size:10px;text-decoration:underline;padding:8px 1px;min-height:34px}.resource-impact-unlink:focus-visible{outline:2px solid #906f3a;outline-offset:2px}
@media(max-width:600px){.resource-impact-editor{padding:10px}.resource-impact-row{grid-template-columns:minmax(0,1fr) 48px;gap:5px;padding:8px 0}.resource-impact-name{grid-column:1/-1;font-size:12px}.resource-impact-scale{justify-content:space-between}.resource-impact-choice{flex:1}.resource-impact-choice span{width:auto;min-width:32px;height:40px}.resource-impact-unlink{min-height:40px}}

.card-markers{display:flex;flex-wrap:wrap;gap:4px;flex-shrink:0;margin:4px 0}.card-resource-marker,.card-bitrix-marker{display:inline-flex;align-items:center;width:fit-content;max-width:100%;border:1px solid;border-radius:5px;padding:3px 6px;font-size:10px;line-height:1.3;font-weight:600;white-space:normal}.card-resource-marker[data-resources="filled"],.card-bitrix-marker[data-bitrix="true"]{color:#225c3b;background:#e6f4e9;border-color:#a1c5ab}.card-resource-marker[data-resources="missing"],.card-bitrix-marker[data-bitrix="false"]{color:#87400e;background:#fff0df;border-color:#dab58c}.card-bitrix-choice{display:flex!important;gap:10px;align-items:center;border:1px solid #d6d0c6;border-radius:8px;padding:12px;font-size:14px;font-weight:600;margin:12px 0}.card-bitrix-choice input{width:18px!important;height:18px!important;min-height:18px;flex:none;accent-color:#286b45}.list-card .card-markers{margin:0}.compact-card:not(.list-card) .card-summary{min-height:0;flex-shrink:1}

.resource-map-workspace>.filters,.resource-map-workspace>.department-filters,.resource-map-workspace #view-tabs{display:none!important}
.resource-map{padding:24px;min-width:0;background:#faf9f6;color:#39352f}
.resource-map *{box-sizing:border-box}
.resource-map-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
.resource-map-heading h2{font-size:clamp(22px,2.2vw,30px);font-weight:600;letter-spacing:-.6px;line-height:1.25;margin:0 0 6px}
.resource-map-heading p{font-size:12px;line-height:1.5;color:#756d60;margin:0}
.resource-map-heading>.button{flex:none;white-space:nowrap}
.resource-map-toolbar{background:#fff;padding:12px 14px;border:1px solid #ded8ce;border-radius:10px}
.resource-map-toolbar-main{display:grid;grid-template-columns:minmax(170px,1fr) minmax(220px,2fr) auto;align-items:end;gap:12px}
.resource-map-toolbar label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:10px;color:#736957}
.resource-map-toolbar select,.resource-map-toolbar input{width:100%;min-width:0;height:36px;border:1px solid #ddd5c9;border-radius:6px;background:#faf9f6;font:inherit;font-size:12px;color:#39352f;padding:7px 8px}
.resource-map-toolbar-main>.button{height:36px}
.resource-map-filters{margin-top:8px}
.resource-map-filters>summary{cursor:pointer;width:fit-content;font-size:11px;line-height:24px;color:#6f614a}
.resource-map-filter-count{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:9px;background:#ece4d6;font-size:10px}
.resource-map-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding-top:9px}
.resource-map-metrics{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 0 10px}
.resource-map-metrics>strong{font-size:16px;font-weight:600}
.resource-map-metrics>strong>span{font-size:12px;font-weight:400;color:#756d60}
.resource-map-metrics>div{display:flex;flex-wrap:wrap;gap:6px}
.resource-map-distribution{display:inline-flex;justify-content:space-between;gap:12px;min-width:58px;font-size:12px;background:var(--impact-bg);color:var(--impact-text);padding:5px 8px;border-radius:5px}
.resource-map-distribution b{font-weight:600}
.resource-map-legend{display:flex;flex-wrap:wrap;gap:5px 18px;font-size:10px;color:#756d60;line-height:1.6}
.resource-map-legend b{font-weight:500}
.resource-map-bar-note{margin-left:auto;font-style:italic}
.resource-map-scope{margin:7px 0 14px;font-size:10px;color:#897d6b;line-height:1.6}
.resource-summary-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.resource-summary-grid-all{grid-template-columns:repeat(2,minmax(0,1fr))}
.resource-summary-panel{min-width:0;border:1px solid #dcd5c8;border-radius:10px;background:#fff;overflow:hidden}
.resource-summary-stress{border-top:3px solid #b76c53}
.resource-summary-panel>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 16px 0}
.resource-summary-panel h3{margin:0;min-width:0;font-size:16px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.resource-summary-panel h3 button{padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.resource-summary-panel h3 button>span{color:#9a8d76;font-weight:400}
.resource-summary-link-count{flex:none;color:#82765f;font-size:11px;white-space:nowrap}
.resource-summary-availability{display:flex;flex-wrap:wrap;gap:4px 10px;margin:5px 16px 12px;color:#83755f;font-size:11px;line-height:1.5}
.resource-summary-availability strong{color:#a2533c;font-size:10px;font-weight:500}
.resource-summary-sections{padding:0 10px 8px}
.resource-summary-section{border-top:1px solid #eee8df}
.resource-summary-section>summary,.resource-summary-empty-row{display:grid;grid-template-columns:minmax(100px,.85fr) minmax(90px,1.3fr) 28px 14px;align-items:center;gap:10px;min-height:46px;padding:9px 6px;list-style:none}
.resource-summary-section>summary{cursor:pointer;border-radius:5px}
.resource-summary-section>summary::-webkit-details-marker{display:none}
.resource-summary-section>summary:hover{background:#faf7f1}
.resource-summary-section[open]>summary{background:#f3e6dc}
.resource-summary-section-name{min-width:0;font-size:12px;line-height:1.4;font-weight:500;overflow-wrap:anywhere}
.resource-summary-total{font-size:12px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.resource-summary-chevron{font-size:22px;line-height:18px;text-align:center;color:#7b6f5f;transition:transform .15s}
.resource-summary-section[open]>summary>.resource-summary-chevron{transform:rotate(90deg)}
.resource-summary-empty-row{color:#928675}
.resource-summary-empty-row>.resource-summary-chevron{visibility:hidden}
.resource-summary-bar{display:block;min-width:0;height:23px}
.resource-summary-bar-fill{display:flex;min-width:0;height:100%;max-width:100%;border-radius:4px;overflow:hidden}
.resource-summary-segment{display:grid;place-items:center;flex-basis:0;min-width:0;background:var(--impact-bg);color:var(--impact-text);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;overflow:hidden}
[data-impact-score="-2"]{--impact:#a75840;--impact-bg:#a75840;--impact-text:#fff}
[data-impact-score="-1"]{--impact:#bd7560;--impact-bg:#f1c5af;--impact-text:#553628}
[data-impact-score="0"]{--impact:#858580;--impact-bg:#e6e4e1;--impact-text:#504e49}
[data-impact-score="1"]{--impact:#6d964c;--impact-bg:#d7e7c1;--impact-text:#40572d}
[data-impact-score="2"]{--impact:#4f7f35;--impact-bg:#4f7f35;--impact-text:#fff}
.resource-summary-breakdown{display:flex;flex-wrap:wrap;gap:5px;padding:9px 10px 3px}
.resource-summary-breakdown>span{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:3px 6px;border-radius:4px;background:var(--impact-bg);color:var(--impact-text);font-size:10px;line-height:1.4;font-variant-numeric:tabular-nums}
.resource-summary-breakdown b{font-weight:600}
.resource-summary-cards{list-style:none;margin:0;padding:0 8px 7px}
.resource-summary-cards>li+li{border-top:1px solid #eee8df}
.resource-map-card{display:flex;align-items:start;gap:10px;width:100%;min-width:0;padding:11px 3px;border:0;background:none;text-align:left;color:#433d34;cursor:pointer}
.resource-map-card-content{flex:1;min-width:0}
.resource-map-card-title{display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.55}
.resource-map-card-meta{display:block;margin-top:3px;font-size:9px;line-height:1.4;color:#968065}
.resource-map-score{display:inline-grid;place-items:center;flex:none;min-width:32px;padding:3px 5px;border-radius:4px;background:var(--impact-bg);color:var(--impact-text);font-size:12px;line-height:1.4;font-weight:600}
.resource-map-card-arrow{flex:none;color:#a39681;font-size:12px;line-height:24px}
.resource-map-card:hover .resource-map-card-title{text-decoration:underline;text-underline-offset:3px}
.resource-summary-empty{margin:0;padding:4px 16px 18px;font-size:12px;line-height:1.5;color:#9b8c76}
.resource-map-empty{padding:16px;border:1px dashed #cfc3ad;border-radius:8px;font-size:12px;line-height:1.6;margin-bottom:14px;background:#fffdf8}
.resource-map-footnote{font-size:10px;line-height:1.7;color:#8a7d66;margin:16px 0 0}
.resource-map button:focus-visible,.resource-map select:focus-visible,.resource-map input:focus-visible,.resource-map summary:focus-visible{outline:2px solid #8f7447;outline-offset:2px}
#resource-map-full-dialog{width:calc(100vw - 32px);max-width:1800px;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #cfc3ad;border-radius:12px;overflow:auto;background:#faf9f6}
#resource-map-full-dialog::backdrop{background:#27231fc7}
.resource-map-expanded{min-height:100%}
.resource-map-expanded .resource-map-heading{position:sticky;top:-24px;padding:12px 0;background:#faf9f6;z-index:2;border-bottom:1px solid #ded8ce}
@media(min-width:1500px){.resource-summary-grid-all{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.resource-map{padding:18px}.resource-summary-grid-all{grid-template-columns:minmax(0,1fr)}.resource-map-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-map-expanded .resource-map-heading{top:-18px}}
@media(max-width:600px){
 .resource-map{padding:12px}
 .resource-map-heading{align-items:start;gap:10px;margin-bottom:12px}
 .resource-map-heading h2{font-size:22px}
 .resource-map-heading p{font-size:11px}
 .resource-map-heading>.button{font-size:10px;padding:8px;white-space:normal;max-width:88px;min-height:42px}
 .resource-map-toolbar{padding:10px}
 .resource-map-toolbar-main{grid-template-columns:minmax(0,1fr) auto;gap:10px}
 .resource-map-search{grid-column:1/-1;grid-row:1}
 .resource-map-toolbar select,.resource-map-toolbar input{font-size:16px;height:42px}
 .resource-map-toolbar-main>.button{height:42px}
 .resource-map-filter-fields{gap:10px}
 .resource-map-filters>summary{min-height:32px;line-height:32px}
 .resource-map-metrics{gap:10px;padding-top:14px}
 .resource-map-metrics>div{width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
 .resource-map-distribution{min-width:0;padding:5px 6px;gap:5px;font-size:11px}
 .resource-map-legend{gap:3px 12px}
 .resource-map-bar-note{margin-left:0}
 .resource-summary-panel>header{padding:12px 10px 0}
 .resource-summary-panel h3{font-size:15px}
 .resource-summary-availability{margin-left:10px;margin-right:10px}
 .resource-summary-sections{padding:0 6px 6px}
 .resource-summary-section>summary,.resource-summary-empty-row{grid-template-columns:minmax(80px,1fr) minmax(75px,1fr) 23px 12px;gap:6px;padding:9px 4px;min-height:48px}
 .resource-summary-section-name{font-size:11px}
 .resource-summary-segment{font-size:10px}
 .resource-summary-cards{padding:0 4px 5px}
 .resource-map-card{gap:7px}
 .resource-map-card-title{font-size:12px}
 .resource-map-card-arrow{display:none}
 #resource-map-full-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
 .resource-map-expanded .resource-map-heading{top:-12px}
}
@media print{.resource-map-toolbar,.resource-map-heading>.button{display:none}.resource-summary-grid{grid-template-columns:1fr}.resource-summary-panel{break-inside:avoid}.resource-summary-segment,.resource-map-score{print-color-adjust:exact}.resource-map{padding:0}}

.timeline-map{--timeline-ink:#263b4e;background:#fffefa;border:1px solid #d6d7d1;border-radius:16px;padding:16px;min-width:0;color:var(--timeline-ink)}
.timeline-toolbar{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.timeline-toolbar label{font-size:12px;display:grid;gap:5px;min-width:138px}.timeline-search{flex:1;min-width:180px!important}.timeline-toolbar input,.timeline-toolbar select{min-height:40px;width:100%;border:1px solid #c8cec9;border-radius:7px;background:#fff;padding:8px;font:inherit;color:inherit}.timeline-toolbar button{min-height:40px}
.timeline-sections,.timeline-branch-options{border:0;padding:0;margin:9px 0;display:flex;gap:9px 16px;flex-wrap:wrap;min-width:0}.timeline-sections legend,.timeline-branch-options legend{font-weight:600;font-size:12px;letter-spacing:.05em;margin-bottom:5px}.timeline-check,.timeline-branch-options label{display:flex;align-items:center;gap:7px;font-size:12px;cursor:pointer}.timeline-check input,.timeline-branch-options input{accent-color:#29495e;width:16px;height:16px;margin:0;flex-shrink:0}.timeline-all{font-weight:600}.timeline-swatch{display:inline-block;background:var(--timeline-card-color);width:17px;height:17px;border:1px solid #52637355;border-radius:5px}.timeline-branch-options p{flex-basis:100%;font-size:11px;color:#58646c;margin:2px 0;line-height:1.6}
.timeline-metrics{display:flex;flex-wrap:wrap;gap:12px 24px;border-top:1px solid #e2e5df;border-bottom:1px solid #e2e5df;padding:8px 0;font-size:12px}.timeline-metrics b{font-size:22px;margin-right:5px}.timeline-main-description{padding:8px 0 0;font-size:13px}.timeline-main-description p,.timeline-pan-hint{font-size:11px;line-height:1.6;color:#59646b}.timeline-main-description .timeline-card{display:inline-block;margin:5px}.timeline-scroll{position:relative;overflow:auto;max-height:660px;min-height:350px;border:1px solid #cad4d6;border-radius:12px;background:#fafbf8;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-width:auto;scrollbar-color:#8c9aa0 #e9eeea}.timeline-scroll:focus-visible{outline:3px solid #416c8b;outline-offset:3px}.timeline-canvas{position:relative;min-height:350px}.timeline-lines{position:absolute;inset:0;pointer-events:none}.timeline-grid-line{stroke:#d7dfda;stroke-width:1;stroke-dasharray:2 5}.timeline-central{stroke:#304e62;stroke-width:12;stroke-linecap:round}.timeline-branch{stroke:#8d83a7;stroke-width:2.5;fill:none;opacity:.8}.timeline-connector{stroke:#82929d;stroke-width:1.4;stroke-dasharray:2 4}.timeline-event-dot{stroke:#334e61;stroke-width:2}.timeline-critical-dot{stroke:#943647;stroke-width:3}.timeline-today-line{stroke:#a66b32;stroke-width:1.5;stroke-dasharray:4 6}.timeline-today-label{position:absolute;color:#835123;font-size:10px;white-space:nowrap;transform:translateX(-12px);background:#fafbf8;padding:3px}.timeline-axis-label{position:absolute;left:9px;font-size:9px;letter-spacing:.08em;font-weight:600;color:#536b7c}
.timeline-months{position:absolute;top:10px;display:grid}.timeline-month{padding:0 10px;border-left:1px solid #bdcbd0;height:78px}.timeline-month>strong{font-size:16px}.timeline-month>strong span{color:#73818a;font-size:11px;margin-left:4px}.timeline-month button{margin-top:8px;width:100%;min-height:24px;position:relative;display:block;border:0;background:#edf1eb;text-align:left;font-size:10px;padding:4px 6px;cursor:pointer;color:#3d515e;border-radius:4px;overflow:hidden}.timeline-month button span:last-child{position:relative;white-space:nowrap}.timeline-month-bar{position:absolute;height:100%;top:0;left:0;background:#d5dfd1}.timeline-density{font-size:9px;color:#865633;display:block;margin-top:4px}.timeline-season{position:absolute;top:94px;border-radius:6px;height:32px;display:flex;align-items:center;padding:0 10px;font-size:10px;line-height:1.2;color:#475159;white-space:normal;overflow:hidden;box-sizing:border-box}.timeline-season-preparation{background:#e6e0d1;border-left:4px solid #a58b5f}.timeline-season-tenders{background:#d9e5ef;border-left:4px solid #6b91b1}.timeline-season-staff{background:#dfe9d4;border-left:4px solid #839f61}
.timeline-card{background:var(--timeline-card-color);color:#263744;border:1px solid #778b9960;border-radius:7px;padding:7px 9px;text-align:left;cursor:pointer;font:inherit;font-size:11px;min-height:44px;line-height:1.35;max-width:100%;box-sizing:border-box}.timeline-card[data-timeline-event]{position:absolute;height:44px;z-index:2}.timeline-card-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.timeline-card small{display:block;color:#50616b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;margin-top:3px}.timeline-card:hover,.timeline-card:focus-visible{z-index:6;border-color:#294e69;box-shadow:0 3px 12px #344e6125;outline:2px solid #58748c;outline-offset:1px}.timeline-branch-label{position:absolute;width:320px;border:0;text-align:left;background:#fafbf8ee;font:inherit;color:#605477;padding:3px 8px;cursor:pointer;z-index:1;border-radius:5px}.timeline-branch-label strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}.timeline-branch-label small{font-size:9px;color:#69717b}.timeline-preview{margin-top:12px;padding:12px 16px;background:#f0f3ee;border-radius:10px;max-height:160px;overflow:auto;white-space:pre-wrap;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.timeline-preview p{margin:5px 0}.timeline-preview-meta{font-size:10px;color:#556671}.timeline-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}.timeline-list{background:#f6f5ef;border-radius:8px;padding:12px;min-width:0}.timeline-list summary{font-size:12px;cursor:pointer;line-height:1.6}.timeline-list summary strong{display:inline-block;background:#e3e5dc;border-radius:9px;padding:0 6px;margin-left:6px}.timeline-list ul{list-style:none;padding:0;display:grid;gap:7px;max-height:280px;overflow:auto}.timeline-list li{min-width:0}.timeline-list .timeline-card{width:100%}.timeline-explanation{margin-top:18px;font-size:11px;line-height:1.7}.timeline-explanation summary{cursor:pointer;font-weight:600}.timeline-explanation p{color:#55646d}.timeline-month-detail{margin-top:12px}.timeline-map.timeline-expanded{position:fixed;inset:8px;z-index:80;overflow:auto;background:#fffefa;border:2px solid #6a7f8c;box-shadow:0 0 0 12px #1d303b90}.timeline-expanded .timeline-scroll{max-height:65vh}.timeline-expanded .timeline-toolbar{position:sticky;top:-20px;background:#fffefa;z-index:9;padding:8px 0}.timeline-fullscreen-active{overflow:hidden}
@media(max-width:700px){.timeline-map{padding:12px;border-radius:10px}.timeline-toolbar{gap:8px}.timeline-toolbar label{min-width:120px;flex:1}.timeline-toolbar button{font-size:11px;padding:7px 10px}.timeline-lists{grid-template-columns:1fr}.timeline-scroll{max-height:60vh}.timeline-metrics{gap:8px 14px}.timeline-metrics b{font-size:19px}.timeline-main-description>strong{display:block}.timeline-map.timeline-expanded{inset:3px}.timeline-expanded .timeline-toolbar{top:-12px}.timeline-check{font-size:11px}}
@media print{.timeline-toolbar,.timeline-sections,.timeline-branch-options,.timeline-pan-hint{display:none}.timeline-scroll{max-height:none;overflow:visible}.timeline-map{overflow:hidden}.timeline-preview{max-height:none}}
.timeline-calendar{position:sticky;top:0;height:136px;z-index:8;background:linear-gradient(#fafbf8 92%,#fafbf800);pointer-events:none}.timeline-calendar button{pointer-events:auto}.timeline-preview-slot{min-height:84px}.timeline-preview-active{position:fixed;z-index:100;margin:0;max-height:min(280px,45vh);background:#fffefa;border:1px solid #8095a3;box-shadow:0 8px 30px #20374533;box-sizing:border-box;overflow:auto}.timeline-preview-active strong{font-size:13px}.timeline-preview-active:focus-visible{outline:2px solid #436f8e}

.timeline-pan-hint{margin:8px 0}.timeline-expanded .timeline-toolbar{top:-16px}
@media(max-width:700px){.timeline-expanded .timeline-toolbar{top:-12px}}
.timeline-navigation{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;margin-top:12px;padding:9px;background:#edf1ed;border:1px solid #d5ded8;border-radius:10px}.timeline-zoom-controls,.timeline-pan-controls{display:flex;align-items:center;gap:5px}.timeline-navigation button{min-width:44px;min-height:44px;padding:7px 12px;font-size:18px;line-height:1}.timeline-navigation .timeline-zoom-value{min-width:72px;font-size:13px;font-variant-numeric:tabular-nums}.timeline-navigation [data-timeline-today]{font-size:12px}.timeline-active-only{margin-left:auto;color:#53665b;font-size:11px}.timeline-navigation button:disabled{opacity:.4;cursor:default}.timeline-scroll{cursor:grab}.timeline-scroll.timeline-dragging,.timeline-scroll.timeline-dragging *{cursor:grabbing!important;user-select:none}.timeline-month{min-width:0;overflow:hidden}.timeline-month>strong{white-space:nowrap}
@media(max-width:700px){.timeline-navigation{gap:7px;padding:7px}.timeline-navigation button{padding:7px 10px}.timeline-active-only{margin-left:0;width:100%}.timeline-pan-controls{flex-wrap:wrap}}
@media print{.timeline-navigation{display:none}}

/* Multi-year trend intervals use the same calendar, canvas and lanes as cards. */
.timeline-card.timeline-trend{position:absolute;z-index:2;height:22px;min-height:22px;line-height:16px;border:1px solid #6d80a0;border-left-width:3px;border-right-width:3px;--timeline-card-color:#e6edf8;background:var(--timeline-card-color);color:#243f68;padding:2px 6px}
.tyrion-edition .timeline-scroll{container-type:inline-size}
.timeline-trend .timeline-trend-caption{position:sticky;left:10px;display:flex;align-items:center;gap:7px;width:640px;max-width:min(100%,calc(100cqw - 64px));height:16px;white-space:nowrap;overflow:hidden;text-align:left}
.timeline-trend .timeline-card-title{flex:1 1 auto;min-width:0;font-size:11px;line-height:16px}
.timeline-trend-kind,.timeline-trend-effect{flex:none;font-size:10px;line-height:16px}
.timeline-trend-kind{font-weight:600}
.timeline-card.timeline-trend-positive{--timeline-card-color:#dce9fc;background:var(--timeline-card-color);border-color:#4672ab;color:#204b83}
.timeline-card.timeline-trend-negative{--timeline-card-color:#f8e1df;background:var(--timeline-card-color);border-color:#b66961;color:#7d332c}
.timeline-card.timeline-trend-mixed{--timeline-card-color:linear-gradient(100deg,#dce9fc,#eadff4,#f8e1df);background:var(--timeline-card-color);border-color:#8d6ba8;color:#5f3e79}
.timeline-trend-count{display:block;font-size:9px;line-height:1.2;margin-top:2px;color:inherit}
.tyrion-edition .timeline-month{height:90px}
.tyrion-edition .timeline-month button{margin-top:4px}
.tyrion-edition .timeline-density{margin-top:1px}


.tyrion-edition .timeline-card.timeline-trend:is(:hover,:focus-visible){background:var(--timeline-card-color)}

.timeline-card.timeline-trend-compact{padding-inline:4px}
.timeline-trend-compact .timeline-trend-caption{gap:3px}
.timeline-trend-compact :is(.timeline-trend-kind,.timeline-trend-effect){font-size:9px}

/* Personal Tyrion edition only. Shared components keep their original layout. */
/* Keep desktop actions in flow so their height clears the heading counters. */
@media(min-width:1100px){.tyrion-edition .route-utilities{min-height:58px;padding:12px 0 0}.tyrion-edition .route-utilities>div{position:static}}
:root{color-scheme:dark;--ink:#f0f6fa;--paper:#071320;--surface:#102536;--white:#102536;--line:#294353;--muted:#b8cad8;--taupe:#39d9ee;--green:#83dfb4;--red:#FC5565;--amber:#efc778;--blue:#72cfe8;background:#071320;color:#f0f6fa}
body{background:radial-gradient(ellipse at 92% 0,#fc556514,transparent 35%),radial-gradient(ellipse at 15% 0,#39d9ee0b,transparent 40%),#071320;color:var(--ink)}
button,a,input,select,textarea,summary{outline-color:#39d9ee!important}
input,select,textarea,.login-form-wrap input,.resource-map-toolbar input,.resource-map-toolbar select,.timeline-toolbar input,.timeline-toolbar select{background:#0a1b29;border-color:#365565;color:#f0f6fa;color-scheme:dark}
input::placeholder,textarea::placeholder{color:#93abba}
.button,.icon-button,.topbar-right .button,.topbar-right .button.quiet{background:#142d40;border-color:#345063;color:#f0f6fa}
.button:hover,.icon-button:hover,.topbar-right .button:hover,.topbar-right .button.quiet:hover{background:#203f53;border-color:#4d7589;color:#fff}
.button.primary,.card-save-action{color:#071320;background:#39d9ee;border-color:#39d9ee;box-shadow:0 0 22px #39d9ee16}
.button.primary:hover,.card-save-action:hover{background:#86edfa;border-color:#86edfa;color:#071320}
.button.danger{color:#ffb6be;background:#39232f;border-color:#70404b}.button.danger:hover{background:#522a38;color:#fff}
.button.quiet{background:transparent}.topbar{background:#071320e8;border-color:#20394a;box-shadow:none;backdrop-filter:blur(18px)}
.edition-wordmark,.wordmark .edition-wordmark{display:block;font-size:26px;letter-spacing:-1.2px;font-weight:600;color:#f0f6fa;border:0;padding:0;line-height:1}.topbar .wordmark{width:auto;padding:0;margin:0}
.product-name{color:#e8f4fa}.product-name small{color:#90b4c6}.topbar .product-name{display:none}.topbar-right .badge{background:#173246;border-color:#36576a;color:#93ecf6}
.topbar .wordmark .edition-wordmark{display:block;font-size:42px;letter-spacing:-1.8px}
.topbar-right .user-avatar,.user-avatar,.member-avatar{background:#183e52;color:#9eeef5;border-color:#365b6b}
#connection-status{color:#8edcbc}#connection-status[data-state=error]{color:#ff9eaa}.skip-link{background:#39d9ee;color:#071320}
.app-layout{max-width:1800px;margin:auto}.route-map{background:transparent;border-color:#233d4e}.route-map-heading p,.route-map-heading>.eyebrow,.route-utilities .eyebrow{color:#93adbf}
.route-stop,.route-stop[aria-current=page],.route-stop:nth-child(8n+1){color:#b8cad8;border-color:#274455;background:#102536}
.route-stop .route-shape,.route-stop:nth-child(8n+1) .route-shape{background:#102536}.route-stop:hover,.route-stop:focus-visible{background:#142d40;color:#f0f6fa;filter:drop-shadow(0 0 5px #fc556518)}.route-stop[aria-current=page]{color:#071320;background:#fc5565;border-color:#fc5565}
.route-stop[aria-current=page] .route-shape{background:#fc5565}.route-stop[aria-current=page] .route-number{color:#071320}.route-stop .route-number{color:#b8cad8}
.page-heading>.eyebrow{color:#fc5565}.overview .subtitle{color:#a8c0d0}.overview h1{letter-spacing:-1.5px}
.workspace,.foundation-slot,.scenario-slot,.team-member,.horizon-guide,.ai-panel,.risk-workspace,.resource-map,.timeline-map,.timeline-map.timeline-expanded{background:#0c1e2d;border-color:#2a4354;color:#f0f6fa}
.foundation-slot .slot-heading,.scenario-slot .slot-heading,.board-section>header,.section-guide,.section-help,.risk-workspace>.section-help,.focus-strip,.timeline-expanded .timeline-toolbar{background:#112b3c;border-color:#2a4354;color:#f0f6fa}
.foundation-content,.foundation-idea .foundation-content,.team-member>p:last-child,.horizon-grid p,.section-guide p,.section-guide li,.section-help,.section-help strong,.comment-body,.timeline-explanation p{color:#b8cad8}
.foundation-content strong{color:#f0f6fa}.foundation-slot .slot-heading h2{color:#f0f6fa}.foundation-content{line-height:1.85}
.view-tabs,.filters select,.department-filter,.resource-expert-note,.resource-impact-editor,.resource-impact-choice span,.scenario-tasks,.bitrix-reminder{background:#142d40;border-color:#345063;color:#b8cad8}
.view-tabs button.active{background:#4b2a38;color:#ffdce1}.department-filter:hover{background:#20455a}.department-filter[aria-pressed=true],.department-filter[aria-pressed=true] span{background:#163e4e;color:#9ef1f8;border-color:#39d9ee}
.filters input{background:transparent;color:#f0f6fa}.department-filter span,.resource-impact-help,.resource-impact-legend,.resource-person,.resource-competency{color:#b8cad8}
.situation-card,.situation-card[data-status=blocked],.situation-card[data-status=done],.situation-card[data-status=archived],.compact-card[data-scenario-type=main],.compact-card[data-scenario-type=secondary]{background:#122a3b;border-color:#355263;color:#f0f6fa}
.compact-card[data-scenario-type=main]{border-top:3px solid #39d9ee;background:linear-gradient(135deg,#153f4d,#122a3b)}
.compact-card[data-influence-score="2"],.compact-card[data-influence-score="1"]{background:#143c36;border-color:#438675;color:#f0f6fa}
.compact-card[data-influence-score="0"]{background:#142d40;color:#f0f6fa}
.compact-card[data-influence-score="-1"],.compact-card[data-influence-score="-2"],.compact-card[data-section=risks][data-state="событие произошло"]{background:#3e2832;border-color:#9c5560;color:#f0f6fa}
.situation-card[data-status=done],.compact-card[data-section=decisions][data-state="выполнено"]{border-left-color:#83dfb4}
.situation-card :is(.card-top,.card-summary,.card-bottom,.card-alert),.compact-card :is(.card-top,.card-summary,.card-bottom,.card-alert){color:#c1d4df}
.card-facts .pill,.situation-card .pill,.resource-rating,.resource-rating[data-rating="0"],.resource-rating[data-rating="1"],.resource-rating[data-rating="2"]{background:#081b2980;color:#e3f1f7;border-color:#5c7a8766}
/* Scenario tiles use the available board width and grow with their content. */
.tyrion-edition #board:not(.list-view) #section-targets .section-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:start}
.tyrion-edition #board:not(.list-view) #section-targets .situation-card.compact-card{height:auto;overflow:visible}
.tyrion-edition #board:not(.list-view) #section-targets :is(.card-title,.card-summary){display:block;-webkit-line-clamp:unset;overflow:visible}
.section-number{background:#302332;color:#fc5565}.section-count{background:#142d40;border-color:#365263;color:#b8cad8}.section-empty{color:#b8cad8}.secret-mark{color:#ffb1be;background:#462734}
dialog,.dialog-header,.dialog-footer,.editor-aside,.extra-fields,.card-choice,.choice-check,.restore-counts,.conflict-panel pre,.history-diff pre,#resource-map-full-dialog{background:#102536;border-color:#345263;color:#f0f6fa}
dialog{box-shadow:0 30px 100px #0009}dialog::backdrop{background:#020a12bb;backdrop-filter:blur(5px)}
.dialog-header{position:relative}.dialog-body>p{line-height:1.8}.tyrion-reset-dialog label{margin-top:24px}
.tyrion-dialog-mark{position:absolute;bottom:6px;right:18px;color:#8cc5d4;font-size:9px;letter-spacing:1.5px}
.field-help-toggle{background:#142d40;border-color:#5a7a8b;color:#c6e0ed}.field-help{background:#24485c;color:#f0f6fa}.card-choice:has(input:checked),.classifier-choice:has(input:checked),.dept-choice:has(input:checked),.resource-impact-choice input:checked+span{background:#164153;color:#a2f3fc;border-color:#39d9ee}
.card-choice input:checked+.choice-check{background:#39d9ee;border-color:#39d9ee;color:#071320}.linked-item>button:first-child{color:#c0e6ef}
.notice,.meeting-banner,.conflict-panel,.form-feedback{background:#3b3023;color:#f4dbaf;border-color:#7c663e}.notice[data-kind=success],.card-save-status[data-state=saved]{color:#9debc6;background:#103e32}
.card-save-status[data-state=error],.login-error{color:#ffadb7}.card-save-status[data-state=dirty],.card-save-status[data-state=saving]{color:#e3c489}
.graph-node.center{background:#163f51;color:#f0f6fa}.card-resource-marker[data-resources="filled"],.card-bitrix-marker[data-bitrix="true"]{color:#baf5d7;background:#205246}
.resource-map-toolbar,.resource-summary-panel,.resource-map-card,.timeline-card,.timeline-preview,.timeline-list,.timeline-navigation,.timeline-preview-active{background:#142d40;border-color:#3b596b;color:#f0f6fa}
.resource-map-heading p,.resource-map-toolbar label,.resource-map-filters>summary,.resource-map-metrics>strong>span,.resource-map-legend,.resource-map-scope,.resource-summary-panel h3 button>span,.resource-summary-link-count,.resource-summary-empty-row,.resource-map-card-meta,.resource-summary-empty,.resource-map-empty,.resource-map-footnote,.timeline-branch-options p,.timeline-main-description p,.timeline-pan-hint,.timeline-card small,.timeline-preview-meta,.timeline-branch-label small{color:#b8cad8}
.resource-summary-section>summary:hover,.resource-summary-section[open]>summary{background:#1b3a4f}.resource-summary-availability{background:#0b202f;color:#cfedf5}.resource-summary-availability strong{color:#a6edf5}
.timeline-scroll,.timeline-expanded .timeline-toolbar{background:#071320}.timeline-axis-label,.timeline-branch-label{background:#102536;color:#f0f6fa}.timeline-month button{background:#142d40;color:#f0f6fa}.timeline-month>strong span{color:#b8cad8}.timeline-card:hover,.timeline-card:focus-visible{background:#244b61}.timeline-list summary strong{background:#3a2634;color:#ffc4cc}
.timeline-season{color:#081725}.timeline-today-label{background:#fc5565;color:#071320}.timeline-active-only{background:#173d48;color:#a8edf4}
.resource-category-card,.resource-tile{color:#f0f6fa}.resource-category-card .button{background:#173447;color:#f0f6fa}
:is(.resource-category-card,.resource-tile)[data-availability=unknown]{background:#233746;border-color:#607888;color:#f0f6fa}:is(.resource-category-card,.resource-tile)[data-availability="0"]{background:#5a2b36;border-color:#fc5565;color:#ffe4e8}:is(.resource-category-card,.resource-tile)[data-availability="1"]{background:#4a3522;border-color:#c88b48;color:#ffe4bf}:is(.resource-category-card,.resource-tile)[data-availability="2"]{background:#c7e5cc;border-color:#8fbd99;color:#173d27}:is(.resource-category-card,.resource-tile)[data-availability="3"]{background:#215a3e;border-color:#68bd8e;color:#f0f6fa}
.tyrion-demo-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 32px;background:linear-gradient(105deg,#302332,#102536 65%);border-bottom:1px solid #453345;color:#b8cad8;font-size:11px;line-height:1.6}
.tyrion-demo-banner strong{color:#fc5565;font-size:10px;letter-spacing:1.4px;margin-right:15px}.tyrion-demo-banner .button{font-size:10px;background:transparent}
.tyrion-export-mark{color:#9cdbe9}.tyrion-edition[data-tyrion-route=foundations] .overview{padding:12px 0}.tyrion-edition[data-tyrion-route=foundations] .page-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tyrion-hero{position:relative;isolation:isolate;overflow:hidden;border:1px solid #2b4659;border-radius:24px;padding:26px 36px 0;background:radial-gradient(ellipse at 88% 18%,#fc556529,transparent 48%),radial-gradient(ellipse at 45% 90%,#39d9ee12,transparent 55%),linear-gradient(150deg,#102536,#071320 78%);box-shadow:0 24px 100px #02091240;margin-bottom:56px}
.tyrion-hero:before{content:'';position:absolute;inset:0;z-index:-1;opacity:.12;background-image:none;background-size:70px 70px;mask-image:radial-gradient(ellipse at 75% 25%,#000,transparent 64%)}
.tyrion-hero-top{display:flex;justify-content:space-between;align-items:center;gap:14px;color:#8cb4c9;font-size:10px;letter-spacing:1px}.tyrion-kicker{display:flex;align-items:center;gap:10px}.tyrion-kicker i{width:6px;height:6px;background:#fc5565;border-radius:50%;box-shadow:0 0 15px #fc556533}.tyrion-case-label{padding:5px 9px;border:1px solid #315368;border-radius:5px;font-size:9px;letter-spacing:.5px}
.tyrion-hero-grid{display:grid;grid-template-columns:1.04fr 1fr;gap:30px;align-items:center;padding:48px 0 30px}.tyrion-hero-copy h2{font-size:clamp(40px,4.5vw,74px);font-weight:600;line-height:1.08;letter-spacing:-3.3px;color:#eef6fa}.tyrion-hero-copy h2>span{background:linear-gradient(110deg,#ffc4cc,#fc5565 75%);background-clip:text;-webkit-background-clip:text;color:transparent}.tyrion-hero-copy>p{font-size:15px;line-height:1.85;max-width:450px;margin:26px 0;color:#a9c3d3}.tyrion-hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:28px 0 40px}.tyrion-hero-actions .button{min-height:48px;border-radius:8px;font-size:12px;gap:12px}.tyrion-text-link{font-size:12px;color:#c3dce9;text-decoration:none}.tyrion-text-link:hover{color:#70e8f4;text-decoration:underline}.tyrion-case{display:flex;align-items:center;gap:13px}.tyrion-case-symbol{display:grid;place-items:center;width:40px;height:40px;border:1px solid #36546a;border-radius:10px;color:#fc5565;font-size:23px;background:#302332}.tyrion-case strong{font-size:12px;font-weight:600;display:block}.tyrion-case div>span{display:block;font-size:10px;color:#8fabbc;margin-top:3px}
/* Reserve flow space for the rotated cards and their deepest active shadow. */
.tyrion-model{position:relative;display:flex;flex-direction:column;align-items:center;gap:104px;padding-top:32px;perspective:1000px}.tyrion-stage-stack{width:min(90%,390px);display:flex;flex-direction:column;gap:12px;transform:rotateY(-13deg) rotateZ(-8deg);transform-style:preserve-3d;position:relative;z-index:2}
.tyrion-stage{display:flex;gap:18px;align-items:center;text-align:left;width:100%;padding:18px 24px;min-height:68px;border-radius:12px;border:1px solid #375b74;background:linear-gradient(100deg,#163247ee,#0b2134f5);box-shadow:0 8px 0 #061320,0 9px 0 #284253,0 18px 24px #0004;color:#b5d1e1;transition:transform .25s,border-color .25s,box-shadow .25s,background .25s}
.tyrion-stage:hover,.tyrion-stage:focus-visible{transform:translateX(-8px) translateZ(10px);border-color:#5fbed7}.tyrion-stage.is-active{transform:translateX(-22px) translateZ(25px);border-color:#fc5565;color:#f0f6fa;background:linear-gradient(105deg,#4a293b,#142d40);box-shadow:0 8px 0 #201c2b,0 9px 0 #854453,0 0 35px #fc556512,0 24px 28px #0005}
.tyrion-stage-number{font-size:11px;color:#b8cad8;letter-spacing:1px}.tyrion-stage-text{flex:1}.tyrion-stage-text strong{font-size:18px;display:block;letter-spacing:-.4px;font-weight:500}.tyrion-stage-text small{font-size:9px;display:block;margin-top:3px;color:#8cb4c9}.tyrion-stage-dot{width:7px;height:7px;border:1px solid #658ca3;border-radius:50%}.tyrion-stage.is-active .tyrion-stage-dot{background:#fc5565;border-color:#fc5565;box-shadow:0 0 16px #fc556544}
.tyrion-model-axis{position:absolute;top:40px;bottom:30px;width:1px;left:53%;background:transparent;box-shadow:none}.tyrion-orbit{position:absolute;inset:18% -5%;border:1px solid transparent;border-radius:50%;transform:rotate(-25deg)}.tyrion-orbit-two{inset:8% 12%;transform:rotate(38deg);border-color:transparent}.tyrion-model-hint{margin:0;max-width:100%;font-size:13px;line-height:1.6;letter-spacing:.3px;text-align:center;color:#a9c3d3}
.tyrion-stage-detail{display:flex;align-items:center;justify-content:space-between;gap:26px;border:1px solid #33556a;border-radius:12px;background:linear-gradient(115deg,#322535,#102536 70%);padding:24px 27px;margin:18px 0 32px;min-height:175px}.tyrion-detail-copy{max-width:760px}.tyrion-detail-copy .eyebrow{color:#fc5565;font-size:9px;letter-spacing:1.3px}.tyrion-detail-copy h3{font-size:19px;font-weight:500;margin:8px 0 10px;letter-spacing:-.4px}.tyrion-detail-copy>p:not(.eyebrow){font-size:12px;color:#b8cad8;line-height:1.75}.tyrion-detail-link{white-space:nowrap;flex:none;font-size:11px;background:#16384a;border-color:#426a80;gap:24px}.tyrion-detail-copy .tyrion-example{margin-top:12px;font-size:10px!important;color:#9cd8e6!important}.tyrion-example span{color:#6f96ad;margin-right:10px}
.tyrion-case-stats{display:grid;grid-template-columns:1fr 1fr 1fr 1.6fr;gap:20px;border-top:1px solid #2b4759;padding:25px 0}.tyrion-case-stats>div{border-right:1px solid #2b4759}.tyrion-case-stats strong{font-weight:400;font-size:28px;letter-spacing:-1px;display:block;color:#d5f1fa}.tyrion-case-stats span{font-size:9px;color:#8fabbc}.tyrion-case-stats>p{font-size:10px;color:#8fabbc;line-height:1.9;align-self:center}.tyrion-foundations-heading{margin-bottom:22px}.tyrion-foundations-heading h2{font-size:27px;font-weight:400;letter-spacing:-1px;margin-top:9px}
.tyrion-scenario-intro{font-size:13px;max-width:800px;color:#aec9d8;line-height:1.8;margin-bottom:25px}.tyrion-scenarios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:28px}.tyrion-scenario{border:1px solid #355367;border-radius:16px;padding:26px;background:linear-gradient(150deg,#173246,#0d2233);display:flex;flex-direction:column;align-items:flex-start}.tyrion-scenario.is-main{border-color:#b85b70;background:linear-gradient(150deg,#382839,#102536 80%);box-shadow:0 0 45px #fc55650a}.tyrion-scenario-kind{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#8cdfea}.tyrion-scenario h2{font-size:23px;line-height:1.35;margin:18px 0}.tyrion-scenario>p{color:#b8cad8;font-size:12px;line-height:1.8}.tyrion-scenario dl{font-size:11px;line-height:1.8;margin:20px 0 26px;flex:1}.tyrion-scenario dt{color:#85aec3;margin-top:12px}.tyrion-scenario dd{margin:3px 0 0;color:#e0eef6}
.login-layout{background:#071320}.login-story{background:radial-gradient(ellipse at 5% 80%,#39d9ee1a,transparent 65%),radial-gradient(ellipse at 100% 0,#fc556529,transparent 60%),#071320;color:#f0f6fa;border-right:1px solid #294759}.login-story .wordmark span,.login-story .product-name{color:#f0f6fa}.login-story .edition-wordmark{font-size:38px;letter-spacing:-1px}.login-story .product-name{display:none}.login-story:after{width:450px;height:450px;border-color:transparent;box-shadow:none;right:-290px}
.login-statement h1{font-size:clamp(48px,5.5vw,86px);line-height:1.08;letter-spacing:-4px}.login-statement .accent{color:#fc5565}.login-statement>.eyebrow{color:#86d2e3}.login-statement>p:last-of-type,.login-story footer{color:#a4c3d3}.login-chain span{background:#103043;border-color:#355a6f;color:#dbf4fb}.login-chain b{color:#fc5565}.login-access{background:radial-gradient(ellipse at 100% 30%,#1f496144,transparent 65%),#0b1c2c}.login-access .edition{color:#fc5565}.login-access h2{color:#f0f6fa}.login-note,.login-bottom{color:#a7c1d1}.login-note strong{color:#f0f6fa}.password-wrap button{color:#c4e7f1;background:transparent}.password-wrap button:hover{color:#39d9ee}

/* Stable color roles: red marks orientation, cyan marks actions, data keeps its own scale. */
input[type=checkbox],input[type=radio],.timeline-check input,.timeline-branch-options input,.resource-slider input[type=range]{accent-color:#39d9ee}
.card-choice:focus-within,.resource-impact-choice input:focus-visible+span{outline-color:#39d9ee}
.tyrion-foundations-heading>.eyebrow{color:#fc5565}.tyrion-stage.is-active .tyrion-stage-number,.tyrion-scenario.is-main .tyrion-scenario-kind{color:#ffb6c0}
.tyrion-case-stats>div:first-child strong{color:#fc5565}
.foundation-slot .slot-heading,.scenario-slot .slot-heading,.board-section>header{background:linear-gradient(110deg,#282332,#102536 65%)}
.board-section h2,.section-guide h2,.resource-heading h2,.resource-map-heading h2{color:#f0f6fa}
.expected-outcome,.horizon-grid article,.tyrion-case-stats,.tyrion-case-stats>div,.card-bottom,.ai-panel details{border-color:#294353}
.ai-panel .comment-body,.comment-body,.graph-neighborhood,.empty-content,.resource-person,.scenario-task-list li{background:#102536;border-color:#365263;color:#f0f6fa}
.resource-competency,.resource-impact-row{border-color:#365263}
.scenario-task-list button,#card-object-title{color:#f0f6fa}.scenario-task-list p,.resource-impact-unlink{color:#b8cad8}
.scenario-tasks textarea{background:#0a1b29;color:#f0f6fa}.bitrix-reminder>span{background:#39d9ee;color:#071320}
.team-member:nth-child(n) .member-avatar{background:#302332;color:#ffc4cc;border-color:#754756}
.card-save-status[data-state=dirty],.card-save-status[data-state=saving]{background:#3b3023;color:#f4dbaf}
.card-save-status[data-state=error],.login-error{background:#3d2530;color:#ffc4cc}
.password-wrap button:hover{background:#142d40}
.card-archive-action,.focus-strip .card-archive-action{color:#fc5565}.card-archive-action::before{background:#302332;border-color:#a85669}.card-archive-action:hover::before{background:#4a293b;border-color:#fc5565}
.compact-card[data-section=risks][data-state="угроза снята"],.compact-card[data-section=decisions][data-state="выполнено"]{background:#143c36;border-color:#438675;color:#f0f6fa}
/* Every availability state owns both its surface and inherited text color. */
.resource-category-card .button{background:transparent;border-color:currentColor;color:inherit}.resource-category-card .button:hover{background:#ffffff18;color:inherit}
.resource-summary-stress{border-top-color:#fc5565}.resource-summary-section,.resource-summary-cards>li+li{border-color:#365263}
.resource-summary-chevron,.resource-map-card-arrow{color:#39d9ee}.resource-map-filter-count{background:#3a2634;color:#ffc4cc}
.resource-map-empty{background:#102536;border-color:#607888;color:#b8cad8}
[data-impact-score="-2"]{--impact:#fc5565;--impact-bg:#fc5565;--impact-text:#071320}
[data-impact-score="-1"]{--impact:#e896a1;--impact-bg:#542d38;--impact-text:#ffe0e5}
[data-impact-score="0"]{--impact:#8ca3b3;--impact-bg:#233746;--impact-text:#f0f6fa}
[data-impact-score="1"]{--impact:#83cda3;--impact-bg:#244b39;--impact-text:#d9f3e4}
[data-impact-score="2"]{--impact:#91e4cf;--impact-bg:#91e4cf;--impact-text:#071320}
/* The sticky calendar is painted separately from the scrolling timeline canvas. */
.timeline-map{--timeline-ink:#f0f6fa}.timeline-calendar{background:linear-gradient(#102536 92%,#10253600);color:#f0f6fa}
.timeline-month{border-color:#365263}.timeline-month>strong{color:#f0f6fa}.timeline-month-bar{background:#285065}.timeline-month button:hover{background:#244b61}
.timeline-density{color:#efc778}.timeline-metrics{border-color:#294353}.timeline-metrics b{color:#39d9ee}
.timeline-grid-line{stroke:#365263}.timeline-central{stroke:#36768b}.timeline-connector{stroke:#7b98aa}.timeline-branch{stroke:#b784a1}.timeline-critical-dot{stroke:#fc5565}.timeline-today-line{stroke:#fc5565}
.timeline-scroll{border-color:#365263;scrollbar-color:#607888 #102536}.timeline-scroll:focus-visible,.timeline-card:focus-visible,.timeline-preview-active:focus-visible{outline-color:#39d9ee}
.timeline-map.timeline-expanded{border-color:#607888;box-shadow:0 0 0 12px #020a12bb}

@media(min-width:1600px){.tyrion-hero{padding-left:54px;padding-right:54px}.tyrion-hero-copy h2{font-size:79px}}
@media(max-width:1050px){.tyrion-hero{padding:24px 24px 0}.tyrion-hero-grid{gap:14px}.tyrion-hero-copy h2{font-size:48px;letter-spacing:-2px}.tyrion-stage{padding:16px;gap:12px}.tyrion-stage-text strong{font-size:16px}.tyrion-scenarios{grid-template-columns:1fr}.tyrion-case-stats{grid-template-columns:1fr 1fr 1fr}.tyrion-case-stats>p{grid-column:1/-1}.tyrion-case-stats>div:nth-child(3){border:0}}
@media(max-width:760px){.tyrion-demo-banner{padding:10px 16px;align-items:flex-start;flex-wrap:wrap;gap:8px;font-size:10px}.tyrion-demo-banner strong{display:block;margin-bottom:2px}.tyrion-demo-banner .button{min-height:38px}.tyrion-hero{padding:20px 18px 0;border-radius:18px;margin-bottom:32px}.tyrion-hero-top{align-items:flex-start;gap:10px}.tyrion-kicker{font-size:8px;letter-spacing:.8px;line-height:1.8}.tyrion-case-label{font-size:8px;padding:4px 6px;white-space:nowrap}.tyrion-hero-grid{grid-template-columns:1fr;padding:30px 0 15px;gap:15px}.tyrion-hero-copy h2{font-size:clamp(39px,9.3vw,62px);letter-spacing:-2px}.tyrion-hero-copy>p{font-size:13px;max-width:460px;margin:20px 0}.tyrion-hero-actions{gap:10px;margin:24px 0}.tyrion-hero-actions .button{width:100%;justify-content:space-between}.tyrion-case{margin-top:28px}.tyrion-model{max-width:480px;width:100%;margin:auto}.tyrion-stage-stack{width:82%;gap:10px;transform:rotateY(-9deg) rotateZ(-6deg)}.tyrion-stage{min-height:62px;padding:13px 18px}.tyrion-stage.is-active{transform:translateX(-12px) translateZ(15px)}.tyrion-stage-detail{display:block;padding:20px;margin:8px 0 24px;min-height:0}.tyrion-detail-copy h3{font-size:18px}.tyrion-detail-copy>p:not(.eyebrow){font-size:12px}.tyrion-detail-link{margin-top:20px;width:100%;justify-content:space-between}.tyrion-case-stats{gap:10px;padding:20px 0}.tyrion-case-stats strong{font-size:25px}.tyrion-case-stats span{font-size:8px;display:block;max-width:90px}.tyrion-case-stats>p{font-size:9px;margin-top:5px}.tyrion-foundations-heading h2{font-size:23px}.tyrion-scenario{padding:22px}.tyrion-stage-text small{font-size:9px}.tyrion-demo-banner .button{margin-left:auto}.login-statement h1{font-size:52px;letter-spacing:-2px}}
@media(prefers-reduced-motion:reduce){.tyrion-stage{transition:none}}
@media(max-width:760px){.topbar{display:grid;grid-template-columns:1fr auto;position:relative;padding:14px 15px 32px;gap:12px;min-height:86px}.topbar .brand-lockup{width:auto}.topbar-right{width:auto;justify-content:flex-end}.topbar-right #connection-status{position:absolute;bottom:9px;left:15px;max-width:none;font-size:9px}.topbar .wordmark .edition-wordmark{font-size:34px;letter-spacing:-1.3px}}
@media print{:root{color-scheme:light;--ink:#000;--paper:#fff;--surface:#fff;--muted:#333;--line:#bbb}body{background:#fff;color:#000}.tyrion-demo-banner,.tyrion-export-mark{display:block!important;color:#000!important;background:#fff!important;border:2px solid #000;padding:10px;font-weight:bold}.tyrion-demo-banner button,.tyrion-model,.tyrion-hero-actions,.tyrion-detail-link{display:none!important}.tyrion-hero,.tyrion-stage-detail,.tyrion-scenario{background:#fff!important;color:#000!important;box-shadow:none;border-color:#999}.tyrion-hero-copy h2,.tyrion-hero-copy h2>span,.tyrion-detail-copy p,.tyrion-scenario p,.tyrion-scenario dd{color:#000!important;background:none}.tyrion-hero-grid{display:block}}

.tyrion-surface-mark,.resource-map-heading p.tyrion-surface-mark{color:#95e3ef;font-size:9px;line-height:1.6;letter-spacing:.7px;flex-basis:100%;margin:0 0 6px}.resource-map-expanded .resource-map-heading{background:#102536;color:#f0f6fa;border-color:#345263}

/* Toolbar fields and actions share the same baseline in the personal edition. */
.tyrion-edition .timeline-toolbar > label{margin-bottom:0}

/* A single vertical list, including narrow screens. No nested navigation scroll. */
.tyrion-edition .route-map{height:auto;max-height:none;overflow:visible;padding:10px 10px 12px}
.tyrion-edition .route-map-heading{display:block;padding:0 8px;margin-bottom:8px}
.tyrion-edition .route-map-heading>p:last-child{display:none}
.tyrion-edition .route-scroll-hint{display:none}
.tyrion-edition #route-nav{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:var(--route-row-height,30px);gap:2px;padding:0;overflow:visible}
.tyrion-edition #route-nav .route-stop{min-height:0;min-width:0;padding:2px 8px;gap:7px;font-size:var(--route-font-size,12px);line-height:1.1}
.tyrion-edition .route-label{white-space:nowrap}
.tyrion-edition #route-nav .route-number{min-width:16px;font-size:10px}
.tyrion-edition #route-nav .route-shape{inset:5px auto 5px 0}
.tyrion-edition .strategy-tag{display:inline-flex;flex:none;align-items:center;justify-content:center;padding:2px 4px;border:1px solid currentColor;border-radius:4px;font-size:9px;font-weight:600;line-height:1;letter-spacing:.4px;vertical-align:middle;white-space:nowrap}
.tyrion-edition #route-nav .strategy-tag{margin-left:auto}
.tyrion-edition #page-title .strategy-tag{margin-left:6px;font-size:11px;letter-spacing:.7px;padding:4px 6px}
@media(max-height:650px){
 .tyrion-edition .route-map{padding-block:6px}
 .tyrion-edition .route-map-heading{display:none}
 .tyrion-edition #route-nav{gap:1px}
}

/* Personal Actors workspace, using the existing application shell and palette. */
.actor-filters,.actor-classification{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.actor-filters label,.actor-classification label{display:grid;gap:6px;font-size:12px}.actor-filters select,.actor-classification select,.actor-role-row select{width:100%;min-height:40px}.actor-classification{grid-template-columns:repeat(2,minmax(0,1fr))}.actor-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.actor-roles{border:1px solid var(--line,#dbe2ee);border-radius:12px;padding:16px}.actor-roles legend{font-weight:600}.actor-role-row{display:grid;grid-template-columns:minmax(0,1fr) 135px;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line,#dbe2ee)}.actor-role-row label:first-child{display:flex;gap:10px;align-items:center}.actor-role-row input{width:18px;height:18px}.actor-result-count{font-size:12px;color:var(--muted,#617087)}.actor-map-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:24px;align-items:start}.actor-map{display:block;width:100%;min-width:0;background:var(--surface,#fff);border-radius:16px}.actor-map-rings{stroke:#6b8bc4;fill:none;stroke-width:1.5}.actor-sector-label{fill:var(--ink,#293a5c);stroke:none;font-size:17px;font-weight:600}.actor-map-center{fill:#345d9e}.actor-center-label{fill:#fff;font-size:17px;font-weight:600}.actor-map-mark{fill:#eaf0f9;stroke:#547ab7;stroke-width:2}.actor-map-number{fill:#172e54;font-size:14px;font-weight:600}.actor-map-sign{fill:var(--ink,#293a5c);font-size:16px;font-weight:600}.actor-map-more{fill:var(--ink,#293a5c);font-size:15px;text-decoration:underline;font-weight:600}.actor-map a:focus .actor-map-mark{stroke:var(--ink,#172e54);stroke-width:5}.actor-map [data-polarity=negative] .actor-map-mark{fill:#ffe5e2;stroke:#bf4d43}.actor-map [data-polarity=neutral] .actor-map-mark{fill:#f1f3f6;stroke:#677284}.actor-map-roster{max-height:900px;overflow:auto;scrollbar-gutter:stable;padding:0 8px}.actor-map-roster h3{font-size:16px;margin:18px 0 9px}.actor-map-roster h4{font-size:12px;margin:10px 0 5px}.actor-map-roster ol{padding:0;margin:0;list-style:none}.actor-map-roster li{margin:5px 0}.actor-map-roster button{display:flex;align-items:baseline;width:100%;gap:9px;text-align:left;white-space:normal;overflow-wrap:anywhere;background:var(--surface,#fff);border:1px solid var(--line,#dbe2ee);border-radius:8px;padding:10px;color:inherit}.actor-map-roster button>span:nth-child(2){flex:1;min-width:0}.actor-number{font-size:12px;min-width:22px;color:var(--muted,#617087)}.actor-score{white-space:normal;font-size:11px}.actor-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;margin:10px 0}.actor-score[data-polarity=positive],.actor-legend [data-polarity=positive]{color:#24549a}.actor-score[data-polarity=negative],.actor-legend [data-polarity=negative]{color:#b33e35}.actor-unrated,.actor-no-role{border-top:1px solid var(--line,#dbe2ee);padding-top:8px}.actor-roster-group:focus{outline:2px solid #668bd2;outline-offset:3px}.actors-workspace #department-filters,.actors-workspace #regulator-filters{display:none}.actor-map-visual .hint{font-size:12px;line-height:1.6}[data-tyrion-theme=dark] .actor-map{background:#152031}[data-tyrion-theme=dark] .actor-sector-label,[data-tyrion-theme=dark] .actor-map-sign,[data-tyrion-theme=dark] .actor-map-more{fill:#e4ebfa}[data-tyrion-theme=dark] .actor-map-roster button{background:#182538;border-color:#344761}[data-tyrion-theme=dark] .actor-score[data-polarity=positive],[data-tyrion-theme=dark] .actor-legend [data-polarity=positive]{color:#9bbcff}[data-tyrion-theme=dark] .actor-score[data-polarity=negative],[data-tyrion-theme=dark] .actor-legend [data-polarity=negative]{color:#ffaaa2}
@media(max-width:1100px){.actor-map-layout{grid-template-columns:1fr}.actor-map-roster{max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.actor-map-visual{max-width:800px;margin:auto;width:100%}}
@media(max-width:600px){.actor-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.actor-map-roster{grid-template-columns:1fr}.actor-classification{grid-template-columns:1fr}.actor-map-roster button{min-height:44px}.actor-map-visual{overflow-x:auto}.actor-map{min-width:560px}.actor-role-row{grid-template-columns:minmax(0,1fr) 110px}}

/* Actor content uses the same inset as the shared toolbar/search row. */
.actors-workspace .actor-panel{padding:0 22px 24px;min-width:0}
.actors-workspace .actor-filters{margin:4px 0 18px;gap:12px;grid-template-columns:1.2fr 1fr 1fr 1.15fr}
.actors-workspace .actor-filters label{font-size:11px;font-weight:500;color:var(--muted,#617087)}
.actors-workspace .actor-filters select{font-size:12px;min-height:40px;border-radius:7px;background:var(--surface,#fff)}
.actor-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 0 20px;border-top:1px solid var(--line,#dbe2ee)}
.actor-summary-counts{display:flex;gap:28px;flex-wrap:wrap}.actor-summary-counts p{display:flex;align-items:baseline;gap:7px;margin:0}.actor-summary-counts strong{font-size:24px;font-weight:600;line-height:1}.actor-summary-counts span{font-size:11px;color:var(--muted,#617087)}
.actor-summary-counts p:nth-child(2) strong{color:#ba534b}.actor-summary .actor-result-count{margin:0;font-size:10px}
.actors-workspace #board .actor-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;align-items:stretch}
.actors-workspace #board .actor-card-grid .compact-card{height:auto;min-height:236px;overflow:visible;padding:18px;border-radius:10px;border:1px solid #c8d7eb;background:#fff;box-shadow:0 2px 5px #17365b05}
.actors-workspace #board .actor-card-grid .card-title{font-size:16px;line-height:1.45;letter-spacing:-.3px;margin-bottom:9px;display:block;overflow:visible}
.actors-workspace #board .actor-card-grid .card-top{margin-bottom:9px;font-size:10px;letter-spacing:.2px;color:#617087}
.actors-workspace #board .actor-card-grid .card-summary{font-size:12px;line-height:1.6;-webkit-line-clamp:3;margin-bottom:18px;color:#4b617e}
.actors-workspace #board .actor-card-grid .card-facts{gap:6px;margin-top:auto}
html .actors-workspace #board .actor-card-grid .pill{font-size:10px;line-height:1.45;padding:4px 7px;border-radius:5px;border:1px solid #d9e3f0;background:#f6f9fd;color:#456082}
html .actors-workspace #board .actor-card-grid .actor-score[data-polarity=positive]{background:#e9f1fc;border-color:#bdcfe9;color:#285595}
html .actors-workspace #board .actor-card-grid .actor-score[data-polarity=negative]{background:#fff0ed;border-color:#efc6bf;color:#a94b42}
html .actors-workspace #board .actor-card-grid .actor-score[data-polarity=unrated]{background:#f3f4f6;border-style:dashed;color:#687080}
.actors-workspace #board .actor-card-grid .card-bottom{font-size:10px;margin-top:16px;padding-top:12px;border-color:#e0e7f1;color:#4b617e}
.actor-empty{grid-column:1/-1;padding:34px 22px;border:1px dashed var(--line,#c8d7eb);border-radius:10px;text-align:center}.actor-empty h2{font-size:17px;margin:0 0 10px}.actor-empty p{font-size:12px;max-width:440px;margin:0 auto;color:var(--muted,#617087)}
.actor-more{position:relative}.actor-more>summary{list-style:none;cursor:pointer;user-select:none}.actor-more>summary::-webkit-details-marker{display:none}.actor-more>summary:after{content:'⌄';margin-left:10px}.actor-more[open]>summary:after{content:'⌃'}
.actor-tools-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:30;display:flex;flex-direction:column;gap:5px;min-width:180px;padding:9px;background:var(--surface,#fff);border:1px solid var(--line,#c8d7eb);border-radius:9px;box-shadow:0 8px 22px #17365b20}.actor-tools-menu .button{text-align:left;width:100%;justify-content:flex-start}
#ai-panel.actor-ai-panel{padding:0;margin:16px 0 20px;background:var(--surface,#fff)}#ai-panel.actor-ai-panel>details{padding:0;border:0}#ai-panel.actor-ai-panel>details>summary{padding:15px 20px;font-size:12px;font-weight:500;cursor:pointer}#actor-comment-count{font-weight:400;color:var(--muted,#617087);margin-left:8px}.actor-comments-body{padding:6px 20px 20px}.actor-comments-body>header{display:flex;justify-content:space-between;align-items:center;gap:16px}.actor-comments-body .empty{padding:16px 0}
[data-tyrion-theme=dark] .actors-workspace #board .actor-card-grid .compact-card{background:#152031;border-color:#344761}[data-tyrion-theme=dark] .actors-workspace #board .actor-card-grid :is(.card-summary,.card-top,.card-bottom){color:#aabed9}[data-tyrion-theme=dark] .actors-workspace #board .actor-card-grid .pill{background:#203047;border-color:#3a506d;color:#c5d5eb}[data-tyrion-theme=dark] .actors-workspace #board .actor-card-grid .actor-score[data-polarity=positive]{background:#203d61;color:#bad4ff}[data-tyrion-theme=dark] .actors-workspace #board .actor-card-grid .actor-score[data-polarity=negative]{background:#4b2c30;color:#ffc3b8}[data-tyrion-theme=dark] .actor-tools-menu,[data-tyrion-theme=dark] #ai-panel.actor-ai-panel{background:#152031;border-color:#344761}
@media(max-width:800px){.actors-workspace .actor-panel{padding:0 15px 18px}.actors-workspace .actor-filters{grid-template-columns:repeat(2,minmax(0,1fr));margin:5px 0 15px;gap:11px}.actors-workspace .workspace-toolbar{gap:10px}.actors-workspace .toolbar-actions{width:auto;margin-left:auto}.actor-summary-counts{gap:14px}.actor-summary-counts p{display:grid;gap:5px}.actor-summary-counts strong{font-size:22px}.actor-summary-counts span{font-size:10px}.actor-summary{padding:15px 0;gap:12px}.actors-workspace #board .actor-card-grid{gap:12px}.actors-workspace #board .actor-card-grid .compact-card{min-height:0;padding:16px}.actor-comments-body>header{align-items:flex-start;flex-wrap:wrap}}
.actor-panel .sr-only,.actor-roles .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Trend components stay inside the existing Tyrion application shell. */
.trends-workspace #department-filters,.trends-workspace #regulator-filters,.trends-workspace #filter-owner{display:none}
.trends-page{padding:0 22px 24px;min-width:0}.trends-page *,.trend-editor *,.trend-horizon *{min-width:0}
.trends-page h2,.trend-horizon h2{font-size:18px;letter-spacing:-.3px}.trends-page h3{font-size:16px;line-height:1.5}
.trend-filters{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:12px;align-items:start;margin:4px 0 20px}
.trend-filters>label,.trend-editor label{display:grid;gap:7px;font-size:12px}.trend-filters select,.trend-editor select,.trend-editor input:not([type=checkbox]),.trend-editor textarea,.trend-sphere-search input{width:100%;padding:10px 11px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);min-height:42px}
.trend-editor textarea{resize:vertical;line-height:1.6}.trend-sphere-picker{border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--surface);font-size:12px}.trend-sphere-picker summary{cursor:pointer;overflow-wrap:anywhere;line-height:1.6}.trend-sphere-picker[open]{grid-column:1/-1}.trend-sphere-search{display:grid;gap:7px;margin-top:16px}.trend-sphere-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-height:350px;overflow:auto;padding:14px 6px 4px 0;scrollbar-gutter:stable}.trend-sphere-groups h4{margin:0 0 8px;font-size:12px}.trend-sphere-choice,.trend-editor .trend-sphere-choice{display:flex;align-items:flex-start;gap:8px;margin:8px 0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.trend-sphere-choice input,.trend-editor input[type=checkbox]{width:18px;height:18px;flex:none;margin:2px 0 0;accent-color:#426da8}.trend-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px}.trend-summary p{display:flex;flex-direction:column;gap:7px;font-size:11px;line-height:1.5}.trend-summary b{font-size:26px;line-height:1.2}.trend-overview{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:24px;margin-bottom:24px}.trend-matrix-panel,.trend-reading,.trend-horizon{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:20px}.trend-matrix-panel>.hint{margin:9px 0}.trend-matrix{display:grid;grid-template-columns:minmax(75px,1fr) repeat(3,minmax(0,1fr));gap:6px;margin:16px 0}.trend-matrix>strong{font-size:11px;align-self:center;overflow-wrap:anywhere}.trend-matrix>strong:not(:nth-child(4n+1)){text-align:center}.trend-axis{font-size:9px;color:var(--muted)}.trend-matrix-cell{min-height:70px;background:color-mix(in srgb,var(--ink) 4%,var(--surface));border:1px solid var(--line);border-radius:7px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;padding:8px}.trend-map-point{width:30px;min-height:30px;border:1px solid currentColor;border-radius:50%;font-size:11px;font-weight:600;background:var(--surface);color:var(--ink)}
.trend-reading{display:flex;flex-direction:column;gap:18px;justify-content:center;background:color-mix(in srgb,#456a9c 5%,var(--surface))}.trend-reading>p{font-size:12px;line-height:1.8}.trend-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:12px}.trends-page .positive,.trend-editor .positive,.trend-horizon .positive{color:#2c5a98}.trends-page .negative,.trend-editor .negative,.trend-horizon .negative{color:#a64f48}.trends-page .mixed,.trend-horizon .mixed{color:#78548f}.trend-panel-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:18px}.trend-panel-heading .hint{margin-top:6px}.trend-horizon{margin-bottom:28px}.trend-year-controls{display:flex;gap:5px;flex-wrap:wrap}.trend-time-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:8px;scrollbar-gutter:stable}.trend-time-grid{min-width:1000px}.trend-time-head,.trend-time-row{display:grid;grid-template-columns:260px minmax(0,1fr)}.trend-time-head{background:color-mix(in srgb,var(--ink) 5%,var(--surface));font-size:11px}.trend-time-head>span{padding:12px}.trend-time-head>div,.trend-time-track{display:grid;grid-template-columns:repeat(10,minmax(0,1fr))}.trend-time-head>div>span{text-align:center;border-left:1px solid var(--line);padding:10px 3px}.trend-time-head b{font-weight:400;color:var(--muted)}.trend-time-row{border-top:1px solid var(--line);min-height:68px}.trend-time-row>button{background:transparent;border:0;text-align:left;padding:12px;font-size:12px;line-height:1.5;overflow-wrap:anywhere;color:var(--ink)}.trend-time-row small{display:block;margin-top:5px;font-size:9px;color:var(--muted)}.trend-time-track{align-items:center;background:repeating-linear-gradient(to right,transparent 0,transparent calc(10% - 1px),var(--line) calc(10% - 1px),var(--line) 10%)}.trend-time-bar{border:1px solid currentColor;border-radius:6px;min-height:30px;margin:5px 3px;background:color-mix(in srgb,#6088c1 16%,var(--surface));font-size:11px;padding:5px 2px;white-space:normal}.trend-time-bar.negative{background:color-mix(in srgb,#c7665d 16%,var(--surface))}.trend-time-bar.mixed{background:linear-gradient(90deg,color-mix(in srgb,#6088c1 18%,var(--surface)),color-mix(in srgb,#c7665d 18%,var(--surface)))}.trend-time-outside{display:grid;gap:12px;margin-top:14px;font-size:12px}.trend-outside{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.trend-outside .button{white-space:normal;text-align:left;justify-content:flex-start;overflow-wrap:anywhere}.trend-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.trend-card{border:1px solid var(--line);border-radius:10px;padding:18px;background:var(--surface);display:flex;flex-direction:column;gap:12px}.trend-card-heading{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted)}.trend-card-heading>span:last-child{margin-left:auto}.trend-number{border:1px solid var(--line);border-radius:50%;min-width:27px;height:27px;display:grid;place-items:center}.trend-demo{font-size:9px;letter-spacing:1px;border:1px solid var(--line);border-radius:4px;padding:3px 6px}.trend-card h3 button{background:transparent;border:0;padding:0;text-align:left;color:var(--ink);font-size:16px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;max-width:100%}.trend-card-description{font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}.trend-card-spheres,.trend-card-scores{display:flex;gap:7px;flex-wrap:wrap}.trend-card-spheres>span{border-radius:5px;padding:4px 6px;background:color-mix(in srgb,var(--ink) 5%,var(--surface));font-size:10px;color:var(--muted)}.trend-card-scores{margin-top:auto}.trend-score{font-size:11px;white-space:normal}.trend-card-period{font-size:10px;color:var(--muted);padding-top:12px;border-top:1px solid var(--line);overflow-wrap:anywhere}.trend-list{grid-template-columns:1fr}.trend-list .trend-card{display:grid;grid-template-columns:80px minmax(0,2fr) minmax(0,1fr);gap:12px 18px;align-items:start}.trend-list .trend-card-heading{flex-wrap:wrap;grid-row:span 3}.trend-list .trend-card-description{grid-column:2}.trend-list .trend-card-period{grid-column:2/-1}.trend-list .trend-card-scores{grid-column:3;grid-row:2}.trend-list .trend-card-spheres{grid-column:3;grid-row:1}.trend-editor{display:grid;gap:24px;grid-column:1/-1;margin:18px 0}.trend-editor>section{display:grid;gap:16px;padding:18px 0;border-top:1px solid var(--line)}.trend-editor h3{font-size:16px}.trend-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.trend-effect-box{border:1px solid var(--line);border-radius:10px;padding:16px;display:grid;gap:16px}.trend-editor .trend-check{display:flex;align-items:center;gap:10px}.trend-observation{border:1px solid var(--line);border-radius:9px;padding:16px;display:grid;gap:12px;margin:12px 0}.trend-observation>button{justify-self:start}.trend-editor section>button{justify-self:start}
[data-tyrion-theme=dark] :is(.trends-page,.trend-editor,.trend-horizon) .positive{color:#a4c8ff}[data-tyrion-theme=dark] :is(.trends-page,.trend-editor,.trend-horizon) .negative{color:#ffb4ab}[data-tyrion-theme=dark] :is(.trends-page,.trend-horizon) .mixed{color:#dcc1f0}
@media(max-width:1100px){.trend-overview{grid-template-columns:1fr}.trend-reading{display:none}.trend-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.trend-filters>.trend-sphere-picker{grid-column:1/-1}}
@media(max-width:700px){.trends-page{padding:0 14px 18px}.trend-filters{grid-template-columns:1fr}.trend-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.trend-matrix-panel,.trend-horizon{padding:14px}.trend-matrix{gap:4px;grid-template-columns:70px repeat(3,minmax(0,1fr))}.trend-matrix>strong{font-size:9px}.trend-matrix-cell{padding:5px;min-height:62px}.trend-field-grid,.trend-sphere-groups{grid-template-columns:1fr}.trend-list .trend-card{display:flex}.trend-list .trend-card-heading{flex-wrap:nowrap}.trend-editor>section{padding:16px 0}.trend-effect-box{padding:12px}.trend-year-controls .button{font-size:10px;padding:7px 8px}.trends-workspace .workspace-toolbar{gap:10px;flex-wrap:wrap}.trends-workspace .toolbar-actions{flex-wrap:wrap}.trend-time-head,.trend-time-row{grid-template-columns:220px minmax(0,1fr)}}

/* Shared software attribution. User data and third-party licenses stay separate. */
.tyrion-rights{flex-basis:100%;min-width:0;color:var(--muted);font-size:10px;line-height:1.6;overflow-wrap:anywhere}
.tyrion-rights p{margin:0;font-size:inherit;line-height:inherit;color:inherit}
.tyrion-rights .tyrion-rights-terms{font-size:9px;margin-top:3px}
.page-footer:has(>.tyrion-rights){flex-wrap:wrap;gap:12px}
.login-form-wrap>.tyrion-rights{margin-top:20px}
.resource-map-heading .tyrion-rights{margin-top:8px}
.timeline-toolbar>.tyrion-rights{order:2}
@media print{
 .page-footer:has(>.tyrion-rights){display:block!important}
 .page-footer:has(>.tyrion-rights)>:not(.tyrion-rights):not(.tyrion-export-mark){display:none!important}
 .timeline-toolbar:has(>.tyrion-rights){display:flex!important}
 .timeline-toolbar:has(>.tyrion-rights)>:not(.tyrion-rights):not(.tyrion-surface-mark){display:none!important}
 .tyrion-rights{display:block!important;color:#000!important;background:#fff!important;font-size:9px;break-inside:avoid;margin-top:12px}
}

/* Tyrion Module 1 only. The original stylesheet remains the complete dark theme. */
.tyrion-theme-control { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex: none; white-space: nowrap; }
.tyrion-theme-label { color: #a9c3d3; font-size: 11px; line-height: 1.4; }
.tyrion-theme-switch { position: relative; display: inline-block; flex: 0 0 54px; width: 54px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; cursor: pointer; vertical-align: middle; }
.tyrion-theme-switch::before { content: ''; position: absolute; inset: 7px 0; border: 1px solid #60788c; border-radius: 20px; background: #c7d4e4; transition: background .2s, border-color .2s; }
.tyrion-theme-thumb { position: absolute; top: 10px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #102b4b40; transition: transform .2s; pointer-events: none; }
.tyrion-theme-switch[aria-checked="true"]::before { background: #355e9a; border-color: #74a3d5; }
.tyrion-theme-switch[aria-checked="true"] .tyrion-theme-thumb { transform: translateX(24px); }
.tyrion-theme-switch:hover::before { border-color: #355e9a; }
.tyrion-theme-switch:focus-visible { outline: 3px solid #39d9ee; outline-offset: 3px; }
html[data-tyrion-theme="dark"] .tyrion-theme-label[data-theme-label="dark"] { color: #f0f6fa; font-weight: 600; }
.login-form-wrap > .tyrion-theme-control { display: flex; justify-content: flex-end; margin: 0 0 26px; }

html[data-tyrion-theme="light"] {
  color-scheme: light;
  --ink: #17365b;
  --paper: #f2f5fa;
  --surface: #fff;
  --white: #fff;
  --line: #ccd8e7;
  --muted: #526780;
  --taupe: #355e9a;
  --green: #246640;
  --red: #a33d48;
  --amber: #855817;
  --blue: #355e9a;
  --tyrion-coral: #b86462;
  --tyrion-coral-ink: #9c4648;
  --tyrion-soft: #edf3fb;
  background: var(--paper);
  color: var(--ink);
}
html[data-tyrion-theme="light"] body { background: #f2f5fa; color: var(--ink); }
html[data-tyrion-theme="light"] :is(button,a,input,select,textarea,summary,[tabindex]) { outline-color: #355e9a !important; }
html[data-tyrion-theme="light"] :is(input,select,textarea),
html[data-tyrion-theme="light"] :is(.login-form-wrap,.resource-map-toolbar,.timeline-toolbar,.scenario-tasks) :is(input,select,textarea) { color-scheme: light; background: #fff; color: var(--ink); border-color: #93a8c2; }
html[data-tyrion-theme="light"] :is(input,textarea)::placeholder { color: #60728a; }
html[data-tyrion-theme="light"] :is(input[type="checkbox"],input[type="radio"],input[type="range"]) { accent-color: #355e9a; }
html[data-tyrion-theme="light"] .resource-slider input[type="range"] { background: transparent; }
html[data-tyrion-theme="light"] .tyrion-theme-label { color: var(--muted); }
html[data-tyrion-theme="light"] .tyrion-theme-label[data-theme-label="light"] { color: #17365b; font-weight: 600; }

/* Common controls and the always-visible application shell. */
html[data-tyrion-theme="light"] :is(.button,.icon-button),
html[data-tyrion-theme="light"] .topbar-right :is(.button,.button.quiet) { background: #f7faff; border-color: #9bb3d1; color: #244d83; box-shadow: none; }
html[data-tyrion-theme="light"] :is(.button:hover,.icon-button:hover),
html[data-tyrion-theme="light"] .topbar-right :is(.button:hover,.button.quiet:hover) { background: #e3edf9; border-color: #355e9a; color: #17365b; }
html[data-tyrion-theme="light"] :is(.button.primary,.card-save-action) { background: #355e9a; border-color: #355e9a; color: #fff; box-shadow: 0 3px 10px #355e9a18; }
html[data-tyrion-theme="light"] :is(.button.primary:hover,.card-save-action:hover) { background: #284c80; border-color: #284c80; color: #fff; }
html[data-tyrion-theme="light"] .button.quiet { background: transparent; }
html[data-tyrion-theme="light"] .button.danger { background: #fff2f0; border-color: #d9aaa6; color: #9c3641; }
html[data-tyrion-theme="light"] .button.danger:hover { background: #f7dedb; border-color: #b86462; color: #802d36; }
html[data-tyrion-theme="light"] .topbar { background: #f6f9fef2; color: #17365b; border-color: #ccd8e7; }
html[data-tyrion-theme="light"] :is(.edition-wordmark,.wordmark .edition-wordmark,.product-name) { color: #17365b; }
html[data-tyrion-theme="light"] .product-name small { color: var(--muted); }
html[data-tyrion-theme="light"] .topbar-right .badge { background: #e2eefc; border-color: #8faed1; color: #244d83; }
html[data-tyrion-theme="light"] :is(.user-avatar,.topbar-right .user-avatar) { background: #244d83; border-color: #244d83; color: #fff; }
html[data-tyrion-theme="light"] .team-member:nth-child(n) .member-avatar { background: #f5e6e3; border-color: #dcb8b1; color: #944345; }
html[data-tyrion-theme="light"] #connection-status { color: #246640; }
html[data-tyrion-theme="light"] #connection-status[data-state="error"] { color: #a33d48; }
html[data-tyrion-theme="light"] .skip-link { background: #355e9a; border-color: #355e9a; color: #fff; }
html[data-tyrion-theme="light"] .route-map { background: #edf3fb; border-color: #ccd8e7; }
html[data-tyrion-theme="light"] :is(.route-map-heading p,.route-map-heading > .eyebrow,.route-utilities .eyebrow) { color: #405a7a; }
html[data-tyrion-theme="light"] :is(.route-stop,.route-stop:nth-child(8n+1)) { background: #e9f0fa; border-color: #d0ddeb; color: #24476f; }
html[data-tyrion-theme="light"] :is(.route-stop .route-shape,.route-stop:nth-child(8n+1) .route-shape) { background: transparent; }
html[data-tyrion-theme="light"] :is(.route-stop:hover,.route-stop:focus-visible) { background: #deebfb; border-color: #9bb6d8; color: #17365b; filter: none; }
html[data-tyrion-theme="light"] .route-stop[aria-current="page"] { background: #cddff5; border-color: #abc5e4; color: #17365b; }
html[data-tyrion-theme="light"] .route-stop[aria-current="page"] .route-shape { background: #b86462; }
html[data-tyrion-theme="light"] :is(.route-stop .route-number,.route-stop[aria-current="page"] .route-number) { color: #405a7a; }
html[data-tyrion-theme="light"] .tyrion-demo-banner { background: linear-gradient(105deg,#f8ebe8,#f8faff 65%); border-color: #d8e0ec; color: #405a7a; }
html[data-tyrion-theme="light"] :is(.tyrion-demo-banner strong,.page-heading > .eyebrow,.tyrion-foundations-heading > .eyebrow) { color: #9c4648; }
html[data-tyrion-theme="light"] :is(.tyrion-export-mark,.tyrion-surface-mark,.resource-map-heading p.tyrion-surface-mark,.tyrion-dialog-mark) { color: #355e9a; }

/* White working surfaces, with pale cobalt headers and readable secondary text. */
html[data-tyrion-theme="light"] :is(.workspace,.foundation-slot,.scenario-slot,.team-member,.horizon-guide,.ai-panel,.risk-workspace,.resource-map,.timeline-map,.timeline-map.timeline-expanded) { background: #fff; border-color: #ccd8e7; color: #17365b; }
html[data-tyrion-theme="light"] :is(.foundation-slot .slot-heading,.scenario-slot .slot-heading,.board-section > header,.section-guide,.section-help,.risk-workspace > .section-help,.focus-strip) { background: #edf3fb; border-color: #ccd8e7; color: #17365b; }
html[data-tyrion-theme="light"] :is(.foundation-content,.foundation-idea .foundation-content,.team-member > p:last-child,.horizon-grid p,.section-guide p,.section-guide li,.section-help,.section-help strong,.overview .subtitle,.timeline-explanation p) { color: #526780; }
html[data-tyrion-theme="light"] :is(.foundation-content strong,.foundation-slot .slot-heading h2,.board-section h2,.section-guide h2,.resource-heading h2,.resource-map-heading h2) { color: #17365b; }
html[data-tyrion-theme="light"] :is(.view-tabs,.filters select,.department-filter,.resource-expert-note,.resource-impact-editor,.resource-impact-choice span,.scenario-tasks,.bitrix-reminder) { background: #edf3fb; border-color: #c0d0e4; color: #405a7a; }
html[data-tyrion-theme="light"] .view-tabs button.active { background: #fff; color: #244d83; box-shadow: 0 1px 5px #355e9a20; }
html[data-tyrion-theme="light"] .department-filter:hover { background: #e0ebfa; border-color: #8eaacc; }
html[data-tyrion-theme="light"] .department-filter[aria-pressed="true"] { background: #355e9a; color: #fff; border-color: #355e9a; }
html[data-tyrion-theme="light"] .department-filter[aria-pressed="true"] span { background: transparent; color: #fff; }
html[data-tyrion-theme="light"] .filters input { background: #fff; border-color: #c0d0e4; color: #17365b; }
html[data-tyrion-theme="light"] :is(.department-filter span,.resource-impact-help,.resource-impact-legend,.resource-person,.resource-competency,.scenario-task-list p,.resource-impact-unlink) { color: #526780; }
html[data-tyrion-theme="light"] :is(.expected-outcome,.horizon-grid article,.card-bottom,.ai-panel details,.resource-competency,.resource-impact-row,.linked-item) { border-color: #ccd8e7; }
html[data-tyrion-theme="light"] :is(.ai-panel .comment-body,.comment-body,.graph-neighborhood,.empty-content,.resource-person,.scenario-task-list li) { background: #fff; border-color: #ccd8e7; color: #17365b; }
html[data-tyrion-theme="light"] .scenario-task-list button { color: #244d83; }
html[data-tyrion-theme="light"] #card-object-title { color: #405a7a; }
html[data-tyrion-theme="light"] .bitrix-reminder > span { background: #355e9a; color: #fff; }
html[data-tyrion-theme="light"] .bitrix-reminder { border-left-color: #b86462; }
html[data-tyrion-theme="light"] .section-number { background: #f8e9e6; color: #9c4648; }
html[data-tyrion-theme="light"] .section-count { background: #eaf1fb; border-color: #c0d0e4; color: #405a7a; }
html[data-tyrion-theme="light"] .section-empty { border-color: #a8bad1; color: #526780; }
html[data-tyrion-theme="light"] .secret-mark { background: #f8e7e5; color: #9c3641; }
html[data-tyrion-theme="light"] .graph-node.center { background: #e8f0fb; border-color: #789bc4; color: #17365b; }

/* Data colors retain their positive / neutral / negative meaning in both views. */
html[data-tyrion-theme="light"] :is(.situation-card,.situation-card[data-status="archived"],.compact-card[data-influence-score="0"]) { background: #fff; border-color: #c1d1e5; color: #17365b; }
html[data-tyrion-theme="light"] .compact-card[data-scenario-type="main"] { background: #e6f0fb; border-color: #9bb7d9; border-top-color: #355e9a; color: #17365b; }
html[data-tyrion-theme="light"] .compact-card[data-scenario-type="secondary"] { background: #fcf1d4; border-color: #d7bd75; color: #554316; }
html[data-tyrion-theme="light"] :is(.situation-card[data-status="blocked"],.compact-card[data-influence-score="-1"],.compact-card[data-section="risks"][data-state="событие произошло"]) { background: #f9e1df; border-color: #d6a3a0; color: #73333c; }
html[data-tyrion-theme="light"] :is(.situation-card[data-status="done"],.compact-card[data-influence-score="1"],.compact-card[data-section="risks"][data-state="угроза снята"],.compact-card[data-section="decisions"][data-state="выполнено"]) { background: #e0efe5; border-color: #a7c8b3; color: #214f36; }
html[data-tyrion-theme="light"] .compact-card[data-influence-score="2"] { background: #246640; border-color: #1b5131; color: #fff; }
html[data-tyrion-theme="light"] .compact-card[data-influence-score="-2"] { background: #a33d48; border-color: #862f39; color: #fff; }
html[data-tyrion-theme="light"] :is(.situation-card,.compact-card) :is(.card-top,.card-summary,.card-bottom,.card-alert) { color: inherit; }
html[data-tyrion-theme="light"] :is(.card-facts .pill,.situation-card .pill) { background: #ffffff45; border-color: currentColor; color: inherit; }
html[data-tyrion-theme="light"] .resource-rating { background: #e8eef6; border-color: #c1d1e5; color: #405a7a; }
html[data-tyrion-theme="light"] .resource-rating[data-rating="0"] { background: #f9e1df; color: #73333c; }
html[data-tyrion-theme="light"] .resource-rating[data-rating="1"] { background: #fff0d5; color: #735018; }
html[data-tyrion-theme="light"] .resource-rating[data-rating="2"] { background: #e0efe5; color: #214f36; }
html[data-tyrion-theme="light"] :is(.card-resource-marker[data-resources="filled"],.card-bitrix-marker[data-bitrix="true"]) { background: #e0efe5; border-color: #9ebfa9; color: #214f36; }
html[data-tyrion-theme="light"] :is(.resource-category-card,.resource-tile)[data-availability="unknown"] { background: #e9edf2; border-color: #b1becc; color: #425367; }
html[data-tyrion-theme="light"] :is(.resource-category-card,.resource-tile)[data-availability="0"] { background: #a33d48; border-color: #862f39; color: #fff; }
html[data-tyrion-theme="light"] :is(.resource-category-card,.resource-tile)[data-availability="1"] { background: #ffdfb9; border-color: #cea26d; color: #624013; }
html[data-tyrion-theme="light"] :is(.resource-category-card,.resource-tile)[data-availability="2"] { background: #e0efe5; border-color: #a7c8b3; color: #214f36; }
html[data-tyrion-theme="light"] :is(.resource-category-card,.resource-tile)[data-availability="3"] { background: #246640; border-color: #1b5131; color: #fff; }
html[data-tyrion-theme="light"] .resource-category-card .button { background: transparent; border-color: currentColor; color: inherit; }
html[data-tyrion-theme="light"] .resource-category-card .button:hover { background: #ffffff35; color: inherit; }
html[data-tyrion-theme="light"] .resource-category-card[data-status="archived"] { opacity: 1; }

/* Editors, contextual help, feedback and recovery stay legible over the light canvas. */
html[data-tyrion-theme="light"] :is(dialog,.dialog-header,.dialog-footer,.extra-fields,.card-choice,.choice-check,.restore-counts,.conflict-panel pre,.history-diff pre) { background: #fff; border-color: #bdcde2; color: #17365b; }
html[data-tyrion-theme="light"] dialog { box-shadow: 0 24px 80px #19375d35; }
html[data-tyrion-theme="light"] dialog::backdrop { background: #18355566; }
html[data-tyrion-theme="light"] .editor-aside { background: #edf3fb; border-color: #ccd8e7; color: #17365b; }
html[data-tyrion-theme="light"] .field-help-toggle { background: #eaf1fb; border-color: #9bb3d1; color: #355e9a; }
html[data-tyrion-theme="light"] .field-help { background: #24476f; color: #fff; }
html[data-tyrion-theme="light"] .choice-check { color: transparent; }
html[data-tyrion-theme="light"] :is(.card-choice:has(input:checked),.classifier-choice:has(input:checked),.dept-choice:has(input:checked),.resource-impact-choice input:checked + span) { background: #e0ebfa; border-color: #355e9a; color: #244d83; }
html[data-tyrion-theme="light"] .card-choice input:checked + .choice-check { background: #355e9a; border-color: #355e9a; color: #fff; }
html[data-tyrion-theme="light"] :is(.card-choice:focus-within,.resource-impact-choice input:focus-visible + span) { outline-color: #355e9a; }
html[data-tyrion-theme="light"] .linked-item > button:first-child { color: #244d83; }
html[data-tyrion-theme="light"] :is(.notice,.meeting-banner,.conflict-panel) { background: #fff2da; border-color: #d6b980; color: #735018; }
html[data-tyrion-theme="light"] :is(.notice[data-kind="success"],.card-save-status[data-state="saved"]) { background: #e0efe5; border-color: #a7c8b3; color: #214f36; }
html[data-tyrion-theme="light"] :is(.form-feedback,.card-save-status[data-state="error"],.login-error) { background: #fff0ee; border-color: #d7a5a0; color: #9c3641; }
html[data-tyrion-theme="light"] :is(.card-save-status[data-state="dirty"],.card-save-status[data-state="saving"]) { background: #fff2da; color: #735018; }
html[data-tyrion-theme="light"] :is(.card-archive-action,.focus-strip .card-archive-action) { background: transparent; color: #a33d48; }
html[data-tyrion-theme="light"] .card-archive-action::before { background: #fff5f3; border-color: #cc9693; }
html[data-tyrion-theme="light"] .card-archive-action:hover::before { background: #f7dedb; border-color: #a33d48; }

/* The opening composition follows the light cobalt / coral reference. */
html[data-tyrion-theme="light"] .tyrion-hero { background: radial-gradient(ellipse at 90% 16%,#f6e9e680,transparent 45%),linear-gradient(150deg,#fff,#f8fbff); border-color: #c5d5e9; box-shadow: 0 18px 60px #355e9a0c; }
html[data-tyrion-theme="light"] .tyrion-hero-top { color: #405a7a; }
html[data-tyrion-theme="light"] .tyrion-kicker i { background: #b86462; box-shadow: none; }
html[data-tyrion-theme="light"] .tyrion-case-label { background: #f1f6fd; border-color: #b4c8e2; color: #355e9a; }
html[data-tyrion-theme="light"] .tyrion-hero-copy h2 { color: #17365b; }
html[data-tyrion-theme="light"] .tyrion-hero-copy h2 > span { background: none; color: #b86462; }
html[data-tyrion-theme="light"] :is(.tyrion-hero-copy > p,.tyrion-case div > span,.tyrion-model-hint,.tyrion-detail-copy > p:not(.eyebrow),.tyrion-case-stats span,.tyrion-case-stats > p,.tyrion-scenario-intro,.tyrion-scenario > p,.tyrion-scenario dt) { color: #526780; }
html[data-tyrion-theme="light"] .tyrion-text-link { color: #244d83; }
html[data-tyrion-theme="light"] .tyrion-text-link:hover { color: #17365b; }
html[data-tyrion-theme="light"] .tyrion-case-symbol { background: #f8e9e6; border-color: #dcb2ac; color: #9c4648; }
html[data-tyrion-theme="light"] .tyrion-stage { background: linear-gradient(100deg,#fff,#eaf2ff); border-color: #94b6df; color: #17365b; box-shadow: 0 8px 0 #dae5f3,0 9px 0 #a7bedb,0 18px 24px #355e9a1c; }
html[data-tyrion-theme="light"] :is(.tyrion-stage:hover,.tyrion-stage:focus-visible) { border-color: #355e9a; }
html[data-tyrion-theme="light"] .tyrion-stage.is-active { background: linear-gradient(105deg,#fff6f4,#f7e7e4); border-color: #b86462; color: #17365b; box-shadow: 0 8px 0 #ead2ce,0 9px 0 #c5948d,0 20px 28px #7c534b20; }
html[data-tyrion-theme="light"] :is(.tyrion-stage-number,.tyrion-stage-text small) { color: #526780; }
html[data-tyrion-theme="light"] .tyrion-stage.is-active .tyrion-stage-number { color: #9c4648; }
html[data-tyrion-theme="light"] .tyrion-stage-dot { border-color: #355e9a; }
html[data-tyrion-theme="light"] .tyrion-stage.is-active .tyrion-stage-dot { background: #b86462; border-color: #b86462; box-shadow: none; }
html[data-tyrion-theme="light"] .tyrion-stage-detail { background: linear-gradient(115deg,#fff,#edf4ff); border-color: #bfd1e9; }
html[data-tyrion-theme="light"] .tyrion-detail-copy .eyebrow { color: #9c4648; }
html[data-tyrion-theme="light"] .tyrion-detail-copy .tyrion-example { color: #355e9a !important; }
html[data-tyrion-theme="light"] .tyrion-example span { color: #526780; }
html[data-tyrion-theme="light"] :is(.tyrion-case-stats,.tyrion-case-stats > div) { border-color: #ccd8e7; }
html[data-tyrion-theme="light"] .tyrion-case-stats strong { color: #244d83; }
html[data-tyrion-theme="light"] .tyrion-case-stats > div:first-child strong { color: #9c4648; }
html[data-tyrion-theme="light"] .tyrion-scenario { background: linear-gradient(150deg,#fff,#edf4ff); border-color: #bfd1e9; }
html[data-tyrion-theme="light"] .tyrion-scenario.is-main { background: linear-gradient(150deg,#fbefec,#fff 80%); border-color: #d0a09b; box-shadow: 0 8px 28px #b864620a; }
html[data-tyrion-theme="light"] .tyrion-scenario-kind { color: #355e9a; }
html[data-tyrion-theme="light"] .tyrion-scenario.is-main .tyrion-scenario-kind { color: #9c4648; }
html[data-tyrion-theme="light"] .tyrion-scenario dd { color: #17365b; }

/* Login shares the same palette and native light form controls. */
html[data-tyrion-theme="light"] .login-layout { background: #f2f5fa; }
html[data-tyrion-theme="light"] .login-story { background: radial-gradient(ellipse at 100% 0,#f2dfda80,transparent 60%),linear-gradient(145deg,#f8fbff,#e8f0fb); border-color: #ccd8e7; color: #17365b; }
html[data-tyrion-theme="light"] :is(.login-story .wordmark span,.login-story .product-name,.login-access h2,.login-note strong) { color: #17365b; }
html[data-tyrion-theme="light"] :is(.login-statement .accent,.login-chain b) { color: #b86462; }
html[data-tyrion-theme="light"] .login-statement > .eyebrow { color: #355e9a; }
html[data-tyrion-theme="light"] :is(.login-statement > p:last-of-type,.login-story footer,.login-note,.login-bottom) { color: #526780; }
html[data-tyrion-theme="light"] .login-chain span { background: #fff; border-color: #b6cae4; color: #244d83; }
html[data-tyrion-theme="light"] .login-access { background: #fff; }
html[data-tyrion-theme="light"] .login-access .edition { color: #9c4648; }
html[data-tyrion-theme="light"] .password-wrap button { background: transparent; color: #355e9a; }
html[data-tyrion-theme="light"] .password-wrap button:hover { background: #edf3fb; color: #17365b; }

/* Resource overview and its separate fullscreen dialog use identical roles. */
html[data-tyrion-theme="light"] :is(.resource-map-toolbar,.resource-summary-panel,.resource-map-card) { background: #fff; border-color: #c1d1e5; color: #17365b; }
html[data-tyrion-theme="light"] :is(.resource-map-heading p,.resource-map-toolbar label,.resource-map-filters > summary,.resource-map-metrics > strong > span,.resource-map-legend,.resource-map-scope,.resource-summary-panel h3 button > span,.resource-summary-link-count,.resource-summary-empty-row,.resource-map-card-meta,.resource-summary-empty,.resource-map-empty,.resource-map-footnote) { color: #526780; }
html[data-tyrion-theme="light"] :is(.resource-summary-section > summary:hover,.resource-summary-section[open] > summary) { background: #e9f1fc; }
html[data-tyrion-theme="light"] .resource-summary-availability { background: #edf3fb; color: #405a7a; }
html[data-tyrion-theme="light"] .resource-summary-availability strong { color: #9c4648; }
html[data-tyrion-theme="light"] .resource-summary-stress { border-top-color: #b86462; }
html[data-tyrion-theme="light"] :is(.resource-summary-section,.resource-summary-cards > li + li) { border-color: #d5e0ee; }
html[data-tyrion-theme="light"] :is(.resource-summary-chevron,.resource-map-card-arrow) { color: #355e9a; }
html[data-tyrion-theme="light"] .resource-map-filter-count { background: #e0ebfa; color: #244d83; }
html[data-tyrion-theme="light"] .resource-map-empty { background: #f7faff; border-color: #a7bbd4; }
html[data-tyrion-theme="light"] #resource-map-full-dialog { background: #f2f5fa; border-color: #a7bbd4; color: #17365b; }
html[data-tyrion-theme="light"] #resource-map-full-dialog::backdrop { background: #18355566; }
html[data-tyrion-theme="light"] .resource-map-expanded .resource-map-heading { background: #fff; color: #17365b; border-color: #ccd8e7; }
html[data-tyrion-theme="light"] [data-impact-score="-2"] { --impact: #a33d48; --impact-bg: #a33d48; --impact-text: #fff; }
html[data-tyrion-theme="light"] [data-impact-score="-1"] { --impact: #b86462; --impact-bg: #f7dcd7; --impact-text: #73333c; }
html[data-tyrion-theme="light"] [data-impact-score="0"] { --impact: #718298; --impact-bg: #e9edf2; --impact-text: #425367; }
html[data-tyrion-theme="light"] [data-impact-score="1"] { --impact: #5b936b; --impact-bg: #e0efe5; --impact-text: #214f36; }
html[data-tyrion-theme="light"] [data-impact-score="2"] { --impact: #246640; --impact-bg: #246640; --impact-text: #fff; }

/* Calendar canvas, sticky calendar and floating preview have independent surfaces. */
html[data-tyrion-theme="light"] .timeline-map { --timeline-ink: #17365b; }
html[data-tyrion-theme="light"] :is(.timeline-preview,.timeline-list,.timeline-navigation,.timeline-preview-active) { background: #edf3fb; border-color: #b5c9e2; color: #17365b; }
html[data-tyrion-theme="light"] :is(.timeline-branch-options p,.timeline-main-description p,.timeline-pan-hint,.timeline-card small,.timeline-preview-meta,.timeline-branch-label small) { color: #526780; }
html[data-tyrion-theme="light"] .timeline-scroll { background: #f8fbff; border-color: #b5c9e2; scrollbar-color: #8da6c4 #edf3fb; }
html[data-tyrion-theme="light"] .timeline-expanded .timeline-toolbar { background: #fff; border-color: #ccd8e7; color: #17365b; }
html[data-tyrion-theme="light"] :is(.timeline-axis-label,.timeline-branch-label) { background: #f8fbfff2; color: #24476f; }
html[data-tyrion-theme="light"] .timeline-month button { background: #e5eef9; color: #17365b; }
html[data-tyrion-theme="light"] .timeline-month > strong span { color: #526780; }
html[data-tyrion-theme="light"] .timeline-card { background: var(--timeline-card-color,#fff); border-color: #9aafc8; color: #17365b; }
html[data-tyrion-theme="light"] :is(.timeline-card:hover,.timeline-card:focus-visible) { background: var(--timeline-card-color,#edf3fb); border-color: #355e9a; outline-color: #355e9a; }
html[data-tyrion-theme="light"] .timeline-list summary strong { background: #e0ebfa; color: #244d83; }
html[data-tyrion-theme="light"] .timeline-today-label { background: #f8e7e5; color: #9c4648; }
html[data-tyrion-theme="light"] .timeline-active-only { background: transparent; color: #405a7a; }
html[data-tyrion-theme="light"] .timeline-calendar { background: linear-gradient(#f8fbff 92%,#f8fbff00); color: #17365b; }
html[data-tyrion-theme="light"] .timeline-month { border-color: #bfd0e4; }
html[data-tyrion-theme="light"] .timeline-month > strong { color: #17365b; }
html[data-tyrion-theme="light"] .timeline-month-bar { background: #c2d6ef; }
html[data-tyrion-theme="light"] .timeline-month button:hover { background: #d5e4f7; }
html[data-tyrion-theme="light"] .timeline-density { color: #855817; }
html[data-tyrion-theme="light"] .timeline-metrics { border-color: #ccd8e7; }
html[data-tyrion-theme="light"] .timeline-metrics b { color: #355e9a; }
html[data-tyrion-theme="light"] .timeline-grid-line { stroke: #ccd8e7; }
html[data-tyrion-theme="light"] .timeline-central { stroke: #355e9a; }
html[data-tyrion-theme="light"] .timeline-connector { stroke: #7c93ae; }
html[data-tyrion-theme="light"] .timeline-branch { stroke: #927c9f; }
html[data-tyrion-theme="light"] :is(.timeline-critical-dot,.timeline-today-line) { stroke: #b86462; }
html[data-tyrion-theme="light"] :is(.timeline-scroll:focus-visible,.timeline-preview-active:focus-visible) { outline-color: #355e9a; }
html[data-tyrion-theme="light"] .timeline-map.timeline-expanded { border-color: #91aacc; box-shadow: 0 0 0 12px #18355566; }

@media (max-width: 760px) {
  .topbar:has(.tyrion-theme-control) { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .topbar:has(.tyrion-theme-control) .brand-lockup { grid-row: 1; }
  .topbar:has(.tyrion-theme-control) .topbar-right { grid-row: 2; width: 100%; justify-content: flex-start; gap: 7px; }
  .topbar-right .tyrion-theme-control { margin-right: auto; }
  .tyrion-theme-label { font-size: 10px; }
}
@media (max-width: 380px) {
  .topbar-right .tyrion-theme-control { flex-basis: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tyrion-theme-switch::before, .tyrion-theme-thumb { transition: none; }
}
@media (forced-colors: active) {
  .tyrion-theme-switch::before { background: Canvas; border: 2px solid ButtonText; }
  .tyrion-theme-thumb { background: ButtonText; box-shadow: none; }
  .tyrion-theme-switch[aria-checked="true"]::before { background: Highlight; border-color: Highlight; }
  .tyrion-theme-switch[aria-checked="true"] .tyrion-theme-thumb { background: HighlightText; }
}
@media print {
  .tyrion-theme-control { display: none !important; }
  html[data-tyrion-theme="light"], html[data-tyrion-theme="light"] body { background: #fff; }
}

/* Approved logo 10 is used unchanged, including its original dark-blue letters.
   A light surface keeps it legible in the personal edition's dark theme. */
.tyrion-logo{display:block;box-sizing:content-box;width:180px;max-width:100%;height:auto;padding:6px 10px;border-radius:10px;background:transparent;object-fit:contain}
html[data-tyrion-theme="dark"] .tyrion-logo{background:#f2f5fa}
.topbar .wordmark .tyrion-logo{width:180px}
@media(max-width:760px){.topbar .wordmark .tyrion-logo{width:130px;padding:5px 8px;border-radius:8px}}
@media print{.tyrion-logo{background:#fff!important}}

/* Module 1, map route only. All other routes keep their original shell. */
body.tyrion-edition[data-tyrion-route="timeline"] {
 --map-surface:#102536;--map-soft:#142d40;--map-border:#365565;--map-action:#75edff;
 display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden;
}
html[data-tyrion-theme="light"] body.tyrion-edition[data-tyrion-route="timeline"] {--map-surface:#fff;--map-soft:#edf3fb;--map-border:#b5c9e2;--map-action:#176baf}
body.tyrion-edition[data-tyrion-route="timeline"] .topbar {flex:none;min-height:60px;padding:5px 20px;gap:15px}
body.tyrion-edition[data-tyrion-route="timeline"] .topbar .wordmark .tyrion-logo {width:138px;padding:4px 8px}
body.tyrion-edition[data-tyrion-route="timeline"] .tyrion-demo-banner {flex:none;padding:3px 20px;min-height:26px;gap:8px;font-size:10px}
body.tyrion-edition[data-tyrion-route="timeline"] .tyrion-demo-banner .button {min-height:22px;padding:2px 8px}
body.tyrion-edition[data-tyrion-route="timeline"] .app-layout {display:grid;grid-template-columns:62px minmax(0,1fr);flex:1;width:100%;max-width:none;min-height:0;margin:0;align-items:stretch;position:relative}
body.tyrion-edition[data-tyrion-route="timeline"] .main-content {grid-column:2;display:flex;flex-direction:column;min-height:0;padding:0 14px;position:relative}
body.tyrion-edition[data-tyrion-route="timeline"] .overview {flex:none;padding:7px 0;min-height:42px;align-items:center}
body.tyrion-edition[data-tyrion-route="timeline"] .overview h1 {font-size:20px;line-height:1.3;margin:0;letter-spacing:-.4px}
body.tyrion-edition[data-tyrion-route="timeline"] :is(.page-heading>.eyebrow,#route-description,#route-step,#route-pager) {display:none}
body.tyrion-edition[data-tyrion-route="timeline"] .route-utilities {position:absolute;top:6px;right:14px;min-height:0;padding:0;z-index:1}
body.tyrion-edition[data-tyrion-route="timeline"] .route-utilities>div {position:static}
body.tyrion-edition[data-tyrion-route="timeline"] .route-utilities .button {min-height:28px;padding:4px 9px;font-size:10px}
body.tyrion-edition[data-tyrion-route="timeline"] :is(#notice,#meeting-banner):not([hidden]) {flex:none;margin:0 0 4px;padding:5px 10px}
body.tyrion-edition[data-tyrion-route="timeline"] #timeline-workspace {flex:1;min-height:0;display:flex}
body.tyrion-edition[data-tyrion-route="timeline"] .page-footer {flex:none;display:block;padding:3px 0;line-height:1.4}
body.tyrion-edition[data-tyrion-route="timeline"] .page-footer>:not(.tyrion-rights),
body.tyrion-edition[data-tyrion-route="timeline"] .page-footer .tyrion-rights-terms {display:none}
body.tyrion-edition[data-tyrion-route="timeline"] .page-footer .tyrion-rights {font-size:8px;line-height:1.5}

/* The numbered rail and the expanded menu share the same accessible links. */
body.tyrion-edition[data-tyrion-route="timeline"] .route-map {display:flex;flex-direction:column;align-self:stretch;position:relative;top:0;height:100%;max-height:none;min-height:0;padding:7px 8px;overflow:visible;background:var(--map-soft);border-right:1px solid var(--map-border);border-bottom:0;z-index:30}
body.tyrion-edition[data-tyrion-route="timeline"] .route-map-heading {display:none}
body.tyrion-edition[data-tyrion-route="timeline"] .tyrion-menu-toggle {display:flex;align-items:center;justify-content:center;width:44px;min-height:34px;padding:0;margin:0 0 6px;font-size:23px;flex:none}
body.tyrion-edition[data-tyrion-route="timeline"] #route-nav {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(16,minmax(20px,1fr));grid-auto-rows:auto;gap:3px;padding:2px;min-height:0;flex:1;max-height:684px;overflow:auto;scrollbar-width:thin}
body.tyrion-edition[data-tyrion-route="timeline"] #route-nav .route-stop {justify-content:center;min-height:0;padding:2px;border:1px solid var(--map-border);font-size:12px}
body.tyrion-edition[data-tyrion-route="timeline"] #route-nav .route-number {font-size:11px;text-decoration:none;text-align:center}
body.tyrion-edition[data-tyrion-route="timeline"] #route-nav .route-label {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.tyrion-edition[data-tyrion-route="timeline"] #route-nav .strategy-tag {display:none}
body.tyrion-edition[data-tyrion-route="timeline"] #route-nav .route-stop[aria-current="page"] {background:#355e9a;color:#fff;border-color:#355e9a}
body.tyrion-edition[data-tyrion-route="timeline"] #route-nav .route-stop[aria-current="page"] .route-number {color:#fff}
body.tyrion-edition[data-tyrion-route="timeline"] .route-map[data-menu-open="true"] {position:absolute;left:0;top:0;bottom:0;width:min(330px,calc(100vw - 12px));box-shadow:12px 0 28px #10253633;background:var(--map-surface)}
body.tyrion-edition[data-tyrion-route="timeline"] .route-map[data-menu-open="true"] #route-nav .route-stop {justify-content:flex-start;padding:3px 9px;gap:10px}
body.tyrion-edition[data-tyrion-route="timeline"] .route-map[data-menu-open="true"] #route-nav .route-label {position:static;width:auto;height:auto;overflow:visible;clip-path:none;font-size:12px}
body.tyrion-edition[data-tyrion-route="timeline"] .route-map[data-menu-open="true"] #route-nav .strategy-tag {display:inline-flex}
body.tyrion-edition[data-tyrion-route="timeline"] .tyrion-route-tooltip {position:fixed;z-index:120;max-width:min(360px,calc(100vw - 84px));padding:10px 14px;border-radius:7px;background:#17365b;color:#fff;border:1px solid #6e8db4;box-shadow:0 6px 22px #10253633;font-size:12px;line-height:1.5;pointer-events:none;overflow-wrap:anywhere}

/* Compact controls leave the remaining height to the pan-and-zoom viewport. */
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-map {position:relative;display:flex;flex-direction:column;flex:1;width:100%;min-height:0;max-height:100%;border-radius:10px;padding:8px 10px 44px;overflow:visible}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar {flex:none;gap:8px;flex-wrap:nowrap;align-items:center;min-height:40px;padding:0;margin-bottom:5px;background:transparent;position:static}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar>label {font-size:0;min-width:120px;gap:0;margin:0}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar .timeline-search {min-width:130px!important;max-width:520px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar :is(input,select,.button) {font-size:11px;min-height:36px;height:36px;padding:6px 10px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zoom-controls {flex:none;gap:3px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zoom-controls .button {min-width:34px;padding-inline:7px;font-size:16px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zoom-controls .timeline-zoom-value {font-size:11px;min-width:52px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar .timeline-filters-toggle {flex:none;border:2px solid #32c6ef;color:#b3f4ff;background:#143c51;box-shadow:0 0 0 2px #32c6ef15,0 0 17px #32c6ef40,inset 0 0 10px #32c6ef12;font-weight:600;white-space:nowrap}
html[data-tyrion-theme="light"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar .timeline-filters-toggle {border-color:#258eda;color:#164e7e;background:#f0faff;box-shadow:0 0 0 2px #258eda12,0 0 16px #258eda36,inset 0 0 8px #258eda0a}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-toggle[data-restricted="true"] {text-decoration:underline;text-underline-offset:4px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-metrics {flex:none;gap:5px 18px;padding:4px 0;font-size:10px;line-height:1.4}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-metrics b {font-size:16px;margin-right:3px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-main-description {flex:none;font-size:10px;padding:3px 0 5px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-main-description>strong {display:inline;font-weight:500}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-main-description .button {min-height:24px;font-size:10px;padding:3px 7px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-scroll {flex:1;min-height:0;max-height:none;height:auto;border-radius:8px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-navigation {position:absolute;right:28px;bottom:58px;z-index:9;padding:3px;margin:0;gap:3px;background:var(--map-surface);border-color:var(--map-border);box-shadow:0 3px 12px #10253622}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-navigation .button {min-height:30px;min-width:30px;font-size:17px;padding:4px 7px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-navigation .timeline-active-only {display:none}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-preview-slot {min-height:0;height:0}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-preview:not(.timeline-preview-active) {display:none}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-map.timeline-expanded {position:fixed;inset:6px;width:auto;height:auto;max-height:none;z-index:80}

body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel {position:absolute;top:52px;right:10px;z-index:40;width:min(490px,calc(100% - 20px));max-height:calc(100% - 62px);overflow:auto;padding:16px;background:var(--map-surface);border:1px solid var(--map-border);border-radius:10px;box-shadow:0 14px 40px #10253644;color:var(--ink)}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel header,
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel footer {display:flex;align-items:center;justify-content:space-between;gap:10px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel header {font-size:16px;margin-bottom:14px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel .timeline-sections {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 15px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel .timeline-all {grid-column:1/-1}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel legend {font-size:10px;line-height:1.5;margin-bottom:12px;color:var(--muted)}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel .timeline-branch-options {display:grid;gap:12px;border-top:1px solid var(--map-border);padding-top:12px;margin-top:20px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel footer {border-top:1px solid var(--map-border);padding-top:12px;margin-top:18px;font-size:10px;color:var(--muted)}

body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom {position:absolute;bottom:5px;left:10px;right:10px;z-index:10;max-height:70%;border:1px solid var(--map-border);border-radius:7px;background:var(--map-surface);min-width:0}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom>summary {cursor:pointer;padding:8px 10px;font-size:11px;font-weight:600;color:var(--ink)}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom>summary>span {font-size:10px;font-weight:400;margin-left:16px;color:var(--muted)}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom[open] {height:70%;max-height:520px;box-shadow:0 -10px 35px #1025362b}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom[open]>summary {min-height:35px;border-bottom:1px solid var(--map-border)}
/* Native details wraps its content; an inset viewport gives that content a
   definite height while keeping the summary reachable above the scroll area. */
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom-content {position:absolute;inset:35px 0 0;overflow:auto;min-height:0;padding:0 12px 12px;overscroll-behavior:contain}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom-content>.tyrion-rights {margin-top:12px}

@media(max-width:1100px) {
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar {flex-wrap:wrap;gap:5px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar .timeline-search {max-width:none}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar>label {min-width:100px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel {top:92px;max-height:calc(100% - 102px)}
}
@media(max-width:700px) {
 body.tyrion-edition[data-tyrion-route="timeline"] .topbar {display:flex;flex-wrap:wrap;gap:2px 10px;min-height:0;padding:4px 9px}
 body.tyrion-edition[data-tyrion-route="timeline"] .topbar .wordmark .tyrion-logo {width:105px;padding:3px 5px}
 body.tyrion-edition[data-tyrion-route="timeline"] .topbar-right {width:auto;flex:1;gap:6px;flex-wrap:wrap;justify-content:flex-end}
 body.tyrion-edition[data-tyrion-route="timeline"] .topbar-right #connection-status {position:static;font-size:8px;max-width:100%;order:5;flex-basis:100%;text-align:right}
 body.tyrion-edition[data-tyrion-route="timeline"] .topbar-right :is(.user-avatar,#viewer-name,.tyrion-theme-label) {display:none}
 body.tyrion-edition[data-tyrion-route="timeline"] .topbar-right .button {font-size:10px;min-height:30px;padding:4px 7px}
 body.tyrion-edition[data-tyrion-route="timeline"] .tyrion-theme-control {margin:0;gap:0;min-height:36px}
 body.tyrion-edition[data-tyrion-route="timeline"] .tyrion-demo-banner {padding:3px 9px;font-size:8px;gap:3px;align-items:center;flex-wrap:nowrap}
 body.tyrion-edition[data-tyrion-route="timeline"] .tyrion-demo-banner strong {display:inline;font-size:8px;margin-right:5px}
 body.tyrion-edition[data-tyrion-route="timeline"] .tyrion-demo-banner .button {font-size:8px;white-space:nowrap}
 body.tyrion-edition[data-tyrion-route="timeline"] .app-layout {grid-template-columns:50px minmax(0,1fr)}
 body.tyrion-edition[data-tyrion-route="timeline"] .main-content {padding:0 5px}
 body.tyrion-edition[data-tyrion-route="timeline"] .route-map {padding:5px 4px}
 body.tyrion-edition[data-tyrion-route="timeline"] .tyrion-menu-toggle {width:40px}
 body.tyrion-edition[data-tyrion-route="timeline"] .overview {min-height:37px;padding:5px 0}
 body.tyrion-edition[data-tyrion-route="timeline"] .overview h1 {font-size:17px}
 body.tyrion-edition[data-tyrion-route="timeline"] .route-utilities {right:5px;top:5px;width:auto;gap:0}
 body.tyrion-edition[data-tyrion-route="timeline"] .route-utilities>div {width:auto}
 body.tyrion-edition[data-tyrion-route="timeline"] #overview-link {display:none}
 body.tyrion-edition[data-tyrion-route="timeline"] .route-utilities .button {font-size:9px;min-height:26px;padding:3px 6px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-map {padding:5px 6px 43px;border-radius:8px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar>label {grid-column:span 2;min-width:0}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar .timeline-search {grid-column:span 4;min-width:0!important}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar :is(input,select,.button) {font-size:10px;padding:4px 6px;height:32px;min-height:32px;min-width:0}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar>[data-timeline-today] {grid-column:span 2}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zoom-controls {grid-column:span 4;justify-content:flex-end}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zoom-controls .button {min-width:36px;font-size:14px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zoom-controls .timeline-zoom-value {font-size:10px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-toolbar>:is([data-timeline-expand],[data-timeline-filters-toggle]) {grid-column:span 3}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-metrics {gap:2px 8px;font-size:8px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-metrics b {font-size:12px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-main-description {font-size:9px;padding-block:3px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel {top:112px;right:5px;width:calc(100% - 10px);max-height:calc(100% - 120px);padding:12px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-filters-panel .timeline-sections {grid-template-columns:1fr;gap:12px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom {left:6px;right:6px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom>summary {font-size:10px;padding:6px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom>summary>span {display:block;font-size:8px;margin:3px 0 0}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom[open]>summary {min-height:42px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-bottom-content {top:42px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-navigation {right:18px;bottom:55px}
}

/* Category bands share one calendar and one date axis. Each category owns its
   packed rows; compact rows still contain every dated item. */
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone {position:absolute;left:0;right:0;background:var(--zone-background);border-block:1px solid color-mix(in srgb,var(--zone-ink) 15%,transparent);color:#263b4e;box-sizing:border-box}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-toggle {position:sticky;left:0;display:flex;align-items:center;gap:8px;width:var(--timeline-label-width,200px);min-height:50px;max-height:100%;padding:10px 12px;z-index:7;border:0;border-left:4px solid var(--zone-ink);border-right:1px solid color-mix(in srgb,var(--zone-ink) 22%,transparent);border-radius:0;background:var(--zone-background);color:var(--zone-ink);font:inherit;text-align:left;cursor:pointer;box-sizing:border-box}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-toggle strong {flex:1;min-width:0;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-chevron {flex:none;width:10px;font-size:20px;line-height:1}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-count {flex:none;font-size:10px;font-variant-numeric:tabular-nums}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-toggle:is(:hover,:focus-visible) {outline:2px solid var(--zone-ink);outline-offset:-3px;background:color-mix(in srgb,var(--zone-background) 90%,var(--zone-ink))}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-empty {position:absolute;top:18px;left:calc(var(--timeline-date-origin,220px) + 10px);font-size:10px;color:#526375}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card {min-height:0;padding:8px 11px;border:1px solid color-mix(in srgb,var(--zone-ink) 55%,#fff);border-left:3px solid var(--zone-ink);border-radius:6px;background:#ffffffeb;color:#263b4e;overflow:visible;line-height:1.35}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card:is(:hover,:focus-visible) {background:#fff;outline-color:var(--zone-ink);border-color:var(--zone-ink)}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card-heading {display:flex;gap:6px;align-items:center;min-width:0}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card .timeline-card-title {font-size:11px;line-height:16px;min-width:0;flex:1}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card-description {display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;color:#536477;margin-top:6px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card small {font-size:9px;line-height:14px;color:#536477;margin-top:6px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-critical-marker {display:inline-flex;align-items:center;justify-content:center;flex:none;width:15px;height:15px;font-size:11px;font-weight:700;border:1px solid currentColor;border-radius:50%;color:#a33040;background:#fff}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-pin {position:absolute;left:var(--timeline-pin);bottom:-4px;transform:translateX(-50%);width:6px;height:6px;border:1px solid #fff;border-radius:50%;background:var(--zone-ink);box-sizing:content-box;pointer-events:none}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card[data-timeline-compact="true"] {border:0;background:transparent;padding:5px 8px 5px 12px;color:var(--zone-ink);box-shadow:none}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card[data-timeline-compact="true"] .timeline-zone-pin {top:10px;bottom:auto}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone .timeline-trend {background:color-mix(in srgb,var(--zone-background) 80%,#fff);color:#435268;border-color:var(--zone-ink);padding-block:2px;display:flex;align-items:center}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone .timeline-trend:is(:hover,:focus-visible) {background:#fff;outline-color:var(--zone-ink)}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone .timeline-trend-caption {left:var(--timeline-date-origin,220px);max-width:min(100%,calc(100cqw - var(--timeline-date-origin,220px) - 20px));min-width:0}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-calendar-label {position:sticky;left:0;top:0;width:var(--timeline-label-width,200px);height:132px;padding:23px 14px 10px;background:var(--map-surface);font-size:10px;font-weight:600;letter-spacing:.06em;box-sizing:border-box;z-index:1}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-calendar-label span {position:absolute;bottom:20px;left:14px;right:10px;font-size:9px;letter-spacing:0;font-weight:400}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-lines {z-index:1}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-grid-line {stroke:#7590a0;stroke-dasharray:none;opacity:.15}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-connector {stroke:var(--connector-color);opacity:.24;stroke-width:1;stroke-dasharray:3 6}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-connector-active {opacity:.95;stroke-width:2.5;stroke-dasharray:5 4}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-central {stroke:#244e78;stroke-width:10}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-axis-arrow {fill:none;stroke:#244e78;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-axis-label {font-size:9px;line-height:1.5;left:12px;z-index:2;background:var(--map-surface);padding:3px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-today-label {z-index:2}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-event-dot {stroke:#fff;stroke-width:1.5}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-critical-dot {stroke:#9d3448;stroke-width:2.5}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-branch {stroke-width:3;opacity:.9}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-branch[data-timeline-branch-undated] {stroke-dasharray:6 5}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-branch-label {height:48px;overflow:hidden;z-index:2;border-left:3px solid var(--branch-ink);padding:6px 10px}
body.tyrion-edition[data-tyrion-route="timeline"] .timeline-branch-label small {display:block;line-height:1.4;margin-top:4px}

/* Small screens keep category switches visible without consuming the plot. */
@media(max-width:700px) {
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-toggle {gap:4px;padding:8px 5px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-toggle strong {font-size:9px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-chevron {width:8px;font-size:14px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-count {font-size:9px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-calendar-label {font-size:8px;padding-inline:8px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-calendar-label span {left:8px;font-size:8px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone .timeline-trend-kind {display:none}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone .timeline-trend-caption {gap:4px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone .timeline-trend .timeline-card-title {font-size:10px}
 body.tyrion-edition[data-tyrion-route="timeline"] .timeline-axis-label {font-size:8px;max-width:90px}
}
/* Dark category surfaces preserve hue without a large bright panel. */
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone {--zone-surface:color-mix(in srgb,var(--zone-ink) 18%,#102536);--zone-text:color-mix(in srgb,var(--zone-ink) 40%,#eef6ff);background:var(--zone-surface);color:var(--zone-text);border-color:color-mix(in srgb,var(--zone-ink) 40%,#102536)}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-toggle {background:var(--zone-surface);color:var(--zone-text);border-left-color:var(--zone-text)}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-toggle:is(:hover,:focus-visible) {background:color-mix(in srgb,var(--zone-ink) 28%,#102536);outline-color:var(--zone-text)}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card {background:#142d40;color:#eff6ff;border-color:color-mix(in srgb,var(--zone-ink) 70%,#c1d2e4)}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card:is(:hover,:focus-visible) {background:#203e53;outline-color:var(--zone-text)}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] :is(.timeline-zone-card-description,.timeline-zone-card small,.timeline-zone-empty) {color:#b8cad8}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone-card[data-timeline-compact="true"] {background:transparent;color:var(--zone-text)}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone .timeline-trend {background:#142d40;color:#d7e4f2;border-color:#8b9db4}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-zone .timeline-trend:is(:hover,:focus-visible) {background:#203e53;outline-color:#c5d6e8}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-grid-line {stroke:#a0b8cb;opacity:.18}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] :is(.timeline-central,.timeline-axis-arrow) {stroke:#6c97bd}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-connector {stroke:color-mix(in srgb,var(--connector-color) 55%,#e5f2ff);opacity:.35}
html[data-tyrion-theme="dark"] body.tyrion-edition[data-tyrion-route="timeline"] .timeline-connector-active {opacity:1}
