:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #080c11; color: #e8edf2; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% -20%, #163c4b 0, transparent 34rem), #080c11; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 60px; }
.app-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 6px; color: #67e8b5; font: 700 11px ui-monospace, monospace; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(32px, 6vw, 52px); line-height: 1; letter-spacing: -.045em; }
.connection-bar, .toolbar-actions, .burn-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.connection-pill { padding: 7px 11px; border: 1px solid #35424f; border-radius: 999px; color: #9baab6; font: 12px ui-monospace, monospace; }
.connection-pill.connected { border-color: #30795f; color: #67e8b5; }
button { border: 0; border-radius: 7px; padding: 10px 14px; background: #67e8b5; color: #06110d; font: 750 13px inherit; cursor: pointer; }
button.secondary { background: #26333e; color: #e8edf2; }
button.danger { background: #a7464d; color: white; }
button:disabled { opacity: .36; cursor: not-allowed; }
.notice { margin: 12px 0 18px; padding: 10px 13px; border: 1px solid #25333f; border-radius: 8px; color: #a8b5c0; font-size: 13px; }
.notice.error, .warning { border-color: #8a454a; color: #ffb6bb; }
.tabs { display: flex; gap: 5px; margin-bottom: 0; padding-left: 10px; }
.tab { border: 1px solid transparent; border-bottom: 0; border-radius: 9px 9px 0 0; background: transparent; color: #90a0ad; padding: 11px 18px; }
.tab.active { border-color: #2a3945; background: #111821; color: #e8edf2; }
.workspace { border: 1px solid #2a3945; background: #111821; border-radius: 12px; padding: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.terminal-toolbar { display: flex; align-items: end; gap: 12px; margin-bottom: 14px; }
.terminal-toolbar label { width: 145px; }
.toolbar-actions { margin-left: auto; }
label { display: grid; gap: 6px; color: #b9c5ce; font-size: 12px; }
input, select { width: 100%; padding: 9px 10px; border: 1px solid #354653; border-radius: 7px; background: #090e14; color: inherit; font: 13px inherit; }
input[type=file] { border-style: dashed; min-height: 42px; }
#terminal { height: 430px; min-height: 24em; padding: 10px; overflow: hidden; border: 1px solid #202e38; border-radius: 8px; background: #070b0f; }
.terminal-hint { margin: 10px 2px 0; color: #72818d; font: 11px ui-monospace, monospace; }
.burn-primary { display: grid; grid-template-columns: minmax(280px, 1fr) 180px auto; align-items: end; gap: 16px; }
.file-field small { color: #788894; }
.advanced { margin-top: 20px; border-top: 1px solid #283641; padding-top: 15px; }
summary { color: #aebbc5; cursor: pointer; font-weight: 650; }
.advanced-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.checks label { display: flex; align-items: center; gap: 7px; }
.checks input { width: auto; }
.warning { padding: 10px 12px; border: 1px solid; border-radius: 7px; font-size: 13px; }
.status-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 40%); align-items: center; gap: 22px; margin: 16px 0; padding: 15px 18px; border: 1px solid #263641; border-radius: 10px; background: #0e151c; }
.status-strip strong { margin-left: 9px; font-size: 13px; }
.status-strip p { margin: 6px 0 0; color: #92a1ac; font-size: 13px; }
.badge { padding: 4px 8px; border: 1px solid #31634f; border-radius: 999px; color: #67e8b5; font: 11px ui-monospace, monospace; }
.progress-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; color: #82919d; font: 11px ui-monospace, monospace; }
progress { width: 100%; height: 9px; accent-color: #67e8b5; }
.protocol-details { padding: 12px 16px; border: 1px solid #202e38; border-radius: 9px; background: #0b1117; }
.log-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: #81909b; font-size: 12px; }
.text-button { padding: 5px 8px; background: transparent; color: #8fa0ac; }
pre { min-height: 130px; max-height: 280px; overflow: auto; padding: 14px; border-radius: 7px; background: #06090d; color: #aebac3; font: 12px/1.5 ui-monospace, monospace; white-space: pre-wrap; }
@media (max-width: 760px) { main { padding-top: 22px; } .app-header { align-items: start; flex-direction: column; } .connection-bar { width: 100%; } .terminal-toolbar { align-items: stretch; flex-wrap: wrap; } .terminal-toolbar label { flex: 1; min-width: 130px; } .toolbar-actions { width: 100%; margin-left: 0; } #terminal { height: 55vh; min-height: 340px; } .burn-primary, .advanced-grid, .status-strip { grid-template-columns: 1fr; } .burn-actions button { flex: 1; } }
