:root {
  color-scheme: dark;
  --bg: #101317;
  --panel: #171c21;
  --panel-strong: #1e252c;
  --line: #34404a;
  --text: #e8edf0;
  --muted: #9eabb4;
  --accent: #77d2c2;
  --warning: #f0c477;
  --danger: #f18484;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.remote-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.remote-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.remote-kicker { margin: 0 0 6px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
h1, h2 { margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; }
h2 { font-size: 20px; }
.remote-subtitle, .remote-help, .remote-boundary { color: var(--muted); }
.remote-subtitle { max-width: 680px; margin: 12px 0 0; }
.remote-badge { border: 1px solid var(--accent); color: var(--accent); padding: 7px 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.remote-panel { margin-top: 20px; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.remote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.remote-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.remote-panel-heading > strong { color: var(--warning); font-size: 12px; text-transform: uppercase; }
.remote-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-strong); color: var(--text); padding: 10px 12px; outline: none; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgb(119 210 194 / 18%); }
textarea { resize: vertical; min-height: 132px; }
.remote-button { min-height: 42px; border: 1px solid var(--line); border-radius: 4px; padding: 9px 14px; font-weight: 750; }
.remote-button.primary { background: var(--accent); border-color: var(--accent); color: #10201f; }
.remote-button.quiet { background: transparent; color: var(--text); }
.remote-button.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.remote-button:disabled { cursor: not-allowed; opacity: .45; }
.remote-help, .remote-boundary { margin: 14px 0 0; font-size: 13px; }
.remote-facts { display: grid; gap: 12px; margin: 0; }
.remote-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid rgb(52 64 74 / 55%); padding-bottom: 9px; }
.remote-facts dt { color: var(--muted); }
.remote-facts dd { margin: 0; overflow-wrap: anywhere; }
.remote-check { display: flex; grid-template-columns: none; align-items: flex-start; gap: 9px; margin: 12px 0; color: var(--text); }
.remote-check input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--accent); }
.remote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.remote-busy { color: var(--accent); }
.remote-error { min-height: 24px; color: var(--danger); font-weight: 700; }
.remote-answer { margin-top: 18px; min-height: 120px; padding: 16px; border-left: 3px solid var(--accent); background: var(--panel-strong); }
.remote-answer p:last-child { white-space: pre-wrap; overflow-wrap: anywhere; }
code { color: var(--warning); }
@media (max-width: 780px) {
  .remote-shell { width: min(100% - 22px, 680px); padding-top: 26px; }
  .remote-header { display: block; }
  .remote-badge { display: inline-block; margin-top: 18px; }
  .remote-grid, .remote-form-grid { grid-template-columns: 1fr; }
  .remote-panel { padding: 17px; }
}
