:root {
  color-scheme: dark;
  --ink: #060908;
  --panel: #0b100e;
  --panel-2: #101713;
  --line: #223029;
  --muted: #87958e;
  --text: #edf5f0;
  --green: #a6f35f;
  --green-dark: #153e2a;
  --danger: #ff897d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--text); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .12; z-index: 10; background-image: repeating-radial-gradient(circle at 30% 20%, transparent 0, rgba(255,255,255,.035) 1px, transparent 2px, transparent 7px); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.12fr .88fr; }
.brand-panel { padding: 42px 6vw; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(circle at 70% 64%, rgba(53, 127, 74, .22), transparent 28%), linear-gradient(145deg, #07110c 0%, #050806 70%); }
.brand-panel::after { content: ""; width: 500px; height: 500px; border: 1px solid rgba(166,243,95,.15); border-radius: 50%; position: absolute; right: -260px; bottom: -120px; box-shadow: 0 0 0 90px rgba(166,243,95,.025), 0 0 0 180px rgba(166,243,95,.018); }
.brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: .13em; font-size: 12px; z-index: 1; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); color: #07100b; font-size: 16px; font-weight: 900; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.brand-copy { max-width: 700px; z-index: 1; }
.eyebrow, .step-label { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .21em; }
.brand-copy h1 { font-size: clamp(48px, 6.2vw, 92px); line-height: .92; letter-spacing: -.065em; margin: 24px 0 30px; font-weight: 720; }
.brand-copy h1 em { color: var(--green); font-style: normal; }
.brand-copy > p:last-child { color: #9daca4; line-height: 1.7; max-width: 540px; font-size: 16px; }
.security-line { font-size: 12px; color: var(--muted); z-index: 1; display: flex; align-items: center; gap: 9px; }
.pulse, .status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--green); box-shadow: 0 0 0 4px rgba(166,243,95,.1); }
.auth-panel { display: grid; place-items: center; padding: 40px; background: #090d0b; }
.auth-card { width: min(410px, 100%); }
.auth-heading { margin-bottom: 34px; }
.auth-heading h2 { font-size: 34px; letter-spacing: -.04em; margin: 12px 0 8px; }
.auth-heading p, dialog > form > p { color: var(--muted); line-height: 1.55; margin: 0; }
label { display: grid; gap: 9px; color: #c7d1cc; font-size: 12px; font-weight: 650; margin: 20px 0; }
input, select { width: 100%; border: 1px solid var(--line); background: #080c0a; color: var(--text); border-radius: 5px; padding: 14px 15px; outline: none; transition: .18s ease; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(166,243,95,.09); }
input::placeholder { color: #4f5d56; }
label small { color: var(--muted); font-weight: 400; }
.primary, .secondary { border: 0; border-radius: 5px; padding: 14px 18px; font-weight: 800; font-size: 12px; letter-spacing: .035em; }
.primary { background: var(--green); color: #09100b; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.primary:hover { background: #bbff78; transform: translateY(-1px); }
.primary:disabled { opacity: .55; cursor: wait; transform: none; }
.secondary { background: #18201c; color: var(--text); border: 1px solid var(--line); }
.back-button, .close { background: none; border: 0; color: var(--muted); padding: 0; margin-bottom: 34px; }
.form-error { min-height: 20px; color: var(--danger); font-size: 12px; margin: 12px 0 0; }
.code-input { letter-spacing: .5em; font-size: 24px; text-align: center; font-weight: 750; }
.qr { display: block; width: 210px; height: 210px; background: white; padding: 10px; border-radius: 6px; margin: 0 auto 16px; }
.secret-box { border: 1px solid var(--line); background: #080c0a; padding: 12px; display: grid; gap: 4px; text-align: center; }
.secret-box span { color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.secret-box code { color: var(--green); font-size: 12px; word-break: break-all; }
.dashboard { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar { background: #070b09; border-right: 1px solid var(--line); padding: 28px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 0 10px 35px; }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { width: 100%; text-align: left; border: 0; border-radius: 4px; padding: 12px 13px; background: none; color: var(--muted); font-size: 13px; display: flex; gap: 12px; }
.nav-item.active { background: #152019; color: var(--green); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 20px; }
.system-state { display: flex; gap: 12px; align-items: center; padding: 8px; }
.system-state div { display: grid; gap: 2px; }
.system-state strong { font-size: 11px; }.system-state small { color: var(--muted); font-size: 10px; }
.logout { background: none; border: 0; color: var(--muted); padding: 16px 8px 0; font-size: 11px; }
.workspace { min-width: 0; }
.topbar { height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 3.5vw; font-size: 11px; letter-spacing: .1em; }
.crumb { color: var(--muted); }
.profile { display: flex; align-items: center; gap: 12px; text-align: right; letter-spacing: normal; }
.profile div { display: grid; gap: 2px; }.profile strong { font-size: 11px; }.profile small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.avatar { width: 34px; height: 34px; border: 1px solid #365043; color: var(--green); background: #142019; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; }
.menu-button { display: none; background: none; border: 0; color: var(--text); font-size: 20px; }
.page { padding: 52px 3.5vw; max-width: 1500px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.page-heading h1 { font-size: clamp(38px, 4.4vw, 62px); margin: 8px 0 8px; letter-spacing: -.055em; }
.page-heading > div > p:last-child { margin: 0; color: var(--muted); max-width: 610px; line-height: 1.55; }
.primary.compact { width: auto; min-width: 166px; display: block; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 28px; }
.metric-row article { padding: 24px; display: grid; gap: 5px; border-right: 1px solid var(--line); background: linear-gradient(135deg, #0d1410, #0a0e0c); }
.metric-row article:last-child { border: 0; }
.metric-row span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.metric-row strong { font-size: 35px; font-weight: 600; letter-spacing: -.05em; }
.metric-row small { color: #607068; font-size: 10px; }
.metric-row .status-dot { width: 5px; height: 5px; margin-right: 4px; }
.table-card { border: 1px solid var(--line); background: var(--panel); }
.table-card.remote-projects { margin-bottom: 28px; }
.table-head { min-height: 64px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.table-head h2 { font-size: 13px; letter-spacing: .02em; }
.table-head div h2 { margin: 0 0 4px; }
.table-head div small, .cell-detail { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.icon-button { border: 1px solid var(--line); background: #111814; color: var(--muted); width: 32px; height: 32px; border-radius: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { text-align: left; color: #65736c; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 13px 22px; border-bottom: 1px solid var(--line); }
td { padding: 17px 22px; border-bottom: 1px solid #18221d; color: #bbc7c1; font-size: 12px; }
td:first-child { color: var(--text); font-weight: 700; }
.cell-detail { margin-top: 5px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-action { border: 1px solid #395443; background: #15231a; color: var(--green); border-radius: 4px; padding: 8px 11px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.table-action:hover { background: #203227; }.table-action:disabled { cursor: not-allowed; opacity: .35; }
.badge { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 20px; background: #18241d; color: var(--green); white-space: nowrap; }
.badge.failed { background: #2b1715; color: var(--danger); }.badge.progress { color: #f4d271; background: #292412; }
.empty { text-align: center; padding: 52px; color: var(--muted); }.empty > span { font-size: 34px; color: #425149; }.empty h3 { color: var(--text); margin: 12px 0 4px; }.empty p { font-size: 12px; }
.empty.compact-empty { padding: 32px; }.empty.compact-empty > span { font-size: 22px; }
dialog { width: min(520px, calc(100% - 30px)); border: 1px solid #314238; border-radius: 7px; background: #0d1410; color: var(--text); padding: 0; box-shadow: 0 30px 90px #000; }
dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
dialog form { padding: 30px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; }.dialog-head h2 { margin: 7px 0 15px; font-size: 28px; }.dialog-head .close { margin: 0; font-size: 28px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }.dialog-actions .primary { width: auto; }
.flow-preview { border: 1px solid var(--line); background: #090d0b; padding: 15px; display: flex; align-items: center; justify-content: space-between; color: var(--green); font-size: 9px; letter-spacing: .1em; }.flow-preview b { color: #435048; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 380px; padding: 14px 18px; background: #18271e; border: 1px solid #395243; color: var(--text); border-radius: 5px; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s; font-size: 12px; z-index: 30; }.toast.show { transform: none; opacity: 1; }.toast.error { border-color: #743d37; background: #281714; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }.brand-panel { min-height: 42vh; padding: 28px; }.brand-copy h1 { font-size: 50px; margin: 60px 0 20px; }.security-line { display: none; }.auth-panel { padding: 60px 24px; }
  .dashboard { display: block; }.sidebar { position: fixed; left: -250px; width: 238px; z-index: 20; transition: .2s; }.sidebar.open { left: 0; box-shadow: 20px 0 70px #000; }.menu-button { display: block; }.topbar { padding: 0 20px; }.topbar > div:nth-child(2) { display: none; }.page { padding: 35px 20px; }.page-heading { align-items: start; flex-direction: column; }.metric-row { grid-template-columns: 1fr; }.metric-row article { border-right: 0; border-bottom: 1px solid var(--line); }.primary.compact { width: 100%; }.profile div { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
