:root { color-scheme: light; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f2f6ff; color: #111; }
a { color: #0b5ed7; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 18px; }
.nav { display:flex; gap:12px; align-items:center; padding: 12px 18px; background:#ffffff; border-bottom:1px solid #dfe7f7; position: sticky; top:0; z-index: 10; }
.nav .brand { font-weight: 800; letter-spacing:.3px; }
.nav .spacer { flex:1; }
.badge { display:inline-block; padding:2px 8px; border-radius: 999px; background:#eef3ff; border:1px solid #d6e2ff; font-size:12px; }
.card { background:#fff; border:1px solid #e7ebf3; border-radius:14px; padding:16px; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04); }
.grid { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px){ .grid{ grid-template-columns: 1fr; } }
h1,h2,h3 { margin: 0 0 10px 0; }
.small { color:#445; font-size: 13px; }
.btn { display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius: 12px; border:1px solid #d8deea; background:#fff; cursor:pointer; }
.btn.primary{ background:#0b5ed7; color:#fff; border-color:#0b5ed7; }
.btn.primary:hover{ filter: brightness(0.98); }
.btn.danger{ background:#dc3545; color:#fff; border-color:#dc3545; }
.btn:disabled{ opacity:.55; cursor:not-allowed; }
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border:1px solid #d8deea; background:#fff; box-sizing:border-box; }
label { display:block; font-size: 13px; margin: 10px 0 6px; color:#334; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 8px; border-bottom:1px solid #e7ebf3; text-align:left; vertical-align: middle; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.row { display:flex; gap:10px; flex-wrap: wrap; }
.right { margin-left:auto; }
.kbd { padding: 2px 6px; border-radius: 8px; border:1px solid #d8deea; background:#f8fafc; font-size: 12px; }
.path { display:flex; align-items:center; gap:6px; flex-wrap: wrap; }
.path a { padding:2px 6px; border-radius: 10px; background:#f1f5ff; border:1px solid #dde6ff; }
.flash { padding:10px 12px; border-radius: 12px; margin: 12px 0; }
.flash.ok { background:#eafff0; border:1px solid #bcecc9; }
.flash.err { background:#fff0f2; border:1px solid #f1b4bd; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(2,6,23,.55); display:none; align-items:center; justify-content:center; padding: 16px; z-index: 999; }
.modal { background:#fff; border-radius: 16px; max-width: 520px; width: 100%; padding: 16px; border:1px solid #e7ebf3; box-shadow: 0 20px 60px rgba(2,6,23,.35); }
.modal h3{ margin-bottom:8px; }
.modal .actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }
.preview { max-height: 520px; overflow:auto; }


/* Auth */
.auth-title{
  font-size: 44px;
  letter-spacing: .6px;
  font-weight: 850;
  margin: 0 0 6px 0;
  color: #0b2a4a;
}
.auth-subtitle{ margin: 0 0 14px 0; color:#3b556d; }
