/* RobotControl's look (frontend/src/theme.ts, design system A) for the Worker's two pages. */
:root {
  --bg: #ECEEF1; --paper: #FFFFFF; --head: #F6F7F9; --head-line: #DDE1E6; --row-line: #EEF0F3; --line: #D5DAE0;
  --fg: #15191F; --muted: #5A6372; --label: #4A5260; --primary: #1B5FC1; --on-primary: #FFFFFF;
  --neu-bg: #EEF0F3; --neu-fg: #4A5260; --bad-fg: #A3261B; --bad-line: #E3B4AE;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1217; --paper: #171B22; --head: #1C212A; --head-line: #2A313C; --row-line: #222831; --line: #2C333E;
    --fg: #E6E9EE; --muted: #9CA5B3; --label: #AEB6C3; --primary: #6FA8F5; --on-primary: #0A1220;
    --neu-bg: #232933; --neu-fg: #C3CAD4; --bad-fg: #F4A097; --bad-line: #5A2A26; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/20px "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
h1 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; }
.page { max-width: 1120px; margin: 0 auto; padding: 24px max(16px, 3vw) 40px; display: grid; gap: 16px; }
.narrow { max-width: 480px; min-height: 100dvh; align-content: center; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px;
  padding: 0 16px; background: var(--head); border-bottom: 1px solid var(--head-line); }
.panel-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 16px; text-transform: uppercase; color: var(--label); }
.panel-body { padding: 16px; display: grid; gap: 16px; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--label); }
input, textarea { font: inherit; color: var(--fg); background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 9px 12px; min-height: 40px; }
textarea { min-height: 72px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
button { font: inherit; font-weight: 500; border-radius: 4px; min-height: 36px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--primary); background: var(--paper); color: var(--primary); }
button.primary { background: var(--primary); color: var(--on-primary); }
button.danger { border-color: var(--bad-line); color: var(--bad-fg); }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--primary); }
.error { margin: 0; color: var(--bad-fg); }
.muted { color: var(--muted); }
.mono { font-family: "IBM Plex Mono", Consolas, monospace; font-size: 13px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip.neu { background: var(--neu-bg); color: var(--neu-fg); }
.rows { display: grid; }
/* Each row is its own grid, so every column has a set width; the last one fits Decline and Approve. */
.row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 1.3fr) minmax(0, 1.4fr) 120px 200px; gap: 16px;
  align-items: center; min-height: 48px; padding: 6px 16px; border-bottom: 1px solid var(--row-line); }
.row:last-child { border-bottom: 0; }
.row.head { min-height: 32px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.row > * { min-width: 0; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; justify-content: flex-end; }
.row .wide { grid-column: 1 / 5; }
.empty { padding: 12px 16px; color: var(--muted); }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; }
  .row.head { display: none; }
  .row .wide { grid-column: 1 / -1; }
}
