#view-geo,#view-geo-report{max-width:1160px;margin:0 auto}
.geo-input-card{margin-top:18px;border-color:rgba(217,169,92,.3)}
.geo-input-card h3{margin:0 0 18px}
.geo-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 18px;align-items:end}
.geo-form-grid .field{display:flex;flex-direction:column;gap:7px;color:var(--txt-2);font-size:12px}
.geo-form-grid .field b{color:#e8ad62}.geo-form-grid .field small{color:var(--txt-3);font-size:11px}
.geo-form-grid input{width:100%;min-height:42px;border:1px solid rgba(200,167,111,.26);border-radius:9px;background:rgba(12,10,7,.7);color:var(--txt-1);padding:0 13px;outline:none}
.geo-form-grid input:focus{border-color:#d3a356;box-shadow:0 0 0 2px rgba(211,163,86,.12)}
.geo-site-field{grid-column:1}.geo-submit{grid-column:2;min-height:42px}
.geo-note,.geo-report-notice{margin:13px 0 0;color:var(--txt-3);font-size:11.5px;line-height:1.7}
.geo-task-list{display:grid;gap:12px;margin-top:16px}
.geo-task-card{padding:18px 20px;border:1px solid rgba(200,167,111,.22);border-radius:14px;background:linear-gradient(145deg,rgba(48,38,20,.94),rgba(30,24,14,.96))}
.geo-task-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.geo-task-head strong{font-size:15px;color:var(--txt-1)}
.geo-task-head p,.geo-task-sub{margin:5px 0 0;color:var(--txt-3);font-size:11.5px}.geo-task-state{color:#e9c27e;font-size:12px;white-space:nowrap}
.geo-task-state.completed{color:#6fcea0}.geo-task-state.failed{color:#ef8175}
.geo-task-progress{height:4px;border-radius:9px;background:rgba(255,255,255,.08);overflow:hidden;margin:15px 0 12px}.geo-task-progress i{display:block;height:100%;background:linear-gradient(90deg,#d6a653,#f0d18e);transition:width .3s}
.geo-task-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--txt-3);font-size:11.5px}.geo-task-footer .btn{white-space:nowrap}
.geo-empty{padding:22px 16px;color:var(--txt-3);text-align:center;border:1px solid var(--hair);border-radius:12px}
.geo-report-header{align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.geo-report-actions{display:flex;gap:8px;flex-wrap:wrap}
.geo-report-body{display:grid;gap:14px;margin-top:18px}.geo-report-notice{margin:0;padding:13px 16px;border:1px solid rgba(225,177,92,.34);border-radius:11px;background:rgba(110,78,25,.18);color:#e8c98f}
.geo-report-summary{padding:20px;border:1px solid rgba(200,167,111,.3);border-radius:14px;background:linear-gradient(145deg,rgba(54,42,22,.96),rgba(29,23,14,.96))}
.geo-report-summary h2{margin:0 0 9px;font-size:19px;color:var(--txt-1)}.geo-report-summary p{margin:0;color:var(--txt-2);line-height:1.75;font-size:13px}
.geo-score-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.geo-score-chip{min-width:130px;padding:9px 12px;border:1px solid rgba(200,167,111,.22);border-radius:9px;background:rgba(10,9,7,.25);color:var(--txt-2);font-size:11.5px}.geo-score-chip b{display:block;margin-top:3px;color:#edc77d;font-size:18px}
.geo-report-section{overflow:hidden;border:1px solid rgba(200,167,111,.22);border-radius:13px;background:rgba(43,34,19,.78)}.geo-report-section>header{padding:13px 16px;border-bottom:1px solid rgba(200,167,111,.18);color:#edcf98;font-size:14px;font-weight:700}
.geo-report-content{padding:14px 16px;display:grid;gap:10px}.geo-data-card{padding:11px 13px;border:1px solid rgba(200,167,111,.15);border-radius:9px;background:rgba(12,10,7,.22);min-width:0}
.geo-data-card h4{margin:0 0 8px;color:var(--txt-1);font-size:12.5px;overflow-wrap:anywhere}.geo-data-card p{margin:4px 0;color:var(--txt-2);font-size:11.5px;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}
.geo-data-label{color:var(--txt-3)}.geo-data-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px}.geo-sources{display:grid;gap:8px}
.geo-source a{color:#e6bd73;text-decoration:none;overflow-wrap:anywhere}.geo-source a:hover{text-decoration:underline}
.geo-report-paper{width:100%;max-width:1120px;margin:0 auto;padding:46px 50px 42px;background:#fefcf9;color:#4a3d27;border:1px solid #efe8dc;border-radius:16px;box-shadow:0 18px 70px #130e0333;line-height:1.75}
.geo-report-paper .insight-cover{border-color:#c8af83;padding-bottom:20px}.geo-report-paper .insight-cover h1{color:#46381f;font-size:32px;margin:9px 0}.geo-report-paper .insight-cover>p{margin:4px 0;color:#76664b}.geo-report-paper .insight-kpis>div{background:#faf6ef;border-color:#efe8dd}.geo-report-paper .insight-kpis strong{color:#987944}.geo-report-paper .rep-sum{padding:22px;margin:22px 0;background:#fbf6ed;border:1px solid #efe8dd;border-radius:10px}.geo-report-paper .rep-sum h2{margin:0 0 12px;color:#46381f}.geo-report-paper .rep-sum h3,.geo-report-paper h3{margin:18px 0 8px;color:#5c4b2d;font-size:14px}.geo-report-paper .rep-sum p{line-height:1.9}.geo-report-paper .insight-viz{margin:22px 0;background:#fff;border-color:#efe8dc}.geo-report-paper .insight-section{background:#fff;border-color:#efe8dc;padding:0 18px}.geo-report-paper .insight-section>summary{color:#5c4b2d}.geo-report-paper .insight-section[open]{box-shadow:0 6px 18px #6e5c3c08}.geo-report-paper .insight-section>summary span{color:#8a795e}.geo-report-paper .insight-sources{margin-top:28px}.geo-report-paper .insight-sources>h2{color:#46381f}.geo-report-paper .insight-sources>p,.geo-report-muted{color:#81745e;font-size:12px}.geo-report-warning{padding:13px 16px;margin-top:18px;border:1px solid #ddc99e;border-radius:9px;background:#fbf6e9;color:#795e2c;font-size:12px}.geo-report-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:9px;margin:12px 0 18px}.geo-report-metrics>div{padding:11px 13px;border:1px solid #efe8dd;border-radius:8px;background:#faf6ef}.geo-report-metrics strong{display:block;font-size:18px;color:#987944}.geo-report-metrics span{font-size:11px;color:#786b56}.geo-report-bars{display:grid;gap:10px;margin:12px 0 18px}.geo-report-bar{display:grid;grid-template-columns:minmax(100px,180px) minmax(80px,1fr) 32px;gap:10px;align-items:center;font-size:12px}.geo-report-bar>div{height:8px;border-radius:5px;background:#eee9df;overflow:hidden}.geo-report-bar i{display:block;height:100%;border-radius:5px;background:#d7b984}.geo-report-bar>b{text-align:right;color:#78613b}.geo-report-list{margin:8px 0 14px;padding-left:22px;color:#514532}.geo-report-list li{padding:3px 0;line-height:1.75}.geo-profile-groups,.geo-report-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 18px}.geo-profile-groups>article,.geo-report-actions-grid>article{min-width:0;padding:15px 16px;border:1px solid #eee6d9;border-radius:9px;background:#fffcf5}.geo-profile-groups h4{font-size:12px;color:#6b5734;margin:14px 0 6px}.geo-profile-groups p{overflow-wrap:anywhere}.geo-profile-highlight{font-weight:650;color:#5b4728}.geo-competitor-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.geo-competitor-head>span,.geo-report-actions-grid>article>span{font-size:11px;color:#95662c}.geo-report-table-wrap{width:100%;overflow-x:auto;margin:12px 0 18px}.geo-report-paper table{min-width:540px;margin:0;border:1px solid #e7dfd0}.geo-report-paper th{background:#f6f0e4;color:#604d2d}.geo-report-paper td{background:#fff;color:#4a3d27}.geo-report-paper tr:nth-child(even) td{background:#fcfaf6}.geo-question-results>article{padding:14px 0;border-top:1px solid #ece5d9}.geo-question-results>article>b{display:block;color:#4b3c23}.geo-report-footnote{padding-top:16px;margin-top:28px;border-top:1px solid #e8dfce;font-size:11px;color:#85775f}.geo-report-paper .insight-sources a,.geo-report-paper .geo-report-table-wrap a{color:#8d6b32;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
@media(max-width:680px){.geo-form-grid{grid-template-columns:1fr}.geo-site-field,.geo-submit{grid-column:1}.geo-task-card{padding:15px}.geo-report-summary{padding:16px}.geo-report-section>header,.geo-report-content{padding-left:13px;padding-right:13px}.geo-task-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.geo-report-paper{padding:24px 18px 28px;border-radius:12px}.geo-report-paper .insight-cover h1{font-size:27px}.geo-report-paper .insight-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.geo-profile-groups,.geo-report-actions-grid{grid-template-columns:1fr}.geo-report-bar{grid-template-columns:100px minmax(50px,1fr) 26px}.geo-report-paper .insight-section{padding:0 12px}.geo-report-paper .insight-section>summary{padding:14px 0}.geo-report-warning{line-height:1.8}}
@media print{body:has(#view-geo-report.on) *{visibility:hidden!important}#view-geo-report.on,#view-geo-report.on *{visibility:visible!important}#view-geo-report.on{position:absolute;inset:0;max-width:none!important;padding:18px!important;background:#fff!important;color:#222!important}.geo-report-actions{display:none!important}.geo-report-section,.geo-report-summary{break-inside:avoid;background:#fff!important;border-color:#aaa!important}.geo-report-section>header,.geo-report-summary h2,.geo-report-summary p,.geo-data-card h4,.geo-data-card p,.geo-data-label{color:#222!important}}

.geo-history{width:min(680px,94vw);max-height:80vh;margin:auto;padding:24px;border:1px solid var(--hair2);border-radius:14px;background:var(--ui-field,#231b12);color:var(--txt-1,#f3ede3)}
.geo-history::backdrop{background:rgba(0,0,0,.65)}
.geo-history header,.geo-history article{display:flex;justify-content:space-between;align-items:center;gap:16px}
.geo-history article{border-top:1px solid var(--hair2);padding:12px 0}.geo-history-list{margin-top:16px}

/* Keep the history entry aligned across accounts and viewport sizes. */
#view-geo > .vhead{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;width:100%}
#view-geo > .vhead > div{min-width:0}
#view-geo #geo-history{justify-self:end;white-space:nowrap}
