.rg-shell {--rg-ink:#173936;--rg-muted:#45645d;--rg-gold:#f8c785;--rg-line:#d0ddd4;min-width:0;border:1px solid var(--rg-line);border-radius:16px;overflow:hidden;background:#fff;color:var(--rg-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.rg-shell * {box-sizing:border-box}
.rg-shell p,.rg-shell h2,.rg-shell h3 {margin:0}
.rg-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px clamp(16px,2.4vw,28px);background:#f4f7f1;border-bottom:1px solid var(--rg-line)}
.rg-kicker,.rg-map-top,.rg-stats span,.rg-bottom>p>span {font:700 .67rem/1.4 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.rg-shell .rg-kicker {color:#47756b}
.rg-kicker span {opacity:.6;margin:0 .32em}
.rg-heading h2 {margin:3px 0;font:500 clamp(1.55rem,3vw,2.2rem)/1.1 Georgia,serif;letter-spacing:-.035em}
.rg-heading>div>p:last-child:not(.rg-kicker) {max-width:34rem;color:var(--rg-muted);font-size:.9rem;line-height:1.5}
.rg-stats {display:flex;flex:none;gap:14px}
.rg-stats>div {display:grid;align-content:center;gap:2px;padding-left:14px;border-left:1px solid var(--rg-line)}
.rg-stats span {color:var(--rg-muted);font-size:.59rem;letter-spacing:.08em}
.rg-stats b {font:650 clamp(1.1rem,2.2vw,1.55rem)/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}
.rg-stats [data-low=true] {color:#a44e22}
.rg-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.35fr)}
.rg-chart {min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;color:#dbede5;background:radial-gradient(ellipse at 13% 0%,#305652 0%,transparent 65%),#173b3e;padding:10px clamp(8px,1.25vw,18px)}
.rg-map-top {display:flex;align-items:center;justify-content:space-between;gap:1em;color:#c4e2d6;font-size:.63rem;margin:0 6px 1px}
.rg-map-top span {display:flex;align-items:center;gap:7px}
.rg-map-top i {width:6px;height:6px;border-radius:50%;background:#8ad9b9;box-shadow:0 0 6px #8ad9b977}
#rg-map {position:relative;min-width:0;border-radius:7px}
#rg-map:focus-visible {outline:2px solid #ffce86;outline-offset:1px}
#rg-field {width:100%;max-height:410px;height:auto;display:block;overflow:visible}
.rg-cell-label {fill:#b7d4c7;font:600 10.5px ui-monospace,SFMono-Regular,Consolas,monospace;text-anchor:middle}
.rg-tile {stroke-width:1.1}
.rg-cell {cursor:default}
.rg-cell[data-reachable=true] {cursor:pointer}
.rg-cell[data-reachable=true] .rg-tile {stroke:#9dccbe;stroke-width:1.8}
.rg-cell[data-reachable=true]:hover .rg-tile {stroke:#ffe5aa;stroke-width:3;filter:brightness(1.16)}
#rg-rover {transition:transform .24s cubic-bezier(.18,.72,.28,1)}
.rg-path {fill:none;stroke:#f8d58e;stroke-width:2.5;stroke-dasharray:3 7;stroke-linecap:round;opacity:.65}
.rg-ring {fill:none;stroke:#ffda9a;stroke-width:1.4;stroke-dasharray:3 5;opacity:.9}
.rg-marked {fill:none;stroke:#96d9c9;stroke-width:1.4;stroke-dasharray:2 3}
.rg-land-ring {fill:none;stroke:#c4e6c6;stroke-width:1.5;stroke-dasharray:6 4;opacity:.72}
.rg-legend {display:flex;flex-wrap:wrap;gap:6px 16px;padding:2px 6px 3px;color:#d5e8da;font-size:.72rem}
.rg-legend span {display:inline-flex;align-items:center;gap:6px}
.rg-legend i {display:inline-block;width:10px;height:10px;flex:none}
.rg-legend-crystal {background:#a6f0d8;clip-path:polygon(50% 0,88% 40%,64% 100%,8% 70%,12% 31%)}
.rg-legend-storm {background:repeating-linear-gradient(130deg,#efbb7f 0 2px,transparent 2px 4px)}
.rg-legend-ridge {background:#a6bdb2;clip-path:polygon(1% 100%,37% 22%,53% 50%,72% 0,100% 100%)}
.rg-legend-lander {background:#e1efd5;clip-path:polygon(24% 65%,44% 15%,61% 15%,83% 68%,100% 100%,70% 80%,30% 80%,0 100%)}
.rg-console {align-self:center;min-width:0;padding:clamp(12px,2vw,24px)}
.rg-console h3 {margin:3px 0 6px;font:650 1.15rem/1.2 system-ui,sans-serif;letter-spacing:-.028em}
#rg-status {min-height:3.15em;color:var(--rg-muted);font-size:.88rem;line-height:1.5}
.rg-shell button {font:620 .82rem/1.25 system-ui,sans-serif;min-height:38px;border:1px solid #c6d5c9;color:#23453f;background:#f5f8f3;border-radius:7px;cursor:pointer}
.rg-shell button:hover:not(:disabled) {background:#e6f1e9;border-color:#70a89b}
.rg-shell button:focus-visible,.rg-shell a:focus-visible,.rg-shell summary:focus-visible {outline:3px solid #ac671c;outline-offset:2px}
.rg-shell button:disabled {opacity:.46;cursor:default}
.rg-pad {display:grid;grid-template-columns:repeat(3,minmax(35px,54px));grid-template-rows:repeat(2,41px);justify-content:center;gap:4px;margin:12px 0 6px}
.rg-pad button {padding:2px 3px;display:grid;place-content:center;gap:0}
.rg-pad button span {font-size:1.05rem;line-height:1.1}
.rg-pad small {font-size:.58rem;font-weight:650}
.rg-pad [data-rg-dir=N] {grid-column:2;grid-row:1}
.rg-pad [data-rg-dir=W] {grid-column:1;grid-row:2}
.rg-pad [data-rg-dir=S] {grid-column:2;grid-row:2}
.rg-pad [data-rg-dir=E] {grid-column:3;grid-row:2}
.rg-control-note {font-size:.72rem;line-height:1.4;color:var(--rg-muted)}
.rg-tools {display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 7px}
.rg-tools button {font-size:.78rem;padding:5px 10px;min-height:33px}
.rg-trace-link {font-size:.78rem;font-weight:650;color:#19635a;text-underline-offset:3px}
.rg-bottom {display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:10px clamp(14px,2vw,24px);background:#f8faf6;border-top:1px solid var(--rg-line);font-size:.8rem}
.rg-bottom>p {min-width:0;display:flex;align-items:baseline;gap:10px}
.rg-bottom>p>span {color:var(--rg-muted);font-size:.6rem}
.rg-bottom output {font-size:.78rem;line-height:1.45;overflow-wrap:anywhere}
.rg-bottom details {flex:0 0 auto;max-width:min(65%,420px)}
.rg-bottom summary {cursor:pointer;color:#26655d;font-weight:650;text-align:right;font-size:.78rem}
.rg-bottom details p {margin-top:6px;color:var(--rg-muted);line-height:1.4}
.rg-shell[data-status=won] #rg-status-title {color:#137054}
.rg-shell[data-status=stalled] #rg-status-title,.rg-shell[data-status=depleted] #rg-status-title,.rg-shell[data-status=error] #rg-status-title {color:#9b4d26}
.rg-reader {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
@media(max-width:760px) {
  .rg-layout {grid-template-columns:minmax(0,1fr)}
  .rg-console {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:start}
  .rg-console>.rg-kicker,.rg-console>h3,.rg-console>#rg-status,.rg-console>.rg-control-note {grid-column:1}
  .rg-console .rg-pad {grid-column:2;grid-row:1/5;align-self:center;margin:0}
  .rg-console .rg-tools {grid-column:1;grid-row:5;margin:6px 0 0}
  .rg-console .rg-trace-link {grid-column:2;grid-row:5;align-self:center;text-align:center}
  #rg-status {min-height:0}
}
@media(max-width:500px) {
  .rg-heading {display:grid;gap:10px;padding:13px 14px}
  .rg-stats>div {padding-left:0;border-left:0;display:flex;align-items:center;gap:5px}
  .rg-stats {gap:12px}
  .rg-stats b {font-size:.95rem}
  .rg-stats span {font-size:.58rem}
  .rg-console {padding:13px 12px}
  .rg-pad {grid-template-columns:repeat(3,42px);grid-template-rows:repeat(2,42px)}
  .rg-cell-label {font-size:15px}
  .rg-control-note {font-size:.68rem}
  .rg-legend {gap:4px 12px;font-size:.67rem}
  .rg-bottom details {max-width:54%}
}
@media(prefers-reduced-motion:reduce) {#rg-rover {transition:none}}
