@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/inter-cyrillic-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/inter-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* KAI ID — DESIGN.md §3.10 (shadcn login-03 + Clerk footer band), edo tokens. */
:root {
  --ink: #182335; --mut: #5b6780; --line: #e3e8f0; --bg: #f5f7fb; --blue: #1966c9; --bluebg: #eaf2fd;
  --red: #e0333a; --redbg: #fdeded; --amber: #d98200; --amberbg: #fff6e6; --green: #137a48; --greenbg: #e9f7ef;
  --violet: #6d4cc4; --violetbg: #f1edfb; --teal: #0e8a8a; --tealbg: #e6f6f6; --band: #f8fafc;
  --tg: #2aabee; --tg-h: #229ed9;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; background: var(--bg); min-height: 100dvh; }
.shell { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 16px calc(28px + env(safe-area-inset-bottom)); }

.brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #2a7be4, #1557ad); }
.mark svg { width: 19px; height: 19px; }
.word { font-weight: 600; font-size: 15px; letter-spacing: .01em; }

.card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .06); overflow: hidden; }
.wide .card { max-width: 640px; }
.body { padding: 32px; }
.center { text-align: center; }
.band { background: var(--band); border-top: 1px solid var(--line); padding: 12px 20px; text-align: center;
  font-size: 13px; color: var(--mut); }
.band-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mut); text-decoration: none; font-weight: 600;
  font-size: 14px; padding: 4px 10px; border-radius: 8px; transition: background-color .12s ease, transform .08s ease; }
.band-link:hover { background: #eef1f6; color: var(--ink); }
.band-link:active { transform: scale(.97); }
.band-link svg { width: 17px; height: 17px; }
.copy { margin-top: 18px; font-size: 13px; color: #8a94a8; }

h1 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
.lead { color: var(--mut); margin: 0 0 24px; font-size: 15px; }
.lead b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.notice { background: var(--redbg); color: #a3242a; border: 1px solid #f7cfd1; border-radius: 10px; padding: 10px 12px;
  font-size: 14px; margin: -8px 0 18px; text-align: left; }

.btn-tg { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; height: 44px;
  border-radius: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; background: var(--tg);
  transition: background-color .12s ease, transform .08s ease; }
.btn-tg svg { width: 20px; height: 20px; }
.btn-tg:hover { background: var(--tg-h); }
.btn-tg:active { transform: scale(.98); }
.btn-tg .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-tg.busy { pointer-events: none; background: var(--tg-h); opacity: .9; }
.btn-tg.busy svg { display: none; }
.btn-tg.busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-tg:focus-visible, .btn:focus-visible, .tile:focus-visible, .band-link:focus-visible {
  outline: 3px solid rgba(25, 102, 201, .3); outline-offset: 2px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background-color .12s ease, transform .08s ease; }
.btn:hover { background: #f0f3f8; }
.btn:active { transform: scale(.98); }

.badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; }
.badge svg { width: 27px; height: 27px; }
.badge.red { background: var(--redbg); color: var(--red); }
.badge.grey { background: #eef1f6; color: var(--mut); }

.who { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: #eef1f6; }
.av.ini { display: grid; place-items: center; font-weight: 650; font-size: 24px; color: var(--blue); background: var(--bluebg); }
.wt { min-width: 0; }
.wt .lbl { color: var(--mut); font-size: 13px; font-weight: 500; }
.wt h1 { font-size: 20px; margin: 0 0 2px; }
.wt .lead { margin: 0; font-size: 14px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 14px 14px 14px 16px; border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); text-decoration: none; min-width: 0; background: #fff;
  transition: border-color .12s ease, background-color .12s ease, transform .08s ease; }
.tile:hover { border-color: #c9d7ec; background: #fafcff; }
.tile:active { transform: scale(.985); }
.ti { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.ti svg { width: 23px; height: 23px; }
.t-edo .ti { background: var(--bluebg); color: var(--blue); }
.t-holatlar .ti { background: var(--violetbg); color: var(--violet); }
.t-audit .ti { background: var(--greenbg); color: var(--green); }
.t-telefon .ti { background: var(--tealbg); color: var(--teal); }
.t-kadr .ti { background: var(--amberbg); color: var(--amber); }
.tt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tt b { font-size: 15px; font-weight: 600; }
.tt small { color: var(--mut); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { align-self: flex-start; margin-top: 5px; background: #eef1f6; color: var(--mut); border-radius: 999px;
  padding: 1px 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ta { color: #b3bccb; flex: none; opacity: 0; transition: opacity .12s ease; }
.tile:hover .ta, .tile:focus-visible .ta { opacity: 1; }
.ta svg { width: 18px; height: 18px; display: block; }
.empty { text-align: center; color: var(--mut); padding: 28px 12px; border: 1px dashed #d5dce7; border-radius: 12px; }

@media (max-width: 640px) {
  .body { padding: 24px; }
  .btn-tg, .btn { height: 48px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .ta { opacity: 1; }
  .av { width: 60px; height: 60px; }
  .wt h1 { font-size: 18px; }
}
@media (hover: none) { .ta { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 2s !important; } }
