/* Native Workspace palette. The observed imagery retains its original pixels. */
.earth-workspace{--earth-panel:#101010;--earth-view:#080808;--earth-border:var(--line);padding-bottom:18px}
:root[data-theme=light] .earth-workspace{--earth-panel:var(--card);--earth-view:var(--input)}
.earth-workspace[hidden]{display:none!important}.earth-workspace *{box-sizing:border-box}
.earth-intro{margin-bottom:20px}.earth-intro h1{margin:7px 0;font-size:29px}.earth-intro p{font-size:13px}
.earth-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(350px,1fr);gap:24px;align-items:start}
.earth-visual,.earth-sidebar{border:1px solid var(--line);border-radius:22px;background:var(--earth-panel);min-width:0}
.earth-visual{overflow:hidden;position:sticky;top:18px}.earth-sidebar{padding:25px;overflow:visible}
.earth-sidebar h2{font-size:24px;margin:8px 0 22px}.earth-sidebar p{font-size:12px;line-height:1.65}
.earth-workspace button:not(.primary){background:var(--input);border:1px solid var(--line);border-radius:9px;color:var(--text);font-size:12px;padding:9px 12px;line-height:1.3}
.earth-workspace button:disabled{opacity:.4;cursor:default}.earth-workspace button[aria-pressed=true]{border-color:var(--gold);color:var(--gold);background:color-mix(in srgb,var(--gold) 7%,var(--input))}
.earth-workspace button:focus-visible,.earth-workspace summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.earth-view-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:21px 23px 13px}
.earth-view-header h2{font-size:17px;margin:4px 0;font-weight:500}.earth-kicker{color:var(--muted);font-size:9px;letter-spacing:1.7px}
.earth-workspace .earth-text-button{border:0;background:none;color:var(--gold);font-size:11px;padding:6px 0;white-space:nowrap}
.earth-view-tabs{display:flex;gap:6px;padding:0 22px 14px;overflow:auto}.earth-view-tabs button{flex:1;white-space:nowrap}
.earth-viewer{height:clamp(340px,calc(100dvh - 420px),520px);min-height:340px;position:relative;display:flex;align-items:center;justify-content:center;background:var(--earth-view);overflow:hidden}
#earth-surface{width:100%;height:100%;overflow:hidden;min-width:0}#earth-image{max-width:100%;max-height:100%;object-fit:contain;user-select:none;transform-origin:center;touch-action:none}#earth-fallback{height:100%;max-width:100%;width:auto;object-fit:contain;image-rendering:auto}
.earth-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;text-align:center;color:var(--muted);font-size:13px}.earth-empty img{width:110px;height:110px;object-fit:contain}
.earth-view-toolbar{display:flex;align-items:center;gap:7px;padding:12px 20px 4px;flex-wrap:wrap}.earth-workspace .earth-view-toolbar button{font-size:10px;padding:8px 9px}
.earth-compact-label{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);margin:0}.earth-compact-label select{width:auto;padding:7px 19px 7px 8px;font-size:10px;border-radius:8px;background:var(--input);border-color:var(--line)}
.earth-view-options{position:relative;border:0;padding:0;font-size:10px;margin-left:auto}.earth-view-options summary{padding:8px;color:var(--muted)}.earth-view-options>div{position:absolute;z-index:20;right:0;top:100%;width:200px;display:grid;gap:7px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--earth-panel);box-shadow:0 12px 25px #0008}
.earth-view-note{font-size:10px;color:var(--muted);padding:5px 22px 12px;margin:0;line-height:1.6}
.earth-key-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:16px 22px;border-top:1px solid var(--line);gap:16px}.earth-key-metrics strong{display:block;font-size:17px;font-weight:500;color:var(--gold);line-height:1.4}.earth-key-metrics span{display:block;font-size:9px;color:var(--muted);margin-top:4px}
.earth-layer-state{font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding:10px 22px;line-height:1.6}
.earth-workspace label{font-size:12px;margin:14px 0 7px}.earth-workspace input,.earth-workspace select,.earth-workspace textarea{background:var(--input);border-color:var(--line);color:var(--text);font-size:12px;border-radius:10px;padding:11px;width:100%;min-width:0}
.earth-workspace textarea{min-height:110px;resize:vertical;font-size:13px;line-height:1.65}
.earth-selection-row{display:flex;gap:8px}.earth-selection-row select{flex:1;width:0}.earth-workspace .earth-selection-row button{font-size:19px;width:36px;padding:4px;flex:none}
.earth-sidebar .earth-muted{color:var(--muted);font-size:10px;margin:8px 0}
.earth-context-chips{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0 21px}.earth-context-chips span{font-size:9px;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:4px 6px}.earth-context-chips .earth-connected{color:var(--gold);border-color:color-mix(in srgb,var(--gold) 50%,var(--line))}
.earth-prompts{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.earth-workspace .earth-prompts button{font-size:9px;padding:6px 7px;border-radius:6px;background:transparent;color:var(--muted)}
.earth-submit-row{display:flex;align-items:center;gap:8px;margin:12px 0 18px}.earth-workspace .earth-submit-row .primary{margin:0;padding:13px 14px;font-size:13px;background:var(--text);color:var(--bg);border-radius:10px;flex:1}.earth-submit-row #earth-stop{padding:13px 14px}
.earth-feedback{border-left:2px solid var(--gold);padding:8px 12px;margin:0 0 16px;color:var(--muted);font-size:11px!important}
.earth-answer{margin:20px 0 8px}.earth-answer>p{font-size:14px;color:var(--text);line-height:1.8}.earth-answer:focus{outline:none}
.earth-answer-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:17px 0}.earth-answer-metrics>div{border:1px solid var(--line);background:var(--input);border-radius:10px;padding:12px}.earth-answer-metrics strong{display:block;font-size:17px;font-weight:500;color:var(--gold)}.earth-answer-metrics span{display:block;font-size:9px;color:var(--muted);margin-top:5px}
.earth-workspace .earth-disclosure{padding:0;border-top:1px solid var(--line);font-size:11px}.earth-disclosure>summary{padding:15px 0;line-height:1.5;font-weight:500}.earth-disclosure>summary>span{float:right;color:var(--muted);font-size:9px;margin:2px 2px 0 8px}.earth-disclosure-body{padding-bottom:15px;min-width:0}.earth-disclosure-body>p{font-size:11px;line-height:1.7;color:var(--muted)}.earth-disclosure-body details{font-size:11px}.earth-disclosure-body ul{padding-left:17px;font-size:11px;color:var(--muted);line-height:1.8}.earth-disclosure-body pre{font-size:9px;max-height:270px;overflow:auto;color:var(--muted);overflow-wrap:anywhere;white-space:pre-wrap}
.earth-source-row{border-bottom:1px solid var(--line);padding:10px 0}.earth-source-row>span{font-size:9px;letter-spacing:.4px;color:var(--muted)}.earth-source-row p{font-size:11px;margin:4px 0;overflow-wrap:anywhere}
.earth-downloads{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}.earth-downloads a{font-size:10px}.earth-evidence-row{margin:12px 0}.earth-evidence-row a{font-size:11px}.earth-evidence-row small{display:block;font:9px/1.7 monospace;overflow-wrap:anywhere;color:var(--muted);margin-top:5px}
.earth-table-scroll{overflow:auto;max-height:330px;max-width:100%}.earth-table-scroll table{font-size:10px}.earth-table-scroll td,.earth-table-scroll th{padding:9px 5px;overflow-wrap:anywhere}
.earth-profile{padding:0 22px!important}.earth-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.earth-profile-fields label{font-size:10px}.earth-profile-fields input{font-size:11px}.earth-button-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#earth-profile-chart{width:100%;overflow:hidden}.earth-profile p{font-size:11px;color:var(--muted)}
.earth-workspace .earth-consent{display:flex;gap:8px;align-items:center;font-size:11px}.earth-consent input{width:auto;flex:none}
@media(min-width:1500px){.earth-layout{grid-template-columns:minmax(0,1.8fr) minmax(390px,1fr)}.earth-viewer{height:clamp(420px,calc(100dvh - 420px),560px)}}
@media(max-width:1100px){.earth-layout{grid-template-columns:minmax(0,1.25fr) minmax(330px,1fr);gap:18px}.earth-sidebar{padding:21px}.earth-key-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.earth-view-header{padding:18px 18px 12px}.earth-view-header h2{font-size:15px}.earth-view-tabs{padding:0 17px 12px}.earth-workspace .earth-view-tabs button{font-size:10px;padding:8px}.earth-viewer{min-height:330px}}
@media(max-width:800px){.earth-layout{grid-template-columns:1fr;gap:18px}.earth-visual{position:static;border-radius:18px}.earth-sidebar{border-radius:18px}.earth-intro p{display:none}.earth-intro h1{font-size:25px}.earth-viewer{height:340px;min-height:300px}.earth-key-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:13px 17px}.earth-key-metrics strong{font-size:14px}.earth-key-metrics span{font-size:8px}.earth-layer-state{padding:10px 17px}.earth-sidebar h2{margin-bottom:16px}.earth-view-toolbar{padding:11px 14px 4px}.earth-view-note{padding:5px 17px 12px}}
@media(max-width:420px){.earth-view-header{align-items:flex-start;gap:8px}.earth-workspace .earth-text-button{font-size:9px}.earth-view-header h2{font-size:15px}.earth-viewer{height:300px;min-height:270px}.earth-key-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.earth-view-tabs{gap:5px}.earth-workspace .earth-view-tabs button{font-size:9px;padding:8px 6px}.earth-view-toolbar{gap:6px}.earth-profile-fields{grid-template-columns:1fr}.earth-sidebar{padding:20px}.earth-disclosure>summary>span{float:none;display:block;margin:3px 0 0}.earth-context-chips{gap:5px}}
@media(prefers-reduced-motion:reduce){.earth-workspace *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
