/* Darsxona — professional qorong'i mavzu. Barcha ranglar shu tokenlarda. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/vendor/inter/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/vendor/inter/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/vendor/inter/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* Surfaces */
  --bg: #0b1120;
  --bg-elevated: #0f172a;
  --surface: #111a2e;
  --surface-2: #172036;
  --surface-3: #1e293b;
  --glass: rgba(15, 23, 42, 0.78);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);

  /* Text */
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --subtle: #64748b;

  /* Accents */
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-soft: rgba(239, 68, 68, 0.14);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.14);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --tap: 44px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.45);

  font-family: 'Inter', 'SF Pro Text', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); min-height: 100vh; }
[hidden] { display: none !important; }

h1, h2, h3 { color: var(--text-strong); line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; font-weight: 650; }
h2 { font-size: 1.125rem; font-weight: 600; }
h3 { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
p { margin: 0 0 0.75em; }
a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent-soft); }

.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 22px; height: 22px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.logo-mark .icon { width: 18px; height: 18px; stroke-width: 2; }

/* ---------- Generic pages (index, reset) ---------- */
.page { max-width: 520px; margin: 0 auto; padding: 32px 16px 56px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.tagline { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { margin: 0; }
.muted { color: var(--muted); font-size: 0.875rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; margin: 0; min-width: 0; }
.divider { height: 1px; background: var(--border); margin: 16px 0; border: 0; }

/* ---------- Forms ---------- */
label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
input[type='text'], input[type='email'], input[type='password'] {
  width: 100%; min-height: var(--tap); padding: 10px 12px; font: inherit; color: var(--text-strong);
  background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
input::placeholder { color: var(--subtle); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field { margin-bottom: 16px; }
.hint { color: var(--subtle); font-size: 0.8rem; margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 16px; font: inherit; font-size: 0.9rem; font-weight: 550;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text-strong); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-strong); }
.btn-outline-danger { background: transparent; border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.btn-outline-danger:hover { background: var(--danger-soft); }
.btn-block { width: 100%; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 0.82rem; }
.btn-icon { width: 36px; min-height: 36px; padding: 0; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.linklike { background: none; border: 0; color: #60a5fa; font: inherit; font-size: 0.875rem; cursor: pointer; min-height: var(--tap); padding: 0; }
.linklike:hover { text-decoration: underline; }

.alert { border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-size: 0.875rem; border: 1px solid; }
.alert-error { background: var(--danger-soft); color: #fecaca; border-color: rgba(239, 68, 68, 0.35); }
.alert-ok { background: var(--success-soft); color: #a7f3d0; border-color: rgba(16, 185, 129, 0.35); }
.alert-warn { background: var(--warning-soft); color: #fde68a; border-color: rgba(245, 158, 11, 0.35); }

.auth-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Home: lessons ---------- */
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.lesson-item:first-child { border-top: 0; padding-top: 0; }
.lesson-item .info { flex: 1 1 200px; min-width: 0; }
.lesson-item .title { font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-item .meta { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--warning-soft); color: #fcd34d; margin-left: 8px; vertical-align: 1px; }

/* ---------- Lesson page ---------- */
.lesson-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--bg); }

.topbar { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); flex-shrink: 0; }
.topbar .title-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.topbar .divider-v { width: 1px; height: 20px; background: var(--border-strong); }
.topbar .title { font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 550; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.pill .icon { width: 14px; height: 14px; }
.pill-rec { background: var(--danger-soft); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.pill-rec .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.pill-lock { background: var(--warning-soft); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
.pill-mono { font-variant-numeric: tabular-nums; }

.banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; font-size: 0.85rem; font-weight: 500; text-align: center; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.banner .icon { width: 16px; height: 16px; }
.banner-rec { background: #7f1d1d; color: #fee2e2; border-bottom-color: rgba(239, 68, 68, 0.5); font-weight: 600; }
.banner-info { background: #0c1a33; color: #bfdbfe; }
.banner-warn { background: #2a1d05; color: #fde68a; }

.center-screen { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.center-screen .card { width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.center-screen h1 { font-size: 1.25rem; }
.status-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: #93c5fd; margin-bottom: 16px; }
.status-icon .icon { width: 22px; height: 22px; }
.tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 0.8rem; }
.tip .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }

.room { flex: 1; display: flex; min-height: 0; position: relative; }
.grid-wrap { flex: 1; min-width: 0; overflow-y: auto; padding: 12px; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-content: start; }
.grid.count-1 { grid-template-columns: 1fr; max-width: 1100px; margin: 0 auto; }
.grid.count-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.tile { position: relative; background: var(--surface-3); border-radius: var(--radius); aspect-ratio: 16 / 9; overflow: hidden; outline: 2px solid transparent; outline-offset: -2px; }
.tile.speaking { outline-color: var(--success); }
.tile.screen { grid-column: 1 / -1; aspect-ratio: auto; height: min(68vh, 760px); background: #000; }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.tile.screen video { object-fit: contain; }
.tile.local video { transform: scaleX(-1); }
.tile .avatar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #233149, var(--surface-3) 70%); }
.tile .avatar span { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 600; color: #fff; background: var(--avatar, #334155); letter-spacing: 0.02em; }
.tile .label { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; gap: 6px; align-items: center; pointer-events: none; }
.tile .name { display: inline-flex; align-items: center; gap: 6px; background: rgba(2, 6, 23, 0.72); color: #f1f5f9; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tile .role { background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; }
.tile .mic-off { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: rgba(239, 68, 68, 0.9); color: #fff; flex-shrink: 0; }
.tile .mic-off .icon { width: 14px; height: 14px; stroke-width: 2.2; }

/* ---------- Control bar ---------- */
.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg-elevated); flex-shrink: 0; }
.controls .group { display: flex; align-items: center; gap: 8px; }
.controls .group-left { justify-self: start; color: var(--muted); font-size: 0.8rem; }
.controls .group-center { justify-self: center; }
.controls .group-right { justify-self: end; }
.controls .sep { width: 1px; height: 32px; background: var(--border-strong); margin: 0 4px; }

.ctrl {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 64px; height: 56px; padding: 0 10px; border-radius: var(--radius); border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 0.72rem; font-weight: 500; cursor: pointer;
  transition: background-color 120ms ease;
}
.ctrl:hover { background: var(--surface-3); }
.ctrl .label-text { white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.ctrl.off { background: var(--danger-soft); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.ctrl.off:hover { background: rgba(239, 68, 68, 0.22); }
.ctrl.on-accent { background: var(--accent-soft); color: #93c5fd; border-color: rgba(59, 130, 246, 0.4); }
.ctrl.attention { background: var(--warning-soft); color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); }
.ctrl.leave { background: var(--danger); color: #fff; flex-direction: row; gap: 8px; height: 44px; padding: 0 18px; font-size: 0.85rem; font-weight: 600; }
.ctrl.leave:hover { background: var(--danger-hover); }
.ctrl:disabled { opacity: 0.45; cursor: not-allowed; }
.ctrl .count { position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center; }

/* Tooltip (no animation) */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: #020617; color: #e2e8f0; border: 1px solid var(--border-strong); padding: 6px 10px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 500; white-space: nowrap; pointer-events: none; z-index: 20; box-shadow: var(--shadow);
}
@media (hover: none) { [data-tip]:hover::after { display: none; } }

/* ---------- Host side panel ---------- */
.panel { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; margin: 12px 12px 12px 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0; flex: 1; font-size: 0.95rem; }
.panel-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: rgba(2, 6, 23, 0.25); }
.panel-foot .full { grid-column: 1 / -1; }
.panel section { padding: 14px 0; border-bottom: 1px solid var(--border); }
.panel section:last-child { border-bottom: 0; }
.panel h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel h3 .n { background: var(--surface-3); color: var(--text); border-radius: 999px; padding: 0 7px; font-size: 0.7rem; letter-spacing: 0; }
.panel .list { list-style: none; margin: 0; padding: 0; }
.panel .list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; min-height: 48px; }
.panel .list li + li { border-top: 1px solid var(--border); }
.panel .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel .who .name-text { overflow: hidden; text-overflow: ellipsis; }
.panel .who .icon { width: 16px; height: 16px; color: var(--muted); }
.panel .who .icon.is-off { color: #f87171; }
.panel .initials { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: #fff; background: var(--avatar, #334155); }
.panel .empty { color: var(--subtle); font-size: 0.85rem; padding: 4px 0; }
.panel .knock-item { background: var(--accent-soft); border: 1px solid rgba(59, 130, 246, 0.3) !important; border-radius: var(--radius-sm); padding: 8px 10px !important; margin-bottom: 6px; }
.panel .actions { display: flex; gap: 6px; flex-shrink: 0; }
.share-box { display: flex; gap: 6px; }
.share-box input { flex: 1; min-width: 0; min-height: 36px; font-size: 0.8rem; color: var(--muted); }
.panel .note { color: var(--subtle); font-size: 0.78rem; margin: 8px 0 0; }

@media (max-width: 860px) {
  .panel { position: absolute; inset: 0; width: auto; margin: 0; border-radius: 0; border: 0; z-index: 10; background: rgba(11, 17, 32, 0.96); }
  .controls { display: flex; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .controls .group-left, .controls .sep { display: none; }
  .controls .group-center { flex: 1; min-width: 0; gap: 6px; }
  .controls .group-right { flex: 0 0 auto; }
  .ctrl { flex: 1 1 0; min-width: 0; height: 56px; padding: 0 4px; font-size: 0.66rem; }
  .ctrl .label-text { max-width: 100%; }
  .ctrl.leave { flex-direction: column; gap: 4px; height: 56px; width: 56px; padding: 0 4px; font-size: 0.66rem; font-weight: 500; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .grid.count-1, .grid.count-2 { grid-template-columns: 1fr; }
  .tile.screen { height: 48vh; }
  .tile .avatar span { width: 56px; height: 56px; font-size: 1.3rem; }
  .topbar { padding: 0 12px; }
  .topbar .hide-sm { display: none; }
}

/* Host panel toggles and recording */
.btn.on-accent { background: var(--accent-soft); color: #93c5fd; border-color: rgba(59, 130, 246, 0.45); }
.btn.off, .btn.attention { background: var(--surface-2); }
.panel .rec-time { color: #fca5a5; font-variant-numeric: tabular-nums; font-weight: 600; }
.tile { user-select: none; -webkit-user-select: none; }

/* ---------- Billing (home) ---------- */
.pill-ok { background: var(--success-soft); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.35); }
.btn-google { background: #fff; color: #1f2937; border-color: #e5e7eb; }
.btn-google:hover { background: #f3f4f6; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: 0.8rem; margin: 16px 0; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.steps { margin: 0 0 16px; padding-left: 20px; color: var(--text); font-size: 0.9rem; }
.steps li + li { margin-top: 6px; }
.pay-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius); background: linear-gradient(135deg, #1e3a8a, #1e293b); border: 1px solid rgba(59, 130, 246, 0.35); }
.card-number { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.08em; color: #fff; font-variant-numeric: tabular-nums; margin: 2px 0; }
input[type='file'] { width: 100%; padding: 10px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-elevated); color: var(--muted); font: inherit; font-size: 0.85rem; }
input[type='number'] { width: 100%; min-height: var(--tap); padding: 10px 12px; font: inherit; color: var(--text-strong); background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
h3 { margin-top: 4px; }

/* ---------- Super admin ---------- */
.page-wide { max-width: 1120px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 550; padding: 10px 14px; min-height: var(--tap); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text-strong); }
.tab[aria-selected='true'] { color: var(--text-strong); border-bottom-color: var(--accent); }
.tab .n { background: var(--danger); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 0.7rem; margin-left: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .v { font-size: 1.5rem; font-weight: 650; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: 0.78rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); }
.rows > li:first-child { border-top: 0; }
.rows .main { flex: 1 1 260px; min-width: 0; }
.rows .name { font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
.rows .meta { color: var(--muted); font-size: 0.8rem; margin-top: 2px; overflow-wrap: anywhere; }
.rows .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.badges { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-left: 6px; vertical-align: 1px; }
.receipt-thumb { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #000; cursor: zoom-in; display: block; }
.receipt-pdf { width: 120px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--muted); font-size: 0.75rem; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-row .btn[aria-pressed='true'] { background: var(--accent-soft); color: #93c5fd; border-color: rgba(59, 130, 246, 0.45); }
table.simple { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.simple th, table.simple td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--border); }
table.simple th { color: var(--muted); font-weight: 550; font-size: 0.78rem; border-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.lightbox { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.9); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); }

/* Kirish so'rovi ishonch belgilari */
.panel .who-stack { flex-direction: column; align-items: flex-start; gap: 4px; white-space: normal; }
.panel .who-line { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.trust { font-size: 0.74rem; font-weight: 500; line-height: 1.35; white-space: normal; }
.trust-ok { color: #6ee7b7; }
.trust-new { color: #fcd34d; }
.trust-bad { color: #fca5a5; font-weight: 600; }
.panel .knock-item.knock-warn { background: var(--danger-soft); border-color: rgba(239, 68, 68, 0.45) !important; }
