/* Shared ZCO tool presentation; computation and data flows remain tool-owned. */
@media screen {
:root{color-scheme:dark;--bg:#06130f;--paper:#06130f;--panel:#0c2119;--map:#081a14;--ink:#eff7f2;--text:#eff7f2;--muted:#a9bdb2;--line:#294c3b;--green:#7ed957;--lime:#7ed957;--soft:#173629}
body.zco-tool{background:radial-gradient(ellipse at 40% 0,rgba(126,217,87,.09),transparent 600px),#06130f;color:#eff7f2;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;line-height:1.65}
.zco-tool main{max-width:1280px;margin:0 auto;padding:28px 24px 48px}
.zco-tool main h1,.zco-tool .tool-header h1{font-size:clamp(28px,3.5vw,44px);font-weight:750;letter-spacing:-.035em;line-height:1.2}
.zco-tool main h2{font-weight:700}.zco-tool main .eyebrow{color:#9fdf7e;font-weight:700;letter-spacing:.15em}
.zco-tool main :is(input,select,textarea):not([type=checkbox]):not([type=radio]){background:#071b14;color:#eff7f2;border-color:#365a46;border-radius:9px}
.zco-tool main :is(button,.btn){border-radius:10px}
.zco-tool main :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #7ed957;outline-offset:3px}
.zco-tool main :is(.panel,.analysis-panel,.card){background:#0c2119;border:1px solid #294c3b;border-radius:18px;box-shadow:none}
.zco-tool main :is(.primary-button,.solid,.summary-button){background:#7ed957;color:#08200f;border:1px solid #7ed957;font-weight:750}
.zco-tool main :is(.quiet,.outline,.quiet-button,.export-button,.summary-button.secondary){background:transparent;color:#dcebdd;border:1px solid #365a46}
.zco-tool main :is(.muted,.intro,.note){color:#a9bdb2}
/* Island */
.zco-island header.zco-global-nav{padding:0}
.zco-island .tool-header{background:transparent;max-width:1280px;margin:auto;padding:28px 24px 0;color:#eff7f2}
.zco-island .home-link{color:#a9bdb2;font-size:12px;margin-bottom:18px}
.zco-island .tool-header p{color:#a9bdb2;font-size:15px;margin-top:14px}
.zco-island main section{background:#0c2119;border:1px solid #294c3b;border-radius:18px;box-shadow:none;padding:24px}
.zco-island main .welcome{background:linear-gradient(120deg,#173021,#0c2119);border-color:#3c613a}
.zco-island main .welcome h2{font-size:26px}.zco-island main .badge,.zco-island main .score,.zco-island main .metric b{color:#9fdf7e}
.zco-island main button,.zco-island main .btn{background:#7ed957;color:#08200f;font-weight:650;border:1px solid #7ed957}
.zco-island main button.secondary,.zco-island main .btn.secondary{background:transparent;color:#dcebdd;border:1px solid #365a46}
.zco-island main :is(.source,.location-summary,.place-choice,.bestrow){background:#132e22;color:#dcebdd;border-color:#365a46}
.zco-island main :is(summary,.source a,.location-summary a){color:#9fdf7e}
.zco-island main :is(details,.metric,th,td){border-color:#294c3b}
.zco-island main th{background:#173629}.zco-island main .optional-analysis{background:#0c2119;border-color:#365a46}
.zco-island main :is(.field small,.optional-tag,.lookup-toggle,#status,#islandSearchStatus,.place-choice small){color:#a9bdb2}
.zco-island main .warning{background:#342b17;color:#edcf91}.zco-island main .good{background:#183525;color:#b9e3ba}
.zco-island aside{top:98px}.zco-island main section[id]{scroll-margin-top:100px}
/* Carbonledger */
.zco-ledger main .breadcrumb{margin-top:0}.zco-ledger main .hero{padding:32px 0}.zco-ledger main .hero-aside strong{color:#9fdf7e}
.zco-ledger main :is(.orbit,.orbit:before,.section-nav,.activity,.factor-row,.issue-list li){border-color:#365a46}
.zco-ledger main :is(.orbit,.section-nav a.selected,.activity-result){color:#9fdf7e}
.zco-ledger main :is(label,.quiet,.factor-caption,.reference-card,.reference-card h3,.check-progress,.activity summary,.method summary,.reference-card summary,.hint,.issue-list li,.issue-list a){color:#a9bdb2}
.zco-ledger main :is(.activity-top,.formula,.preset,.scenario-result,.chip,#notice){background:#173629;color:#c7dec9}
.zco-ledger main .summary-card{background:linear-gradient(140deg,#193b27,#0c2119);border:1px solid #3c613a;border-radius:18px}
.zco-ledger main .section-nav{gap:26px;overflow-x:auto}.zco-ledger main .section-nav a{white-space:nowrap}
/* Carbonview */
.zco-carbonview .topbar{max-width:1280px;margin:auto;padding:0 24px;height:56px;background:transparent;border-color:#294c3b}
.zco-carbonview main .page-intro{margin:8px 0 28px}.zco-carbonview main .workspace{border-radius:18px;border-color:#294c3b}
.zco-carbonview main :is(.sidebar,.inspector){background:#0c2119}.zco-carbonview main .layer.active{background:#193b27;border-color:#52803e}
.zco-carbonview main .calculator-panel{background:linear-gradient(140deg,#193b27,#0c2119)}
@media(max-width:700px){.zco-tool main{padding:22px 16px 32px}.zco-island .tool-header{padding:24px 16px 0}.zco-island main section{padding:18px}.zco-island aside{position:static}.zco-carbonview .topbar{padding:0 16px}.zco-ledger main .hero{padding:24px 0}}
}
@media screen {
.zco-ledger main :is(.official-steps li,.official-comparison,.official-badge,.tool-icon,.bottom-note){background:#173629;color:#dcebdd}
.zco-ledger main .tool-card{background:#0c2119;border-radius:18px}
.zco-ledger main :is(.tool-card p,.tool-card .fit,.bottom-note p){color:#a9bdb2}
.zco-ledger main :is(.official-links,.inline-link,.tool-card a){color:#9fdf7e}
.zco-ledger main :is(.official-import,.scenario-result,.tool-card .tool-limit){border-color:#365a46}
.zco-ledger main :is(.row-issues,.official-error){color:#edb88d}
.zco-ledger main :is(.official-comparison.difference,.official-comparison.blocked,.official-badge.difference,.official-badge.blocked,#notice.error){background:#342b17;color:#edcf91}
.zco-ledger main .filters button[aria-pressed=true]{color:#08200f}
.zco-ledger .zco-site-footer{background:#06130f}
}
.zco-language{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin:0 0 16px;font:12px/1.4 Inter,system-ui,sans-serif;color:#a9bdb2}
.zco-language button{border:1px solid #365a46!important;background:transparent!important;color:#eff7f2!important;border-radius:7px!important;padding:7px 11px!important;font:600 12px/1.4 Inter,system-ui,sans-serif!important;cursor:pointer}
.zco-language button[aria-pressed=true]{background:#7ed957!important;color:#08200f!important;border-color:#7ed957!important}
@media print{.zco-language{display:none!important}}
@media screen{
.zco-tool main .tool-masthead{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;width:100%;max-width:none;margin:0 0 28px;padding:0 0 28px;border:0;border-bottom:1px solid #294c3b;background:transparent;color:#eff7f2;box-shadow:none;border-radius:0}
.zco-tool .tool-back{display:inline-block;color:#a9bdb2;text-decoration:none;font-size:12px;margin:0 0 22px}
.zco-tool .tool-masthead .tool-kicker{margin:0 0 10px;color:#9fdf7e;font-size:11px;font-weight:700;letter-spacing:.15em;line-height:1.5}
.zco-tool .tool-masthead h1{margin:0;font-size:clamp(28px,3.5vw,44px);line-height:1.2;font-weight:750;letter-spacing:-.035em}
.zco-tool .tool-masthead .tool-description{margin:14px 0 0;color:#a9bdb2;font-size:15px;line-height:1.65;max-width:650px}
.zco-tool .tool-header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px;min-width:190px}.zco-tool .tool-header-actions .zco-language{margin:0}.zco-tool .tool-meta{display:flex;align-items:center;gap:14px}.zco-tool .tool-header-actions .local-pill{font-size:11px;color:#a9bdb2;background:#173629;padding:5px 10px;border-radius:20px}
@media(max-width:700px){.zco-tool main .tool-masthead{grid-template-columns:1fr;gap:20px;padding-bottom:24px;margin-bottom:24px}.zco-tool .tool-header-actions{align-items:flex-start;min-width:0}.zco-tool .tool-back{margin-bottom:18px}.zco-tool .tool-masthead .tool-description{font-size:14px}}
}

@media screen{
/* Grid children must be shrinkable when advanced sections reveal wide tables. */
.zco-island .layout{grid-template-columns:minmax(0,1fr) 310px}
.zco-island :is(main,#form,.layout>*,.grid>*,section,details,.card){min-width:0;max-width:100%;box-sizing:border-box}
.zco-island :is(summary,.note,.source,.location-summary,.metric,li){overflow-wrap:anywhere}
.zco-island .tablewrap{max-width:100%;overflow-x:auto}
.zco-island :is(canvas,svg,img,textarea,pre){max-width:100%}
.zco-island pre{overflow:auto}
.zco-island main .project-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:start}
.zco-island main .project-actions>button,.zco-island main .project-import>summary{display:flex;align-items:center;justify-content:center;min-height:52px;width:100%;padding:10px 12px;box-sizing:border-box;font:600 13px/1.45 Inter,system-ui,sans-serif;text-align:center;border:1px solid #365a46;border-radius:10px}
.zco-island main .project-import{padding:0;margin:0;border:0;background:transparent;min-width:0;width:100%}
.zco-island main .project-import>summary{color:#dcebdd;background:transparent;list-style:none;margin:0}
.zco-island main .project-import>summary::-webkit-details-marker{display:none}
.zco-island main .project-import>summary:after{content:'⌄';margin-left:7px}.zco-island main .project-import[open]>summary:after{content:'⌃'}
.zco-island main .project-import .btn{width:100%;font:600 13px/1.45 Inter,system-ui,sans-serif;text-align:center;box-sizing:border-box;white-space:normal}
.zco-island .project-actions>#status{grid-column:1/-1}
@media(max-width:1050px){.zco-island main .project-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.zco-island .layout{display:block}}
@media(max-width:560px){.zco-island main .project-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.zco-island .optional-tag{float:none;display:block}}
}
