/* Essentials-only Re-entry card: what it is, where it comes down, when. Everything else lives in the data drawer. */
#pg-reentry.re-simple .rt-headline,#pg-reentry.re-simple .rt-title,#pg-reentry.re-simple .rt-h1,#pg-reentry.re-simple .rt-sum,
#pg-reentry.re-simple .rt-src,#pg-reentry.re-simple .rt-state,#pg-reentry.re-simple .rt-pair .rt-mini:nth-child(2){display:none}
#pg-reentry.re-simple .rt-card{gap:8px}
#pg-reentry.re-simple .rt-card>.rt-card-top{order:0}#pg-reentry.re-simple .rt-card>h2{order:1}#pg-reentry.re-simple .rt-card>.rt-meta{order:2}
#pg-reentry.re-simple .rt-card>.rt-pair{order:3}#pg-reentry.re-simple .rt-card>.rt-when{order:4}#pg-reentry.re-simple .rt-card>.rt-local{order:5}
#pg-reentry.re-simple .rt-card>#rt-countdown{order:6}#pg-reentry.re-simple .rt-card>.rt-bar{order:7}#pg-reentry.re-simple .rt-card>.rt-actions{order:8}
#pg-reentry.re-simple .rt-pair .rt-mini{border-color:color-mix(in srgb,var(--amber) 55%,transparent);padding:8px 11px}
#pg-reentry.re-simple .rt-pair .rt-mini b{font-size:14px;color:var(--amber)}
#pg-reentry.re-simple .rt-count>div{height:44px}
#pg-reentry.re-simple .rt-actions .rt-btn{padding:6px 10px;font-size:11px}
#pg-reentry.re-simple .re-compact-panel{overflow-y:auto;scrollbar-width:thin}
@media(min-width:1100px){#pg-reentry.re-simple .re-compact{grid-template-columns:clamp(320px,21vw,400px) minmax(0,1fr)}}
.re-data-table-wrap .mini[data-re-tle]{margin-top:5px;font-size:10px;padding:2px 7px}
.tle-dialog{width:min(560px,92vw);border:1px solid var(--line2);border-radius:var(--r-md);background:var(--panel);color:var(--ink);padding:0}
.tle-dialog::backdrop{background:rgba(2,8,16,.6)}
.tle-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);margin:0}
.tle-head h3{margin:4px 0 0;font:600 16px var(--f-head)}.tle-head button{border:1px solid var(--line);background:var(--panel2);color:var(--ink);border-radius:var(--r-sm);padding:4px 9px;cursor:pointer}
.tle-body{padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.tle-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0}.tle-meta dt{font:9px var(--f-mono);color:var(--muted)}.tle-meta dd{margin:2px 0 0;font:600 13px var(--f-mono)}.tle-meta dd.stale,.tle-err{color:var(--amber)}
.tle-lines{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--panel2);font:11px/1.6 var(--f-mono);overflow-x:auto;white-space:pre;user-select:all}
.tle-actions{display:flex;gap:8px;flex-wrap:wrap}.tle-actions .mini{text-decoration:none;cursor:pointer}.tle-note,.tle-load{margin:0;font-size:11px;color:var(--muted)}
@media(max-width:600px){.tle-meta{grid-template-columns:1fr 1fr}}

/* ---- Globe / map controls: Thailand Focus pill, centre, zoom ---- */
.re-ctl-bottom{position:absolute;z-index:7;left:50%;bottom:16px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:5px;border:1px solid var(--line2);border-radius:999px;background:rgba(7,12,24,.78);backdrop-filter:blur(8px)}
.re-ctl-side{position:absolute;z-index:7;right:14px;bottom:70px;display:flex;flex-direction:column;gap:6px}
.re-ctl-bottom button,.re-ctl-side button{border:1px solid var(--line2);background:rgba(10,22,38,.85);color:var(--ink);border-radius:999px;padding:7px 13px;font:600 12px var(--f-body);cursor:pointer;pointer-events:auto}
.re-ctl-side button{width:38px;height:38px;padding:0;border-radius:var(--r-md);font-size:18px;color:var(--cyan)}
.re-ctl-bottom button:hover,.re-ctl-side button:hover,.re-ctl-bottom button:focus-visible,.re-ctl-side button:focus-visible{border-color:var(--cyan);color:var(--cyan)}
.re-ctl-bottom .re-play{display:inline-flex!important;align-items:center;background:var(--cyan);color:#06101b;border-color:var(--cyan)}

/* ---- Header: search lives next to the title ---- */
.re-monitor-head .re-search-wrap{flex:1 1 320px;max-width:520px;margin:0 auto;position:relative}
.re-monitor-head .re-search-wrap input{width:100%}
.re-monitor-head .re-search-results{z-index:60}

/* ---- Wide screens: two balanced columns (card | map), table below ---- */
@media(min-width:1280px){
 body.workspace-mode #pg-reentry.re-simple{position:absolute;top:var(--ws-head-bottom,184px);left:0;right:0;bottom:0;height:auto;padding:4px 14px 150px!important;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
 #pg-reentry.re-simple .re-monitor-head{display:flex;align-items:center;gap:18px}
 #pg-reentry.re-simple .re-monitor-head h1{font-size:22px}
 #pg-reentry.re-simple .re-compact{display:grid;flex:none;height:clamp(440px,64vh,640px);grid-template-columns:clamp(340px,25vw,430px) minmax(0,1fr);gap:12px;width:100%;max-width:1760px;margin-inline:auto}
 #pg-reentry.re-simple .re-compact-stage{position:relative;inset:auto;height:auto;min-height:0}
 #pg-reentry.re-simple .re-scene-bottom{left:14px;right:auto;bottom:16px;width:auto;max-width:250px;padding:9px 12px}
 #pg-reentry.re-simple .re-scene-legend{flex-direction:column;align-items:flex-start;gap:5px}
 #pg-reentry.re-simple .re-scene-bottom #re-scene-note,#pg-reentry.re-simple .re-scene-bottom .re-replay,#pg-reentry.re-simple .re-scene-bottom .mc-kicker{display:none}
 #pg-reentry.re-simple .re-scene-readout{left:14px;top:14px}
 #pg-reentry.re-simple .re-scene-top{top:14px;right:14px;left:auto}
 #pg-reentry.re-simple .re-map-forecast{display:none}
 #re-data-drawer .re-data-content{max-height:none!important;overflow:visible!important}
}
/* ---- Next / nearby table ---- */
.re-next-table{width:100%;border-collapse:collapse;font-size:12px}.re-next-table th{font:9px var(--f-mono);color:var(--muted);text-align:left;padding:7px 10px;border-bottom:1px solid var(--line);background:var(--pill)}
.re-next-table td{padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:middle}.re-next-table tr.on td{background:var(--pill)}.re-next-table tr[data-row-id]{cursor:pointer}.re-next-table tr[data-row-id]:hover td{background:var(--pill)}
.re-next-table .re-data-day th{background:transparent;color:var(--amber);font:600 10px var(--f-body);padding-top:14px}
.re-next-table small{display:block;color:var(--muted);font:9px var(--f-mono);margin-top:2px}.re-next-table b{font-size:13px}
.re-next-table .chip{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:2px 8px;font:600 10px var(--f-mono);color:var(--amber);white-space:nowrap}.re-next-table .chip.orbit{color:var(--muted)}
.re-next-table .mini{margin-left:5px}

/* 3D forecast point: label card that follows the globe (anchored by globe.gl), pointer-transparent. */
.re-globe-tip{pointer-events:none;transform:translate(26px,-135%);min-width:170px;padding:8px 11px;border:1px solid #ffb560;border-radius:var(--r-md);background:rgba(7,12,24,.86);box-shadow:0 6px 24px rgba(0,0,0,.5),0 0 14px rgba(255,170,80,.25);color:#f3f6fb;display:flex;flex-direction:column;gap:3px;white-space:nowrap}
.re-globe-tip .rt-kick{font:700 10px var(--f-mono);color:#ffcf6b;letter-spacing:.08em}.re-globe-tip b{font:600 12px var(--f-mono)}.re-globe-tip b i{font-style:normal;color:#ffb560}.re-globe-tip small{font-size:11px;color:#c6d0e0}
#pg-reentry.re-simple .re-compact-panel{align-self:start;max-height:100%}
@media(min-width:1280px){#pg-reentry.re-simple{padding-bottom:90px}}

/* ---- Concept C: data-trust column (wide screens only) ---- */
.re-trust{display:none}
@media(min-width:1280px){
 #pg-reentry.re-simple .re-compact{grid-template-columns:clamp(320px,23vw,400px) minmax(0,1fr) clamp(240px,17vw,310px)}
 .re-trust{display:flex;flex-direction:column;gap:6px;min-height:0;overflow-y:auto;scrollbar-width:thin;border:1px solid var(--line2);border-radius:var(--r-md);background:var(--panel);padding:14px}
}
.re-trust:empty{display:none}
.re-trust h3{margin:0 0 6px;font:600 13px var(--f-head)}
.rtr-row{display:flex;flex-direction:column;gap:1px;margin-top:6px}.rtr-row span{font-size:11px;color:var(--muted)}.rtr-row b{font:500 12.5px var(--f-mono);overflow-wrap:anywhere}
.rtr-row b.cy{color:var(--cyan)}.rtr-row b.mu{color:var(--muted)}.rtr-row b.warn{color:var(--amber)}
.rtr-sub{font-size:11px;color:var(--muted);line-height:1.5;margin:-2px 0 8px}
.rtr-k{font:10px var(--f-mono);color:var(--muted);letter-spacing:.06em;margin-top:6px}
.rtr-bars{display:flex;align-items:flex-end;gap:4px;height:56px;border-bottom:1px solid var(--line)}.rtr-bars i{flex:1;background:var(--amber);border-radius:var(--r-sm) var(--r-sm) 0 0;opacity:.85;min-height:3px}
.rtr-axis{display:flex;justify-content:space-between;font:10px var(--f-mono);color:var(--muted)}

.tle-jd{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.tle-jd div{padding:8px 10px;border:1px solid #ffbd7455;border-radius:var(--r-md);background:#ffbd7414}.tle-jd small{display:block;font:9px var(--f-mono);color:var(--muted)}.tle-jd b{font:700 15px var(--f-mono);color:#ffd24a}.st-jd{color:#ffd24a;font-family:var(--f-mono)}

.rtr-src{margin-top:8px;padding-top:8px;border-top:1px solid #ffffff1a}.rtr-src a{color:#8fd0ff}
