:root {
  --ink: #1b2530;
  --muted: #71808e;
  --line: #e4e8ea;
  --paper: #ffffff;
  --canvas: #f4f6f5;
  --nav: #172321;
  --accent: #d9f06e;
  --accent-ink: #253114;
  --danger: #bd4b4b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; }
.shell { min-height: 100vh; display: flex; }
.sidebar { width: 244px; flex: 0 0 244px; min-height: 100vh; padding: 26px 16px; color: #dce7e1; background: var(--nav); display: flex; flex-direction: column; }
.brand { display: flex; gap: 11px; align-items: center; margin: 0 9px 45px; color: #fff; text-decoration: none; font-weight: 760; font-size: 18px; letter-spacing: -.4px; }
.brand small { display: block; margin-top: 2px; color: #8ca099; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--accent-ink); background: var(--accent); }
nav { display: grid; gap: 4px; }
nav a { padding: 11px 13px; border-radius: 7px; color: #a9b8b2; text-decoration: none; font-weight: 600; }
nav a:hover, nav a.active { color: #fff; background: #253633; }
nav a.active { box-shadow: inset 3px 0 var(--accent); }
.sidebar-note { margin: auto 9px 7px; padding-top: 18px; border-top: 1px solid #30413d; color: #d4ded9; font-size: 12px; line-height: 1.55; }.sidebar-note form { margin-top: 10px; }.sidebar-note button { padding: 0; border: 0; color: #a9b8b2; background: transparent; font: inherit; cursor: pointer; }
.sidebar-note span { color: #82948e; font-size: 11px; }
.main-content { width: min(1320px, 100%); padding: 40px clamp(24px, 5vw, 72px) 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 6px; color: #8b9994; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 0; font-size: clamp(27px, 3vw, 36px); letter-spacing: -1.3px; } h2 { margin-bottom: 5px; font-size: 18px; letter-spacing: -.4px; } p { color: var(--muted); line-height: 1.5; }
.status { color: #52655a; font-size: 12px; font-weight: 650; white-space: nowrap; }.status i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #69ba81; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }.stat-card, .panel { border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: 0 2px 3px rgba(25, 39, 34, .015); }.stat-card { min-height: 149px; padding: 22px; display: flex; flex-direction: column; }.stat-card span { color: var(--muted); font-size: 12px; font-weight: 650; }.stat-card strong { margin: auto 0 5px; font-size: 37px; letter-spacing: -1.5px; }.stat-card small { color: #8c9994; }.stat-card.alert strong { color: var(--danger); }
.panel { margin-bottom: 22px; overflow: hidden; }.panel-head { min-height: 92px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }.panel-head p { margin-bottom: 0; font-size: 13px; }.button { display: inline-flex; justify-content: center; align-items: center; min-height: 37px; padding: 0 15px; border: 0; border-radius: 7px; color: var(--accent-ink); background: var(--accent); text-decoration: none; cursor: pointer; font: inherit; font-weight: 750; white-space: nowrap; }.button:hover { filter: brightness(.96); }.button.secondary { border: 1px solid #d3dad7; color: #40504b; background: #fff; }.button-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.table-wrap { width: 100%; overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th, td { padding: 15px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }th { color: #82908c; background: #fbfcfc; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }td { color: #394742; }tbody tr:last-child td { border-bottom: 0; }.subtext { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; }.align-right { text-align: right; }.text-link { color: #36745d; font-weight: 700; text-decoration: none; }.badge { display: inline-block; padding: 4px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }.badge.active, .badge.completed { color: #2b7047; background: #e6f5e9; }.badge.muted, .badge.queued { color: #697670; background: #eef1f0; }.badge.failed { color: #a84343; background: #fbeaea; }.badge.running { color: #80600a; background: #fff5d5; }
.empty { padding: 61px 24px; text-align: center; }.empty strong { font-size: 16px; }.empty p { max-width: 500px; margin: 9px auto 20px; }.empty.short { padding: 32px; }.notice { margin: 0 0 20px; padding: 12px 15px; border-radius: 7px; color: #5f682e; background: #f7fbe4; border: 1px solid #e5edbc; }.notice.success { color: #276845; background: #eaf7ee; border-color: #ccead5; }.notice.error { color: #9d3d3d; background: #fff0f0; border-color: #f3cece; }
.channel-layout { display: grid; gap: 22px; }.form-panel { overflow: visible; }.form-panel .panel-head { min-height: 80px; }.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 22px 24px 4px; }.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }label { display: grid; gap: 7px; margin: 20px 24px; color: #52615b; font-size: 12px; font-weight: 720; }input, textarea, select { width: 100%; padding: 10px 11px; border: 1px solid #d5ddda; border-radius: 6px; outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: 14px; }textarea { resize: vertical; }input:focus, textarea:focus, select:focus { border-color: #93ba70; box-shadow: 0 0 0 3px rgba(180, 218, 107, .2); }.field-grid label { margin: 0; }.toggle-row { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0 24px 22px; }.check { display: flex; align-items: center; gap: 9px; margin: 12px 24px; color: #43514c; cursor: pointer; }.check input { width: 15px; height: 15px; accent-color: #638c46; }.check span { font-size: 13px; font-weight: 600; }.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0; }.channel-layout > .form-actions { margin-top: -4px; }.sources-panel { margin-top: 30px; }.add-source { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr .6fr auto; align-items: end; padding: 6px 0 22px; border-bottom: 1px solid var(--line); }.add-source label { margin: 12px 10px 0; }.add-source label:first-child { margin-left: 24px; }.add-source .source-enabled { margin-bottom: 10px; white-space: nowrap; }.add-source .button { margin: 0 24px 0 4px; }.inline-form { display: inline; }.danger-link { padding: 0; border: 0; color: var(--danger); background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }.delete-zone { margin: 8px 0 0; text-align: right; }
.table-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }.table-card { min-height: 152px; padding: 23px; color: var(--ink); background: #fff; text-decoration: none; display: flex; flex-direction: column; }.table-card:hover { background: #fcfdfb; }.table-card span { color: #52615b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }.table-card strong { margin: auto 0 0; font-size: 30px; }.table-card small { color: #899690; }.hint { padding: 15px 18px; border-left: 3px solid #bedc70; color: #617069; background: #edf2ef; line-height: 1.55; }.back-link { display: block; margin-bottom: 14px; color: #557a69; font-size: 12px; font-weight: 700; text-decoration: none; }.data-table td { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }.clickable { cursor: pointer; }.clickable:hover td { background: #fbfdf8; }.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 18px; color: var(--muted); font-size: 12px; }.narrow-panel { max-width: 760px; }.row-form { padding: 4px 0 24px; }.row-form label { margin: 17px 24px; }.row-form label small { color: #87938e; font-weight: 500; }.row-form .form-actions { margin: 28px 24px 0; }.query-form { padding: 23px 24px; }.query-form textarea { min-height: 130px; color: #28443a; background: #fbfdfb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }.query-form .form-actions { margin-top: 13px; }.schema-intro { padding: 21px 24px 4px; }.schema-intro p { margin: 7px 0 0; }.schema-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 24px; }.schema-notice { margin: 20px 24px 0; }code { padding: 1px 4px; border-radius: 3px; color: #476559; background: #edf3ef; }
.access-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 80% 15%, #e6f3cc 0, transparent 30%), var(--canvas); }.access-card { width: min(470px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(24, 38, 32, .1); }.access-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 800; }.access-brand small { display: block; color: #8c9994; font-size: 8px; letter-spacing: 1.3px; }.access-card h1 { font-size: 28px; }.access-form label { margin: 20px 0; }.access-form .button { width: 100%; margin-top: 8px; }
@media (max-width: 900px) { .sidebar { width: 194px; flex-basis: 194px; }.main-content { padding: 30px 26px 45px; }.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.add-source { grid-template-columns: repeat(2, minmax(0, 1fr)); }.add-source label, .add-source label:first-child { margin: 12px 24px 0; }.add-source .source-enabled { margin: 15px 24px; }.add-source .button { margin: 0 24px; }.table-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .shell { display: block; }.sidebar { width: 100%; min-height: auto; padding: 17px; }.brand { margin: 0 4px 18px; }nav { grid-template-columns: repeat(2, 1fr); }.sidebar-note { display: none; }.main-content { padding: 25px 15px 40px; }.topbar { align-items: flex-start; margin-bottom: 22px; }.status { margin-top: 5px; }.stats-grid, .field-grid, .compact-grid, .table-cards { grid-template-columns: 1fr; }.panel-head { align-items: flex-start; padding: 19px; }.panel-head .button { flex-shrink: 0; }.field-grid { padding: 19px 19px 2px; }.toggle-row { padding: 0 19px 19px; }.check { margin: 11px 19px; }.form-actions { padding: 0 0; }.channel-layout > .form-actions { padding: 0; }.add-source { grid-template-columns: 1fr; }.add-source label, .add-source label:first-child { margin: 11px 19px; }.add-source .button { margin: 0 19px; }.add-source .source-enabled { margin: 4px 19px; }th, td { padding: 13px 15px; }.table-card { min-height: 116px; }.query-form { padding: 19px; }.row-form label { margin: 15px 19px; }.row-form .form-actions { margin: 24px 19px 0; } }
.add-source { grid-template-columns: 1.2fr 1.2fr .8fr .9fr .6fr auto; }
