:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f0e8;
  background: #151719;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.shell { max-width: 1180px; margin: 0 auto; padding: 72px 28px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; }
.auth-card { width: min(680px, 100%); padding: 42px; border: 1px solid #3a3d3e; border-radius: 22px; background: #1f2224; }
.hero { max-width: 760px; }
.eyebrow { color: #d6a85f; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.2em; }
h1 { max-width: 700px; margin: 18px 0; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 0.94; letter-spacing: -0.07em; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.topbar h1 { margin-bottom: 0; font-size: clamp(2.8rem, 7vw, 5.2rem); }
.topbar-actions, .language-switch { display: flex; align-items: center; gap: 8px; }
.language-switch button { min-width: 42px; padding: 8px 10px; color: #949995; border: 1px solid #4a4d4e; border-radius: 999px; background: transparent; }
.language-switch button[aria-pressed="true"] { color: #d6a85f; border-color: #d6a85f; background: #30291f; }
.lead { color: #b7b8b2; font-size: 1.15rem; line-height: 1.65; }
.stack-form { display: grid; gap: 10px; margin-top: 24px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: #858b87; font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #343839; }
.stack-form label { color: #d9d6ce; font-size: 0.84rem; font-weight: 700; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; }
.checkbox-row input { width: auto; }
.inline-form { display: flex; gap: 10px; margin-top: 20px; }
.compact-form { margin-left: auto; margin-top: 0; }
.domain-row button { flex: 0 0 auto; }
.inline-form input { flex: 1; }
input, textarea { width: 100%; padding: 13px 14px; color: #f4f0e8; border: 1px solid #4a4d4e; border-radius: 10px; background: #151719; font: inherit; }
select { width: 100%; padding: 13px 14px; color: #f4f0e8; border: 1px solid #4a4d4e; border-radius: 10px; background: #151719; font: inherit; }
button { border: 0; border-radius: 10px; padding: 13px 18px; color: #161819; background: #d6a85f; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #ebbf78; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
.danger-button { color: #fff4f2; background: #8d3e37; }
.danger-button:hover { background: #ad4d44; }
.button-link { display: inline-flex; padding: 11px 15px; color: #161819; border-radius: 10px; background: #d6a85f; font-size: 0.88rem; font-weight: 800; text-decoration: none; }
.button-secondary { color: #f4f0e8; background: #303436; }
.muted { color: #949995; font-size: 0.9rem; line-height: 1.5; }
.error-banner { margin-top: 24px; padding: 14px 16px; color: #ffd8d3; border: 1px solid #854d47; border-radius: 10px; background: #3c2524; }
.status-card { display: flex; gap: 14px; align-items: flex-start; max-width: 490px; margin-top: 40px; padding: 18px; border: 1px solid #3a3d3e; border-radius: 16px; background: #1f2224; }
.status-card strong { font-size: 0.95rem; }
.status-card p { margin: 6px 0 0; color: #a7aaa5; font-size: 0.9rem; line-height: 1.5; }
.status-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #78c091; box-shadow: 0 0 0 5px #294135; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 88px; }
.cards article { min-height: 190px; padding: 24px; border-top: 2px solid #d6a85f; background: #1f2224; }
.cards span { color: #d6a85f; font-size: 0.8rem; font-weight: 800; }
.cards h2 { margin: 34px 0 8px; font-size: 1.15rem; }
.cards p { margin: 0; color: #a7aaa5; line-height: 1.55; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 42px 0 18px; }
.metric, .panel { padding: 24px; border: 1px solid #343839; border-radius: 16px; background: #1f2224; }
.metric { display: grid; gap: 8px; }
.metric span { color: #b7b8b2; font-size: 0.88rem; }
.metric strong { color: #f4f0e8; font-size: 2.4rem; letter-spacing: -0.05em; }
.metric small { color: #858b87; }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.table-panel { margin-top: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel-heading h2 { margin: 8px 0 0; font-size: 1.35rem; }
.panel-heading .eyebrow { margin: 0; }
.result-box { min-height: 76px; margin-top: 20px; padding: 14px; color: #c5c9c4; border-radius: 10px; background: #17191a; font-size: 0.9rem; line-height: 1.6; }
.result-action { margin-top: 14px; }
.result-action button:disabled { cursor: wait; opacity: 0.6; }
.list-stack { display: grid; gap: 10px; margin-top: 24px; }
.list-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #343839; }
.list-row span { color: #929893; font-size: 0.85rem; }
.domain-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #343839; }
.domain-row div { display: grid; gap: 4px; min-width: 0; }
.domain-row span, .domain-row small { color: #929893; font-size: 0.8rem; overflow-wrap: anywhere; }
.ingestion-row { display: grid; gap: 12px; padding: 14px 0; border-bottom: 1px solid #343839; }
.ingestion-row > div { display: grid; gap: 4px; }
.ingestion-row span, .ingestion-row small { color: #929893; font-size: 0.8rem; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #969c97; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
td, th { padding: 13px 10px; border-bottom: 1px solid #343839; }
td { color: #d9d6ce; font-size: 0.92rem; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #bde5c9; background: #294135; font-size: 0.78rem; }
.automation-palette { display: flex; flex-wrap: wrap; gap: 8px; }
.automation-palette button { padding: 9px 12px; color: #f4f0e8; border: 1px dashed #6c6659; background: #303436; cursor: grab; }
.automation-canvas { display: grid; gap: 10px; min-height: 210px; padding: 16px; border: 1px dashed #6c6659; border-radius: 12px; background: #17191a; }
.automation-canvas:focus { outline: 2px solid #d6a85f; outline-offset: 2px; }
.automation-node { display: flex; align-items: center; gap: 12px; padding: 11px; border-left: 3px solid #d6a85f; border-radius: 8px; background: #25282a; }
.automation-node > span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #161819; background: #d6a85f; font-weight: 800; }
.automation-node > div { display: grid; flex: 1; gap: 3px; }
.automation-node small, .automation-edges { color: #929893; }
.automation-node button { padding: 6px 10px; color: #f4f0e8; background: #3c2524; }
@media (max-width: 760px) { .shell { padding: 44px 20px; } .auth-card { padding: 28px; } .cards, .metrics, .workspace-grid { grid-template-columns: 1fr; } .cards { margin-top: 56px; } .topbar { flex-direction: column; } .topbar-actions { width: 100%; justify-content: space-between; } .inline-form { flex-direction: column; } .domain-row { align-items: flex-start; flex-direction: column; } }
