/* Sariq Bola · Tozalik nazorati — dizayn tizimi (PDF maketiga mos) */
:root {
  --bg: #f3f2ee;
  --card: #ffffff;
  --ink: #1b1a17;
  --muted: #77736a;
  --line: #e7e4dc;
  --soft: #efede7;
  --yellow: #ffcc00;
  --yellow-soft: #fff4c4;
  --yellow-deep: #e0b400;
  --ok: #1f8a4c;
  --ok-soft: #e3f3e8;
  --orange: #e8541e;
  --red: #c93a1c;
  --red-ink: #9a2e12;
  --red-soft: #fde9e2;
  --blue-soft: #e8f0fb;
  --radius: 22px;
  --radius-sm: 14px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(27, 26, 23, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 1.15rem; font-weight: 700; }
small { font-size: .82rem; }
p { margin: .4em 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.c-ok { color: var(--ok); } .c-late { color: #a86b00; } .c-bad { color: var(--red); }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; }

/* ---------------- qobiq ---------------- */
.app { min-height: 100vh; }
.page { max-width: 560px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 18px calc(110px + env(safe-area-inset-bottom)); }
.page:has(> .page-head) { max-width: 980px; }
.with-bottom-bar .page { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center; gap: 4px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.tabbar a { flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: .8rem; font-weight: 600; }
.tb-ic { display: grid; place-items: center; width: 64px; height: 34px; border-radius: 99px; transition: background .15s; }
.tabbar a.active { color: var(--ink); }
.tabbar a.active .tb-ic { background: var(--yellow); }

/* ---------------- sarlavhalar ---------------- */
.display { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -.02em; line-height: 1.12; margin: 6px 0 20px; }
.display.md { font-size: 1.55rem; margin: 0; }
.caps { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 26px 4px 12px; display: flex; align-items: center; gap: 6px; }
.caps-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 26px 4px 12px; }
.caps-row .caps { margin: 0; }
.caps-row form { margin: 0; }
.hello { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hello-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.hello-text span { color: var(--muted); font-size: .95rem; }
.hello-text b { font-size: 1.05rem; }
.avatar-y { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); font-family: var(--display); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink); }
.avatar-y.lg { width: 72px; height: 72px; font-size: 1.4rem; }
.round-btn { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--card); border: 0; color: var(--ink); text-decoration: none; cursor: pointer; position: relative; box-shadow: var(--shadow); }
.round-btn.sm { width: 38px; height: 38px; }
.round-btn.sm .ic { width: 18px; height: 18px; }
.round-btn:disabled { opacity: .35; }
.round-btn.dot::after { content: ""; position: absolute; top: 11px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); border: 2px solid var(--card); }
.page-top { margin-bottom: 4px; }
.page-top .display { margin-top: 2px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.day-nav { display: flex; gap: 6px; }
.sub-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sub-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.branch-pick select { margin-bottom: 14px; }

/* ---------------- kartalar ---------------- */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-head .muted { display: block; margin-top: 2px; font-size: .95rem; }
.hero { background: var(--yellow); border-radius: 28px; padding: 22px 22px 20px; margin-bottom: 14px; }
.hero.calm { background: var(--card); }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pill-dark { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--ink); color: var(--yellow); font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.hero-range { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.hero-title { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; margin: 18px 0 6px; }
.hero-sub { margin: 0 0 16px; font-size: 1.02rem; color: #3b3830; }
.hero-bar { height: 7px; border-radius: 99px; background: rgba(27, 26, 23, .14); overflow: hidden; margin-bottom: 18px; }
.hero-bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.btn-black { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 0 24px; border: 0; border-radius: 20px; background: var(--ink); color: var(--yellow); font: 700 1.15rem var(--body); text-decoration: none; cursor: pointer; }
.btn-black.sm { min-height: 50px; padding: 0 20px; border-radius: 16px; font-size: 1.02rem; }
.btn-black.block, .btn-outline.block, .btn-red.block { width: 100%; }
.btn-black.lg { min-height: 66px; }
.btn-black:disabled { opacity: .5; }
.btn-black:active, .btn-outline:active, .btn-finish:active { transform: translateY(1px); }
.btn-outline { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 0 20px; border: 2.5px solid var(--ink); border-radius: 18px; background: var(--card); color: var(--ink); font: 700 1.05rem var(--body); text-decoration: none; cursor: pointer; }
.btn-red { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 0; border-radius: 16px; background: var(--red); color: #fff; font: 700 1rem var(--body); cursor: pointer; }

.row-card, .list-card, .warn-card, .sign-card { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; text-decoration: none; box-shadow: var(--shadow); }
.list-card { flex-direction: column; align-items: stretch; gap: 14px; }
.lc-top { display: flex; align-items: center; gap: 14px; }
.sq-ic { display: inline-grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 15px; background: var(--soft); }
.sq-ic.yellow { background: var(--yellow-soft); }
.rc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.rc-text small { color: var(--muted); font-size: .92rem; }
.rc-text b { font-size: 1.08rem; }
.pill-soft { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--soft); font-weight: 700; font-size: .95rem; }
.pill-yellow { flex: none; padding: 6px 14px; border-radius: 99px; background: var(--yellow); font-weight: 700; font-size: .9rem; }
.pill-red { flex: none; padding: 6px 14px; border-radius: 99px; background: var(--red-soft); color: var(--red-ink); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.lc-count { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.thin-bar { height: 7px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.thin-bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.warn-card { background: var(--red-soft); color: var(--red-ink); align-items: flex-start; }
.warn-card .sq-ic { background: #fbd5c8; color: var(--red); }
.warn-card .rc-text small { color: var(--red-ink); opacity: .85; }
.warn-card.blue { background: var(--blue-soft); color: #1d3f6e; }
.warn-card.blue .sq-ic { background: #d3e2f7; color: #1d4f9a; }
.warn-card form { margin: 8px 0 0; }
.link-red, .link-strong, .link-muted { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link-red { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; text-decoration: underline; }
.link-strong { font-weight: 700; text-decoration: underline; color: var(--ink); }
.link-muted { color: var(--muted); font-weight: 600; text-decoration: none; }
.links-row { text-align: center; margin: 18px 0 6px; }
.sign-card { padding: 14px 16px; }
.sign-card form { margin: 0; }
.thumb { flex: none; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.icon { background: var(--yellow-soft); }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); }
.empty.soft { padding: 18px; font-size: .95rem; }

/* ---------------- Nazorat ---------------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat-row.two { grid-template-columns: 1fr 1fr; }
.stat { background: var(--card); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: .98rem; }
.stat b { font-family: var(--display); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat b small { font-size: .55em; color: var(--muted); font-weight: 700; }
.stat.bad { background: var(--red-soft); }
.stat.bad span, .stat.bad b, .stat.bad b small { color: var(--red-ink); }
.stat.warn { background: #fff4d6; }
.map-row { margin-bottom: 14px; }
.map-name { font-weight: 600; margin-bottom: 8px; }
.map-cells, .map-axis { display: grid; gap: 4px; }
.mc { display: block; aspect-ratio: 1; border-radius: 3px; border: 1.5px solid #dcd8cf; background: #fff; }
.mc.na { border-style: dashed; border-color: #e3e0d8; }
.mc.done { background: var(--ink); border-color: var(--ink); }
.mc.current { background: var(--yellow); border-color: var(--yellow-deep); }
.mc.missed { background: var(--orange); border-color: var(--orange); }
.map-axis { margin: 2px 0 14px; color: var(--muted); font-size: .85rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .mc { width: 16px; height: 16px; border-radius: 4px; }

/* ---------------- Zona ekrani ---------------- */
.loading { padding: 40px; text-align: center; color: var(--muted); }
.date-line { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; }
.date-line input { width: 170px; min-height: 38px; }
.slot-pills { display: flex; gap: 10px; overflow-x: auto; padding: 2px 18px 8px; margin: 0 -18px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.slot-pills::-webkit-scrollbar { display: none; }
.spill { flex: none; min-width: 104px; padding: 12px 10px; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; scroll-snap-align: start; font-family: var(--body); }
.spill b { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.spill small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.spill.missed small { color: var(--orange); }
.spill.sel { background: var(--ink); color: #fff; }
.spill.sel small { color: var(--yellow); }
.sec-row { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 4px 12px; }
.sec-row h2 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.sec-row .muted { font-weight: 700; font-size: 1.05rem; }
.sig-line { display: flex; align-items: center; gap: 6px; margin: -4px 4px 12px; color: var(--ok); font-weight: 600; font-size: .92rem; }
.sign-now { margin-bottom: 12px; }
.sub-photo { display: flex; align-items: center; gap: 12px; padding: 8px; margin-bottom: 12px; background: var(--card); border-radius: var(--radius-sm); text-decoration: none; font-size: .9rem; color: var(--muted); }
.sub-photo img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.task-list { display: grid; gap: 10px; }
.task-list.inner { margin-top: 14px; }
.task { display: flex; align-items: stretch; background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.task-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 16px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.task-guide { flex: none; display: grid; place-items: center; width: 64px; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.task-guide .ic { width: 26px; height: 26px; }
.cbox { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid #cfcbc1; color: var(--yellow); }
.cbox .ic { width: 20px; height: 20px; stroke-width: 3; }
.cbox.on { background: var(--ink); border-color: var(--ink); }
.cbox.miss { border-color: #f1c2b2; color: var(--orange); font-weight: 800; }
.task.open .cbox, .task.late_open .cbox { border-color: #a9a497; }
.task.redo { box-shadow: inset 0 0 0 2px var(--red); }
.task.redo .cbox { border-color: var(--red); }
.task.upcoming .task-main, .task.missed .task-main { cursor: default; }
.task.upcoming { opacity: .6; }
.task-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.task-title { font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.task.done .task-title, .task.late .task-title { text-decoration: line-through; color: var(--muted); text-decoration-thickness: 1.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: var(--soft); font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; border: 0; font-family: var(--body); cursor: default; }
button.chip, a.chip { cursor: pointer; }
.dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); flex: none; }
.cloth-qizil { background: #d93025; } .cloth-sariq { background: var(--yellow); } .cloth-oq { background: #fff; }
.cloth-kok { background: #2f6fdf; } .cloth-yashil { background: #2aa35a; } .cloth-kulrang { background: #9a978f; } .cloth-none { background: var(--soft); }
.t-note { font-size: .85rem; color: var(--muted); }
.t-note.bad { color: var(--red); font-weight: 600; }
.round { margin-top: 18px; }
.round h2 { font-size: 1.15rem; }
.sq-row, .sq-axis { display: grid; gap: 5px; }
.sq { display: block; aspect-ratio: 1; border-radius: 4px; border: 1.5px solid #d8d4ca; background: #fff; }
.sq.done { background: var(--ink); border-color: var(--ink); }
.sq.current { background: var(--yellow); border-color: var(--yellow-deep); }
.sq.missed { background: var(--orange); border-color: var(--orange); }
.sq-axis { margin: 8px 0 16px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.fold { padding: 0; }
.fold-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.fold-head b { flex: 1; font-size: 1.08rem; font-weight: 600; }
.fold-head .muted { font-weight: 700; }
.fold.open { padding-bottom: 14px; }
.fold .task-list.inner { margin: 0 12px; }
.fold .task { box-shadow: inset 0 0 0 1px var(--line); }

.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: rgba(243, 242, 238, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.bottom-bar > * { max-width: 524px; margin: 0 auto; }
.btn-finish { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; border: 0; border-radius: 20px; background: #c4c0b6; color: #fff; font: 700 1.12rem var(--body); cursor: pointer; }
.btn-finish.ready { background: var(--ink); color: var(--yellow); }
.btn-finish .cnt { padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .25); font-size: .95rem; }
.btn-finish.ready .cnt { background: rgba(255, 204, 0, .2); }
.btn-done, .done-note { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border-radius: 20px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }

/* ---------------- Vazifa sahifasi ---------------- */
.video-card { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 10; margin: 22px 0 6px; padding: 20px; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; position: relative; }
.play-big { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.play-big .ic { width: 44px; height: 44px; }
.video-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 1.02rem; }
.video-foot span { opacity: .7; }
.need-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.need { background: var(--card); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.need b { font-size: 1.12rem; margin-top: 12px; }
.need span:last-child { color: var(--muted); }
.need-dot { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.need-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--soft); }
.step-card { display: flex; align-items: flex-start; gap: 14px; background: var(--card); border-radius: 18px; padding: 16px 18px; margin-bottom: 10px; font-size: 1.05rem; }
.step-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); font-weight: 700; font-size: .95rem; }
.task-line { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 18px; padding: 14px 16px; text-decoration: none; }
.tl-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow-soft); font-weight: 700; }
.tl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-title { font-weight: 600; font-size: 1.05rem; }
.tl-go { color: var(--muted); }

/* ---------------- Profil ---------------- */
.profile-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 22px; }
.menu-list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.menu-list a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.menu-list a:last-child { border-bottom: 0; }
.menu-list .sq-ic { width: 42px; height: 42px; border-radius: 12px; }
.menu-list .go { margin-left: auto; color: var(--muted); }
.count-badge { margin-left: 8px; padding: 2px 9px; border-radius: 99px; background: var(--orange); color: #fff; font-size: .8rem; }
.logout-form { margin-top: 26px; }

/* ---------------- sozlash sahifalari ---------------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.page-head p { margin: 4px 0 0; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form { margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form select, .inline-form input { width: auto; }
.panel { background: var(--card); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); overflow-x: auto; }
.panel > h2 { margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-title { margin: 22px 0 10px; }
.alert { padding: 12px 16px; border-radius: 14px; margin: 10px 0; font-weight: 500; }
.alert.error { background: var(--red-soft); color: var(--red-ink); }
.alert.info { background: var(--blue-soft); color: #1d3f6e; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); font: 600 .98rem var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn:hover { background: #faf9f6; }
.btn.primary { background: var(--ink); color: var(--yellow); box-shadow: none; }
.btn.danger { color: var(--red); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .9rem; border-radius: 11px; }
.btn.lg { min-height: 54px; font-size: 1.05rem; padding: 0 24px; border-radius: 18px; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--soft); cursor: pointer; font-size: 1rem; position: relative; }
.icon-btn.del input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-btn.del:has(input:checked) { background: var(--red-soft); box-shadow: inset 0 0 0 2px var(--red); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--soft); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--yellow-soft); color: #7a5b00; }
.pill.late { background: #ffefcc; color: #915d00; }
.pill.bad { background: var(--red-soft); color: var(--red-ink); }
.avatar { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); font-weight: 700; font-size: .85rem; color: var(--ink); }
.avatar.sm { width: 28px; height: 28px; font-size: .7rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.who-sm { display: inline-flex; align-items: center; gap: 8px; }
.list { display: grid; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border-radius: 18px; text-decoration: none; flex-wrap: wrap; }
.list-row.inactive { opacity: .55; }
.list-row .grow { flex: 1; min-width: 160px; }
.row-title { font-weight: 700; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.row-stats { display: flex; gap: 10px; align-items: center; font-size: .88rem; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters > input[type=search] { flex: 1 1 200px; width: auto; }
.filters select { width: auto; }
.filters label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.filters label.check-inline { display: inline-flex; color: var(--ink); font-size: .92rem; }
.presets { display: flex; gap: 6px; align-items: center; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 14px; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: opacity .4s, transform .4s; }
.toast.success { background: var(--ink); color: var(--yellow); }
.toast.error { background: var(--red); }
.toast.warning { background: #9b6300; }
.toast.hide { opacity: 0; transform: translateY(8px); }

input[type=text], input[type=password], input[type=search], input[type=url], input[type=number],
input[type=date], input[type=time], input[type=email], input[type=tel], select, textarea {
  width: 100%; min-height: 48px; padding: .6em .85em; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); font: 1rem var(--body);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(255, 204, 0, .75); outline-offset: 1px; }
label { font-weight: 600; font-size: .94rem; }
.check-inline { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check-inline input { width: 22px; height: 22px; accent-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { margin: 0; }
.helptext { color: var(--muted); font-size: .82rem; font-weight: 400; }
.errorlist { list-style: none; margin: 2px 0; padding: 0; color: var(--red); font-size: .86rem; font-weight: 600; }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: center; }
.field-check .helptext, .field-check .errorlist { flex-basis: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.form-grid.three { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.fs { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px 2px; margin: 6px 0 16px; }
.fs legend { padding: 0 6px; font-weight: 700; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.form-actions.sticky { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 12px 0; background: linear-gradient(transparent, var(--bg) 35%); z-index: 5; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 50%; background: var(--yellow); font-size: .95rem; vertical-align: 2px; }
details.more > summary { cursor: pointer; font-weight: 700; color: var(--muted); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "＋ "; }
details.more[open] > summary::before { content: "－ "; }
details.more[open] > summary { margin-bottom: 14px; }
.pin-box { background: var(--yellow-soft); border-radius: 18px; padding: 16px; margin-bottom: 16px; }
.pin-box .field { margin-bottom: 8px; }
.pin-box input { font-size: 1.5rem; letter-spacing: .3em; font-weight: 800; max-width: 200px; }
.pin-show { margin: 10px 0 0; font-size: 1.1rem; }
.pin-show b { font-size: 1.6rem; letter-spacing: .2em; }

.slot-gen { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.slot-gen label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.slot-gen input, .slot-gen select { width: 150px; }
.slot-list { margin: 8px 0 10px; min-height: 34px; }
.chip.slot { background: var(--yellow-soft); font-variant-numeric: tabular-nums; }
.chip.slot button { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0 0 2px; color: var(--muted); }
.slot-add { display: flex; gap: 8px; align-items: center; }
.slot-add input { width: 150px; }
.task-row { border-radius: 16px; padding: 12px; margin-bottom: 10px; background: #faf9f6; box-shadow: inset 0 0 0 1.5px var(--line); }
.task-row.deleted { opacity: .45; background: var(--red-soft); }
.tr-main { display: flex; gap: 10px; align-items: center; }
.tr-icon select { width: 66px; font-size: 1.5rem; padding: .2em; min-height: 56px; text-align: center; }
.tr-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tr-title { font-weight: 700; }
.tr-tools { display: flex; gap: 6px; }
.tr-more { margin-top: 8px; }
.tr-more > summary { cursor: pointer; font-size: .86rem; color: var(--muted); font-weight: 600; }
.tr-more[open] > summary { margin-bottom: 10px; }
.tr-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px; }
.tr-line label, .tr-more > label:not(.check-inline) { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.tr-more textarea { min-height: 90px; }
.tr-more .check-inline { margin: 4px 0 8px; }
.tr-slots { display: grid; gap: 6px; }
.chip.toggle { opacity: .45; font-variant-numeric: tabular-nums; }
.chip.toggle.on { opacity: 1; background: var(--ok-soft); color: var(--ok); }
.add-task { min-height: 54px; margin-top: 4px; }
@media (max-width: 640px) { .tr-fields { grid-template-columns: 1fr; } .tr-main { align-items: flex-start; } .tr-tools { flex-direction: column; } }
.shift-list { display: grid; gap: 10px; }
.shift-edit { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.shift-edit label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.shift-edit .del-check { display: inline-flex; padding-bottom: 12px; }
@media (max-width: 640px) { .shift-edit { grid-template-columns: 1fr 1fr; } .shift-edit label:first-of-type { grid-column: 1 / -1; } }
.add-zone { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.branch-block .list-row { background: #faf9f6; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi span { color: var(--muted); font-size: .9rem; }
.kpi b { font-family: var(--display); font-size: 1.7rem; font-weight: 800; }
.kpi.hero { margin: 0; border-radius: var(--radius); padding: 16px 18px; }
.kpi.hero.ok { background: var(--ok-soft); } .kpi.hero.warn { background: var(--yellow-soft); } .kpi.hero.bad { background: var(--red-soft); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lgd { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.lgd.done { background: var(--ink); } .lgd.late { background: #f0a500; } .lgd.missed { background: var(--orange); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 220px; overflow-x: auto; padding-top: 8px; }
.chart .col { flex: 1 0 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; text-decoration: none; }
.chart .stack { flex: 1; width: 100%; max-width: 40px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--soft); border-radius: 8px; overflow: hidden; }
.chart .stack i { display: block; }
.chart .stack .done { background: var(--ink); } .chart .stack .late { background: #f0a500; } .chart .stack .missed { background: var(--orange); }
.chart .val { font-size: .72rem; font-weight: 700; }
.chart .lbl { font-size: .72rem; color: var(--muted); }
.alert-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--red-soft); color: var(--red-ink); font-size: .92rem; text-decoration: none; }
.alert-row.rejected { background: #fff1d6; color: #7a4d00; }
.alert-row.daily { background: var(--ok-soft); color: #165f36; }
.alert-row.resolved { opacity: .6; }

/* kirish va PIN */
body.bare { background: var(--yellow); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border-radius: 30px; padding: 28px 24px; box-shadow: 0 30px 80px rgba(80, 60, 0, .2); }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin: 18px 0; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand div { display: flex; flex-direction: column; }
.auth-brand b { font-family: var(--display); font-size: 1.15rem; }
.auth-brand span { color: var(--muted); }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--yellow); font-weight: 900; font-size: 1.3rem; flex: none; }
.brand-mark.big { width: 54px; height: 54px; font-size: 1.6rem; }
.pin-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pin-head h1 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin: 0; }
.pin-head small { color: var(--muted); }
.step-title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin: 6px 0 16px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; border: 0; border-radius: 20px; background: var(--bg); cursor: pointer; font: inherit; color: var(--ink); }
.person:hover, .person:focus-visible { background: var(--yellow-soft); }
.pname { font-weight: 700; text-align: center; line-height: 1.2; }
.ppos { font-size: .8rem; color: var(--muted); }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 14px 0 22px; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--ink); }
.pin-dots i.opt { border-style: dashed; opacity: .35; }
.pin-dots i.on { background: var(--ink); opacity: 1; }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto 16px; }
.keypad button { height: 66px; border: 0; border-radius: 20px; background: var(--bg); font: 700 1.6rem var(--display); color: var(--ink); cursor: pointer; }
.keypad button:active { background: var(--yellow-soft); }
.keypad .ok { background: var(--ink); color: var(--yellow); }
.big-check { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 2.2rem; font-weight: 900; }
.big-check.bad { background: var(--red); color: #fff; }

dialog.sheet { width: min(96vw, 480px); max-height: 90vh; border: 0; border-radius: 26px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
dialog.sheet::backdrop { background: rgba(27, 26, 23, .45); }
@media (max-width: 600px) { dialog.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 26px 26px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); } }
#cell-body { display: grid; gap: 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.1rem; }
.who { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg); border-radius: 16px; }
.who > div { display: flex; flex-direction: column; }
.who small { color: var(--muted); }
.proof { width: 100%; max-height: 320px; object-fit: cover; border-radius: 16px; }
.reject-form { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }

.poster { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 26px; padding: 28px; text-align: center; }
.poster-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--yellow); border-radius: 16px; font-size: 1.1rem; }
.poster-head b { font-family: var(--display); }
.poster-zone { font-family: var(--display); font-weight: 800; font-size: 2.5rem; margin: 22px 0 0; }
.poster-sub { margin: 4px 0 16px; color: var(--muted); font-size: 1.1rem; }
.poster-qr { width: 320px; height: 320px; max-width: 100%; }
.poster-steps { text-align: left; max-width: 380px; margin: 16px auto; padding-left: 1.4em; font-size: 1.05rem; display: grid; gap: 6px; }
.poster-url { font-size: .72rem; color: var(--muted); word-break: break-all; }

.print-body { background: #fff; padding: 16px; }
.print-actions { margin-bottom: 12px; display: flex; gap: 8px; }
.paper { max-width: 1100px; margin: 0 auto; }
.paper-head { display: flex; align-items: center; gap: 16px; background: var(--yellow); padding: 8px 12px; border: 1px solid #000; font-weight: 800; }
.paper-title { flex: 1; font-size: 1.1rem; }
.paper-meta { padding: 6px 2px; font-size: .85rem; }
.paper-grid { width: 100%; border-collapse: collapse; font-size: .72rem; margin-bottom: 10px; }
.paper-grid th, .paper-grid td { border: 1px solid #000; padding: 3px; text-align: center; }
.paper-grid .ptask { text-align: left; width: 22%; }
.paper-grid .ptask small { display: block; font-weight: 400; }
.paper-grid td.na { background: #222; }
.paper-grid td.missed { color: var(--red); font-weight: 800; }
.paper-grid td.late { background: #fff3d6; }
.paper-legend { font-size: .72rem; color: var(--muted); }

@media (min-width: 900px) {
  .page { padding-top: 32px; }
  .two-col { grid-template-columns: 1fr 1fr; }
}
@media print {
  .no-print, .tabbar, .toasts, .print-actions, .bottom-bar { display: none !important; }
  body, .print-body { background: #fff; padding: 0; }
  .page { max-width: none; padding: 0; }
  @page { margin: 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.hero.late .pill-dark { background: var(--red); color: #fff; }
.sign-card .rc-text b { font-size: 1rem; }
@media (max-width: 400px) { .stat { padding: 12px 14px; } .stat b { font-size: 1.45rem; } }


/* ================= PLANSHET VA KOMPYUTER ================= */
.tabbar .tb-brand { display: none; }
.tabbar.desk-only { display: none; }

/* planshet: 640px dan */
@media (min-width: 640px) {
  .page { max-width: 720px; padding-left: 28px; padding-right: 28px; }
  .display { font-size: 2.3rem; }
  .hero { padding: 26px 28px 24px; }
  .hero-title { font-size: 1.8rem; }
  .slot-pills { margin: 0 -28px 12px; padding-inline: 28px; }
  .stat-row { gap: 14px; }
  .need-grid { gap: 16px; }
  .bottom-bar > * { max-width: 664px; }
  .people { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* kompyuter: 1024px dan — chap menyu va ikki ustun */
@media (min-width: 1024px) {
  .tabbar, .tabbar.desk-only {
    display: flex; top: 0; bottom: 0; right: auto; width: 248px;
    flex-direction: column; justify-content: flex-start; gap: 6px;
    padding: 24px 16px; border-top: 0; border-right: 1px solid var(--line); background: #fff;
  }
  .tabbar a { flex: none; max-width: none; flex-direction: row; gap: 12px; padding: 4px; font-size: 1rem; border-radius: 16px; }
  .tabbar a:hover { background: var(--bg); }
  .tabbar a.active { background: var(--yellow-soft); }
  .tabbar a.active .tb-ic { background: var(--yellow); }
  .tb-ic { width: 46px; height: 40px; border-radius: 12px; }
  .tabbar .tb-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 4px; }
  .tabbar .tb-brand:hover { background: none; }
  .tb-brand span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
  .tb-brand b { font-family: var(--display); font-size: 1rem; color: var(--ink); }
  .tb-brand small { color: var(--muted); }
  .app:has(> .tabbar) { padding-left: 248px; }
  .app:has(> .tabbar) .toasts { left: calc(50% + 124px); bottom: 32px; }
  .app:has(> .tabbar) .bottom-bar { left: 248px; }
  .page { max-width: 1120px; padding: 36px 40px 60px; }
  .with-bottom-bar .page { padding-bottom: 130px; }
  .page:has(> .page-head) { max-width: 1040px; }
  .slot-pills { margin: 0 0 14px; padding-inline: 0; }
  .bottom-bar > * { max-width: 560px; }

  .t-grid, .c-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .t-side > .caps:first-child, .c-side > .caps-row:first-child { margin-top: 0; }
  .c-main .stat-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .hero { padding: 30px; }
  .hero-title { font-size: 2rem; }

  #z-root .task-list { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
  #z-root .fold .task-list.inner { grid-template-columns: 1fr; }
  .task-list:has(.task-line) { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
  .need-grid { grid-template-columns: repeat(2, minmax(0, 260px)); }
  .page:has(.video-card) { max-width: 820px; }
  .video-card { aspect-ratio: 16 / 8; }
  .page:has(.profile-head) { max-width: 760px; }
}
