:root {
  --navy: #0b1f3a; --navy-2: #132b4d; --navy-ink: #c9d4e5;
  --accent: #1f9d55; --accent-ink: #ffffff; --accent-soft: #e6f5ec;
  --bg: #f5f7fa; --card: #ffffff; --ink: #151a22; --muted: #5f6b7a; --line: #e2e7ee;
  --ok: #178a4c; --warn: #b7791f; --bad: #c62828;
  --ok-soft: #e6f5ec; --warn-soft: #fbf1df; --bad-soft: #fbe7e7;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0 0 4px; }
h3 { font-size: 15px; margin: 0 0 4px; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-head p { margin: 0; color: var(--muted); font-size: 14px; }

.btn { font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { filter: brightness(.97); } .btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-danger { background: #fff; color: var(--bad); border-color: #f0c9c9; }
.btn-ghost { background: transparent; }
.btn-lg { padding: 12px 20px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.field input, .field select { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); min-width: 0; }
.field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.check input { margin-top: 3px; }
.check small { color: var(--muted); display: block; }

.alert { padding: 10px 12px; border-radius: 8px; font-size: 14px; border: 1px solid var(--line); background: #fff; }
.alert:empty { display: none; }
.alert-ok { background: var(--ok-soft); border-color: #bfe6cf; color: #0f5f33; }
.alert-warn { background: var(--warn-soft); border-color: #eed7a8; color: #7a4f0e; }
.alert-bad { background: var(--bad-soft); border-color: #f0c2c2; color: #8f1d1d; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.tbl td.mono, .tbl td.pill { overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.tbl-wrap { overflow-x: auto; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.tbl td.ok { color: var(--ok); } .tbl td.warn { color: var(--warn); } .tbl td.bad { color: var(--bad); }

.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #eef0f3; color: var(--muted); }
.badge-ok { background: var(--ok-soft); color: var(--ok); } .badge-warn { background: var(--warn-soft); color: var(--warn); } .badge-bad { background: var(--bad-soft); color: var(--bad); }
.pill { font-family: var(--mono); font-size: 12px; background: #eef0f3; padding: 2px 6px; border-radius: 6px; }

.meter { display: flex; gap: 6px; }
.meter span { flex: 1; height: 8px; border-radius: 999px; background: var(--line); transition: background .2s; }
.meter span.used { background: var(--warn); }
.meter.locked span { background: var(--bad); }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 64px 24px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty .icon { font-size: 36px; }
.empty h2 { color: var(--ink); }

.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }

/* Public / auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: 100%; max-width: 440px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand .logo { width: 28px; height: 28px; border-radius: 7px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 14px; }
.landing { max-width: 960px; margin: 0 auto; padding: 32px 24px 64px; }
.landing header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
.hero h1 { font-size: 40px; max-width: 640px; line-height: 1.1; }
.hero p { font-size: 18px; color: var(--muted); max-width: 560px; }
.price { font-size: 32px; font-weight: 700; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } .hero h1 { font-size: 30px; } }
.card-fake { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.card-fake .field { min-width: 0; }
.card-fake .field input { width: 100%; }
