/* AIOS dashboard design system (D-035). Dark by default, light via prefers-color-scheme or data-theme. */
:root {
  --bg: #0b0f17; --bg2: #0f1521; --panel: #131a28; --panel2: #182134; --line: #233049; --line2: #2c3b59;
  --text: #e6ebf5; --muted: #93a0b8; --faint: #66738c;
  --accent: #7aa2ff; --accent2: #5be3b0; --accent-ink: #0b0f17;
  --ok: #3ccf91; --warn: #f2b84b; --crit: #ff5d6c; --unk: #8a94a8; --info: #6cb6ff;
  --ok-bg: rgba(60,207,145,.12); --warn-bg: rgba(242,184,75,.13); --crit-bg: rgba(255,93,108,.13); --unk-bg: rgba(138,148,168,.13);
  --info-bg: rgba(108,182,255,.12);
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: 232px; --top: 56px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fb; --bg2: #eef1f8; --panel: #ffffff; --panel2: #f6f8fc; --line: #dfe5f0; --line2: #cfd8e8;
    --text: #141a26; --muted: #5a6780; --faint: #8592a8; --accent: #3563e9; --accent2: #0e9f6e; --accent-ink: #fff;
    --shadow: 0 1px 2px rgba(20,26,38,.06), 0 6px 18px rgba(20,26,38,.06);
  }
}
:root[data-theme="light"] {
  --bg: #f4f6fb; --bg2: #eef1f8; --panel: #ffffff; --panel2: #f6f8fc; --line: #dfe5f0; --line2: #cfd8e8;
  --text: #141a26; --muted: #5a6780; --faint: #8592a8; --accent: #3563e9; --accent2: #0e9f6e; --accent-ink: #fff;
  --shadow: 0 1px 2px rgba(20,26,38,.06), 0 6px 18px rgba(20,26,38,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.noscript { padding: 2rem; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
pre { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; overflow: auto;
      white-space: pre-wrap; word-break: break-word; max-height: 480px; margin: 8px 0; }
code { background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; }
pre code { border: 0; padding: 0; background: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--bg2); border-right: 1px solid var(--line);
        display: flex; flex-direction: column; padding: 14px 10px; gap: 4px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 26px; height: 26px; }
.brand small { display: block; font-weight: 500; color: var(--faint); font-size: 11px; letter-spacing: .04em; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--panel2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav a .count { margin-left: auto; font-size: 11px; background: var(--crit); color: #fff; border-radius: 999px; padding: 0 7px; }
.nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.side-foot { margin-top: auto; padding: 10px 8px 4px; color: var(--faint); font-size: 12px; display: grid; gap: 6px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 20px;
       background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 17px; margin: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .spacer { flex: 1; }
.menu-btn { display: none; }
.content { padding: 20px; max-width: 1440px; width: 100%; margin: 0 auto; }
.content.full { max-width: none; padding: 0; height: calc(100vh - var(--top)); }
.banner { padding: 10px 20px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner.stop { background: var(--crit); color: #fff; }
.banner.dev { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--line); font-weight: 500; }

/* ---------- primitives */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line2);
       background: var(--panel); cursor: pointer; font-weight: 550; white-space: nowrap; }
.btn:hover { background: var(--panel2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--crit); border-color: var(--crit); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--panel); color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.estop { background: var(--crit); border-color: var(--crit); color: #fff; font-weight: 750; letter-spacing: .04em; }
.btn.estop.active { background: transparent; color: var(--crit); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card h2, .card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card h2 .right, .card h3 .right { margin-left: auto; font-weight: 500; }
.card.flush { padding: 0; }
.card.flush > h2, .card.flush > h3 { padding: 14px 16px 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 10px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
         border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.s-healthy, .s-COMPLETED { color: var(--ok); background: var(--ok-bg); }
.s-warning, .s-WAITING_USER, .s-BLOCKED { color: var(--warn); background: var(--warn-bg); }
.s-critical, .s-FAILED { color: var(--crit); background: var(--crit-bg); }
.s-unknown, .s-CANCELLED { color: var(--unk); background: var(--unk-bg); }
.s-RUNNING, .s-info { color: var(--info); background: var(--info-bg); }
.s-QUEUED { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.s-RUNNING::before { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--unk); flex: none; }
.dot.healthy { background: var(--ok); } .dot.warning { background: var(--warn); } .dot.critical { background: var(--crit); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: var(--panel2); }
.table-wrap { overflow-x: auto; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty .icon { width: 30px; height: 30px; margin-bottom: 8px; color: var(--faint); }
.loading { padding: 24px; color: var(--muted); display: flex; gap: 10px; align-items: center; justify-content: center; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { border: 1px solid color-mix(in srgb, var(--crit) 45%, var(--line)); background: var(--crit-bg); color: var(--text);
             border-radius: var(--radius-sm); padding: 12px 14px; }
.note { border: 1px solid var(--line); background: var(--panel2); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--muted); font-size: 13px; }
.note.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-bg); color: var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; font-size: 13px; color: var(--muted); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
input[type=text], input[type=search], input[type=number], select, textarea {
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 9px; padding: 7px 10px; min-height: 34px; width: 100%; }
textarea { resize: vertical; min-height: 80px; }
label.field { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
label.field > span { font-weight: 600; }
.bar { height: 8px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar.warning > i { background: var(--warn); } .bar.critical > i { background: var(--crit); } .bar.healthy > i { background: var(--ok); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 12px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-weight: 550; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- metric tiles */
.tile { display: grid; gap: 6px; }
.tile .label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.tile .value { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.tile .value small { font-size: 13px; color: var(--muted); font-weight: 500; }
.hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero .big { font-size: 22px; font-weight: 750; }
.hero-status { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.hero-status.healthy { background: var(--ok-bg); color: var(--ok); } .hero-status.warning { background: var(--warn-bg); color: var(--warn); }
.hero-status.critical { background: var(--crit-bg); color: var(--crit); } .hero-status.unknown { background: var(--unk-bg); color: var(--unk); }
.list { display: grid; }
.list .item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list .item:last-child { border-bottom: 0; }
.list .item .grow { flex: 1; min-width: 0; }
.list .item .title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- timeline */
.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl:last-child { border-bottom: 0; }
.tl .ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--panel2); color: var(--muted); }
.tl .ico.ok { color: var(--ok); background: var(--ok-bg); } .tl .ico.warn { color: var(--warn); background: var(--warn-bg); }
.tl .ico.crit { color: var(--crit); background: var(--crit-bg); } .tl .ico.info { color: var(--info); background: var(--info-bg); }
.tl .ico.mgr { color: var(--accent2); background: color-mix(in srgb, var(--accent2) 14%, transparent); }
.tl .what { font-weight: 550; } .tl .detail { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.tl time { color: var(--faint); font-size: 12px; white-space: nowrap; }

/* ---------- chat */
.chat { display: grid; grid-template-columns: 260px 1fr 300px; height: 100%; min-height: 0; }
.chat-list { border-right: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; min-height: 0; }
.chat-list .head { padding: 12px; display: flex; gap: 8px; }
.chat-list .convs { overflow-y: auto; padding: 0 8px 12px; }
.conv { display: block; padding: 9px 10px; border-radius: 9px; color: var(--text); margin-bottom: 2px; }
.conv:hover { background: var(--panel); text-decoration: none; }
.conv.on { background: var(--panel2); box-shadow: inset 2px 0 0 var(--accent); }
.conv .t { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .m { color: var(--faint); font-size: 12px; }
.thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.messages { flex: 1; overflow-y: auto; padding: 22px max(16px, calc((100% - 820px) / 2)); display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; max-width: 100%; }
.msg .av { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 12px; }
.msg.user { flex-direction: row-reverse; }
.msg.user .av { background: var(--panel2); color: var(--muted); }
.msg.assistant .av { background: color-mix(in srgb, var(--accent2) 18%, transparent); color: var(--accent2); }
.msg .bubble { padding: 10px 14px; border-radius: 14px; min-width: 0; max-width: min(680px, 100%); overflow-wrap: anywhere; }
.msg.user .bubble { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.assistant .bubble { background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .bubble p { margin: 0 0 8px; } .msg .bubble p:last-child { margin-bottom: 0; }
.msg .bubble ul, .msg .bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.msg .bubble h4 { margin: 8px 0 4px; font-size: 14px; }
.msg .meta { font-size: 11px; color: var(--faint); margin-top: 4px; }
.toolrow { align-self: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 720px; }
.toolchip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 3px 10px; border-radius: 999px;
            background: var(--panel); border: 1px dashed var(--line2); color: var(--muted); }
.toolchip.err { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 40%, var(--line)); }
.eventcard { align-self: center; width: min(640px, 100%); display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px;
             border: 1px solid var(--line); background: var(--bg2); font-size: 13px; }
.eventcard.err { border-color: color-mix(in srgb, var(--crit) 40%, var(--line)); background: var(--crit-bg); }
.livebar { align-self: flex-start; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; padding-left: 40px; }
.composer { border-top: 1px solid var(--line); padding: 12px max(16px, calc((100% - 820px) / 2)) calc(12px + env(safe-area-inset-bottom)); background: var(--bg); }
.composer form { display: flex; gap: 8px; align-items: flex-end; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 6px 6px 6px 12px; }
.composer textarea { border: 0; background: transparent; min-height: 24px; max-height: 200px; padding: 6px 0; resize: none; }
.composer textarea:focus { outline: none; }
.composer .hint { font-size: 11px; color: var(--faint); margin-top: 6px; text-align: center; }
.chat-side { border-left: 1px solid var(--line); background: var(--bg2); padding: 14px; overflow-y: auto; }
.chat-side h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 6px 0 10px; }
.welcome { margin: auto; text-align: center; max-width: 520px; color: var(--muted); }
.welcome h2 { color: var(--text); font-size: 22px; margin: 6px 0; }
.suggest { display: grid; gap: 8px; margin-top: 16px; }
.suggest button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; }
.suggest button:hover { border-color: var(--accent); }

/* ---------- files */
.crumbs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.crumbs button { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.crumbs button:hover { background: var(--panel2); }
.crumbs .sep { color: var(--faint); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.fcell { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--panel); cursor: pointer; display: grid; gap: 6px; justify-items: start; min-width: 0; }
.fcell:hover, .fcell.sel { border-color: var(--accent); }
.fcell .name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ftype { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--panel2); color: var(--muted); }
.ftype.dir { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ftype.img { color: var(--accent2); } .ftype.code { color: var(--info); } .ftype.doc { color: var(--warn); } .ftype.arc { color: var(--crit); }
.table .ftype { width: 26px; height: 26px; border-radius: 7px; font-size: 9px; display: inline-grid; vertical-align: middle; margin-right: 8px; }

/* ---------- modal & toasts */
.overlay { position: fixed; inset: 0; background: rgba(5,8,14,.6); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line2);
         border-radius: 16px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.modal h2 { margin: 0 0 8px; font-size: 18px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal.wide { width: min(860px, 100%); }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px;
         box-shadow: var(--shadow); animation: up .2s ease-out; overflow-wrap: anywhere; }
.toast.err { border-left-color: var(--crit); } .toast.ok { border-left-color: var(--ok); }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }

/* ---------- auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px;
        background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
                    radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--accent2) 12%, transparent), transparent), var(--bg); }
.auth .box { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth h1 { margin: 10px 0 4px; font-size: 22px; }
.auth .logo { width: 44px; height: 44px; }
.auth .btn.primary { width: 100%; justify-content: center; height: 42px; margin-top: 16px; }
.code-input { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; text-align: center; font-size: 18px; }

/* ---------- responsive */
@media (max-width: 1180px) {
  .chat { grid-template-columns: 240px 1fr; } .chat-side { display: none; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; }
  .menu-btn { display: inline-flex; }
  .content { padding: 14px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span2, .span3 { grid-column: auto; }
  .chat { grid-template-columns: 1fr; }
  .chat-list { display: none; } .chat.show-list .chat-list { display: flex; position: fixed; inset: var(--top) 0 0 0; z-index: 25; }
  .top { padding: 0 12px; } .top .hide-sm { display: none; }
  .msg .bubble { max-width: 86vw; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .table.responsive td { border: 0; padding: 2px 0; }
  .table.responsive td.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ChatGPT relay and reports (D-036) */
.report-text { width: 100%; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; }
.card.order { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.card.order label { cursor: pointer; align-items: center; }
.card.order input[type=checkbox] { width: 18px; height: 18px; flex: none; }
pre.spec { margin: 0; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12px/1.5 var(--mono);
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; color: var(--muted); }
