/* autocontent.uz — dizayn tizimi (Meta uslubi, sodda). Tashqi shrift/CDN yo'q. */

:root {
  --bg: #F0F2F5;
  --card: #FFFFFF;
  --line: #E4E6EB;
  --line-strong: #DADDE1;
  --input-line: #CED0D4;
  --text: #1C1E21;
  --muted: #65676B;
  --faint: #8A8D91;
  --blue: #0866FF;
  --blue-hover: #0759D6;
  --blue-soft: #E7F0FF;
  --blue-ring: rgba(8, 102, 255, .22);
  --green: #31A24C;
  --green-soft: #E7F5EA;
  --green-text: #1E7A34;
  --amber: #F7B928;
  --amber-soft: #FFF5D6;
  --amber-text: #8A6100;
  --red: #E41E3F;
  --red-soft: #FDE7EB;
  --red-text: #B0122D;
  --gray: #BCC0C4;
  --gray-soft: #E4E6EB;
  --hover: #F2F3F5;
  --c1: #0866FF;
  --c2: #00A3FF;
  --c3: #8A5CF6;
  --c1-soft: #B9D0FF;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, .14), 0 1px 2px rgba(0, 0, 0, .06);
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 120ms;
  --t-page: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue-soft); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-pop); }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript { padding: 24px; text-align: center; }

/* ---------------------------------------------------------------- boot */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.boot-logo { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #0866FF, #4C8DFF); animation: pulse 1.2s ease-in-out infinite; }
.boot-text { font-size: 14px; }

/* ---------------------------------------------------------------- layout */
.app { min-height: 100vh; }
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 200ms var(--ease);
}
.brand { height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid transparent; }
.brand a { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand a:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .word { font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand .word span { color: var(--muted); font-weight: 500; }
.nav { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--radius);
  color: var(--text); font-weight: 500; font-size: 15px; transition: background var(--t-fast), color var(--t-fast);
}
.nav-item:hover { background: var(--hover); text-decoration: none; }
.nav-item .ic { color: var(--muted); flex: none; }
.nav-item[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.nav-item[aria-current="page"] .ic { color: var(--blue); }
.nav-item .count { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--amber-soft); color: var(--amber-text); padding: 1px 7px; border-radius: 999px; }
.side-foot { padding: 12px 12px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { display: block; font-size: 12px; color: var(--muted); }
.side-user .avatar { width: 32px; height: 32px; background: var(--blue-soft); color: var(--blue); }

.shell > .main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  background: var(--card); border-bottom: 1px solid var(--line-strong);
  display: flex; align-items: center; gap: 12px; padding: 0 24px;
}
.topbar h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .spacer { flex: 1; }
.topbar .acct-select { max-width: 240px; }
.menu-btn, .topbar .btn.menu-btn { display: none; }
.content { padding: 24px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page { animation: page-in var(--t-page) var(--ease) both; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { color: var(--muted); max-width: 70ch; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 35; animation: fade-in 160ms var(--ease) both; }

/* ---------------------------------------------------------------- typography & utilities */
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.b { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.gap-4 { gap: 4px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.center { text-align: center; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 24px; height: 24px; }
.ic.xl { width: 32px; height: 32px; stroke-width: 1.5; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); flex: none; display: inline-block; }
.dot.ok { background: var(--green); } .dot.warn { background: var(--amber); } .dot.bad { background: var(--red); } .dot.wait, .dot.info { background: var(--blue); }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.linekey { width: 14px; height: 3px; border-radius: 2px; flex: none; display: inline-block; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 0; display: flex; gap: 8px; justify-content: flex-end; }

/* ---------------------------------------------------------------- grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
.grid-form { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.kpi-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stagger > * { animation: card-in 360ms var(--ease) both; }
.stagger > :nth-child(1) { animation-delay: 0ms; } .stagger > :nth-child(2) { animation-delay: 40ms; }
.stagger > :nth-child(3) { animation-delay: 80ms; } .stagger > :nth-child(4) { animation-delay: 120ms; }
.stagger > :nth-child(5) { animation-delay: 160ms; } .stagger > :nth-child(6) { animation-delay: 200ms; }
.stagger > :nth-child(7) { animation-delay: 240ms; } .stagger > :nth-child(8) { animation-delay: 280ms; }
.stagger > :nth-child(n+9) { animation-delay: 320ms; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); min-width: 0; }
.card-body { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.card-head + .card-body { padding-top: 12px; }
.card-head h2, .card-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.card-head .sub { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.card-head .tools { display: flex; align-items: center; gap: 8px; flex: none; }
.card.flush .card-body { padding: 0; }
.card.accent { border-left: 3px solid var(--blue); }
.card .list { display: flex; flex-direction: column; }
.card .list > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); min-width: 0; }
.card .list > li:first-child { border-top: 0; }
.card .list.compact > li { padding: 10px 20px; }
.card.is-loading { opacity: .6; pointer-events: none; transition: opacity 200ms; }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--radius); border: 1px solid transparent;
  background: var(--gray-soft); color: var(--text); font-weight: 600; font-size: 14px; line-height: 1;
  white-space: nowrap; user-select: none; text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { background: #D8DADF; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-hover); }
.btn.soft { background: var(--blue-soft); color: var(--blue); }
.btn.soft:hover { background: #D6E5FF; }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--hover); }
.btn.outline { background: var(--card); border-color: var(--input-line); }
.btn.outline:hover { background: var(--hover); }
.btn.danger { background: var(--red-soft); color: var(--red-text); }
.btn.danger:hover { background: #FAD2DA; }
.btn.danger.solid { background: var(--red); color: #fff; }
.btn.success { background: var(--green); color: #fff; }
.btn.success:hover { background: #28903F; }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 15px; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn.block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.loading:not(.primary):not(.success):not(.danger.solid)::after { border-color: rgba(0, 0, 0, .15); border-top-color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text); }
.field .help { font-size: 12px; color: var(--muted); }
.field.error .input, .field.error .select, .field.error .textarea { border-color: var(--red); }
.field .err { font-size: 12px; color: var(--red-text); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--input-line); border-radius: var(--radius);
  background: var(--card); color: var(--text); font-size: 14px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--hover); color: var(--muted); }
.textarea { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2365676B' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; cursor: pointer; }
.select.sm, .input.sm { height: 34px; font-size: 13px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .ic { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.input-wrap .input { padding-left: 36px; }
.input-wrap .btn { position: absolute; right: 4px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.form-actions .status { margin-right: auto; font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }

.switch { position: relative; display: inline-flex; align-items: center; width: 40px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--gray); transition: background var(--t-fast); }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform 160ms var(--ease); }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--blue-ring); }
.switch input:disabled + .track { opacity: .5; }
.switch.lg { width: 52px; height: 30px; }
.switch.lg .track::after { width: 26px; height: 26px; }
.switch.lg input:checked + .track::after { transform: translateX(22px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch-row .txt b { display: block; font-size: 14px; font-weight: 600; }
.switch-row .txt span { display: block; font-size: 13px; color: var(--muted); }

.segmented { display: inline-flex; background: var(--gray-soft); border-radius: var(--radius); padding: 3px; gap: 2px; }
.segmented button { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; font-weight: 600; font-size: 13px; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.segmented button:hover:not([aria-pressed="true"]) { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text); }
.chip.blue { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.chip button { display: inline-flex; border: 0; background: transparent; padding: 0; margin-right: -4px; color: var(--muted); border-radius: 50%; }
.chip button:hover { color: var(--red-text); }
.chip-filter { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-size: 13px; font-weight: 600; color: var(--muted); }
.chip-filter[aria-pressed="true"] { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.chip-filter:hover { background: var(--hover); }
.chip-filter[aria-pressed="true"]:hover { background: var(--blue-soft); }
.chips-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 6px; border: 1px solid var(--input-line); border-radius: var(--radius); background: var(--card); min-height: 38px; cursor: text; }
.chips-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring); }
.chips-input input { flex: 1; min-width: 100px; border: 0; outline: none; height: 26px; padding: 0 4px; font-size: 14px; background: transparent; }

.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.radio-card { position: relative; display: flex; gap: 12px; padding: 14px; border: 1px solid var(--input-line); border-radius: var(--radius-lg); cursor: pointer; background: var(--card); transition: border-color var(--t-fast), background var(--t-fast); }
.radio-card:hover { background: var(--hover); }
.radio-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio-card.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.radio-card .ic { color: var(--muted); margin-top: 1px; }
.radio-card.on .ic { color: var(--blue); }
.radio-card b { display: block; font-size: 14px; font-weight: 600; }
.radio-card span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--gray-soft); color: var(--muted); line-height: 1; }
.badge .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.badge.ok, .badge.green { background: var(--green-soft); color: var(--green-text); }
.badge.warn, .badge.amber { background: var(--amber-soft); color: var(--amber-text); }
.badge.bad, .badge.red { background: var(--red-soft); color: var(--red-text); }
.badge.info, .badge.blue, .badge.wait { background: var(--blue-soft); color: var(--blue); }
.badge.purple { background: #EFE9FE; color: #5B37B9; }
.badge.lg { height: 26px; padding: 0 10px; font-size: 13px; }
.badge.solid.ok { background: var(--green); color: #fff; } .badge.solid.warn { background: var(--amber); color: #1C1E21; }
.badge.solid.bad { background: var(--red); color: #fff; } .badge.solid.info { background: var(--blue); color: #fff; }
.badge.solid { background: rgba(28, 30, 33, .72); color: #fff; }
.badge .spin { width: 10px; height: 10px; border-width: 2px; }
.pill { font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.pill.ok { background: var(--green-soft); color: var(--green-text); } .pill.warn { background: var(--amber-soft); color: var(--amber-text); }
.pill.bad { background: var(--red-soft); color: var(--red-text); } .pill.wait { background: var(--blue-soft); color: var(--blue); }
.status-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.status-ic .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.status-ic.ok { background: var(--green); } .status-ic.warn { background: var(--amber); color: var(--text); }
.status-ic.bad { background: var(--red); } .status-ic.off { background: var(--gray); } .status-ic.wait { background: var(--blue-soft); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #B9D0FF; border-top-color: var(--blue); animation: spin .8s linear infinite; flex: none; }

/* ---------------------------------------------------------------- banner */
.banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: var(--radius-lg); border: 1px solid transparent; margin-bottom: 20px; }
.banner.warn { background: var(--amber-soft); border-color: #F3DD9A; color: var(--amber-text); }
.banner.bad { background: var(--red-soft); border-color: #F5C2CC; color: var(--red-text); }
.banner.info { background: var(--blue-soft); border-color: #C9DCFF; color: var(--blue); }
.banner .ic { flex: none; margin-top: 1px; }
.banner .txt { flex: 1; font-size: 14px; }
.banner .txt b { display: block; font-weight: 600; }
.banner .btn { flex: none; }

/* ---------------------------------------------------------------- avatar */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 15px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }

/* ---------------------------------------------------------------- KPI */
.kpi { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi .label { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .value small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.kpi .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 18px; }
.kpi .delta { font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.kpi .delta.up { color: var(--green-text); } .kpi .delta.down { color: var(--red-text); }
.kpi .spark { margin-left: auto; }
.kpi.tone-ok .value { color: var(--green-text); } .kpi.tone-warn .value { color: var(--amber-text); } .kpi.tone-bad .value { color: var(--red-text); }
.hero-num { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; letter-spacing: .02em; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--hover); }
.table th.r, .table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table .thumb { width: 36px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--hover); flex: none; }
.table .thumb.sq { width: 40px; height: 40px; }
.table .bar { height: 6px; border-radius: 3px; background: var(--blue-soft); min-width: 60px; width: 100px; overflow: hidden; }
.table .bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.table .cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table .cell-main .txt { min-width: 0; }
.table .cell-main .txt b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.table .cell-main .txt span { display: block; font-size: 12px; color: var(--muted); }
.table.compact td, .table.compact th { padding: 8px 10px; }
.table .idx { color: var(--faint); font-variant-numeric: tabular-nums; width: 28px; }

/* ---------------------------------------------------------------- video cards */
.video-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.video-grid.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.vcard { display: flex; flex-direction: column; gap: 8px; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; border-radius: 10px; min-width: 0; }
.vcard .cover { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #1D2B4C, #0E1526); box-shadow: var(--shadow); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.vcard:hover .cover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.vcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.vcard .cover .st { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; }
.vcard .cover .st .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 22px; }
.vcard .cover .score { position: absolute; bottom: 8px; left: 8px; background: rgba(28, 30, 33, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.vcard .cover .dur { position: absolute; bottom: 8px; right: 8px; background: rgba(28, 30, 33, .72); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.vcard .cover .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 150ms; }
.vcard .cover .play span { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--text); box-shadow: var(--shadow-pop); }
.vcard:hover .cover .play, .vcard:focus-visible .cover .play { opacity: 1; }
.vcard .title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.vcard .meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }

/* ---------------------------------------------------------------- progress & steps */
.progress { height: 6px; border-radius: 3px; background: var(--blue-soft); overflow: hidden; position: relative; }
.progress i { display: block; height: 100%; background: var(--blue); border-radius: 3px; transition: width 400ms var(--ease); }
.progress.indeterminate i { width: 40%; animation: indeterminate 1.4s ease-in-out infinite; }
.progress.ok i { background: var(--green); } .progress.bad i { background: var(--red); }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: -2px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .n { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--gray-soft); color: var(--muted); z-index: 1; transition: background var(--t-fast), color var(--t-fast); }
.step .n .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.step.done .n { background: var(--green); color: #fff; }
.step.done::before { background: var(--green); }
.step.active .n { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.step.failed .n { background: var(--red); color: #fff; }
.step .txt b { display: block; font-size: 14px; font-weight: 600; }
.step .txt span { display: block; font-size: 13px; color: var(--muted); }
.step.active .txt b { color: var(--blue); }
.job-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.job-row:first-child { border-top: 0; }
.job-row .top { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.job-row .top b { white-space: nowrap; }
.job-row .top b { font-size: 14px; font-weight: 600; }
.job-row .top .when { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.job-row .prog { font-size: 13px; color: var(--muted); }
.log { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #F7F8FA; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: var(--text); }

/* ---------------------------------------------------------------- panel (drawer) & modal */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100%; background: var(--card); z-index: 50; box-shadow: -8px 0 32px rgba(0, 0, 0, .14); display: flex; flex-direction: column; animation: panel-in 220ms var(--ease) both; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex: none; }
.panel-head h2 { font-size: 17px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.panel-foot { flex: none; padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; background: var(--card); }
.panel-foot .btn { flex: 1 1 auto; }
.player { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; max-height: 420px; margin: 0 auto; width: auto; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player .note { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff; font-size: 12px; text-align: center; }
.scene { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.scene:first-child { border-top: 0; }
.scene .t { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.scene b { display: block; font-size: 14px; font-weight: 600; }
.scene span { display: block; font-size: 13px; color: var(--muted); }
.issue { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.issue:first-child { border-top: 0; }
.issue .sev { flex: none; }
.issue b { font-weight: 600; }
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--card); border-radius: var(--radius-lg); width: 100%; max-width: 440px; box-shadow: var(--shadow-pop); padding: 20px; animation: modal-in 180ms var(--ease) both; }
.modal h2 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 14px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; width: 360px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; background: #1C1E21; color: #fff; padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow-pop); font-size: 14px; pointer-events: auto; animation: toast-in 220ms var(--ease) both; }
.toast .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.toast.success .ic { color: #5BD37A; } .toast.error .ic { color: #FF7A8E; } .toast.info .ic { color: #7FB2FF; } .toast.warn .ic { color: #FFD15C; }
.toast .txt { flex: 1; }
.toast button { background: none; border: 0; color: rgba(255, 255, 255, .7); padding: 0; display: inline-flex; }
.toast button:hover { color: #fff; }
.toast.out { animation: toast-out 180ms var(--ease) forwards; }

/* ---------------------------------------------------------------- skeleton / states */
.skeleton { position: relative; overflow: hidden; background: #E9EBEE; border-radius: 6px; min-height: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shimmer 1.3s infinite; }
.skeleton.text { height: 12px; }
.skeleton.title { height: 18px; width: 40%; }
.skeleton.block { height: 120px; border-radius: var(--radius-lg); }
.skeleton.card { height: 180px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.skeleton.kpi { height: 96px; border-radius: var(--radius-lg); }
.skeleton.circle { border-radius: 50%; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; color: var(--muted); }
.empty .ic-wrap { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 6px; }
.empty .ic-wrap.bad { background: var(--red-soft); color: var(--red-text); }
.empty h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.empty p { max-width: 42ch; font-size: 14px; }
.empty .btn { margin-top: 8px; }
.empty.sm { padding: 24px 16px; }
.empty.sm .ic-wrap { width: 40px; height: 40px; border-radius: 12px; }

/* ---------------------------------------------------------------- charts */
.chart { position: relative; width: 100%; min-width: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
.chart .axis text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis line { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.chart .hit { fill: transparent; cursor: crosshair; outline: none; }
.chart .hit:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.chart .crosshair { stroke: var(--line-strong); stroke-width: 1; pointer-events: none; }
.chart .bar { transition: opacity var(--t-fast); cursor: pointer; }
.chart .bar.dim { opacity: .55; }
.chart .bar-hit { fill: transparent; cursor: pointer; outline: none; }
.chart .bar-hit:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.chart .dlabel { font-size: 11px; fill: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .end-label { font-size: 11px; fill: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .donut-center text { fill: var(--text); }
.tip { position: absolute; z-index: 5; pointer-events: none; background: #1C1E21; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: var(--shadow-pop); min-width: 120px; opacity: 0; transition: opacity var(--t-fast); }
.tip.on { opacity: 1; }
.tip .t { color: rgba(255, 255, 255, .7); margin-bottom: 4px; font-weight: 500; }
.tip .r { display: flex; align-items: center; gap: 6px; line-height: 1.5; white-space: nowrap; }
.tip .r b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tip .r span { color: rgba(255, 255, 255, .75); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend li b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.hours .h { text-align: center; padding: 6px 0; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- auth screens */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 32px; animation: card-in 300ms var(--ease) both; }
.auth-card .brand { height: auto; padding: 0; margin-bottom: 20px; }
.auth-card .brand .mark { width: 36px; height: 36px; }
.auth-card .brand .word { font-size: 20px; }
.auth-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.auth-card p.lead { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn.block { height: 42px; font-size: 15px; }
.auth-card.shake { animation: shake 400ms var(--ease); }
.btn.fb { background: #1877F2; color: #fff; gap: 10px; text-decoration: none; }
.btn.fb:hover { background: #166FE5; }
.btn.fb svg { width: 20px; height: 20px; flex: none; }
.btn.ig { background: linear-gradient(45deg, #F58529 0%, #DD2A7B 45%, #8134AF 75%, #515BD4 100%); color: #fff; gap: 10px; text-decoration: none; border: 0; }
.btn.ig:hover { filter: brightness(1.06); }
.btn.ig:focus-visible { outline: 2px solid #DD2A7B; outline-offset: 2px; }
.btn.ig svg { width: 20px; height: 20px; flex: none; }
.ig-conn { display: flex; flex-direction: column; gap: 12px; }
.ig-conn .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ig-conn .igmark { width: 32px; height: 32px; flex: none; }
.ig-conn-list { display: flex; flex-direction: column; gap: 8px; }
.ig-conn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--hover); }
.ig-conn-row .who { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; flex: 1 1 140px; }
.ig-conn-row .who b { font-size: 14px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--faint); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-note { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.fb-conn { display: flex; flex-direction: column; gap: 12px; }
.fb-conn .who { display: flex; align-items: center; gap: 10px; }
.fb-conn .who .fbmark { width: 32px; height: 32px; flex: none; }
.fb-conn .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fb-conn .kv > div { background: var(--hover); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.fb-conn .kv b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.fb-conn .igs { display: flex; flex-wrap: wrap; gap: 6px; }
.auth-foot { margin-top: 20px; font-size: 12px; color: var(--faint); text-align: center; }
.setup-steps { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; }
.setup-steps li { display: flex; gap: 10px; font-size: 14px; }
.setup-steps li .n { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
code, .code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--hover); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text); }

/* ---------------------------------------------------------------- login: to'liq ekran (Meta uslubida) */
.auth-split { display: flex; flex-direction: column; place-items: stretch; min-height: 100vh; min-height: 100dvh; padding: 0; position: relative; overflow-x: hidden; isolation: isolate; background: #F5F6F8; }
.auth-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 6% -12%, rgba(8, 102, 255, .16), transparent 62%),
    radial-gradient(760px 560px at 102% -4%, rgba(123, 63, 228, .12), transparent 60%),
    radial-gradient(820px 620px at 78% 112%, rgba(225, 48, 108, .08), transparent 62%),
    radial-gradient(640px 520px at -6% 104%, rgba(8, 102, 255, .08), transparent 60%),
    #F5F6F8; }
.auth-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 56px 40px 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); gap: 72px; align-items: center; }

.auth-hero { min-width: 0; animation: card-in 420ms var(--ease) both; }
.auth-hero .brand { height: auto; padding: 0; margin-bottom: 32px; }
.auth-hero .brand .mark { width: 40px; height: 40px; }
.auth-hero .brand .word { font-size: 22px; }
.auth-hero h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; color: var(--text); max-width: 600px; }
.auth-hero h1 .accent { color: #0866FF; white-space: nowrap; }
.hero-eyebrow { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(0, 0, 0, .06); font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.hero-lead { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 540px; }
.hero-features { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; max-width: 640px; }
.hero-features li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.hero-features .fi { width: 34px; height: 34px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .05); display: grid; place-items: center; color: var(--blue); flex: none; }
.hero-features b { display: block; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.hero-features div > span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.hero-visual { position: relative; margin-top: 32px; max-width: 600px; padding: 0 0 22px 0; }
.hv-dash { width: min(100%, 430px); background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(28, 30, 33, .09), 0 0 0 1px rgba(0, 0, 0, .04); padding: 16px 18px 14px; }
.hv-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.hv-head b { font-size: 14px; font-weight: 600; }
.hv-head span { font-size: 12px; color: var(--muted); background: var(--hover); border-radius: 999px; padding: 2px 9px; }
.hv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hv-kpi { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px 10px; }
.hv-kpi .hv-k { font-size: 11px; }
.hv-kpi .hv-k .ic { width: 13px; height: 13px; }
.hv-bar { display: block; height: 8px; margin-top: 9px; border-radius: 4px; background: linear-gradient(90deg, #1C1E21 0%, #4B4F56 100%); opacity: .82; }
.hv-kpi em { position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green-text); display: grid; place-items: center; }
.hv-kpi em .ic { width: 11px; height: 11px; stroke-width: 2.4; }
.hv-chart svg { display: block; width: 100%; height: 78px; margin-top: 12px; }
.hv-chat, .hv-done { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(28, 30, 33, .10), 0 0 0 1px rgba(0, 0, 0, .04); display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; animation: hv-float 7s ease-in-out infinite; }
.hv-chat { right: 0; top: 60px; max-width: 240px; }
.hv-done { right: 130px; bottom: 0; animation-delay: -3.5s; }
.hv-claude svg { width: 30px; height: 30px; display: block; }
.hv-chat b, .hv-done b { display: block; font-size: 13px; font-weight: 600; }
.hv-chat div span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.hv-done small { display: block; font-size: 12px; color: var(--muted); }
.hv-ok { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.hv-ok .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.hv-k { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.auth-panel { min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.auth-card.login { max-width: 440px; width: 100%; margin: 0 auto; padding: 36px 32px 28px; border-radius: 20px; border: 1px solid rgba(0, 0, 0, .05); box-shadow: 0 24px 64px rgba(28, 30, 33, .10), 0 2px 6px rgba(28, 30, 33, .05); }
.auth-card.login h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 6px; }
.auth-card.login p.lead { margin-bottom: 24px; font-size: 15px; }
.oauth-stack { display: flex; flex-direction: column; gap: 12px; }
.auth-card .btn.oauth { height: 52px; border-radius: 12px; font-size: 16px; font-weight: 600; gap: 12px; justify-content: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast); }
.auth-card .btn.oauth:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .14); }
.auth-card .btn.oauth:active { transform: scale(.985); }
.btn.oauth .oauth-logo { width: 24px; height: 24px; flex: none; }
.btn.fb:focus-visible { outline: 2px solid #1877F2; outline-offset: 2px; }
/* sozlanmagan usul ham to'liq rangda ko'rinadi — bosilganda tushuntirish chiqadi */
.auth-card .btn.oauth[aria-disabled="true"] { opacity: 1; cursor: pointer; }
.btn.oauth.loading::after { border-color: rgba(255, 255, 255, .45); border-top-color: #fff; }
.auth-notice { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: #0B3D91; font-size: 13px; line-height: 1.45; animation: card-in 200ms var(--ease) both; }
.auth-notice[hidden] { display: none; }
.auth-notice .ic { color: var(--blue); margin-top: 1px; }
.auth-card.login .input.lg { height: 48px; border-radius: 12px; font-size: 15px; padding: 0 14px; }
.auth-card.login form .btn.lg { height: 48px; border-radius: 12px; }
.auth-points { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.auth-points .ic { color: var(--faint); margin-top: 1px; }
.auth-legal { margin-top: 16px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; padding: 0 12px; }
.auth-legal a { color: var(--text); font-weight: 500; }
.auth-legal a:hover { color: var(--blue); text-decoration: underline; }
.auth-footer { width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 40px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.auth-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.auth-footer a { color: var(--muted); }
.auth-footer a:hover { color: var(--text); text-decoration: underline; }
.auth-footer-meta { display: flex; gap: 16px; }
@media (max-width: 1180px) { .hv-chat { display: none; } .hv-done { right: 0; } }
@media (max-width: 980px) {
  .auth-main { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 520px; padding: 32px 20px 16px; align-items: start; }
  .auth-hero .brand { margin-bottom: 22px; }
  .auth-hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15px; margin-top: 10px; }
  .hero-visual { display: none; }
  .hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 18px; }
  .hero-features div > span { display: none; }
  .hero-eyebrow { margin-bottom: 12px; font-size: 12px; }
  .auth-card.login { max-width: none; }
  .auth-footer { padding: 16px 20px 24px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .auth-main { padding: 24px 16px 12px; }
  .auth-card.login { padding: 24px 20px 20px; border-radius: 16px; }
  .auth-hero h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .hv-chat, .hv-done, .auth-hero { animation: none; } }

/* ---------------------------------------------------------------- misc page bits */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters .select { width: auto; min-width: 180px; }
.filters .grow { flex: 1; }
.acct-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-row .who { min-width: 0; flex: 1; }
.acct-row .who b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-row .who span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-inline { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.stat-inline b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.next-run { display: flex; flex-direction: column; gap: 4px; }
.next-run .when { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.integration { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.integration:first-child { border-top: 0; }
.integration .txt { flex: 1; min-width: 0; }
.integration .txt b { display: block; font-size: 14px; font-weight: 600; }
.integration .txt span { display: block; font-size: 13px; color: var(--muted); }
.integration .txt .how { margin-top: 6px; font-size: 13px; color: var(--muted); }
.insight { padding: 12px 0; border-top: 1px solid var(--line); }
.insight:first-child { border-top: 0; padding-top: 0; }
.insight:last-child { padding-bottom: 0; }
.insight b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.insight p { font-size: 14px; color: var(--muted); }
.insight .ev { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; }
.quote { padding: 10px 14px; border-left: 3px solid var(--blue); background: var(--hover); border-radius: 0 8px 8px 0; font-size: 14px; font-weight: 500; }
.quotes { display: flex; flex-direction: column; gap: 8px; }
.avoid li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.avoid li:first-child { border-top: 0; padding-top: 0; }
.avoid li .ic { color: var(--amber-text); flex: none; margin-top: 1px; }
.summary-text { font-size: 15px; line-height: 1.55; }
.times { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.time-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 12px; border-radius: var(--radius); background: var(--blue-soft); color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.time-chip button { border: 0; background: transparent; color: inherit; padding: 2px; display: inline-flex; border-radius: 50%; opacity: .7; }
.time-chip button:hover { opacity: 1; background: rgba(8, 102, 255, .12); }
.sys-group { margin-top: 20px; }
.sys-group:first-child { margin-top: 0; }
.sys-group h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.sys-row { display: flex; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.sys-row:first-child { border-top: 0; }
.sys-row .txt { min-width: 0; flex: 1; }
.sys-row .t { font-weight: 600; font-size: 14px; }
.sys-row .d { color: var(--muted); font-size: 14px; word-break: break-word; }
.sys-row ul { margin-top: 6px; padding-left: 18px; list-style: disc; font-size: 13px; color: var(--text); }
.sys-row ul li { margin: 2px 0; word-break: break-word; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--amber-text); background: var(--amber-soft); padding: 4px 8px; border-radius: 6px; }
.mobile-cards .mcard { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-variant-numeric: tabular-nums; }

details.acc { border-top: 1px solid var(--line); }
details.acc > summary { list-style: none; cursor: pointer; padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary .chev { margin-left: auto; color: var(--muted); transition: transform 160ms var(--ease); }
details.acc[open] > summary .chev { transform: rotate(180deg); }
details.acc .acc-body { padding: 4px 20px 20px; }

/* ---------------------------------------------------------------- animations */
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes modal-in { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(8px); opacity: 0; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.94); } }
@keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .skeleton::after, .progress.indeterminate i { animation: none !important; }
  .progress.indeterminate i { width: 100%; opacity: .5; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .kpi-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-pop); }
  .shell > .main { margin-left: 0; }
  .menu-btn, .topbar .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; gap: 8px; }
  .content { padding: 16px; }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .topbar .acct-select { max-width: 150px; }
  .topbar .new-label { display: none; }
  .topbar .btn.new { width: 36px; padding: 0; }
}
@media (max-width: 600px) {
  .topbar h1 { font-size: 18px; }
  .content { padding: 12px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .radio-cards { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid, .kpi-grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px 16px; }
  .kpi .value { font-size: 22px; }
  .card-body { padding: 16px; }
  .card-head { padding: 14px 16px 0; }
  .card .list > li, .job-row, .integration, .sys-row { padding-left: 16px; padding-right: 16px; }
  .table th:first-child, .table td:first-child { padding-left: 16px; }
  .table th:last-child, .table td:last-child { padding-right: 16px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .panel { width: 100%; }
  .panel-body { padding: 16px; }
  .toasts { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .filters .select { min-width: 0; flex: 1 1 140px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .form-actions .btn { flex: 1; }
  .auth-card { padding: 24px; }
  /* jadvallar kartaga aylanadi */
  table.table.responsive thead { display: none; }
  table.table.responsive, table.table.responsive tbody, table.table.responsive tr, table.table.responsive td { display: block; }
  table.table.responsive tr { padding: 10px 16px; border-bottom: 1px solid var(--line); }
  table.table.responsive tr:last-child { border-bottom: 0; }
  table.table.responsive td { border: 0; padding: 3px 0; text-align: left !important; display: flex; justify-content: space-between; gap: 12px; }
  table.table.responsive td.r { text-align: right; }
  table.table.responsive td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 500; }
  table.table.responsive td.main { display: block; padding-bottom: 6px; }
  table.table.responsive td .bar { width: 100px; }
}
@media (max-width: 400px) {
  .topbar .acct-select { max-width: 120px; }
  .kpi .value { font-size: 20px; }
}

/* ------------------------------------------------------------ akkaunt o'sish kartalari (8-bo'lim) */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.section-head h2 .cnt { color: var(--muted); font-weight: 500; }
.section-head a { font-size: 14px; font-weight: 600; }
.acct-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.acct-grid.one { grid-template-columns: minmax(0, 560px); }
.acct-card { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.acct-card .head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-card .head .who { min-width: 0; flex: 1; }
.acct-card .head .who b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-card .head .who a, .acct-card .head .who span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-card .head .who a:hover { color: var(--blue); }
.acct-card .auto { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.acct-card .auto small { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.acct-card .auto small.on { color: var(--green-text); }
.acct-card .fol { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.acct-card .fol .big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-card .fol .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }
.acct-card .fol .spark-wrap { flex: 1; max-width: 150px; min-width: 90px; }
.acct-card .fol .spark-wrap svg { width: 100%; height: 48px; display: block; }
.acct-card .grow { display: flex; gap: 8px; flex-wrap: wrap; }
.gchip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--hover); color: var(--muted); }
.gchip .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.gchip.up { background: var(--green-soft); color: var(--green-text); }
.gchip.down { background: var(--red-soft); color: var(--red-text); }
.gchip span { font-weight: 500; opacity: .85; }
.acct-card .metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.acct-card .metrics div { min-width: 0; }
.acct-card .metrics b { display: block; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-card .metrics span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-card .foot { display: flex; gap: 8px; }
.acct-card .foot .btn { flex: 1; }
.acct-card.off .fol .big { color: var(--muted); }
.collecting { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.collecting .dot { animation: pulse 1.6s ease-in-out infinite; background: var(--blue); }
.chart-empty { display: grid; place-items: center; text-align: center; min-height: 180px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: 14px; padding: 20px; }
.chart-empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.growth-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.growth-head .hero-num { font-variant-numeric: tabular-nums; }
.post-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.post-cell img { width: 40px; height: 52px; border-radius: 6px; object-fit: cover; flex: none; background: var(--gray-soft); }
.post-cell .txt { min-width: 0; }
.post-cell .txt b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38ch; }
.post-cell .txt span { display: block; font-size: 12px; color: var(--muted); }
.score-bar { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.score-bar i { display: block; width: 56px; height: 6px; border-radius: 3px; background: var(--blue-soft); overflow: hidden; position: relative; }
.score-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--blue); border-radius: 3px; }
.type-list { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.type-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.type-list li .grow { flex: 1; }
.type-list li b { font-variant-numeric: tabular-nums; }
.donut-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sample-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sample-list button { border: 1px solid var(--line-strong); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.sample-list button:hover { background: var(--hover); color: var(--text); }
.job-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.job-card .head .txt { flex: 1; min-width: 0; }
.job-card .head .txt b { display: block; font-size: 16px; font-weight: 600; }
.job-card .head .txt span { display: block; font-size: 13px; color: var(--muted); }
.next-list li { display: flex; align-items: center; gap: 12px; }
.next-list .t { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 48px; }
.next-list .d { color: var(--muted); font-size: 13px; min-width: 110px; }
.acct-sched { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-sched .acct-row { flex: 1 1 200px; }
.hint { font-size: 13px; color: var(--muted); }
.sys-overall { display: flex; align-items: center; gap: 12px; }
.sys-overall .txt b { display: block; font-size: 16px; font-weight: 600; }
.sys-overall .txt span { display: block; font-size: 13px; color: var(--muted); }
.cap-edit .textarea { min-height: 160px; }
.panel-section { margin-top: 20px; }
.panel-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.kpi-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .kpi-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .acct-card { padding: 16px; }
  .acct-card .fol .big { font-size: 30px; }
  .kpi-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-cell .txt b { max-width: 24ch; }
}
@media (prefers-reduced-motion: reduce) { .collecting .dot { animation: none; } }
.insight .ev a { display: inline-flex; align-items: center; gap: 4px; }
.backdrop.over { z-index: 45; }
.integration .txt .badge { display: inline-flex; color: inherit; font-size: 12px; }
.integration .txt .badge.ok { color: var(--green-text); } .integration .txt .badge.warn { color: var(--amber-text); } .integration .txt .badge.bad { color: var(--red-text); }
@media (max-width: 600px) { table.table.responsive .opt { display: none; } }
.brand > div { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------ Claude connector kartasi */
.conn-url { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--hover); }
.conn-url code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; word-break: break-all; font-size: 13px; }
.conn-ic { width: 32px; height: 32px; border-radius: 9px; background: #FBEDE7; color: #C2603F; display: grid; place-items: center; flex: none; }
.auth-card.login > .auth-notice:first-child { margin: 0 0 18px; }

/* ------------------------------------------------------------ ko'p foydalanuvchili rejim (docs/MULTI_USER.md 7) */
.nav-label { margin: 12px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.side-user .who .sub-row { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 1px; }
.side-user .who .sub-row > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge.role-badge { height: 18px; padding: 0 6px; font-size: 11px; letter-spacing: .02em; flex: none; }
.side-user .who .sub-row .badge { display: inline-flex; font-size: 11px; color: var(--blue); }
.stack > .banner { margin-bottom: 0; }
.users-search { width: 280px; max-width: 100%; }
.users-table .cell-main .txt b { display: flex; align-items: center; gap: 6px; }
.users-table .cell-main .txt b .role-badge { font-weight: 600; }
.users-table tr.is-disabled .cell-main { opacity: .6; }
.users-table td.actions { width: 1%; white-space: nowrap; }
[id^="set-"] { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.card.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--blue-ring), var(--shadow); border-color: var(--blue); } 100% { box-shadow: var(--shadow); } }

/* Profil va xavfli zona (Sozlamalar, oddiy foydalanuvchi) */
.profile { display: flex; flex-direction: column; gap: 16px; }
.profile .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.profile .who b { display: block; font-size: 16px; font-weight: 600; }
.profile .who .small { display: block; }
.meters { display: flex; flex-direction: column; gap: 12px; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter .progress.full i { background: var(--amber); }
.card.danger-zone { border-color: #F5C2CC; }
.card.danger-zone .card-head h2 { color: var(--red-text); }
.dz-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.dz-row .txt { flex: 1 1 220px; min-width: 0; }
.dz-row .txt b { display: block; font-size: 14px; font-weight: 600; }
.dz-row .txt span { display: block; font-size: 13px; color: var(--muted); }
.modal.danger h2 { color: var(--red-text); }
.modal-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.modal-list li { display: flex; align-items: flex-start; gap: 8px; }
.modal-list li .ic { color: var(--red); margin-top: 2px; flex: none; }
.modal-field { margin-top: 16px; }
.modal-field label { font-weight: 500; }
.modal-body { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.modal-body .field label { font-weight: 500; }

/* Studiya: video Claude ilovasi orqali (oddiy foydalanuvchi) */
.claude-guide .card-body { display: flex; flex-direction: column; gap: 18px; }
.cg-head { display: flex; gap: 14px; align-items: flex-start; }
.cg-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.cg-head p { font-size: 14px; max-width: 62ch; }
.cg-mark { width: 44px; height: 44px; flex: none; }
.cg-mark svg { width: 44px; height: 44px; }
.conn-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--hover); }
.conn-status.ok { background: var(--green-soft); color: var(--green-text); }
.conn-status.warn { background: var(--amber-soft); color: var(--amber-text); }
.cg-steps { display: flex; flex-direction: column; gap: 14px; counter-reset: none; }
.cg-steps li { display: flex; gap: 12px; align-items: flex-start; }
.cg-steps li .n { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: none; }
.cg-steps li b { display: block; font-size: 14px; font-weight: 600; }
.cg-steps li span { display: block; font-size: 14px; color: var(--muted); }
.cg-steps li span b { display: inline; color: var(--text); font-weight: 600; }
.cg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prompt-list { display: flex; flex-direction: column; gap: 8px; }
.prompt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; transition: background var(--t-fast), border-color var(--t-fast); }
.prompt:hover { background: var(--hover); border-color: var(--line-strong); }
.prompt span { flex: 1; min-width: 0; }
.prompt .ic { color: var(--muted); flex: none; }
.facts { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts li .ic { color: var(--blue); margin-top: 2px; flex: none; }
.time-chip.ro { padding: 0 12px; }

@media (max-width: 600px) {
  .users-search { width: 100%; }
  .page-head > .input-wrap { flex: 1 1 100%; }
  table.table.responsive.users-table td.actions { width: auto; justify-content: flex-end; padding-top: 8px; }
  .dz-row .btn { flex: 1 1 100%; }
  .cg-actions .btn { flex: 1 1 100%; }
  .cg-head { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .card.flash { animation: none; } }
