@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700;800&display=swap');

:root {
    --ink: #172126;
    --muted: #68777b;
    --paper: #f4f0e8;
    --panel: #fffdf8;
    --line: #d9d7cf;
    --green: #198a6b;
    --green-dark: #10654e;
    --amber: #d68a2a;
    --red: #b9534b;
    --shadow: 0 18px 44px rgba(36, 48, 44, 0.09);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at 10% 0%, #dfece0 0, transparent 31rem), var(--paper);
    font-family: Manrope, sans-serif;
}
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 60px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.eyebrow, .section-label { color: var(--green-dark); font: 500 0.76rem 'DM Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2.4rem, 6vw, 5.3rem); line-height: .95; letter-spacing: -0.06em; }
h2 { margin-bottom: 8px; font-size: 1.15rem; letter-spacing: -0.02em; }
.subtitle, .hero-panel p { color: var(--muted); }
.connection-pill, .tag { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); padding: 8px 12px; font: 500 .76rem 'DM Mono', monospace; white-space: nowrap; }
.connection-pill[data-state='online'] { color: var(--green-dark); border-color: #9bcbbb; background: #e8f5ed; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #aab1af; }
[data-state='online'] .status-dot { background: var(--green); box-shadow: 0 0 0 4px #c9e7d7; }
.hero-panel { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 30px; margin-bottom: 22px; border: 1px solid #b7d2c2; background: linear-gradient(125deg, #d8eadc, #f8f3e8 72%); box-shadow: var(--shadow); }
.hero-panel h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); max-width: 530px; }
.hero-panel p { margin-bottom: 0; max-width: 570px; }
.actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 9px; min-width: 250px; }
.button { border: 0; border-radius: 7px; padding: 12px 16px; font: 700 .82rem Manrope, sans-serif; cursor: pointer; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary { color: white; background: var(--green-dark); }
.button-secondary { color: var(--ink); background: white; border: 1px solid var(--line); }
.button-quiet { color: var(--green-dark); background: transparent; border: 1px solid #9bcbbb; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { min-width: 0; padding: 24px; border: 1px solid var(--line); background: rgba(255, 253, 248, .9); box-shadow: 0 8px 24px rgba(36, 48, 44, .04); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.tag { padding: 5px 8px; font-size: .66rem; }
.details-list { display: grid; gap: 0; margin: 0; }
.details-list div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid #ebe9e1; }
dt { color: var(--muted); font-size: .78rem; } dd { margin: 0; text-align: right; font: 500 .78rem 'DM Mono', monospace; overflow-wrap: anywhere; }
.log-list { display: grid; gap: 7px; }
.log-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 9px; align-items: center; padding: 9px 0; border-top: 1px solid #ebe9e1; font: 500 .72rem 'DM Mono', monospace; }
.log-row span:first-child { color: var(--green-dark); }
.muted { color: var(--muted); font-size: .82rem; }
.data-panel { margin-bottom: 18px; }
.data-summary { color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.chart-wrap { position: relative; height: 320px; margin: 16px 0 12px; }
.data-actions { display: flex; gap: 9px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: .74rem 'DM Mono', monospace; }
th, td { padding: 10px 8px; border-top: 1px solid #ebe9e1; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; color: var(--muted); }
.message { margin: 0 0 18px; padding: 13px 16px; border-left: 4px solid var(--amber); background: #fff5df; color: #77511d; font-size: .82rem; }
.message.error { border-left-color: var(--red); background: #fff0ed; color: #803d37; }
.developer-panel { margin-top: 24px; border: 1px solid #b8c0bc; background: #202b2b; color: #e5eee9; }
.developer-panel summary { cursor: pointer; padding: 15px 18px; font: 500 .76rem 'DM Mono', monospace; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 18px 18px; }
.diagnostic-grid div { display: grid; gap: 7px; }
.diagnostic-grid span { color: #91aaa0; font: .68rem 'DM Mono', monospace; text-transform: uppercase; }
code { min-height: 20px; color: #d1f0b7; font: .72rem 'DM Mono', monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { .shell { width: min(100% - 24px, 620px); padding-top: 24px; } .topbar, .hero-panel { display: block; } .connection-pill { margin-top: 18px; } .actions { justify-content: start; margin-top: 24px; } .two-column, .diagnostic-grid { grid-template-columns: 1fr; } .panel { padding: 18px; } }
