/* Mulakhas · shared styles. Brand: navy + warm yellow from the logo, calm off-white paper.
   Anti-AI-slop: no indigo, no emoji icons, no rounded cards with a coloured left border, accent used sparingly. */
:root {
  --ink: #14213d; --ink-2: #3c4a63; --muted: #5d6b80; --line: #dde3ea; --paper: #ffffff; --bg: #f7f5f0;
  --navy: #12305a; --navy-2: #0c2140; --yellow: #f4b400; --yellow-soft: #fff4d1;
  --ok: #1d7a4f; --ok-soft: #e4f5ec; --bad: #a63a3a; --bad-soft: #fbeaea; --warn-soft: #fff6dc;
  --radius: 14px; --shadow: 0 6px 20px #14213d14;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.mki { flex: none; vertical-align: -3px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 18px;
  background: #ffffffee; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .brand img { height: 38px; display: block; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.topbar nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--ink-2); font-weight: 650; font-size: .95rem; }
.topbar nav a:hover { background: #f0f2f6; }
.topbar nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.topbar .who { margin-left: auto; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.demo-badge { background: var(--yellow-soft); border: 1px solid #ecd28a; color: #6b4e00; font-weight: 800; font-size: .75rem;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }

/* ---------- layout ---------- */
main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 26px 18px 70px; flex: 1; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 4px 0 8px; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; margin: 26px 0 10px; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; margin: 0 0 6px; }
.lead { color: var(--muted); max-width: 680px; margin: 0 0 18px; }
.kicker { font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hidden { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 10px 16px; font-weight: 750; cursor: pointer; text-decoration: none; color: var(--ink); }
.btn:hover { background: #f4f6f9; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.accent { background: var(--yellow); border-color: var(--yellow); color: #2b2000; }
.btn.danger { color: var(--bad); border-color: #e7c4c4; }
.btn.small { padding: 6px 11px; font-size: .88rem; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px); }
label.field { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: .92rem; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=search], select, textarea {
  border: 1px solid #cfd7e1; border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid #f4b40088; outline-offset: 2px; }
.code-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-weight: 800; }

/* ---------- status pills, notices ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800;
  background: #eef1f5; color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.wait { background: var(--warn-soft); color: #7a5600; }
.notice { padding: 12px 14px; border-radius: 12px; background: #eef3f9; border: 1px solid #d6e2ef; }
.notice.warn { background: var(--warn-soft); border-color: #f0dd9f; }
.notice.bad { background: var(--bad-soft); border-color: #ecc8c8; }
.notice.ok { background: var(--ok-soft); border-color: #bfe3cf; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbfc; }
tr:last-child td { border-bottom: 0; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 10px 0 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 750; color: var(--muted); border-bottom: 3px solid transparent;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--yellow); }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px;
  border-radius: 12px; font-weight: 700; box-shadow: var(--shadow); z-index: 50; max-width: calc(100vw - 32px); }
#toast.bad { background: var(--bad); }

footer.site { text-align: center; color: var(--muted); font-size: .85rem; padding: 22px; border-top: 1px solid var(--line); background: #fff; }

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 8px; }
  .topbar nav { order: 3; width: 100%; flex: none; overflow-x: auto; flex-wrap: nowrap; }
  .topbar nav a { white-space: nowrap; }
}
@media (max-width: 640px) {
  .topbar .who-email { display: none; }
  main { padding: 18px 14px 60px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
