:root { color-scheme: light dark; --accent:#2f6fed; --muted:#8a8f98; }
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0 auto; max-width: 880px; padding: 24px 16px 48px; line-height: 1.55; }
h1 { margin: 0 0 4px; font-size: 2rem; }
.tagline { margin: 0 0 8px; font-size: 1.05rem; }
.status { color: var(--muted); font-size: .9rem; }
.panel { border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 12px; padding: 16px; margin: 16px 0; }
textarea { width: 100%; margin-top: 8px; padding: 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); background: transparent; color: inherit; font: inherit; }
.row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.action button { width: 100%; padding: 10px 12px; font-size: 1rem; border-radius: 8px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.action button:disabled { opacity: .55; cursor: wait; }
button.ghost { background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.badge { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 999px; font-size: .78rem; border: 1px solid currentColor; }
.badge.device { color: #1a9e6b; } .badge.device-only { color: #c2711d; } .badge.cloud { color: var(--accent); }
.hint, .muted { color: var(--muted); font-size: .9rem; }
.result { border-top: 1px dashed color-mix(in srgb, currentColor 25%, transparent); padding: 12px 0; }
.result h3 { margin: 0 0 4px; font-size: 1rem; }
.result .where { font-size: .8rem; color: var(--muted); }
.result pre { white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; font: inherit; }
mark { background: #ffd54d; color: #000; padding: 0 2px; border-radius: 3px; }
