/* ==========================================================================
   Uzum agent — boshqaruv paneli. Dizayn tizimi.
   ========================================================================== */
:root {
  --bg: #f5f6fa;
  --bg-elev: #ffffff;
  --bg-sunken: #eef0f5;
  --bg-hover: #f1f2f7;
  --border: #e4e6ee;
  --border-strong: #d3d6e2;
  --text: #0e1220;
  --text-2: #424a5f;
  --text-3: #6b7387;
  --brand: #6a46ff;
  --brand-2: #8b6dff;
  --brand-soft: #efeaff;
  --brand-text: #5232e6;
  --ok: #0f9f6e; --ok-soft: #e3f6ee;
  --warn: #c27406; --warn-soft: #fff3df;
  --danger: #d92d43; --danger-soft: #fde8eb;
  --info: #2667e0; --info-soft: #e6eefd;
  --shadow-sm: 0 1px 2px rgba(16, 20, 40, .05);
  --shadow: 0 1px 2px rgba(16, 20, 40, .04), 0 4px 16px rgba(16, 20, 40, .06);
  --shadow-lg: 0 10px 40px rgba(16, 20, 40, .16), 0 2px 8px rgba(16, 20, 40, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --sidebar: 252px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e15; --bg-elev: #141722; --bg-sunken: #0f121b; --bg-hover: #1b1f2d;
    --border: #232838; --border-strong: #30364a;
    --text: #eef0f7; --text-2: #b9bfd0; --text-3: #858ca1;
    --brand: #8c72ff; --brand-2: #a690ff; --brand-soft: #231d45; --brand-text: #b3a2ff;
    --ok: #3ccf96; --ok-soft: #10291f; --warn: #f0a73a; --warn-soft: #2e2210;
    --danger: #ff6b7d; --danger-soft: #331419; --info: #6aa2ff; --info-soft: #132340;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0e15; --bg-elev: #141722; --bg-sunken: #0f121b; --bg-hover: #1b1f2d;
  --border: #232838; --border-strong: #30364a;
  --text: #eef0f7; --text-2: #b9bfd0; --text-3: #858ca1;
  --brand: #8c72ff; --brand-2: #a690ff; --brand-soft: #231d45; --brand-text: #b3a2ff;
  --ok: #3ccf96; --ok-soft: #10291f; --warn: #f0a73a; --warn-soft: #2e2210;
  --danger: #ff6b7d; --danger-soft: #331419; --info: #6aa2ff; --info-soft: #132340;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; }
.i.lg { width: 22px; height: 22px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- layout */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 14px; border-right: 1px solid var(--border); background: var(--bg-elev);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), #b06bff); box-shadow: 0 4px 14px rgba(106, 70, 255, .35);
}
.brand-name { font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--text-3); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-hover); color: var(--text); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
.nav a .short { display: none; }
.c-state-m { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a .count { margin-left: auto; font-size: 12px; font-weight: 600; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 99px; background: var(--bg-sunken); color: var(--text-2); }
.nav a[aria-current="page"] .count { background: var(--bg-elev); color: var(--brand-text); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--border); }
.conn-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); padding: 0 4px; }
.conn { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot.danger { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.dot.live { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.main-wrap { min-width: 0; }
.main { min-width: 0; padding: 26px clamp(16px, 3vw, 40px) 120px; }
.container { max-width: 1180px; margin: 0 auto; }
.topbar { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.page-head p { margin: 6px 0 0; color: var(--text-3); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.live-ind { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 0; }
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-sub { color: var(--text-3); font-size: 13px; margin: 4px 0 0; }
.card-body { padding: 14px 20px 18px; }
.section { margin-top: 16px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; border: 0; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 22px 24px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 0% 0%, var(--brand-soft), transparent 70%); pointer-events: none; }
.hero > * { position: relative; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.hero-text { font-size: 19px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; margin: 8px 0 0; max-width: 62ch; }
.hero[data-tone="warning"]::before { background: radial-gradient(600px 200px at 0% 0%, var(--warn-soft), transparent 70%); }
.hero[data-tone="ok"]::before { background: radial-gradient(600px 200px at 0% 0%, var(--ok-soft), transparent 70%); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* KPI */
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; text-align: left; border: 1px solid var(--border); background: var(--bg-elev); border-radius: var(--radius); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.kpi:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-3); font-size: 13px; font-weight: 500; }
.kpi-val { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-hint { color: var(--text-3); font-size: 12.5px; }
.kpi-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.tone-brand { background: var(--brand-soft); color: var(--brand-text); }
.tone-ok { background: var(--ok-soft); color: var(--ok); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-danger { background: var(--danger-soft); color: var(--danger); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-muted { background: var(--bg-sunken); color: var(--text-3); }

/* batch progress */
.batch { display: flex; gap: 6px; margin: 14px 0 10px; }
.batch span { flex: 1; height: 10px; border-radius: 99px; background: var(--bg-sunken); transition: background .4s var(--ease); }
.batch span.on { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.big-num { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { display: grid; grid-template-columns: 52px 22px 1fr; gap: 10px; align-items: start; padding: 7px 0; position: relative; }
.tl li::before { content: ""; position: absolute; left: 72px; top: 26px; bottom: -8px; width: 2px; background: var(--border); }
.tl li:last-child::before { display: none; }
.tl-time { font-variant-numeric: tabular-nums; color: var(--text-3); font-weight: 600; font-size: 13px; padding-top: 1px; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--bg-elev); z-index: 1; }
.tl-dot .i { width: 12px; height: 12px; stroke-width: 3; }
.tl li[data-s="done"] .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl li[data-s="error"] .tl-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.tl li[data-s="next"] .tl-dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tl li[data-s="next"] .tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }
.tl li[data-s="done"] .tl-title { color: var(--text-2); }
.tl li[data-s="passed"] .tl-dot { background: var(--bg-sunken); border-color: var(--border-strong); }
.tl li[data-s="passed"] .tl-title, .tl li[data-s="passed"] .tl-desc { color: var(--text-3); }
.tl-title { font-weight: 600; font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-desc { color: var(--text-3); font-size: 12.5px; margin-top: 1px; }

/* attention */
.att { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); align-items: flex-start; }
.att + .att { margin-top: 8px; }
.att-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.att-title { font-weight: 600; }
.att-detail { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.att-body { flex: 1; min-width: 0; }
.empty-ok { display: flex; gap: 12px; align-items: center; color: var(--text-2); padding: 6px 0; }

/* flow */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.flow-node { padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-elev); position: relative; margin: 0 10px; min-width: 0; }
.flow-node:first-child { margin-left: 0; }
.flow-node:last-child { margin-right: 0; }
.flow-node:not(:last-child)::after {
  content: ""; position: absolute; right: -21px; top: 30px; width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 5px, transparent 5px 9px); background-size: 9px 2px;
  animation: flow 1s linear infinite; z-index: 2;
}
.flow-node[data-off="1"] { opacity: .6; }
.flow-node[data-off="1"]::after, .flow-node.prev-off::after { animation: none; background: var(--border-strong); }
@keyframes flow { to { background-position: 9px 0; } }
.flow-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px; }
.flow-title { font-weight: 650; font-size: 13.5px; }
.flow-host { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); overflow-wrap: anywhere; }
.flow-what { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.flow-stat { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

/* stats list */
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* bars */
.bar { height: 8px; background: var(--bg-sunken); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .6s var(--ease); }
.bar.ok > i { background: var(--ok); } .bar.warn > i { background: var(--warn); } .bar.danger > i { background: var(--danger); }
.hbar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 13.5px; }

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s, opacity .15s;
}
.btn:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 10px rgba(106, 70, 255, .28); }
.btn.primary:hover { background: var(--brand-text); border-color: var(--brand-text); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg-hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn .spinner { width: 15px; height: 15px; }
.spinner { border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--bg-sunken); color: var(--text-2); }
.badge .i { width: 13px; height: 13px; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-danger { background: var(--danger-soft); color: var(--danger); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-brand { background: var(--brand-soft); color: var(--brand-text); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg-elev); font-weight: 600; font-size: 13px; cursor: pointer; }
.pill:hover { border-color: var(--border-strong); }
.pill.dry { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pill.live { background: var(--ok-soft); border-color: transparent; color: var(--ok); }

.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg-elev); transition: border-color .15s, box-shadow .15s; outline: none;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 13px; }
.field .hint { color: var(--text-3); font-size: 12.5px; }
.search { position: relative; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .input { padding-left: 36px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-sunken); border-radius: 11px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }
.seg .c { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.switch { position: relative; width: 42px; height: 24px; flex: none; border-radius: 99px; background: var(--border-strong); border: 0; cursor: pointer; transition: background .2s; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch.warn[aria-checked="true"] { background: var(--warn); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 360px; }
.spacer { flex: 1; }

/* help tip */
.tip-btn { width: 20px; height: 20px; border-radius: 50%; border: 0; background: transparent; color: var(--text-3); display: inline-grid; place-items: center; cursor: help; padding: 0; }
.tip-btn:hover { color: var(--brand-text); background: var(--brand-soft); }
.tip-btn .i { width: 16px; height: 16px; }
.tip-btn { vertical-align: middle; margin-left: 2px; }
.tooltip { position: fixed; z-index: 1000; max-width: 340px; padding: 11px 14px; white-space: pre-line; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: #151827; color: #eef0f7; font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow-lg); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.tooltip.show { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- orders */
.olist { display: flex; flex-direction: column; }
.orow { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) 120px 150px 160px 40px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background .12s; }
.orow:last-child { border-bottom: 0; }
.orow:hover { background: var(--bg-hover); }
.orow.sel { background: var(--brand-soft); }
.olist-head { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding-top: 10px; padding-bottom: 10px; }
.olist-head:hover { background: none; }
.thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--bg-sunken); display: grid; place-items: center; color: var(--text-3); }
.otitle { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.ometa { color: var(--text-3); font-size: 12.5px; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cbx { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.copy { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; display: inline-flex; gap: 4px; align-items: center; }
.copy:hover { color: var(--brand-text); }
.selbar {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, calc(100% + 60px)); z-index: 50; visibility: hidden;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 16px;
  background: #151827; color: #fff; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); max-width: calc(100vw - 24px);
}
.selbar.show { transform: translate(-50%, 0); visibility: visible; }
.selbar .btn:not(.primary) { background: transparent; border-color: rgba(255,255,255,.18); color: #fff; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 210px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.menu.open .menu-list { display: block; animation: pop .14s var(--ease); }
.menu-list button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 500; }
.menu-list button:hover { background: var(--bg-hover); }
.menu-list button[disabled] { opacity: .45; cursor: not-allowed; }

/* table */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: var(--bg-hover); }
.t .r { text-align: right; }
.inline-edit { display: inline-flex; align-items: center; gap: 6px; }
.inline-edit .input { width: 92px; height: 32px; text-align: right; }
.editable { border: 1px dashed transparent; background: none; padding: 3px 8px; border-radius: 8px; cursor: pointer; font-weight: 650; font-variant-numeric: tabular-nums; display: inline-flex; gap: 6px; align-items: center; }
.editable .i { opacity: 0; transition: opacity .15s; width: 14px; height: 14px; color: var(--text-3); }
.editable:hover { border-color: var(--border-strong); background: var(--bg-elev); }
.editable:hover .i, .editable:focus-visible .i { opacity: 1; }

/* slots */
.slot { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.slot + .slot { margin-top: 8px; }
.slot:hover { border-color: var(--border-strong); }
.slot.on { border-color: var(--brand); background: var(--brand-soft); }
.slot input { accent-color: var(--brand); width: 18px; height: 18px; }
.slot-time { font-weight: 650; font-variant-numeric: tabular-nums; }
.slot .bar { width: 120px; margin-top: 6px; }

/* ---------------------------------------------------------------- activity */
.ev-day { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 8px; }
.ev-day:first-child { margin-top: 0; }
.ev { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; padding: 9px 0; }
.ev + .ev { border-top: 1px dashed var(--border); }
.ev-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.ev-ico .i { width: 15px; height: 15px; }
.ev-msg { overflow-wrap: anywhere; }
.ev-time { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.method { font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.m-GET { background: var(--info-soft); color: var(--info); }
.m-POST { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------------------- reviews */
.stars { display: inline-flex; gap: 2px; }
.stars button { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--border-strong); }
.stars button.on { color: #f5a524; }
.stars .i { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; }
.review { padding: 16px 0; }
.review + .review { border-top: 1px solid var(--border); }
.quote { border-left: 3px solid var(--border-strong); padding: 2px 0 2px 12px; color: var(--text-2); margin: 8px 0; white-space: pre-wrap; }
.draft { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; margin: 8px 0; }

/* ---------------------------------------------------------------- settings */
.mode-card { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-opt { text-align: left; padding: 16px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg-elev); cursor: pointer; transition: border-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 6px; }
.mode-opt:hover { border-color: var(--border-strong); }
.mode-opt[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.mode-opt .t { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mode-opt .d { color: var(--text-3); font-size: 13px; }
.set-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 6px 20px; padding: 12px 0; border-top: 1px solid var(--border); }
.set-row:first-child { border-top: 0; }
.set-label { color: var(--text-3); font-size: 13px; }
.set-val { font-weight: 600; overflow-wrap: anywhere; }
.set-help { grid-column: 2; color: var(--text-3); font-size: 12.5px; }
.toggle-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; }

/* ---------------------------------------------------------------- overlays */
.scrim { position: fixed; inset: 0; background: rgba(10, 12, 22, .45); backdrop-filter: blur(2px); z-index: 80; opacity: 0; transition: opacity .2s; }
.scrim.show { opacity: 1; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -48%) scale(.98); z-index: 90; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--bg-elev); border-radius: 18px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .18s, transform .22s var(--ease); }
.modal.show { opacity: 1; transform: translate(-50%, -50%); }
.modal.wide { width: min(680px, calc(100vw - 24px)); }
.modal-head { padding: 20px 22px 6px; display: flex; gap: 14px; align-items: flex-start; }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.modal-head p { margin: 4px 0 0; color: var(--text-3); }
.modal-body { padding: 12px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px 18px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 6px; }
.effects { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.effects li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 13.5px; }
.effects .ei { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.effects .ei .i { width: 15px; height: 15px; }
.callout { display: flex; gap: 10px; padding: 11px 13px; border-radius: 11px; font-size: 13.5px; margin-top: 12px; align-items: flex-start; }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout.info { background: var(--info-soft); color: var(--info); }
.callout.danger { background: var(--danger-soft); color: var(--danger); }
.callout.ok { background: var(--ok-soft); color: var(--ok); }
.callout b { color: inherit; }
.callout > div { color: var(--text); }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: slideIn .25s var(--ease); font-size: 13.5px; }
.toast.out { animation: slideOut .2s forwards; }
.toast .ti { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(20px); } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.progress-top { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; }
.progress-top.on { opacity: 1; }
.progress-top::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: indet 1.1s ease-in-out infinite; }
@keyframes indet { from { left: -40%; } to { left: 100%; } }
.task-chip { display: none; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); font-size: 12.5px; font-weight: 600; }
.task-chip.on { display: inline-flex; }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--bg-sunken), var(--bg-hover), var(--bg-sunken)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty .ico { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--bg-sunken); }
.empty h3 { margin: 0 0 4px; color: var(--text); font-size: 15px; }

/* ---------------------------------------------------------------- assistant */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; height: 52px; padding: 0 20px 0 16px; border-radius: 99px; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), #b06bff); box-shadow: 0 10px 28px rgba(106, 70, 255, .4); transition: transform .2s var(--ease), box-shadow .2s; }
.fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(106, 70, 255, .5); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(430px, 100vw); background: var(--bg-elev); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .3s var(--ease); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.ai-ava { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), #b06bff); flex: none; }
.drawer-title { font-weight: 700; }
.drawer-sub { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.chat { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.msg { max-width: 92%; animation: slideIn .25s var(--ease); }
.msg.user { align-self: flex-end; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; }
.msg.bot .bubble { background: var(--bg-sunken); padding: 12px 14px; border-radius: 16px 16px 16px 4px; }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin-bottom: 0; }
.bubble ul { margin: 4px 0 8px; padding-left: 18px; } .bubble li { margin: 2px 0; }
.msg-note { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--bg-sunken); border-radius: 16px 16px 16px 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); background: var(--bg-elev); border-radius: 99px; padding: 7px 12px; font-size: 13px; cursor: pointer; font-weight: 500; text-align: left; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.composer { border-top: 1px solid var(--border); padding: 12px 14px 14px; }
.composer-box { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--border-strong); border-radius: 14px; padding: 6px 6px 6px 12px; transition: border-color .15s, box-shadow .15s; }
.composer-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.composer textarea { flex: 1; border: 0; outline: 0; resize: none; background: none; max-height: 140px; min-height: 24px; padding: 6px 0; line-height: 1.45; }
.composer-note { font-size: 11.5px; color: var(--text-3); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.ask-inline { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--brand-text); font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 4px 6px; border-radius: 7px; }
.ask-inline:hover { background: var(--brand-soft); }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(800px 400px at 50% 0%, var(--brand-soft), transparent 70%), var(--bg); }
.login .card { width: min(400px, 100%); padding: 28px; }
.login h1 { font-size: 22px; margin: 18px 0 6px; letter-spacing: -.02em; }
.login p { color: var(--text-3); margin: 0 0 18px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .flow-node { margin: 0; }
  .flow-node::after { display: none; }
  .orow { grid-template-columns: 28px 48px minmax(0, 1fr) 140px 40px; }
  .orow .c-qty, .orow .c-slot { display: none; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 70; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--border); }
  .brand, .nav-label, .sidebar-foot, .nav a.desk { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 4px; flex: 1; text-align: center; position: relative; }
  .nav a .count { position: absolute; top: 0; right: calc(50% - 22px); margin: 0; font-size: 10px; padding: 0 5px; min-width: 16px; background: var(--brand); color: #fff; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
  .main { padding: 16px 16px 150px; }
  .nav a .full, .desk-only { display: none; }
  .nav a .short { display: inline; }
  .seg.scroll, .chips.scroll { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg.scroll::-webkit-scrollbar, .chips.scroll::-webkit-scrollbar { display: none; }
  .seg.scroll button, .chips.scroll .chip { flex: none; }
  .toolbar .search { max-width: none; min-width: 100%; }
  .page-head h1 { font-size: 22px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .hero-text { font-size: 17px; }
  .fab { bottom: calc(76px + env(safe-area-inset-bottom)); right: 16px; height: 48px; padding: 0 16px 0 14px; }
  .fab .lbl { display: none; }
  .fab { width: 52px; padding: 0; justify-content: center; }
  .selbar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; left: 12px; max-width: none; }
  .orow { grid-template-columns: 24px 44px minmax(0, 1fr) 36px; gap: 10px; padding: 12px; }
  .orow .c-dl, .orow .c-qty, .orow .c-slot { display: none; }
  .orow .c-state-m { display: flex; }
  .olist-head { display: none; }
  .mode-card { grid-template-columns: 1fr; }
  .set-row { grid-template-columns: 1fr; }
  .set-help { grid-column: 1; }
  .hbar-row { grid-template-columns: 100px 1fr auto; }
  .modal { top: auto; bottom: 0; transform: translate(-50%, 8%); border-radius: 18px 18px 0 0; width: 100vw; max-height: 92vh; }
  .modal.show { transform: translate(-50%, 0); }
  .t .hide-m { display: none; }
}
@media (min-width: 861px) { .c-state-m { display: none !important; } }
@media (max-width: 520px) { .g-4 { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 14px; } .kpi-val { font-size: 26px; } .flow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* ---------------------------------------------------------------- MarketMind: landing, onboarding, tarif */
.btn.lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.landing, .onb { min-height: 100vh; background: radial-gradient(900px 420px at 15% -10%, var(--brand-soft), transparent 70%), var(--bg); }
.lnav { display: flex; align-items: center; gap: 10px; padding: 18px 20px; }
.lhero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 48px 20px 40px; }
.lhero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.035em; margin: 16px 0 14px; }
.lhero p { font-size: 17px; color: var(--text-2); max-width: 56ch; margin: 0; }
.lhero-flow { padding: 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-lg); }
.lf-step { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; animation: slideIn .5s var(--ease) both; }
.lf-step + .lf-step { border-top: 1px dashed var(--border); }
.lsec { padding: 36px 20px; }
.lsec h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 18px; }
.step-num { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--brand); color: #fff; }
.pricing .price { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pricing .price.hot { border: 1.5px solid var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.pnum { font-size: 34px; font-weight: 750; letter-spacing: -.03em; }
.pnum small { font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.price li { display: flex; gap: 8px; align-items: center; } .price li .i { color: var(--ok); }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 28px 20px 40px; font-size: 13px; }
.onb-box { max-width: 640px; margin: 10px auto 60px; padding: 0 16px; }
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 10px 0 18px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-3); padding: 10px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-sunken); font-size: 12px; flex: none; }
.stepper li.on { color: var(--brand-text); border-color: var(--brand); } .stepper li.on span { background: var(--brand); color: #fff; }
.stepper li.done span { background: var(--ok); color: #fff; } .stepper li.done span .i { width: 13px; height: 13px; stroke-width: 3; }
.wiz-h { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.howto { margin: 16px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.login-code { text-align: center; font: 700 40px/1 var(--mono); letter-spacing: .18em; padding: 18px; margin: 14px 0; border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); }
details.more { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
details.more summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; color: var(--text-2); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
@media (max-width: 860px) {
  .lhero { grid-template-columns: 1fr; padding-top: 20px; gap: 24px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .stepper li { font-size: 0; justify-content: center; } .stepper li span { font-size: 12px; }
}
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- qoidalar formasi (sodda) */
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.field.rule.wide { grid-column: 1 / -1; }
.rule-label { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.wchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.wchip { position: relative; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-elev); font: 600 13.5px var(--font); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background .15s, transform .08s; }
.wchip:hover { border-color: var(--brand); }
.wchip:active { transform: scale(.97); }
.wchip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); }
.wchip b { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg-elev); }
.wlist { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.numstep { display: flex; gap: 8px; align-items: center; }
.numstep .input { width: 84px; text-align: center; font-weight: 700; font-size: 16px; }
.numstep .btn { font-size: 18px; font-weight: 600; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 11px; cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--brand); }
.choice.on { border-color: var(--brand); background: var(--brand-soft); }
.choice input { accent-color: var(--brand); width: 17px; height: 17px; margin: 0; }
.plain { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.plain-h { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ok); }
.plain p { margin: 6px 0 0; line-height: 1.55; }
@media (max-width: 860px) { .rules-grid { grid-template-columns: 1fr; } .wchips { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- avtopilot bosh sahifasi */
.ap-hero { padding: 22px 24px; position: relative; overflow: hidden; }
.ap-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 240px at 0% 0%, var(--ok-soft), transparent 70%); }
.ap-hero[data-state="dry"]::before { background: radial-gradient(700px 240px at 0% 0%, var(--warn-soft), transparent 70%); }
.ap-hero[data-state="pause"]::before { background: radial-gradient(700px 240px at 0% 0%, var(--bg-sunken), transparent 70%); }
.ap-hero > * { position: relative; }
.ap-top { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.ap-status { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ap-orb { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 0 8px var(--ok-soft); animation: pulse 2s infinite; }
.ap-hero[data-state="dry"] .ap-orb { background: var(--warn); box-shadow: 0 0 0 8px var(--warn-soft); }
.ap-hero[data-state="pause"] .ap-orb { background: var(--text-3); box-shadow: 0 0 0 8px var(--bg-sunken); animation: none; }
.ap-title { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.ap-sub { color: var(--text-3); font-size: 13.5px; margin-top: 2px; }
.ap-mode button { height: 36px; padding: 0 14px; font-size: 13.5px; }
.ap-hero[data-state="live"] .ap-mode button[aria-pressed="true"] { color: var(--ok); }
.ap-hero[data-state="dry"] .ap-mode button[aria-pressed="true"] { color: var(--warn); }
.ap-now { margin: 18px 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg-sunken); }
.ap-now p { margin: 4px 0 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.ap-cap { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.ap-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ap-tile { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); }
.ap-num { font-size: 24px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ap-lbl { color: var(--text-3); font-size: 12.5px; }
.q-list { margin-top: 12px; }
.q-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px dashed var(--border); }
.q-row:first-child { border-top: 0; }
.q-title { font-weight: 600; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) { .ap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ap-tile { padding: 12px; } .ap-num { font-size: 20px; } .ap-mode { width: 100%; } .ap-mode button { flex: 1; justify-content: center; } }
a.btn, a.btn:hover, a.pill:hover { text-decoration: none; }
@media (max-width: 860px) { .ap-hero { padding: 18px; } .ap-orb { width: 30px; height: 30px; box-shadow: 0 0 0 6px var(--ok-soft); } .ap-title { font-size: 18px; } .ap-now p { font-size: 15px; } }
