/* Besqala CRM — dizayn tokenlari (rasmdagi CRM&LMS paneli uslubida) */
:root {
  --brand: #7950f2;
  --brand-600: #6741d9;
  --brand-50: #f3f0ff;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1c2233;
  --muted: #6b7489;
  --line: #e6e9f2;
  --green: #12b886;
  --green-50: #e6fcf5;
  --red: #fa5252;
  --red-50: #fff5f5;
  --blue: #228be6;
  --blue-50: #e7f5ff;
  --amber: #f59f00;
  --amber-50: #fff9db;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); padding: 1px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.right { text-align: right; }
.center { text-align: center; }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.struck, tr.struck td { text-decoration: line-through; opacity: .55; }
.icon { flex: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* ---- Tugmalar va inputlar ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 13px var(--font); cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: #cfd5e6; text-decoration: none; }
.btn:focus-visible, .input:focus-visible, .icon-btn:focus-visible, a:focus-visible { outline: 3px solid rgba(121, 80, 242, .35); outline-offset: 1px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger-ghost { color: var(--red); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--brand-50); }
.btn-block { width: 100%; justify-content: center; height: 44px; }
.btn.small { height: 30px; padding: 0 10px; font-size: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--brand-50); color: var(--brand); }
.input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font: 14px var(--font); color: var(--text); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(121, 80, 242, .15); outline: none; }
.input.invalid { border-color: var(--red); }
.input.narrow { width: auto; min-width: 110px; }
.input.mini { height: 28px; width: auto; font-size: 12px; padding: 0 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch { appearance: none; width: 36px; height: 20px; border-radius: 20px; background: #d5dae6; position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(16px); }
.switch:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Login (Modline: yorug' / tungi mavzu — faqat kirish sahifalarida, <html data-theme>) ---- */
.login-wrap {
  --auth-bg: #FFFFFF; --auth-bg2: #F8F9FC; --auth-card: #FFFFFF; --auth-text: #111827; --auth-muted: #6B7280;
  --auth-border: #E5E7EB; --auth-brand: #7950F2; --auth-brand2: #4545FF; --auth-orange: #FF9D42; --auth-link: #6741D9;
  --auth-glow: rgba(121, 80, 242, .14); --auth-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -12px rgba(17, 24, 39, .14);
  /* ichidagi umumiy komponentlar (input, tugma, matn) shu tokenlarni oladi */
  --bg: var(--auth-bg2); --surface: var(--auth-card); --text: var(--auth-text); --muted: var(--auth-muted); --line: var(--auth-border);
  --brand: var(--auth-brand); --brand-50: rgba(121, 80, 242, .08);
  color-scheme: light; color: var(--auth-text);
  min-height: 100vh; display: grid; place-items: center; padding: 64px 16px 16px; position: relative;
  background: radial-gradient(900px 520px at 8% -12%, var(--auth-glow), transparent 70%),
              radial-gradient(700px 420px at 105% 110%, rgba(255, 157, 66, .10), transparent 70%), var(--auth-bg);
  transition: background-color .2s ease, color .2s ease;
}
:root[data-theme="dark"] .login-wrap {
  --auth-bg: #080B18; --auth-bg2: #10152B; --auth-card: #11172A; --auth-text: #FFFFFF; --auth-muted: #A7AEC4;
  --auth-border: rgba(255, 255, 255, .10); --auth-link: #A996FF; --auth-glow: rgba(121, 80, 242, .28);
  --auth-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -16px rgba(0, 0, 0, .6);
  --brand-50: rgba(121, 80, 242, .18); --red: #ff6b6b;
  color-scheme: dark;
}
.login-card { width: min(400px, 100%); background: var(--auth-card, var(--surface)); padding: 32px; border-radius: 20px;
  border: 1px solid var(--auth-border, transparent); box-shadow: var(--auth-shadow, var(--shadow)); display: grid; gap: 14px;
  transition: background-color .2s ease, border-color .2s ease; }
.login-wrap .input { background: var(--auth-bg2); border-color: var(--auth-border); color: var(--auth-text); }
.login-wrap .field label { color: var(--auth-text); opacity: .86; }
.login-wrap .input::placeholder { color: var(--auth-muted); }
.login-wrap .input:focus { border-color: var(--auth-brand); box-shadow: 0 0 0 3px rgba(121, 80, 242, .22); }
.login-wrap .btn-primary { background: linear-gradient(135deg, var(--auth-brand), var(--auth-brand2)); border-color: transparent; }
.login-wrap .btn-primary:hover { background: linear-gradient(135deg, #6741D9, #3535E6); }
.login-wrap .btn:not(.btn-primary):not(.btn-tg) { background: transparent; color: var(--auth-text); border-color: var(--auth-border); }
.login-wrap .btn-ghost { border-color: transparent !important; }
.login-wrap .btn-ghost:hover { background: var(--brand-50); }
.login-wrap a, .login-wrap .link-btn { color: var(--auth-link); }
.login-wrap .brand .logo { background: linear-gradient(135deg, var(--auth-brand), var(--auth-brand2)); position: relative; }
.login-wrap .brand .logo::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--auth-orange); box-shadow: 0 0 0 2px var(--auth-card); }
.login-wrap .brand .logo.logo-img::after { display: none; }
.login-wrap .pw-eye:hover { background: var(--brand-50); }
:root[data-theme="dark"] .login-wrap .notice.ok { background: rgba(18, 184, 134, .12); color: #63e6be; border-color: rgba(18, 184, 134, .3); }
:root[data-theme="dark"] .login-wrap .notice, :root[data-theme="dark"] .login-wrap .notice.warn { background: rgba(255, 157, 66, .12); color: #ffc078; border-color: rgba(255, 157, 66, .3); }
:root[data-theme="dark"] .login-wrap .otp-link { background: rgba(34, 158, 217, .12); color: #a5d8ff; }
:root[data-theme="dark"] .login-wrap code { background: var(--auth-bg2); color: var(--auth-text); }
.auth-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 16px; }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--auth-border); background: var(--auth-card); color: var(--auth-text);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.theme-toggle:hover { color: var(--auth-brand); border-color: var(--auth-brand); }
.theme-toggle:active { transform: scale(.94); }
:root[data-theme="dark"] .theme-toggle { color: var(--auth-orange); }
.theme-toggle:focus-visible { outline: 3px solid rgba(121, 80, 242, .45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .login-wrap, .login-card, .theme-toggle { transition: none; } }
.login-card h1 { font-size: 20px; }
.form-error { color: var(--red); min-height: 1em; font-size: 13px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; }
.brand strong { display: block; font-size: 15px; }
.brand span { display: block; font-size: 12px; color: var(--muted); }

/* ---- Layout ---- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.sidebar nav { display: grid; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #3b4357; font-weight: 500; cursor: pointer; list-style: none; }
.nav-link::-webkit-details-marker { display: none; }
.nav-link:hover { background: var(--brand-50); text-decoration: none; }
.nav-link.active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.nav-link .icon { color: #8a93a8; }
.nav-link.active .icon, .active-parent .icon { color: var(--brand); }
.nav-sub { display: grid; padding: 2px 0 6px 42px; }
.nav-sublink { padding: 6px 10px; border-radius: 8px; color: #4c5568; font-size: 13px; }
.nav-sublink.active { color: var(--brand-600); background: var(--brand-50); font-weight: 600; }
.dev-note { margin-top: auto; font-size: 11px; color: #8a5a00; background: var(--amber-50); border-radius: 10px; padding: 8px 10px; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 20px; position: sticky; top: 0; z-index: 20; }
.topbar .grow { flex: 1; }
.burger { display: none; }
.user-btn { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; padding: 4px 6px; border-radius: 10px; font: 600 13px var(--font); color: var(--text); }
.user-btn:hover { background: var(--brand-50); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #b197fc, var(--brand)); color: #fff; font-weight: 700; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.content { padding: 24px; min-width: 0; }
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 1480px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { font-size: 13px; color: var(--muted); }
.boot { min-height: 100vh; display: grid; place-items: center; }

/* ---- Kartalar ---- */
.card, .table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.kpis.compact { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { border-radius: var(--radius); padding: 16px 18px; color: #fff; display: grid; gap: 4px; min-height: 96px; align-content: start; box-shadow: var(--shadow); }
.kpi-label { font-size: 13px; opacity: .92; font-weight: 500; }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kpi small { opacity: .9; }
.kpi-purple { background: linear-gradient(135deg, #9775fa, var(--brand)); }
.kpi-blue { background: linear-gradient(135deg, #4dabf7, var(--blue)); }
.kpi-green { background: linear-gradient(135deg, #38d9a9, var(--green)); }
.kpi-amber { background: linear-gradient(135deg, #ffc078, #f08c00); }
.kpi-red { background: linear-gradient(135deg, #ff8787, var(--red)); }
.kpis.compact .kpi { min-height: 70px; padding: 10px 12px; }
.kpis.compact .kpi-value { font-size: 17px; }
.kpis.compact .kpi .money { color: #fff; }

/* ---- Jadval ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters .input { width: auto; min-width: 150px; flex: 0 1 190px; }
.search { position: relative; flex: 1 1 220px; }
.search .icon { position: absolute; left: 10px; top: 11px; color: var(--muted); }
.search .input { padding-left: 32px; width: 100%; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfe; }
.table th:first-child { border-top-left-radius: 10px; }
.table th:last-child { border-top-right-radius: 10px; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafaff; }
.table .num { width: 40px; color: var(--muted); }
.table .actions { width: 48px; text-align: right; }
.table th.right, .table td.right { text-align: right; }
.table th.sortable { cursor: pointer; }
.table th.asc::after { content: " ▲"; }
.table th.desc::after { content: " ▼"; }
tr.clickable { cursor: pointer; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.pages { display: flex; gap: 4px; }
.pg { min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 600 12px var(--font); }
.pg.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pg:disabled { opacity: .4; cursor: default; }
.pg-gap { padding: 0 4px; color: var(--muted); align-self: center; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.money.neg { color: var(--red); }
.money.pos { color: var(--green); }

/* ---- Badge / chip ---- */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; margin-left: 4px; }
.badge-green { background: var(--green-50); color: #087f5b; }
.badge-red { background: var(--red-50); color: #c92a2a; }
.badge-blue { background: var(--blue-50); color: #1864ab; }
.badge-amber { background: var(--amber-50); color: #8a5a00; }
.badge-gray { background: #f1f3f5; color: #495057; }
.badge-purple { background: var(--brand-50); color: var(--brand-600); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 12px; border: 1px solid #a5d8ff; color: #1864ab; background: var(--blue-50); white-space: nowrap; cursor: default; }
button.chip { cursor: pointer; font: 600 12px var(--font); }
.chip-active { border-color: #96f2d7; background: var(--green-50); color: #087f5b; }
.chip-trial { border-color: #a5d8ff; }
.chip-frozen { border-color: #ffe066; background: var(--amber-50); color: #8a5a00; }
.chip-day { background: var(--green); border-color: var(--green); color: #fff; }
.legend-inline { display: flex; gap: 4px; }

/* ---- Drawer / modal ---- */
.backdrop { position: fixed; inset: 0; background: rgba(17, 20, 39, .38); z-index: 40; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--surface); z-index: 41; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.12); animation: slide .2s ease-out; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 40px); background: var(--surface); z-index: 41; border-radius: 16px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.drawer-head, .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2, .modal-head h2 { margin: 0; }
.drawer-body, .modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.drawer-footer, .modal-footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.form { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.field { display: grid; gap: 6px; flex: 1 1 100%; min-width: 0; }
.field.half { flex: 1 1 calc(50% - 6px); }
.field label { font-size: 13px; font-weight: 600; color: #3b4357; }
.field .req { color: var(--red); }
.field .help { color: var(--muted); font-size: 12px; }
.field .error { color: var(--red); font-size: 12px; min-height: 0; }
.field .error:empty { display: none; }
.weekdays { display: grid; gap: 8px; }
.weekdays .seg { display: flex; gap: 6px; }
.weekdays .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 600 12px var(--font); }
.day.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pay-info { display: flex; justify-content: space-between; gap: 12px; background: var(--brand-50); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.pay-info > div { display: grid; }
.pick-list { display: grid; gap: 6px; margin-top: 12px; }
.pick { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 13px var(--font); }
.pick:hover { border-color: var(--brand); }
.pick .money { grid-row: span 2; align-self: center; }

/* ---- Dropdown / toast ---- */
.dropdown { position: absolute; z-index: 60; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; }
.topbar ~ .dropdown, body > .dropdown { position: fixed; }
.dd-head { padding: 8px 10px; display: grid; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dd-item { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font: 13px var(--font); color: var(--text); }
.dd-item:hover { background: var(--brand-50); }
.dd-item.danger { color: var(--red); }
#toast-root { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 80; }
.toast { padding: 12px 16px; border-radius: 12px; background: #1c2233; color: #fff; box-shadow: var(--shadow); max-width: 380px; transition: opacity .4s, transform .4s; }
.toast-error { background: #c92a2a; }
.toast-info { background: #1864ab; }
.toast.leaving { opacity: 0; transform: translateY(8px); }

/* ---- Holatlar ---- */
.empty { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; color: var(--muted); text-align: center; }
.empty.big { padding: 80px 16px; }
.empty.error { color: var(--red); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--brand-50); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Talaba / guruh kartasi ---- */
.detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.profile { display: grid; gap: 14px; }
.profile-head { display: flex; gap: 12px; align-items: center; }
.profile-head h1 { font-size: 18px; }
.props { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.props dt { color: var(--muted); }
.props dd { margin: 0; }
.props.inline { grid-template-columns: repeat(3, auto 1fr); }
.props.small { font-size: 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs [role="tab"] { padding: 10px 14px; border: 0; background: transparent; font: 600 13px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs [aria-selected="true"] { color: var(--brand-600); border-bottom-color: var(--brand); }
.group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.group-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.group-card.left { opacity: .6; }
.gc-head { display: flex; align-items: center; gap: 6px; }
.gc-head .strong { flex: 1; }
.group-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.timeline li { padding: 10px 12px; border-left: 3px solid var(--brand); background: #fafaff; border-radius: 0 10px 10px 0; }
.note-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 14px; align-items: start; }
.person { display: flex; gap: 10px; align-items: center; }
.person div { display: grid; }
.plain-list { list-style: none; padding: 0; display: grid; gap: 8px; margin: 0 0 16px; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---- Davomat ---- */
.month-nav { display: flex; align-items: center; gap: 8px; }
.attendance td, .attendance th { text-align: center; padding: 6px; min-width: 34px; }
.attendance td:first-child, .attendance th:first-child { text-align: left; min-width: 180px; }
.attendance th.today { color: var(--brand); }
.att { font-weight: 700; border-radius: 6px; }
.att.clickable { cursor: pointer; }
.att.clickable:hover { background: var(--brand-50) !important; }
.att-present { color: var(--green); }
.att-late { color: var(--amber); }
.att-absent { color: var(--red); }
.att-excused { color: var(--blue); }

/* ---- Dars jadvali ---- */
.timetable { display: grid; gap: 2px; min-width: 900px; grid-auto-rows: minmax(64px, auto); }
.tt-corner, .tt-time { font-size: 11px; color: var(--muted); padding: 4px; grid-row: 1; }
.tt-room { font-weight: 600; font-size: 12px; padding: 8px; background: var(--brand-50); border-radius: 8px; grid-column: 1; display: flex; align-items: center; }
.tt-item { border-left: 4px solid; border-radius: 8px; padding: 6px 8px; display: grid; align-content: start; font-size: 12px; color: var(--text); overflow: hidden; }
.tt-item:hover { text-decoration: none; filter: brightness(.97); }
.tt-item small { color: var(--muted); }

/* ---- Lidlar kanban ---- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kanban-col { background: #eef0f7; border-radius: var(--radius); border-top: 4px solid var(--brand); padding: 10px; min-height: 200px; }
.kanban-col.over { outline: 2px dashed var(--brand); }
.kanban-col header { display: flex; justify-content: space-between; font-weight: 700; padding: 4px 4px 10px; }
.kanban-col .count { background: var(--surface); border-radius: 20px; padding: 0 8px; font-size: 12px; }
.kanban-list { display: grid; gap: 8px; }
.lead-card { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; box-shadow: var(--shadow); cursor: grab; }
.lead-card.dragging { opacity: .5; }
.lead-top { display: flex; justify-content: space-between; align-items: center; }
.funnel { display: grid; gap: 12px; }
.funnel-row { display: grid; grid-template-columns: 160px 1fr 60px 220px; gap: 12px; align-items: center; }
.funnel-bar { height: 22px; background: var(--brand-50); border-radius: 8px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: linear-gradient(90deg, #9775fa, var(--brand)); border-radius: 8px; }
.funnel-num { font-weight: 700; text-align: right; }

/* ---- Ruxsatlar oynasi ---- */
.perm-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: sticky; top: 64px; z-index: 10; }
.perm-toolbar .input[type="search"] { flex: 1 1 260px; width: auto; }
.perm-grid { columns: 3 320px; column-gap: 14px; }
.perm-card { break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.perm-card header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 6px; }
.perm-list { display: grid; gap: 2px; }
.perm-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 5px 2px; font-size: 13px; cursor: pointer; border-radius: 6px; }
.perm-row:hover { background: #fafaff; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }

/* ---- Grafik ---- */
.chart { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); }
.chart .axis { font-size: 11px; fill: var(--muted); }
.chart .s1, .legend .s1 { fill: var(--brand); background: var(--brand); }
.chart .s2, .legend .s2 { fill: var(--green); background: var(--green); }
.chart .s3, .legend .s3 { fill: #ff922b; background: #ff922b; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* ---- Chek (58 / 80 mm termal va A4) ---- */
.receipt { font: 12px/1.45 ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; width: 72mm; margin: 0 auto; color: #000; background: #fff; padding: 10px 8px; display: grid; gap: 2px; }
.receipt.paper-58 { width: 48mm; font-size: 10.5px; }
.receipt.paper-80 { width: 72mm; }
.receipt.paper-a4 { width: min(180mm, 100%); font: 14px/1.5 var(--font); padding: 24px 28px; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 4px 0; width: 100%; }
.r-line, .r-total { display: flex; justify-content: space-between; gap: 8px; }
.r-line span:last-child, .r-total span:last-child { text-align: right; overflow-wrap: anywhere; }
.r-item { padding-left: 2ch; }
.r-total { font-weight: 800; font-size: 1.2em; }
.r-center { text-align: center; overflow-wrap: anywhere; }
.r-small { font-size: .85em; }
.r-brand { text-align: center; font-weight: 800; font-size: 1.45em; letter-spacing: .02em; }
.r-title { text-align: center; font-weight: 800; letter-spacing: .08em; margin: 2px 0; }
.r-void { border: 2px solid #000; padding: 2px; }
.r-logo { max-width: 60%; max-height: 70px; object-fit: contain; filter: grayscale(1); }
.r-code { display: grid; justify-items: center; margin: 4px 0; }
.receipt-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; overflow: auto; display: grid; justify-items: center; }
.receipt-wrap .receipt { box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.r-history { font-size: 12px; } .r-history ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.design-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 16px; align-items: start; }
.preview-card { position: sticky; top: 12px; }
.help-card summary { cursor: pointer; font-weight: 600; } .help-card ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.code-line { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 12px ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; user-select: all; }
@media (max-width: 960px) { .design-grid { grid-template-columns: 1fr; } .preview-card { position: static; } }

@media print {
  body.printing-receipt > *:not(#overlay-root), body.printing-receipt .backdrop,
  body.printing-receipt .modal-head, body.printing-receipt .modal-footer,
  body.printing-receipt .modal-body > :not(.receipt-wrap) { display: none !important; }
  body.printing-receipt .modal { position: static; transform: none; box-shadow: none; width: auto; max-height: none; border: 0; }
  body.printing-receipt .modal-body { padding: 0; overflow: visible; }
  body.printing-receipt .receipt-wrap { background: #fff; border: 0; padding: 0; }
  body.printing-receipt .receipt { box-shadow: none; padding: 0; }
  body.printing-receipt { background: #fff; }
  body.print-58 .receipt, body.print-80 .receipt { width: 100%; }
  body.print-a4 .receipt { page: a4; }
  @page { margin: 2mm; }
  @page a4 { size: A4; margin: 15mm; }
}

/* ---- Moslashuvchan (planshet / telefon) ---- */
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 120px 1fr 50px; }
  .funnel-row .small { grid-column: 2 / -1; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .burger { display: inline-grid; }
  .content { padding: 16px; }
  .user-name { display: none; }
  .field.half { flex-basis: 100%; }
  .props.inline { grid-template-columns: auto 1fr; }
  .kpi-value { font-size: 22px; }
  .filters .input { flex: 1 1 140px; }
}

/* ---- Portal oynalari (o'qituvchi / talaba / ota-ona) ---- */
.pshell { min-height: 100vh; display: flex; flex-direction: column; }
.ptop { height: 60px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 20px; position: sticky; top: 0; z-index: 20; }
.ptop .grow { flex: 1; }
.pnav { display: flex; gap: 4px; margin-left: 12px; }
.pnav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: 13px; }
.pnav-link:hover { background: var(--brand-50); text-decoration: none; }
.pnav-link.active { background: var(--brand-50); color: var(--brand-600); }
.pcontent { padding: 24px; width: 100%; max-width: 1180px; margin: 0 auto; flex: 1; min-width: 0; }
.pbottom { display: none; }
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lesson { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lesson-date { min-width: 110px; font-weight: 600; }
.lesson-time { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 96px; }
.lesson-chip { display: grid; gap: 1px; padding: 6px 10px; border-left: 4px solid var(--brand); background: var(--surface); border-radius: 8px; box-shadow: var(--shadow); color: var(--text); font-size: 12px; }
.lesson-chip:hover { text-decoration: none; background: var(--brand-50); }
.day-cols, .week { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.week { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; }
.day-col, .week-col { display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.week-col.today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50); }
.child-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.child-card { display: grid; gap: 8px; color: var(--text); }
.child-card:hover { text-decoration: none; border-color: var(--brand); }
.summary { margin-bottom: 12px; }
.seg-group { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg { border: 0; border-right: 1px solid var(--line); background: var(--surface); padding: 7px 11px; font: 600 12px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg:last-child { border-right: 0; }
.seg:disabled { cursor: not-allowed; opacity: .6; }
.seg:focus-visible { outline: 3px solid rgba(121, 80, 242, .35); outline-offset: -2px; }
.notice { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--amber-50); color: #8a5a00; font-size: 13px; }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-blue { color: var(--blue); }
.section-title { margin: 18px 0 8px; font-size: 14px; }
tr.clickable { cursor: pointer; }
@media (max-width: 760px) {
  .ptop { padding: 0 12px; gap: 8px; }
  .pnav { display: none; }
  .ptop .user-name { display: none; }
  .pcontent { padding: 14px 12px 84px; }
  .pbottom { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .pbottom-link { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .pbottom-link:hover { text-decoration: none; }
  .pbottom-link.active { color: var(--brand-600); }
  .week { grid-template-columns: repeat(7, 150px); }
}

/* ===== Telegram OTP kirish ===== */
.otp-input { font-size: 26px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; height: 52px; }
.login-links { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; font-size: 13px; }
.notice.warn { background: var(--amber-50); color: #8a5a00; border: 1px solid #ffe066; }
.notice.small { font-size: 12px; }
.ok { color: #087f5b; }
.form-actions, .form-footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; }

/* ===== Ota-ona oynasi: xush kelibsiz ===== */
.welcome { display: grid; gap: 12px; }
.welcome .steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.steps li::marker { color: var(--brand-600); font-weight: 700; }
.offer-card .gc-head { align-items: flex-start; }

/* ===== Test natijasi (ota-ona/talaba/CRM) ===== */
.attempt-list { display: grid; gap: 12px; }
.attempt { display: grid; gap: 10px; }
.attempt h3, .attempt h4 { margin: 0; }
.code-box { display: grid; gap: 6px; justify-items: start; padding: 14px 16px; border: 2px dashed var(--brand); border-radius: var(--radius); background: var(--brand-50); margin: 10px 0; }
.code-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-600); font-weight: 700; }
.code-value { font: 800 30px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--text); user-select: all; }
.result { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--green-50); }
.result .score { display: grid; }
.result .score strong { font-size: 30px; line-height: 1.1; color: #087f5b; }
.result .level { font-size: 22px; font-weight: 800; color: var(--brand-600); }
.result-block { display: grid; gap: 10px; margin: 12px 0; }
.override-row { display: flex; flex-wrap: wrap; gap: 8px; }
.override-row .input { flex: 1 1 140px; min-width: 0; }
.rec-slot:empty { display: none; }
.problems { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.event-list { margin: 8px 0; padding-left: 18px; }

/* ===== Savol muharriri (CRM) ===== */
.q-list { display: grid; gap: 10px; }
.q-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 8px; background: var(--surface); }
.q-head { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: start; }
.q-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); font-weight: 700; display: grid; place-items: center; font-size: 12px; }
.q-text { white-space: pre-wrap; font-weight: 600; }
.q-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.q-choices { margin: 0; padding-left: 36px; list-style: none; display: grid; gap: 2px; color: var(--muted); }
.q-choices .is-correct { color: #087f5b; font-weight: 600; }
.choice-edit { display: grid; gap: 8px; }
.choice-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.choice-row input[type="radio"], .choice-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.answers { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.answers > li.ans-ok::marker { color: var(--green); }
.answers > li.ans-bad::marker { color: var(--red); }
.a-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; margin-bottom: 4px; }
.a-choices { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.a-choices li { display: flex; align-items: center; gap: 8px; }
.a-choices .is-correct { color: #087f5b; }
.a-choices .chosen { font-weight: 700; color: var(--text); }
.a-choices .chosen:not(.is-correct) { color: var(--red); }

/* ===== Talaba tanlagich ===== */
.picker { display: grid; gap: 6px; }
.picker-list { display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.picker-item { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font: 13px var(--font); }
.picker-item:hover, .picker-item:focus-visible { border-color: var(--brand); background: var(--brand-50); outline: none; }
.picker-chosen { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--green-50); }

/* ===== Planshet (kiosk): katta tugmalar, aniq kontrast ===== */
.kiosk { min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); display: flex; flex-direction: column; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.kiosk-center { align-items: center; justify-content: center; padding: 20px; }
.kiosk-card { width: min(520px, 100%); background: var(--surface); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; text-align: center; justify-items: center; }
.kiosk-card h1 { font-size: 26px; }
.kiosk-code { width: 100%; height: 72px; text-align: center; font: 800 34px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; border: 2px solid var(--line); border-radius: 16px; background: #fff; user-select: text; -webkit-user-select: text; }
.kiosk-code:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(121, 80, 242, .2); }
.kiosk-btn { min-height: 52px; min-width: 120px; padding: 0 22px; font-size: 17px; border-radius: 14px; }
.kiosk-card .kiosk-btn { width: 100%; }
.form-error { color: var(--red); min-height: 20px; font-size: 14px; }
.k-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.k-top > div:first-child { display: grid; }
.k-top small { color: var(--muted); }
.k-timer { font: 800 28px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; padding: 4px 14px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.k-timer.danger { background: var(--red-50); color: var(--red); animation: kpulse 1s ease-in-out infinite; }
@keyframes kpulse { 50% { opacity: .55; } }
.k-progress { height: 6px; background: var(--line); }
.k-progress span { display: block; height: 100%; background: var(--green); transition: width .25s; }
.k-body { flex: 1; width: min(860px, 100%); margin: 0 auto; padding: 22px 20px 12px; display: grid; gap: 16px; align-content: start; }
.k-qnum { display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 600; }
.k-question { font-size: 24px; line-height: 1.35; margin: 0; white-space: pre-wrap; }
.k-choices { display: grid; gap: 10px; }
.k-choice { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; min-height: 64px; font: 600 19px var(--font); color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: 16px; cursor: pointer; }
.k-choice.on { border-color: var(--brand); background: var(--brand-50); }
.k-choice:focus-visible { outline: 3px solid rgba(121, 80, 242, .45); outline-offset: 2px; }
.k-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #adb5bd; background: #fff; display: inline-block; }
.k-mark.sq { border-radius: 6px; }
.k-choice.on .k-mark { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px #fff; }
.k-saved { color: var(--green); min-height: 18px; }
.k-saved.warn { color: #8a5a00; }
.k-fs { display: flex; align-items: center; gap: 10px; margin: 8px 20px 0; }
.k-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); position: sticky; bottom: 0; }
.k-dots { display: flex; gap: 6px; overflow-x: auto; padding: 4px; justify-content: center; }
.k-dot { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font: 700 14px var(--font); cursor: pointer; color: var(--muted); }
.k-dot.done { background: var(--green-50); border-color: #96f2d7; color: #087f5b; }
.k-dot.cur { border-color: var(--brand); color: var(--brand-600); background: var(--brand-50); }
@media (max-width: 760px) {
  .q-head { grid-template-columns: auto 1fr; }
  .q-head .chips, .q-actions { grid-column: 2; justify-content: flex-start; }
  .k-nav { grid-template-columns: 1fr 1fr; }
  .k-dots { grid-column: 1 / -1; order: -1; }
  .k-question { font-size: 20px; }
}

.row-actions.spread { justify-content: space-between; align-items: center; }
.tab-body > div > .row-actions { margin-bottom: 12px; }
.attempt h4 { margin: 10px 0 8px; }
.kiosk-btn { justify-content: center; }

/* Qo'shimcha daromadlar: sotuv qatorlari */
.sale-lines { display: grid; gap: 8px; }
.sale-line { display: grid; grid-template-columns: 1fr 84px auto; gap: 8px; align-items: center; }
.sale-line .error { grid-column: 1 / -1; }
.sale-line .qty { text-align: right; }
.link-right { display: block; margin-left: auto; }
.strike { text-decoration: line-through; }

/* Obuna banneri (ko'p markazli rejim) */
.sub-banner { background: var(--amber-50); color: #7a5a00; border: 1px solid #ffe58f; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.sub-banner.danger { background: var(--red-50); color: #c92a2a; border-color: #ffc9c9; }

/* Platforma: landing, ro'yxatdan o'tish, panel */
.pf { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #e5dbff, transparent), var(--bg); }
.pf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pf-top > a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.pf-top nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pf-top nav .active { color: var(--brand-600); font-weight: 600; }
.pf-top .logo { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-weight: 700; }
.pf-url { font-size: 18px; } .pf-url code { font-size: 16px; padding: 6px 12px; background: var(--surface); }
.pf-signup { width: min(460px, 100%); }
.pf-admin .page { max-width: 1200px; margin: 0 auto; padding: 20px 16px; display: grid; gap: 16px; }
.props-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.text-green { color: var(--green); }

/* Portal qobig'i: kompyuterda chap menyu */
.pside { display: none; }
@media (min-width: 900px) {
  .pshell { display: grid; grid-template-columns: 240px 1fr; flex-direction: initial; }
  .pside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); }
  .pside nav { display: grid; gap: 4px; }
  .pside-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; }
  .pside-link:hover { background: var(--brand-50); text-decoration: none; }
  .pside-link.active { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(121, 80, 242, .3); }
  .pcol { min-width: 0; display: flex; flex-direction: column; }
  .ptop .brand, .pnav { display: none; }
}

/* O'qituvchi: guruh jadvali */
.tg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tg-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tg-toolbar .grow { flex: 1; }
.tg-tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); gap: 2px; flex-wrap: wrap; }
.tg-tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 10px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.tg-tabs button.on { background: var(--brand); color: #fff; }
.tg-select { width: auto; min-width: 120px; border-radius: 12px; }
.tg-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; margin-bottom: 10px; }
.tg-legend b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; margin-right: 4px; background: var(--surface); border: 1px solid var(--line); }
.tg-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: 14px; }
.tg-grid { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.tg-grid th, .tg-grid td { padding: 6px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--line); }
.tg-grid thead th { position: sticky; top: 0; z-index: 2; font-weight: 600; color: var(--muted); background: var(--bg); }
.tg-grid thead th.today { color: var(--brand-600); }
.tg-grid td.today { background: var(--brand-50); }
.tg-day { display: grid; line-height: 1.1; } .tg-day span { font-size: 15px; color: var(--text); } .tg-day small { font-size: 10px; }
.tg-all { margin-top: 4px; border: 0; background: var(--green-50); color: var(--green); border-radius: 6px; font: 600 10px var(--font); padding: 2px 6px; cursor: pointer; white-space: nowrap; }
.tg-name-h, .tg-name { position: sticky; left: 0; z-index: 1; text-align: left !important; min-width: 220px; }
.tg-name-h { z-index: 3; }
.tg-name { font-weight: 600; color: var(--text); box-shadow: inset 3px 0 0 var(--green); }
.tg-name-in { display: flex; align-items: center; gap: 10px; }
.tg-name.tg-en-trial { box-shadow: inset 3px 0 0 var(--blue); } .tg-name.tg-en-frozen { box-shadow: inset 3px 0 0 var(--amber); } .tg-name.tg-en-left { box-shadow: inset 3px 0 0 var(--line); color: var(--muted); }
.tg-cell { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 700 17px var(--font); cursor: pointer; display: inline-grid; place-items: center; transition: transform .08s, box-shadow .08s; }
.tg-cell:hover:not(:disabled) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(121, 80, 242, .15); }
.tg-cell:active:not(:disabled) { transform: scale(.94); }
.tg-cell.locked { background: #f1f3f8; cursor: default; }
.tg-cell.out { background: repeating-linear-gradient(45deg, #f4f6fb, #f4f6fb 4px, #eceff6 4px, #eceff6 8px); border-style: dashed; }
.tg-present, b.tg-present { color: var(--green); } .tg-late, b.tg-late { color: var(--amber); } .tg-absent, b.tg-absent { color: var(--red); } .tg-excused, b.tg-excused { color: var(--blue); }
.tg-cell.tg-present:not(.locked) { background: var(--green-50); border-color: #b2f2bb; }
.tg-cell.tg-absent:not(.locked) { background: var(--red-50); border-color: #ffc9c9; }
.tg-pop { position: absolute; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(16, 24, 40, .18); padding: 14px; display: grid; gap: 10px; }
.tg-pop-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tg-pop-status { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tg-st { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 6px; font: 600 13px var(--font); cursor: pointer; }
.tg-st-present.on, .tg-st-present:hover { background: var(--green); color: #fff; border-color: var(--green); }
.tg-st-late.on, .tg-st-late:hover { background: var(--amber); color: #fff; border-color: var(--amber); }
.tg-st-absent.on, .tg-st-absent:hover { background: var(--red); color: #fff; border-color: var(--red); }
.tg-st-excused.on, .tg-st-excused:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.tg-pop-grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tg-grade { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 0; font: 600 13px var(--font); cursor: pointer; }
.tg-grade.on, .tg-grade:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.tg-pop-note { display: flex; gap: 6px; }
.tg-bar { position: relative; height: 22px; min-width: 120px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.tg-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--green), #63e6be); }
.tg-bar span { position: relative; font-size: 12px; font-weight: 600; padding-left: 8px; line-height: 22px; }

/* ---- Ota-onalar faolligi ---- */
.pa-period { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.pa-period a { padding: 6px 12px; border-radius: 8px; font: 600 13px var(--font); color: var(--muted); text-decoration: none; }
.pa-period a.on { background: var(--brand); color: #fff; }
.pa-top { display: grid; gap: 14px; margin-bottom: 14px; }
.pa-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
@media (max-width: 900px) { .pa-grid { grid-template-columns: 1fr; } }
.pa-card h3 { margin: 0; font-size: 15px; }
.pa-card p { margin: 2px 0 12px; }
.pa-days { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.pa-day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 6px; }
.pa-day i { width: 100%; max-width: 22px; background: linear-gradient(180deg, #9775fa, var(--brand)); border-radius: 4px 4px 0 0; }
.pa-day span { font-size: 10px; color: var(--muted); margin-top: 3px; }
.pa-bars { display: grid; gap: 8px; }
.pa-bar { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; }
.pa-bar div { background: var(--line); border-radius: 6px; height: 10px; overflow: hidden; }
.pa-bar i { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.pa-bar b { text-align: right; }
.pa-name { display: grid; gap: 2px; }
.pa-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; padding: 12px; background: #fafaff; border-radius: 12px; }
.pa-head > div { display: grid; gap: 2px; }
.timeline section { display: grid; gap: 6px; }
.timeline h4 { margin: 10px 0 2px; font-size: 13px; }
.tl-item { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 8px 10px; border-left: 3px solid var(--brand); background: #fafaff; border-radius: 0 10px 10px 0; font-size: 13px; }
.tl-item time { color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-login, .tl-login_otp { border-left-color: var(--green); background: var(--green-50); }
.secret-box { display: grid; gap: 8px; padding: 14px; border: 2px dashed var(--brand); border-radius: 12px; background: #fafaff; }
.secret-box code { font-size: 20px; letter-spacing: .06em; user-select: all; }

/* ---- Obuna / texnik yordam bannerlari, platforma eslatmalari ---- */
.banners { display: grid; gap: 8px; margin-bottom: 12px; }
.banners .sub-banner { margin: 0; }
.sub-banner.support { background: #1f1147; color: #e5dbff; border-color: #5f3dc4; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sub-banner.support .btn { color: #fff; margin-left: auto; }
.pf-attention { border: 1px solid #ffd8a8; background: #fff9f0; margin-bottom: 14px; }
.pf-att-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; color: #d9480f; }
.pf-att-head .muted { color: var(--muted); }
.pf-att-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pf-att { display: grid; justify-items: start; gap: 4px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; }
.pf-att:hover { border-color: var(--brand); }
.pf-att-blocked { border-left: 4px solid var(--red); }
.pf-att-read_only { border-left: 4px solid #f08c00; }
.pf-att-warning { border-left: 4px solid var(--blue); }
.row-actions.wrap { flex-wrap: wrap; }
.pf-partner-logo { width: 48px; height: 32px; object-fit: contain; }

/* =====================================================================================
   Platforma bosh sahifasi (landing) — "doska" palitrasi
   ===================================================================================== */
.lp {
  --lp-board: #12372a; --lp-board-2: #1b4a39; --lp-chalk: #f3f5f2; --lp-hl: #f2c94c; --lp-ink: #10221b; --lp-slate: #5b6b63;
  --lp-ok: #2f9e6b; --lp-line: #d7ddd8; --lp-red: #c92a2a;
  background: var(--lp-chalk); color: var(--lp-ink); min-height: 100vh;
  font: 400 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.lp a { color: inherit; }
.lp :focus-visible { outline: 3px solid var(--lp-hl); outline-offset: 2px; border-radius: 6px; }
.lp-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(243, 245, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lp-line); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.lp-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--lp-board); color: var(--lp-hl); font-weight: 900; }
.lp-nav { display: flex; gap: 22px; margin-left: 12px; }
.lp-nav a { text-decoration: none; color: var(--lp-slate); font-size: 15px; font-weight: 500; }
.lp-nav a:hover { color: var(--lp-ink); }
.lp-top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lp-link { font-size: 15px; color: var(--lp-slate) !important; text-decoration: none; }
.lp-btn { font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 12px; background: var(--lp-board);
  color: var(--lp-chalk) !important; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.lp-btn:hover { background: var(--lp-board-2); }
.lp-btn:active { transform: translateY(1px); }
.lp-btn-small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.lp-btn-light { background: var(--lp-hl); color: var(--lp-ink) !important; }
.lp-btn-light:hover { background: #f7d872; }
.lp-btn-ghost { background: transparent; color: var(--lp-board) !important; border: 2px solid var(--lp-board); padding: 10px 16px; }
.lp-btn-ghost:hover { background: var(--lp-board); color: var(--lp-chalk) !important; }
.lp-muted { color: var(--lp-slate); font-size: 15px; }

.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(36px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 72px); max-width: 1200px; margin: 0 auto; }
.lp-hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 850; margin: 0 0 20px; max-width: 15ch; }
.lp-lead { font-size: clamp(17px, 1.5vw, 20px); color: #2e3f37; max-width: 46ch; margin: 0 0 28px; }
.lp-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* --- doska (asosiy animatsiya) --- */
.lp-board { margin: 0; background: var(--lp-board); border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(18, 55, 42, .55); color: var(--lp-chalk); }
.lp-window { background: #fbfcfa; color: var(--lp-ink); border-radius: 12px; overflow: hidden; }
.lp-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9ede9; font-size: 12px; color: var(--lp-slate); }
.lp-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #c6cec8; }
.lp-chrome span { margin-left: 10px; background: #fff; padding: 2px 10px; border-radius: 6px; }
.lp-app { display: grid; grid-template-columns: 112px 1fr; min-height: 300px; }
.lp-side { background: #f1f4f1; padding: 12px 8px; display: grid; align-content: start; gap: 4px; font-size: 13px; color: var(--lp-slate); }
.lp-side span { padding: 6px 9px; border-radius: 7px; transition: background .3s, color .3s; }
.lp-screen { position: relative; min-height: 300px; }
.lp-app:has(.lp-screen[data-scene="0"]) .lp-side [data-i="0"],
.lp-app:has(.lp-screen[data-scene="1"]) .lp-side [data-i="1"],
.lp-app:has(.lp-screen[data-scene="2"]) .lp-side [data-i="2"],
.lp-app:has(.lp-screen[data-scene="3"]) .lp-side [data-i="3"],
.lp-app:has(.lp-screen[data-scene="4"]) .lp-side [data-i="3"],
.lp-app:has(.lp-screen[data-scene="5"]) .lp-side [data-i="4"] { background: var(--lp-board); color: var(--lp-chalk); }
.lp-s { position: absolute; inset: 0; padding: 18px; opacity: 0; visibility: hidden; transition: opacity .35s; display: grid; align-content: center; }
.lp-s.on { opacity: 1; visibility: visible; }

.lp-s-lead { grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.lp-col { background: #f1f4f1; border-radius: 10px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.lp-col-dim { opacity: .6; }
.lp-col-h { font-size: 12px; font-weight: 700; color: var(--lp-slate); }
.lp-card { background: #fff; border: 1px solid var(--lp-line); border-radius: 9px; padding: 10px; display: grid; gap: 2px; font-size: 13px; min-height: 26px; }
.lp-card span { color: var(--lp-slate); }
.lp-tag { justify-self: start; margin-top: 4px; font-size: 11px; background: #fff4cc; color: #7a5b00 !important; padding: 1px 7px; border-radius: 6px; }
.lp-ghost { background: transparent; border-style: dashed; }
.lp-s-lead.on .lp-card-in { animation: lp-drop .6s cubic-bezier(.2, .9, .3, 1.2) both; }

.lp-form { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; align-items: center; font-size: 13px; }
.lp-form label { color: var(--lp-slate); }
.lp-field { border: 1px solid var(--lp-line); border-radius: 9px; padding: 9px 11px; background: #fff; }
.lp-s-group.on .lp-type { overflow: hidden; white-space: nowrap; animation: lp-type 1s steps(24) both; }
.lp-s-group.on .lp-auto { animation: lp-flash 1.2s .9s both; font-weight: 700; }

.lp-att { display: grid; grid-template-columns: 96px repeat(6, 1fr); gap: 6px; font-size: 12px; align-items: center; }
.lp-att-h { text-align: center; color: var(--lp-slate); }
.lp-att-n { font-weight: 600; }
.lp-tick { aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; background: #e6f4ec; color: var(--lp-ok); font-weight: 800; }
.lp-tick.no { background: #fdecec; color: var(--lp-red); }
.lp-s-att.on .lp-tick { animation: lp-pop .35s var(--d) both; }

.lp-pay { display: grid; grid-template-columns: 1fr 150px; gap: 10px 14px; align-items: start; font-size: 13px; }
.lp-bal { grid-column: 1; display: grid; gap: 2px; border: 1px solid var(--lp-line); border-radius: 10px; padding: 12px; background: #fff; }
.lp-bal span { color: var(--lp-slate); font-size: 12px; }
.lp-bal b { font-size: 24px; letter-spacing: -.02em; }
.lp-bal-old { color: var(--lp-red); }
.lp-bal-new { color: var(--lp-ok); display: none; }
.lp-pay > .lp-field { grid-column: 1; }
.lp-receipt { grid-column: 2; grid-row: 1 / span 2; background: #fff; border: 1px dashed #b8c2bb; padding: 10px; display: grid; gap: 3px; font-size: 11px; text-align: center;
  clip-path: inset(0 0 100% 0); }
.lp-s-pay.on .lp-receipt { animation: lp-print 1.4s 1s steps(10) both; }
.lp-s-pay.on .lp-bal-old { animation: lp-out .3s .8s both; }
.lp-s-pay.on .lp-bal-new { display: block; animation: lp-in .4s 1.05s both; }
.lp-s-pay.on .lp-bal-old { position: absolute; }

.lp-s-tg { justify-items: center; }
.lp-phone { width: min(260px, 100%); background: #dfe9e4; border-radius: 18px; padding: 14px; display: grid; gap: 8px; }
.lp-bubble { justify-self: start; background: #fff; padding: 8px 11px; border-radius: 12px 12px 12px 3px; font-size: 13px; max-width: 92%; box-shadow: 0 1px 0 rgba(16, 34, 27, .08); }
.lp-s-tg.on .lp-bubble { animation: lp-in .4s both; }
.lp-s-tg.on .lp-b2 { animation-delay: .7s; }
.lp-s-tg.on .lp-b3 { animation-delay: 1.4s; }

.lp-rep { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; height: 170px; align-items: end; }
.lp-rep-c { display: grid; height: 100%; align-content: end; justify-items: center; gap: 6px; font-size: 12px; color: var(--lp-slate); }
.lp-rep-c i { width: 70%; height: var(--h); background: var(--lp-board); border-radius: 6px 6px 0 0; transform-origin: bottom; }
.lp-rep-c:last-child i { background: var(--lp-hl); }
.lp-s-rep.on .lp-rep-c i { animation: lp-grow .7s cubic-bezier(.2, .8, .2, 1) both; }
.lp-rep-t { margin: 12px 0 0; font-size: 14px; }

.lp-board figcaption { display: grid; gap: 12px; padding: 16px 4px 2px; }
.lp-caption { display: grid; gap: 2px; min-height: 56px; }
.lp-caption b { font-size: 18px; color: var(--lp-hl); }
.lp-caption span { font-size: 15px; color: #cfe0d7; }
.lp-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lp-dots button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #3d6b59; background: transparent; color: #cfe0d7; font: 700 12px inherit; cursor: pointer; }
.lp-dots button[aria-current="true"] { background: var(--lp-hl); border-color: var(--lp-hl); color: var(--lp-ink); }
.lp-play { background: transparent; border: 1px solid #3d6b59; color: var(--lp-chalk); border-radius: 8px; padding: 6px 12px; font: 600 13px inherit; cursor: pointer; }

@keyframes lp-drop { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
@keyframes lp-type { from { max-width: 0; } to { max-width: 100%; } }
@keyframes lp-flash { 0%, 100% { background: #fff; } 30% { background: #fff4cc; } }
@keyframes lp-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes lp-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lp-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes lp-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes lp-grow { from { transform: scaleY(0); } }

/* --- bo'limlar --- */
.lp-section { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px); }
.lp-section h2, .lp-final h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; font-weight: 800; }
.lp-sub { color: var(--lp-slate); max-width: 60ch; margin: 0 0 36px; font-size: 18px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; border-top: 2px solid var(--lp-ink); }
.lp-step { counter-increment: s; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--lp-line); align-items: center; }
.lp-step::before { content: counter(s); font-size: 44px; font-weight: 850; color: var(--lp-board); line-height: 1; align-self: start; }
.lp-step h3 { margin: 0 0 6px; font-size: 21px; }
.lp-step p { margin: 0; color: #2e3f37; max-width: 48ch; }
.lp-mini { background: #fff; border: 1px solid var(--lp-line); border-radius: 12px; padding: 14px; font-size: 14px; }
.lp-slug { display: grid; gap: 6px; }
.lp-slug b { font-size: 17px; word-break: break-all; color: var(--lp-board); }
.lp-input { font: inherit; padding: 9px 11px; border-radius: 9px; border: 1px solid #b8c2bb; background: var(--lp-chalk); }
.lp-mini-xls { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.lp-mini-xls span { padding: 8px 10px; border-right: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-mini-xls span:nth-child(-n+3) { background: #e6f4ec; font-weight: 700; color: var(--lp-board); }
.lp-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-roles span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--lp-line); }
.lp-roles span.on { background: var(--lp-board); color: var(--lp-chalk); border-color: var(--lp-board); }

.lp-dark { max-width: none; background: var(--lp-board); color: var(--lp-chalk); }
.lp-dark { padding-left: max(clamp(16px, 4vw, 48px), calc((100% - 1200px) / 2 + clamp(16px, 4vw, 48px))); padding-right: max(clamp(16px, 4vw, 48px), calc((100% - 1200px) / 2 + clamp(16px, 4vw, 48px))); }
.lp-dark .lp-sub { color: #cfe0d7; }
.lp-roles-box { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.lp-role-tabs { display: grid; gap: 4px; align-content: start; }
.lp-role-tabs button { text-align: left; padding: 14px 16px; border-radius: 12px; border: 0; background: transparent; color: #cfe0d7; font: 600 18px inherit; cursor: pointer; }
.lp-role-tabs button[aria-selected="true"] { background: var(--lp-chalk); color: var(--lp-ink); }
.lp-role-panel { border-left: 2px solid var(--lp-hl); padding: 6px 0 6px 28px; }
.lp-role-panel.swap { animation: lp-in .3s both; }
.lp-role-who { color: var(--lp-hl); font-weight: 700; margin: 0 0 14px; }
.lp-role-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 21px; }
.lp-role-panel li::before { content: "✓"; color: var(--lp-hl); margin-right: 12px; }

.lp-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.lp-feature { padding: 18px 0; border-bottom: 1px solid var(--lp-line); }
.lp-feature h3 { margin: 0 0 4px; font-size: 18px; }
.lp-feature p { margin: 0; color: var(--lp-slate); font-size: 16px; }

.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.lp-plan { border: 1px solid var(--lp-line); border-radius: 16px; padding: 24px; display: grid; gap: 8px; align-content: start; background: #fff; }
.lp-plan h3 { margin: 0; font-size: 20px; }
.lp-plan p { margin: 0; color: var(--lp-slate); }
.lp-plan .lp-btn { margin-top: 10px; justify-self: start; }
.lp-plan-main { border: 2px solid var(--lp-board); }
.lp-price { font-size: 34px !important; font-weight: 850; color: var(--lp-ink) !important; letter-spacing: -.02em; }
.lp-price span { font-size: 15px; font-weight: 500; color: var(--lp-slate); }

.lp-partners { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-partner { display: grid; gap: 6px; justify-items: center; padding: 18px 22px; border: 1px solid var(--lp-line); border-radius: 14px; background: #fff; text-decoration: none; min-width: 160px; }
.lp-partner img { max-height: 44px; max-width: 160px; object-fit: contain; }
.lp-partner span { font-size: 13px; color: var(--lp-slate); }
.lp-empty { margin: 0; padding: 22px 24px; border: 2px dashed #b8c2bb; border-radius: 14px; color: var(--lp-slate); font-size: 18px; max-width: 420px; }

.lp-faq > * { max-width: 860px; }
.lp-q { border-bottom: 1px solid var(--lp-line); }
.lp-q summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-q summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--lp-board); transition: transform .2s; }
.lp-q[open] summary::after { transform: rotate(45deg); }
.lp-q p { margin: 0 0 18px; color: #2e3f37; max-width: 70ch; }

.lp-final { background: var(--lp-board); color: var(--lp-chalk); text-align: center; padding: clamp(56px, 8vw, 104px) 16px; display: grid; justify-items: center; gap: 4px; }
.lp-final p { color: #cfe0d7; margin: 0 0 22px; font-size: 18px; }
.lp-foot { display: flex; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 4vw, 48px); font-size: 14px; color: var(--lp-slate); }

@media (max-width: 1000px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero h1 { max-width: 18ch; }
  .lp-nav { display: none; }
  .lp-step { grid-template-columns: 52px 1fr; }
  .lp-step > .lp-mini { grid-column: 2; }
  .lp-roles-box { grid-template-columns: 1fr; }
  .lp-role-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp { font-size: 16px; }
  .lp-top-actions .lp-link { display: none; }
  .lp-app { grid-template-columns: 1fr; }
  .lp-side { display: none; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-board { padding: 10px; border-radius: 16px; }
  .lp-pay { grid-template-columns: 1fr; }
  .lp-receipt { grid-column: 1; grid-row: auto; }
  .lp-att { grid-template-columns: 78px repeat(6, 1fr); }
  .lp-role-panel ul { font-size: 18px; }
  .lp-step::before { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
  .lp-receipt { clip-path: none; }
  .lp-s-pay.on .lp-bal-old { display: none; }
  .lp-s-pay.on .lp-bal-new { display: block; }
}

/* ---- Kirish / ro'yxatdan o'tish / parolni tiklash ---- */
.login-form, .otp-step { display: grid; gap: 14px; }
.login-form h1, .login-card > h1 { margin: 0; font-size: 21px; }
.login-form .muted { margin: -6px 0 0; font-size: 14px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.link-btn { border: 0; background: none; padding: 0; font: 600 13px var(--font); color: var(--brand); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.login-alt { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 92px; width: 100%; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font: 600 12px var(--font); padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.pw-eye:hover { background: var(--bg); color: var(--text); }
.btn-tg { background: #229ed9; color: #fff; border-color: #229ed9; }
.btn-tg:hover { background: #1c8cc2; }
.otp-phone { margin: -4px 0 0; font-weight: 700; font-size: 16px; }
.otp-link { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: #e8f5fc; color: #0b4f73; font-size: 14px; }
.otp-link ol { margin: 0; padding-left: 20px; display: grid; gap: 3px; }

/* ---- Landing: kirish bo'limi, ro'yxatdan o'tish qadamlari ---- */
.lp-link { border: 0; background: none; cursor: pointer; font: 600 15px inherit; }
.lp-cta-note { margin: 12px 0 0; }
.lp-access { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr); gap: 28px; align-items: center; }
.lp-access-list { list-style: none; counter-reset: a; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.lp-access-list li { counter-increment: a; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.lp-access-list li::before { content: counter(a); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lp-board); color: var(--lp-hl); font-weight: 800; }
.lp-access-list b { font-size: 18px; }
.lp-access-list span { color: var(--lp-slate); }
.lp-login-mock { background: #fff; border: 1px solid var(--lp-line); border-radius: 18px; padding: 22px; display: grid; gap: 6px; font-size: 13px; box-shadow: 0 20px 40px -28px rgba(18, 55, 42, .45); }
.lp-login-mock > b { font-size: 18px; margin: 4px 0 6px; }
.lp-login-mock label { color: var(--lp-slate); }
.lp-mock-url { justify-self: start; font-size: 11px; background: #eef2ee; padding: 3px 9px; border-radius: 999px; color: var(--lp-slate); }
.lp-mock-in { border: 1px solid var(--lp-line); border-radius: 9px; padding: 9px 11px; background: var(--lp-chalk); }
.lp-mock-btn { margin-top: 6px; background: var(--lp-board); color: var(--lp-chalk); border-radius: 9px; padding: 10px; text-align: center; font-weight: 700; }
.lp-mock-link { text-align: center; color: var(--lp-board); font-weight: 600; }
.lp-tg-mock { background: #dfe9e4; border-radius: 18px; padding: 14px; display: grid; gap: 8px; font-size: 13px; }
.lp-tg-head { display: flex; align-items: center; gap: 8px; }
.lp-tg-head span { width: 28px; height: 28px; border-radius: 50%; background: #229ed9; color: #fff; display: grid; place-items: center; font-weight: 800; }
.lp-tg-msg { background: #fff; border-radius: 14px 14px 14px 4px; padding: 12px; display: grid; gap: 3px; }
.lp-tg-msg i { color: var(--lp-slate); margin-bottom: 6px; }
.lp-tg-msg code { font: 800 24px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: var(--lp-board); margin: 2px 0 6px; }
.lp-tg-btn { background: rgba(255, 255, 255, .7); border-radius: 10px; padding: 8px; text-align: center; color: #1c8cc2; font-weight: 700; }
@media (max-width: 1000px) { .lp-access { grid-template-columns: 1fr 1fr; } .lp-access > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .lp-access { grid-template-columns: 1fr; } }

.su-card { width: min(460px, 100%); }
.su-steps { list-style: none; padding: 0; margin: 0 0 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: su; }
.su-steps li { counter-increment: su; font-size: 12px; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line); }
.su-steps li::before { content: counter(su) ". "; font-weight: 700; }
.su-steps li.on { color: var(--text); font-weight: 600; border-top-color: var(--brand); }
.su-steps li.done { border-top-color: var(--green); }
.su-done { display: grid; gap: 10px; text-align: center; justify-items: center; }
.su-check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.slug-input .input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.slug-input span { display: grid; place-items: center; padding: 0 12px; background: var(--bg); color: var(--muted); font-size: 14px; }
.pf-top nav { display: flex; align-items: center; gap: 16px; }
.notice.ok { background: var(--green-50); color: #087f5b; border: 1px solid #96f2d7; }
.enter-choose { display: grid; gap: 8px; }
.enter-choose:empty { display: none; }
.enter-other { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.enter-other summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--brand); }
.enter-other[open] { gap: 10px; }

/* Yangiliklar (bosh sahifa + panel oldindan ko'rish) */
.lp-newsbar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 9px 16px; background: var(--lp-board); color: var(--lp-chalk); font-size: 15px; text-align: center; }
.lp-newsbar-tag { padding: 2px 9px; border-radius: 999px; background: var(--lp-hl); color: var(--lp-ink); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.lp-newsbar-title { font-weight: 600; }
.lp-newsbar a { color: var(--lp-hl); font-weight: 700; text-decoration: none; white-space: nowrap; }
.lp-newsbar a:hover { text-decoration: underline; }
.lp-news { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.lp-news-card { display: grid; gap: 8px; align-content: start; padding: 20px 22px; border: 1px solid var(--lp-line); border-top: 4px solid var(--lp-ok); border-radius: 14px; background: #fff; }
.lp-news-improvement { border-top-color: #3b82c4; }
.lp-news-news { border-top-color: var(--lp-hl); }
.lp-news-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--lp-slate); }
.lp-news-tag { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--lp-ok); }
.lp-news-improvement .lp-news-tag { color: #2b6ca3; }
.lp-news-news .lp-news-tag { color: #9a6b00; }
.lp-news-card h3 { margin: 0; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.lp-news-card p { margin: 0; color: var(--lp-slate); font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.pf-news-preview { min-height: 0; padding: 14px; border-radius: 12px; border: 1px dashed var(--line); }

/* Tariflar: o'quvchilar soni + muddat; "Sotib olish" (Telegram) */
.lp-pricing { display: grid; gap: 22px; }
.lp-period { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #e3e8e4; justify-self: start; }
.lp-period button { font: inherit; font-size: 15px; font-weight: 700; border: 0; background: transparent; color: var(--lp-slate); padding: 8px 16px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lp-period button.on { background: #fff; color: var(--lp-ink); box-shadow: 0 1px 3px rgba(16, 34, 27, .15); }
.lp-period-bonus { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: var(--lp-hl); color: var(--lp-ink); }
.lp-plan-head { display: grid; gap: 2px; }
.lp-plan-range { font-size: 14px; font-weight: 700; color: var(--lp-ok); }
.lp-price-ask { font-size: 26px !important; }
.lp-plan-month { font-size: 14px; }
.lp-plan-month b { color: var(--lp-ok); }
.lp-plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.lp-plan .lp-plan-actions .lp-btn { margin-top: 0; }
.lp-link-ghost { font-size: 15px; font-weight: 600; color: var(--lp-board) !important; }
.lp-buy-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; color: var(--lp-slate); font-size: 15px; }
.lp .buy-phone { font-weight: 700; color: var(--lp-ink); text-decoration: none; white-space: nowrap; }
.lp-final .buy-phone { color: var(--lp-chalk); }
.lp-cta-center { justify-content: center; align-items: center; }
.lp-btn-ghost-light { background: transparent; color: var(--lp-chalk) !important; border: 2px solid rgba(243, 245, 242, .6); padding: 12px 20px; }
.lp-btn-ghost-light:hover { background: rgba(243, 245, 242, .12); }
.sub-banner { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.sub-banner > span:first-child { flex: 1 1 320px; }
.sub-banner.info { background: var(--blue-50, #e7f5ff); color: #1c5d99; border-color: #a5d8ff; }
.sub-buy { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sub-buy .buy-phone, .login-card .buy-phone { font-weight: 700; color: inherit; white-space: nowrap; }
.login-card .row-actions { align-items: center; margin: 6px 0 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
.lp-plan-pickers { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px; justify-items: start; }
.lp-plan-pickers > span { font-size: 14px; font-weight: 700; color: var(--lp-slate); }
@media (max-width: 640px) { .lp-plan-pickers { grid-template-columns: 1fr; } }
.lp-plan-points { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--lp-ink); font-size: 15px; }
.lp-plan-points li::marker { color: var(--lp-ok); }
.pf-tiers { display: grid; gap: 16px; }
.pf-tier-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pf-tier-head h2 { margin: 0; }

/* ---- Platforma: imkoniyatlar katalogi ---- */
.table tr.muted-row td { background: var(--bg); }
.table tr.muted-row td strong { text-decoration: line-through; text-decoration-color: var(--red); }
.pf-features th { white-space: nowrap; }
.pf-features th[title] { white-space: normal; max-width: 150px; line-height: 1.2; }
.pf-block-check { align-items: flex-start; padding: 10px 12px; border: 1px solid var(--red); border-radius: 10px; margin: 8px 0 12px; }
.modal.modal-wide { width: min(780px, calc(100% - 32px)); }
/* ierarxiya chuqurligi (CSP inline style'ni taqiqlaydi — shuning uchun klass) */
.depth-1 { padding-left: 22px; } .depth-2 { padding-left: 44px; } .depth-3 { padding-left: 66px; }
/* USB printerni ulash oynasi */
.agent-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.agent-status .spinner { margin: 0; }
ol.steps { padding-left: 20px; display: grid; gap: 6px; margin: 0 0 14px; }
/* To'lov usullari: belgilanadigan tugmalar, aralash to'lov */
.pm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; background: var(--surface); user-select: none; }
.pm-chip input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.pm-chip.on { border-color: var(--brand); background: rgba(121, 80, 242, .08); color: var(--brand); }
.pm-split { display: grid; gap: 8px; margin-top: 10px; }
.pm-split:empty { display: none; }
.pm-row { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(120px, 1.4fr) auto; align-items: center; gap: 10px; }
.pm-row .pm-rest { padding: 8px 0; }

.center-logo { max-width: 120px; max-height: 120px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.input.mono { font-family: var(--mono, ui-monospace, monospace); }
.logo.logo-img { object-fit: contain; background: var(--surface); padding: 2px; }
.lp-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-ok); }
.secret-box code { overflow-wrap: anywhere; word-break: break-all; }

/* ---- Moliyaviy tekshiruv ---- */
.fc-lead { margin: -6px 0 14px; max-width: 760px; }
.fc-card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.fc-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; font-size: 13px; }
.fc-story { display: grid; gap: 10px; margin-top: 12px; }
.fc-note { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); }
.fc-note p { margin: 4px 0 0; white-space: pre-wrap; }
.fc-form { margin-top: 16px; }
.fc-form h3 { font-size: 15px; margin: 0 0 8px; }
.nowrap { white-space: nowrap; }
@media (max-width: 520px) { .fc-row { grid-template-columns: 1fr; gap: 0; } }

/* ---- Yuqori panel: qidiruv, +, kattalashtirish, yordam, eslatma, qo'ng'iroq ---- */
.tb-plus { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px dashed var(--brand);
  background: var(--brand-50); color: var(--brand); cursor: pointer; flex: none; }
.tb-plus:hover { background: var(--brand); color: #fff; border-style: solid; }
.tb-search { position: relative; display: flex; align-items: center; gap: 8px; width: min(420px, 40vw); height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--muted); }
.tb-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(121, 80, 242, .15); background: var(--surface); }
.tb-search-input { flex: 1; min-width: 0; border: 0; background: transparent; font: 14px var(--font); color: var(--text); outline: none; height: 100%; }
.tb-search-input::-webkit-search-cancel-button { display: none; }
.tb-kbd, .dd-note kbd { font: 600 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--surface); white-space: nowrap; }
.tb-search:focus-within .tb-kbd { display: none; }
.tb-search-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: min(70vh, 480px); overflow: auto; z-index: 70;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px -8px rgba(16, 24, 40, .22); padding: 6px; }
.tb-sec + .tb-sec { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.tb-sec-h { font: 700 11px var(--font); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px 4px; }
.tb-hit { display: grid; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none !important; }
.tb-hit small { color: var(--muted); font-size: 12px; }
.tb-hit:hover, .tb-hit.on { background: var(--brand-50); }
.tb-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.tb-tools { display: flex; align-items: center; gap: 2px; }
.tb-btn { position: relative; }
.tb-badge { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red);
  color: #fff; font: 700 10px/17px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.tb-pop { position: fixed; z-index: 80; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px -12px rgba(16, 24, 40, .28); padding: 6px; min-width: 220px; max-width: calc(100vw - 16px); }
.tb-pop.wide { width: 360px; max-height: min(75vh, 560px); overflow: auto; }
.tb-menu { display: grid; }
.dd-sep { height: 1px; background: var(--line); margin: 4px 0; }
.dd-note { padding: 8px 10px; font-size: 12px; color: var(--muted); }
.tb-notes-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tb-note { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.tb-note > svg { margin-top: 2px; color: var(--brand); }
.tb-note.finance_check > svg { color: var(--amber); }
.tb-note div { display: grid; }
.tb-note small { font-size: 12px; color: var(--muted); }
a.tb-note:hover { background: var(--brand-50); }
.tb-pad { padding: 10px; margin: 0; }
.tb-news { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 2px; }
.tb-news-item { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; }
.tb-news-item.fresh { background: var(--brand-50); }
.tb-news-item p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.rm-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rm-h { font-size: 14px; margin: 18px 0 8px; }
.rm-list { display: grid; gap: 8px; }
.rm-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.rm-item.due { border-color: var(--amber); background: var(--amber-50); }
.rm-main { display: grid; min-width: 0; }
.rm-actions { display: flex; gap: 4px; flex: none; }
.lead-card.highlight { outline: 2px solid var(--brand); box-shadow: 0 0 0 5px var(--brand-50); }
@media (max-width: 1100px) { .tb-kbd { display: none; } .tb-search { width: min(300px, 34vw); } }
@media (max-width: 860px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .tb-search { width: auto; flex: 1; min-width: 0; }
  .tb-tools .tb-btn[aria-label="Kattalashtirish"], .tb-tools .tb-btn[aria-label="Yordam"] { display: none; }
  .topbar .grow { display: none; }
  .user-name { display: none; }
}

/* ---- Dashboard: Modme uslubidagi kartalar va jadval ---- */
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ds-card { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; padding: 16px 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  transition: transform .15s, box-shadow .15s, border-color .15s; text-decoration: none !important; }
a.ds-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9def0; }
.ds-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.ds-ic.violet { background: #f3f0ff; color: #7950f2; } .ds-ic.blue { background: #e7f5ff; color: #1c7ed6; }
.ds-ic.teal { background: #e6fcf5; color: #0ca678; } .ds-ic.red { background: #fff5f5; color: #e03131; }
.ds-ic.amber { background: #fff4e6; color: #f08c00; } .ds-ic.green { background: #ebfbee; color: #2f9e44; }
.ds-ic.rose { background: #fff0f6; color: #d6336c; } .ds-ic.gray { background: #f1f3f5; color: #495057; }
.ds-label { font-size: 12px; color: var(--muted); line-height: 1.3; min-height: 2.6em; display: grid; place-items: center; }
.ds-value { font-size: 26px; line-height: 1; color: #FF9D42; font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-hint { font-size: 11px; color: var(--muted); }
.kpis.compact { margin-bottom: 14px; }
.tabs.small { border-bottom: 0; margin: 0; }
.tabs.small [role="tab"] { padding: 6px 10px; }
.tabs-sep { width: 1px; background: var(--line); margin: 8px 6px; flex: none; }
.timetable.compact { min-width: 760px; grid-auto-rows: minmax(54px, auto); }
.tt-item { position: relative; }
.tt-tag { justify-self: start; font: 700 10px/1 var(--font); padding: 3px 6px; border-radius: 6px; margin-bottom: 3px; color: #fff; }
.tt-tag.new { background: #1c7ed6; } .tt-tag.soon { background: #7950f2; }
.tt-count { position: absolute; right: 6px; bottom: 5px; font: 700 10px var(--font); background: var(--surface); border-radius: 6px; padding: 2px 5px; color: var(--muted); }
@media (max-width: 520px) { .ds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .ds-value { font-size: 22px; } }
.tt-room { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.tt-clash { font: 600 10px var(--font); color: var(--amber); }
.tt-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-item small { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-right: 28px; }
.tt-room.multi { justify-content: flex-start; padding-top: 12px; }

/* ---- Bildirishnomalar markazi, kassa, tasdiqlar ---- */
.nt-cell { display: grid; gap: 2px; max-width: 560px; }
.nt-cell.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: middle; }
.nt-rep { color: var(--amber); font-weight: 600; font-size: 11px; }
.nt-body { white-space: pre-wrap; margin: 4px 0 8px; }
.nt-prefs { display: grid; gap: 10px; margin-top: 10px; }
.nt-pref small { margin-left: auto; }
.tb-links { display: flex; gap: 12px; }
.tb-note.critical > svg { color: var(--red); }
.tb-note.important > svg { color: var(--amber); }
.cc-calc { display: grid; gap: 6px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.cc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.cc-row.total { border-top: 1px solid var(--line); padding-top: 6px; font-size: 14px; }
.cc-row.ok b { color: var(--green); } .cc-row.bad b { color: var(--red); }
.ap-list { display: grid; gap: 10px; }
.ap-card { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ap-card.pending { border-color: var(--amber); }
.ap-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ap-risky { display: flex; flex-wrap: wrap; gap: 4px; }
.tg-arr-row { display: grid; gap: 4px; margin-top: 4px; }
.tg-arr { height: 34px; }
.att-fix { color: var(--amber); font-weight: 600; }
