/* Shared workspace design: Eden layout, TheCited warm palette. */
:root{--tc-canvas:#101012;--tc-panel:#1d1d1f;--tc-raised:#272628;--tc-line:#363234;--tc-text:#f1f0ed;--tc-muted:#b6b4b2;--tc-wine:#3b2b2e;--tc-peach:#efad95;--tc-hover:#2d292b}
html[data-theme="hell"]{--tc-canvas:#e8e3db;--tc-panel:#f3f0ea;--tc-raised:#fffaf5;--tc-line:#c9beb4;--tc-text:#1d1a16;--tc-muted:#655a53;--tc-wine:#ead7ce;--tc-peach:#9c4328;--tc-hover:#e7ded5}
.tc-icon{width:21px;height:21px;flex:none;vertical-align:middle}
.tc-sidebar,.sidebar{box-sizing:border-box;position:fixed;inset:16px auto 16px 16px;width:242px;padding:26px 14px 18px;border:1px solid var(--tc-line);border-radius:24px;background:var(--tc-panel);display:flex;flex-direction:column;gap:32px;z-index:3;overflow-y:auto}
.tc-brand{font-size:23px;font-weight:650;letter-spacing:-.035em;color:var(--tc-text);padding:0 12px}.tc-brand span{color:var(--tc-peach)}
.tc-brand-note{font-size:13px;color:var(--tc-muted);margin:6px 12px 0;overflow-wrap:anywhere}
.tc-nav,.side-nav{display:flex;flex-direction:column;gap:6px}
.tc-nav button,.side-nav a{box-sizing:border-box;display:flex;align-items:center;gap:13px;min-height:48px;padding:12px 14px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--tc-muted);font:500 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;text-decoration:none;cursor:pointer}
.tc-nav button:hover,.side-nav a:hover{background:var(--tc-hover);color:var(--tc-text);text-decoration:none}
.tc-nav button[aria-current],.side-nav a[aria-current]{background:var(--tc-wine);border-color:transparent;color:var(--tc-text)}
.tc-side-footer{margin-top:auto;border-top:1px solid var(--tc-line);padding:18px 12px 0;font-size:12px;line-height:1.6;color:var(--tc-muted)}
.tc-shell{box-sizing:border-box;margin-left:278px;padding:28px 36px 36px;min-height:100vh;color:var(--tc-text)}
.tc-header{margin-bottom:26px}.tc-header>div{padding:0 0 22px!important;background:transparent!important;border-bottom:1px solid var(--tc-line)!important}
.tc-heading{margin:0 0 24px}.tc-heading h1{font-size:38px;font-weight:550;line-height:1.2;letter-spacing:-.035em;margin:0 0 8px}.tc-heading p{font-size:14px;color:var(--tc-muted);margin:0}
.tc-content{min-width:0}.tc-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:24px;font-size:12px;color:var(--tc-muted);line-height:1.6}.tc-footer span{max-width:100%}
.tc-shell .card,html[data-theme="hell"] .tc-shell .card{background:var(--tc-panel);border:1px solid var(--tc-line);border-radius:23px;box-shadow:none;backdrop-filter:none;transition:border-color .18s ease-out}.tc-shell .card:hover{transform:none;border-color:var(--tc-line)}
.tc-shell .grid2{grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:22px}.tc-shell .stack{gap:22px}
.tc-shell .kpirow{gap:12px!important}.tc-shell .kpirow>div{background:var(--tc-raised)!important;border-color:var(--tc-line)!important}.tc-shell .kpirow>div:first-child{background:var(--tc-wine)!important}
.tc-shell button{touch-action:manipulation}.tc-shell button[data-lang],.tc-shell button[data-markt],.tc-shell button[data-thema],.tc-shell button[data-range],.tc-shell button[data-engine]{min-height:36px;min-width:36px}
.tc-shell a{color:var(--terra-hell)}.tc-shell :focus-visible,.tc-sidebar :focus-visible{outline:2px solid var(--tc-peach);outline-offset:3px}
.tc-legal{margin-left:264px}.tc-legal>div{padding:20px 32px!important}
.tc-skip{position:fixed;top:-100px;left:280px;z-index:5;background:var(--tc-panel);color:var(--tc-text);padding:12px}.tc-skip:focus{top:12px}
@media(min-width:1800px){.tc-shell{max-width:1600px;margin-right:auto;margin-left:280px}}
@media(max-width:1150px){.tc-shell{padding:24px}.tc-shell .grid2{grid-template-columns:minmax(0,1fr)}.tc-shell .kpirow{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.tc-sidebar,.sidebar{position:relative;inset:auto;width:auto;margin:12px;padding:18px 12px 12px;border-radius:16px;gap:18px;overflow:visible}.tc-nav,.side-nav{flex-direction:row;overflow-x:auto;padding-bottom:4px}.tc-nav button,.side-nav a{flex:none;min-height:44px;padding:10px 12px;font-size:13px}.tc-nav .tc-icon,.side-nav .tc-icon{width:17px;height:17px}.tc-side-footer{display:none}.tc-shell{margin:0;padding:16px;min-height:0}.tc-heading h1{font-size:28px}.tc-heading{margin-bottom:20px}.tc-header{margin-bottom:22px}.tc-header>div{gap:14px!important}.tc-header>div>div{flex-wrap:wrap}.tc-shell .kpirow{grid-template-columns:1fr!important}.tc-shell .grid2{gap:16px}.tc-shell .stack{gap:16px}.tc-legal{margin:0}.tc-legal>div{padding:20px 16px!important}.tc-skip{left:16px}.tc-footer{padding-bottom:50px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}.tc-shell .card{transition:none}.tc-shell .rise,.tc-shell .draw{animation:none!important}}
@media(prefers-contrast:more){:root{--tc-muted:var(--tc-text);--tc-line:#858080}.tc-nav button[aria-current],.side-nav a[aria-current]{border-color:var(--tc-peach)}}

.portal-account-nav{position:fixed;bottom:18px;right:20px;z-index:10;border:1px solid var(--tc-line);border-radius:12px;background:var(--tc-panel);color:var(--tc-text);font:13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.portal-account-nav a{display:block;padding:12px 16px;min-height:44px;color:inherit;text-decoration:none}

/* Independent overview tiles, matching the operator card library. */
.tc-content .tc-overview-grid>.kpirow{grid-column:1/-1;padding:0!important;margin:0 0 2px;gap:18px!important}
.tc-overview-grid>.kpirow>div{padding:24px!important;border-radius:22px!important;background:var(--tc-panel)!important}
.tc-overview-grid>.kpirow>div:first-child{background:var(--tc-wine)!important}
.tc-overview-grid>.kpirow>div>div>span:first-of-type{font-weight:500!important}
.tc-overview-grid>.kpirow>div>div:first-child>span{font-size:12px!important}
.tc-overview-grid>.kpirow>div>div:nth-child(2){margin-top:20px!important}
.tc-trend>div:first-child{padding:24px 24px 18px!important}
.tc-trend>div:first-child>div>span{font-size:20px!important;font-weight:500!important}
.tc-shell .tc-overview-grid .card{align-self:start}
.tc-shell .tc-content .card>div{min-width:0}
.tc-shell .tc-content button[data-engine],.tc-shell .tc-content button[data-range]{border-radius:100px!important;min-height:36px}
.tc-legal{margin-left:278px}
@media(max-width:760px){.tc-overview-grid>.kpirow{gap:12px!important}.tc-overview-grid>.kpirow>div{padding:20px!important}.tc-heading h1{font-size:30px}.tc-legal{margin-left:0}}

.tc-context-name{font-size:13px;font-weight:450;color:var(--tc-muted)}
.tc-shell [style*="JetBrains Mono"]{font-family:inherit!important;letter-spacing:normal!important}
.tc-overview-grid .card:empty{display:none}

/* Evidence-backed actions: stable rows, visible save feedback, native disclosure. */
.tc-actions,.tc-action-empty{padding:24px}
.tc-actions h2,.tc-action-empty h2{font-size:22px;font-weight:550;margin:0 0 10px}
.tc-action-intro{max-width:760px;color:var(--tc-muted);line-height:1.6;margin:0 0 12px}
.tc-action{border:1px solid var(--tc-line);border-radius:20px;background:var(--tc-panel);margin-top:20px;overflow:hidden;scroll-margin-top:20px}
.tc-action-head{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:22px 24px;background:var(--tc-wine)}
.tc-action h3{font-size:20px;font-weight:550;line-height:1.35;margin:7px 0 0;overflow-wrap:anywhere}
.tc-action-eyebrow,.tc-action-state{font-size:12px;color:var(--tc-muted)}
.tc-action-state{border:1px solid var(--tc-line);border-radius:99px;padding:6px 10px;flex-shrink:0}
.tc-action-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.tc-action-grid>section{padding:22px 24px;min-width:0}
.tc-action-grid>section+section{border-left:1px solid var(--tc-line)}
.tc-action h4{font-size:12px;font-weight:550;color:var(--tc-peach);margin:22px 0 9px}
.tc-action h4:first-child{margin-top:0}
.tc-action p,.tc-action li,.tc-action-empty p{font-size:14px;line-height:1.65;overflow-wrap:anywhere;margin:8px 0}
.tc-action .tc-action-muted,.tc-action-muted{font-size:12px;color:var(--tc-muted);line-height:1.6}
.tc-action-links{list-style:none;margin:0;padding:0}
.tc-action-links a{display:inline-block;max-width:100%;padding:4px 0;overflow-wrap:anywhere}
.tc-action details{margin:16px 0;font-size:13px}.tc-action summary{cursor:pointer;min-height:32px;padding:6px 0;color:var(--tc-muted)}
.tc-action ol{padding-left:20px}.tc-action li+li{margin-top:10px}
.tc-action-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 24px;border-top:1px solid var(--tc-line)}
.tc-action-footer p{font-size:12px;color:var(--tc-muted);max-width:470px}
.tc-action button,.tc-action-empty button{font:inherit;font-size:13px;min-height:44px;padding:10px 14px;border:1px solid var(--tc-line);border-radius:10px;background:var(--tc-raised);color:var(--tc-text);cursor:pointer}
.tc-action button:disabled{opacity:.65;cursor:wait}.tc-action button:active{background:var(--tc-hover)}
.tc-action button.tc-action-link{background:none;color:var(--tc-peach);margin-top:8px}
.tc-action-error{padding:0 24px 16px;color:var(--tc-peach)}
@media(max-width:900px){.tc-action-grid{grid-template-columns:1fr}.tc-action-grid>section+section{border-left:0;border-top:1px solid var(--tc-line)}}
@media(max-width:760px){.tc-actions,.tc-action-empty{padding:16px 0}.tc-action-head,.tc-action-footer{flex-direction:column;gap:12px;padding:18px}.tc-action-grid>section{padding:18px}.tc-action-footer button{width:100%}.tc-action h3{font-size:18px}}

/* History context: hover/focus preview, tap to pin, explicit audit navigation. */
.tc-history-hit{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;min-height:44px;min-width:28px;max-width:100%;padding:0;border:0;background:none;color:inherit;cursor:pointer}
.tc-history-hit .rise{display:block;flex-shrink:0}.tc-history-hit[aria-expanded="true"]{outline:2px solid var(--tc-peach);outline-offset:5px;border-radius:4px}
.tc-history-hint,.tc-history-scope{font-size:12px;line-height:1.5;color:var(--tc-muted);margin:12px 0}
.tc-history-note{padding:18px;margin-top:14px;border:1px solid var(--tc-line);border-radius:15px;background:var(--tc-raised);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.tc-history-note[hidden]{display:none}.tc-history-note-head{display:flex;justify-content:space-between;align-items:start;gap:10px}.tc-history-note strong{font-size:15px;font-weight:550}
.tc-history-note ul{padding-left:18px;margin:10px 0 16px}.tc-history-note li+li{margin-top:8px}
.tc-history-note button{font:inherit;min-height:36px;padding:7px 12px;border:1px solid var(--tc-line);border-radius:9px;background:var(--tc-panel);color:var(--tc-text);cursor:pointer}
.tc-history-note [data-history-close]{font-size:20px;min-width:36px;padding:0 7px}

.tc-history-scroll{overflow-x:auto;padding:8px 6px;scrollbar-width:thin}

.tc-overview-grid>.stack{min-width:0}.tc-trend{min-width:0;width:100%;box-sizing:border-box}.tc-trend>div:first-child>div{max-width:100%;flex-wrap:wrap}
