@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

/* Ranglar "Axelus WMS — Telegram WebApp dizayni" faylidan. */
:root, [data-theme='light'] {
  --bg: #f3f6f2;
  --card: #ffffff;
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.86);
  --glass-border: #e3eae4;
  --input: #ffffff;
  --soft: #f1f4f1;
  --skel: #e8efe9;
  --shine: rgba(255, 255, 255, 0.75);
  --faint: #9aa89e;
  --line: #eef2ee;
  --line-strong: #e1e8e2;
  --border: #e3eae4;
  --text: #0f1a14;
  --muted: #55665b;
  --green: #1e8a4c;
  --green-deep: #14512f;
  --green-text: #1e7a47;
  --green-soft: #e3f2e6;
  --green-ring: #bfe2c8;
  --on-green: #ffffff;
  --grad: linear-gradient(135deg, #14512f, #1e8a4c);
  --grad-bar: linear-gradient(90deg, #1e8a4c, #5bc45a);
  --grad-btn-shadow: 0 12px 26px rgba(20, 81, 47, 0.28);
  --hero: linear-gradient(150deg, #0a2717 0%, #13492b 55%, #1c6e3f 100%);
  --hero-text: #cfebd6;
  --hero-accent: #9be597;
  --seg-on: #14512f;
  --seg-on-text: #ffffff;
  --yellow: #c98a12;
  --yellow-strong: #f4c98e;
  --yellow-soft: #fbefd5;
  --yellow-text: #7a4d06;
  --red: #b4431a;
  --red-soft: #fce6dc;
  --red-cell: #fbd5c8;
  --red-cell-border: #e9a58e;
  --blue-soft: #e6eefc;
  --blue-text: #1d4fa8;
  --shadow: 0 0 0 1px #e3eae4;
  --shadow-up: 0 -6px 24px -14px rgba(15, 26, 20, 0.2);
  --lift: 0 14px 28px rgba(14, 59, 36, 0.12);
  --blur: none;
  --grid: transparent;
  --glow-a: rgba(91, 196, 90, 0.2);
  --glow-b: rgba(30, 138, 76, 0.12);
  --map-bg: #e4ede6;
  --map-line: #d3dfd6;
  --map-road: #ffffff;
  --map-filter: none;
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #07140f;
  --card: rgba(16, 38, 29, 0.72);
  --card-solid: #0f261c;
  --glass: rgba(14, 34, 26, 0.74);
  --glass-border: rgba(170, 230, 190, 0.2);
  --input: rgba(4, 12, 9, 0.55);
  --soft: rgba(170, 230, 190, 0.1);
  --skel: rgba(170, 230, 190, 0.1);
  --shine: rgba(170, 230, 190, 0.16);
  --faint: #5f7a6c;
  --line: rgba(170, 230, 190, 0.12);
  --line-strong: rgba(170, 230, 190, 0.24);
  --border: rgba(170, 230, 190, 0.16);
  --text: #eef7f1;
  --muted: #8fa89a;
  --green: #45c96f;
  --green-deep: #8ce3a6;
  --green-text: #7fdc9b;
  --green-soft: rgba(69, 201, 111, 0.15);
  --green-ring: rgba(69, 201, 111, 0.4);
  --on-green: #ffffff;
  --grad: linear-gradient(135deg, #1a6b3c, #2fa35a);
  --grad-bar: linear-gradient(90deg, #2fa35a, #7cd678);
  --grad-btn-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  --hero: linear-gradient(150deg, #0a2717 0%, #13492b 55%, #1c6e3f 100%);
  --hero-text: #cfebd6;
  --hero-accent: #9be597;
  --seg-on: #2fa35a;
  --seg-on-text: #ffffff;
  --yellow: #f2b632;
  --yellow-strong: #e8b23a;
  --yellow-soft: rgba(242, 182, 50, 0.16);
  --yellow-text: #f6cf7a;
  --red: #ff8a66;
  --red-soft: rgba(255, 123, 90, 0.15);
  --red-cell: rgba(255, 123, 90, 0.22);
  --red-cell-border: rgba(255, 123, 90, 0.5);
  --blue-soft: rgba(120, 165, 255, 0.16);
  --blue-text: #a9c5ff;
  --shadow: 0 0 0 1px rgba(170, 230, 190, 0.14), 0 14px 34px -18px rgba(0, 0, 0, 0.9);
  --shadow-up: 0 -8px 30px -16px rgba(0, 0, 0, 0.9);
  --lift: 0 14px 28px rgba(0, 0, 0, 0.5);
  --map-bg: #0f2a1d;
  --map-line: rgba(170, 230, 190, 0.1);
  --map-road: rgba(170, 230, 190, 0.14);
  --blur: blur(18px) saturate(1.3);
  --grid: rgba(170, 230, 190, 0.09);
  --glow-a: rgba(69, 201, 111, 0.16);
  --glow-b: rgba(155, 214, 79, 0.08);
  --map-filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9);
  color-scheme: dark;
}
:root {
  --spring: cubic-bezier(0.2, 1.3, 0.35, 1);
  --glide: cubic-bezier(0.22, 0.8, 0.2, 1);
  --vh: 100dvh;
  --safe-top: max(env(safe-area-inset-top, 0px), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --tabbar: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; background: var(--bg); }
body {
  color: var(--text);
  font: 500 16px/1.5 Manrope, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}
.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 45% at 28% 18%, var(--glow-a), transparent 70%),
    radial-gradient(50% 45% at 85% 90%, var(--glow-b), transparent 70%),
    var(--bg);
}
.backdrop::after {
  content: '';
  position: absolute;
  inset: -40%;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(closest-side, #000 20%, transparent 80%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { transform: translate(54px, 54px); } }
#app { position: relative; height: var(--vh); }

h1 { margin: 0 0 8px; font-size: clamp(24px, 6.5vw, 34px); font-weight: 700; line-height: 1.14; letter-spacing: -0.03em; text-wrap: balance; }
h2 { letter-spacing: -0.02em; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.lead { margin: 0 0 16px; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.lead.small { margin-bottom: 0; font-size: 13px; }
.muted-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.error { min-height: 0; margin: 10px 0 0; color: var(--red); font-size: 13px; font-weight: 700; }
.error:empty { display: none; }
.section-gap { margin-top: 16px; }

/* Maydonlar */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
input[type='text'], input[type='time'], input[type='datetime-local'], input[type='number'], input[type='search'], textarea {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  color: var(--text);
  font: 600 16px Manrope, sans-serif;
  background: var(--input);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
}
textarea { height: auto; min-height: 96px; padding: 13px 15px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); font-weight: 500; }
input:focus, textarea:focus { background: var(--input); border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
input[type='range'] { width: 100%; accent-color: var(--green); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px;
  color: var(--muted); font: 700 14px Manrope, sans-serif;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  transition: color 0.2s, background 0.25s, border-color 0.2s, transform 0.35s var(--spring);
}
.chip::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--line-strong)); opacity: 0.5; transition: opacity 0.2s; }
.chip:active { transform: scale(0.94); }
.chip[aria-pressed='true'] { color: var(--text); background: var(--green-soft); border-color: var(--dot, var(--green)); }
.chip[aria-pressed='true']::before { opacity: 1; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; }
.seg button { height: 42px; color: var(--text); font: 800 14px Manrope, sans-serif; background: none; border: 0; border-radius: 13px; cursor: pointer; transition: color 0.2s, background 0.25s, box-shadow 0.25s; }
.seg button[aria-pressed='true'], .seg button[aria-selected='true'] { color: var(--seg-on-text); background: var(--seg-on); box-shadow: 0 8px 18px rgba(20, 81, 47, 0.28); }

.check-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; font-size: 14.5px; font-weight: 700; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); cursor: pointer; }
.check-row input { flex: none; width: 21px; height: 21px; accent-color: var(--green); }
.check-row small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.search-row .btn { flex: none; height: 52px; padding: 0 14px; font-size: 14px; }

/* Tugmalar */
.actions { display: flex; gap: 10px; margin-top: 16px; }
.btn {
  position: relative; flex: 1; height: 54px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--on-green); font: 800 16px Manrope, sans-serif; text-decoration: none;
  background: var(--grad); border: 0; border-radius: 18px;
  box-shadow: var(--grad-btn-shadow);
  cursor: pointer; transition: transform 0.3s var(--spring), filter 0.2s, opacity 0.2s;
}
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: translateX(-120px) skewX(-18deg); animation: sheen 5s ease-in-out infinite 1.2s; }
@keyframes sheen { 0%, 72% { transform: translateX(-120px) skewX(-18deg); } 100% { transform: translateX(720px) skewX(-18deg); } }
.btn.quiet::after, .btn.ghost::after, .btn.danger::after, .btn.stop::after, .btn[disabled]::after { display: none; }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: scale(0.96); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn.ghost { flex: 0 0 54px; color: var(--text); background: var(--soft); box-shadow: none; }
.btn.quiet { flex: none; height: 44px; padding: 0 14px; color: var(--text); font-size: 14px; background: var(--soft); box-shadow: none; }
.btn.stop { color: #fff; }
.btn.slim { flex: none; height: 44px; padding: 0 16px; font-size: 14px; border-radius: 13px; }
.btn.danger { color: var(--red); background: var(--red-soft); box-shadow: none; }
.btn.danger[data-armed] { color: #fff; background: var(--red); }
.btn.huge { width: 100%; flex: none; height: 76px; font-size: 21px; border-radius: 22px; }
.btn.go { background: var(--grad); animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 165, 91, 0.45), 0 14px 30px -14px rgba(34, 165, 91, 0.8); transform: scale(1); }
  50% { box-shadow: 0 0 0 14px rgba(34, 165, 91, 0), 0 14px 30px -14px rgba(34, 165, 91, 0.8); transform: scale(1.018); }
}
.btn.go:active { animation: none; transform: scale(0.96); }
.btn.stop { background: linear-gradient(145deg, #0a2717, #14512f); box-shadow: 0 14px 30px -14px rgba(10, 39, 23, 0.6); }
:is(.btn, .chip, .seg button, input, textarea, .tile, .emp, .board-row, .tab, .sheet-field, .sheet-item, .sheet-action):focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Sahifa, tab panel, o'tishlar */
.shell { height: 100%; display: flex; flex-direction: column; }
.panel { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(var(--safe-top) + 14px) 16px 24px; }
.panel-inner { max-width: 720px; margin: 0 auto; }
.panel.flush { padding-top: 0; }
.nav-fwd { animation: slide-fwd 0.34s var(--glide) both; }
.nav-back { animation: slide-back 0.34s var(--glide) both; }
.nav-tab { animation: tab-in 0.26s var(--glide) both; }
@keyframes slide-fwd { from { opacity: 0; transform: translateX(34px); } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-34px); } }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }
.panel-inner > * { animation: rise 0.42s var(--glide) both; }
.panel-inner > :nth-child(2) { animation-delay: 40ms; }
.panel-inner > :nth-child(3) { animation-delay: 80ms; }
.panel-inner > :nth-child(4) { animation-delay: 120ms; }
.panel-inner > :nth-child(5) { animation-delay: 160ms; }
.panel-inner > :nth-child(n + 6) { animation-delay: 200ms; }
.settled .panel-inner > * { animation-duration: 0.22s; animation-delay: 0ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.tabbar {
  flex: none; display: flex; justify-content: space-around;
  padding: 6px 8px calc(var(--safe-bottom) + 6px);
  background: var(--glass); border-top: 1px solid var(--line);
  box-shadow: var(--shadow-up);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
.tab {
  flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  height: 52px; padding: 6px 0 0; color: var(--muted); font: 700 11.5px Manrope, sans-serif;
  background: none; border: 0; border-radius: 14px; cursor: pointer; transition: color 0.2s, transform 0.3s var(--spring);
}
.tab:active { transform: scale(0.9); }
.tab[aria-current='page'] { color: var(--green); }
.tab[aria-current='page'] svg { animation: tab-pop 0.4s var(--spring); }
@keyframes tab-pop { from { transform: scale(0.75); } }

.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px -6px; padding: 8px 12px 8px 4px; color: var(--muted); font: 700 14px Manrope, sans-serif; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.back:hover { color: var(--text); }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.list-head h1 { margin: 0; overflow-wrap: anywhere; }

/* Skeleton */
.skel { position: relative; overflow: hidden; background: var(--skel); border-radius: 16px; }
.skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, var(--shine) 50%, transparent 80%); transform: translateX(-100%); animation: shimmer 1.1s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-stack { display: grid; gap: 10px; }
.skel.h1 { width: 55%; height: 30px; margin-bottom: 8px; border-radius: 10px; }
.skel.row { height: 68px; }
.skel.big { height: 148px; border-radius: 24px; }
.skel.btn-s { height: 76px; border-radius: 22px; }

/* Bosh sahifa */
.hero {
  margin: 0 -16px 0; padding: calc(var(--safe-top) + 18px) 18px 62px;
  color: var(--on-green); background: var(--grad); border-radius: 0 0 30px 30px;
}
.hero-row { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 13px; }
.avatar { flex: none; width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; color: var(--green-deep); font-size: 22px; font-weight: 800; background: rgba(255, 255, 255, 0.92); border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 50%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-text { min-width: 0; flex: 1; }
.hero-text strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.hero-text small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; opacity: 0.9; overflow-wrap: anywhere; }
.hero-logo { flex: none; width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.35); }

.today {
  position: relative; max-width: 720px; margin: -46px auto 18px; padding: 18px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 24px;
  box-shadow: 0 16px 34px -18px rgba(26, 31, 28, 0.28);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.today-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.today-state { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--text); }
.today-state i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.today.working .today-state i { background: var(--green); animation: pulse-dot 1.4s ease-in-out infinite; }
.today.done .today-state i { background: var(--muted); }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 6px rgba(34, 165, 91, 0.16); } }
.timer { margin: 8px 0 2px; font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timer.off { color: var(--faint); background: none; -webkit-text-fill-color: var(--faint); }
.today small { color: var(--muted); font-size: 13px; font-weight: 600; }
.today .skel { height: 92px; }

.section-title { margin: 20px 0 10px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 9px; min-height: 112px; padding: 15px;
  color: var(--text); font: inherit; text-align: left;
  background: var(--card); border: 0; border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  animation: rise 0.42s var(--glide) both; animation-delay: calc(var(--i, 0) * 45ms + 90ms);
  transition: transform 0.3s var(--spring), box-shadow 0.25s;
}
button.tile { cursor: pointer; }
button.tile:active { transform: scale(0.95); }
.tile-ico { width: 48px; height: 48px; display: grid; place-items: center; color: var(--green-deep); background: var(--green-soft); border-radius: 16px; }
.tile strong { font-size: 15px; font-weight: 800; line-height: 1.2; }
.tile small { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.tile.soon { color: var(--muted); }
.tile.soon .tile-ico { color: var(--faint); background: var(--soft); }
.tile .tag { position: absolute; top: 12px; right: 12px; padding: 2px 8px; color: var(--green-deep); font-size: 10.5px; font-weight: 800; background: var(--green-soft); border-radius: 999px; }

/* Umumiy kartochkalar */
.wh, .code-card, .result, .card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.wh { padding: 18px; }
.wh h2 { margin: 0; font-size: 18px; }
.wh p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.zone-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 14px; }
.zone-card { display: flex; align-items: center; gap: 9px; padding: 11px 12px; font-size: 13.5px; font-weight: 700; background: var(--bg); border-radius: 12px; }
.zone-card::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.summary { margin: 0; padding: 0; list-style: none; }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.summary li:last-child { border-bottom: 0; }
.summary span { color: var(--muted); }
.summary b { flex: 0 0 auto; max-width: 62%; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.summary .pill { color: inherit; }
.emp-list { display: grid; gap: 9px; }
.emp, .board-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 15px;
  color: var(--text); font: inherit; text-align: left;
  background: var(--card); border: 1px solid transparent; border-radius: 18px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.3s var(--spring);
}
.emp:active, .board-row:active { transform: scale(0.975); }
.board-row { padding: 10px 12px; }
.board-row[disabled] { cursor: default; opacity: 0.8; }
.board-row.flash { animation: flash 1.6s var(--glide); }
@keyframes flash { 0% { border-color: var(--green); box-shadow: 0 0 0 4px rgba(34, 165, 91, 0.22); transform: scale(1.015); } 100% { transform: none; } }
.emp-main { min-width: 0; flex: 1; }
.emp-main strong { display: block; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.emp-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.chev { flex: none; display: grid; place-items: center; color: #a5aeaa; }
.pill { display: inline-block; flex: none; padding: 3px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; border-radius: 999px; }
.pill.linked { color: var(--green-deep); background: var(--green-soft); }
.pill.pending { color: var(--yellow-text); background: var(--yellow-soft); }
.pill.idle { color: var(--muted); background: var(--soft); }
.pill.blocked { color: var(--red); background: var(--red-soft); }
.empty { padding: 20px; color: var(--muted); font-size: 14px; text-align: center; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.form { max-width: 520px; }
.stack { display: grid; gap: 10px; margin-top: 14px; }
.stack .btn { width: 100%; flex: none; }
.flag { display: inline-block; margin-left: 5px; padding: 0 6px; font-size: 11px; font-weight: 800; border-radius: 6px; }
.flag.late { color: var(--yellow-text); background: var(--yellow-soft); }
.flag.early { color: var(--red); background: var(--red-soft); }
.flag.fix { color: var(--blue-text); background: var(--blue-soft); }

.code-card { max-width: 520px; margin: 0 auto; padding: 24px 20px; }
.code-pair { display: grid; gap: 16px; margin-bottom: 16px; padding: 16px; background: var(--bg); border-radius: 16px; }
.code-pair span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.code-pair b { font-size: 24px; font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.digits { display: flex; gap: 6px; }
.digits i { display: grid; place-items: center; flex: 1 1 0; min-width: 0; max-width: 42px; height: 52px; color: var(--green-deep); font-style: normal; background: var(--input); border: 1px solid var(--line-strong); border-radius: 11px; animation: digit-in 0.5s var(--spring) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes digit-in { from { opacity: 0; transform: translateY(12px) scale(0.8); } }

/* Davomat */
.punch-status { margin-bottom: 12px; padding: 20px; text-align: center; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.punch-status strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.punch-status small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.punch-status.working { color: #fff; background: var(--hero); }
.punch-status.working small { color: inherit; opacity: 0.85; }
.guard-alert { margin-bottom: 12px; padding: 16px; background: var(--blue-soft); border-radius: 20px; }
.guard-alert strong { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 16px; }
.guard-alert .btn { width: 100%; flex: none; }
.totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 10px; }
.totals div { padding: 11px 4px; text-align: center; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.totals b { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.totals span { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-weight: 800; }
.month-nav button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); background: var(--card); border: 0; border-radius: 12px; box-shadow: var(--shadow); cursor: pointer; }
.month-nav button[disabled] { opacity: 0.3; cursor: default; }
.calendar { padding: 12px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-head { color: var(--muted); font-size: 11.5px; font-weight: 800; text-align: center; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; padding: 0; color: var(--faint); font: 700 14px Manrope, sans-serif; font-variant-numeric: tabular-nums; background: none; border: 0; border-radius: 11px; animation: digit-in 0.35s var(--glide) both; animation-delay: calc(var(--i) * 9ms); transition: transform 0.25s var(--spring); }
button.cal-day { cursor: pointer; }
button.cal-day:active { transform: scale(0.88); }
.cal-day.ok { color: var(--on-green); background: var(--green); }
.cal-day.late { color: #3c2a02; background: var(--yellow-strong); }
.cal-day.absent { color: #2a0705; background: var(--red); }
.cal-day.off { color: var(--muted); background: var(--soft); }
.cal-day.pending { color: var(--green-deep); box-shadow: inset 0 0 0 2px var(--green); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* Pastki panellar */
:root, [data-theme='light'] { --sheet: #ffffff; --sheet-handle: #d5dad7; --sheet-search: #f2f4f3; --sheet-picked: rgba(34, 165, 91, 0.1); }
[data-theme='dark'] { --sheet: #0f261c; --sheet-handle: rgba(170, 230, 190, 0.3); --sheet-search: rgba(170, 230, 190, 0.08); --sheet-picked: rgba(69, 201, 111, 0.16); }
.sheet-wrap {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fade 0.2s both;
}
.sheet-wrap.closing { animation: fade-out 0.25s both; }
.sheet-wrap-pop { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.sheet-wrap-pop .bottom-sheet { pointer-events: auto; }
.sheet-suspended { visibility: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.bottom-sheet {
  display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 50dvh;
  padding-bottom: var(--safe-bottom); color: var(--text); background: var(--sheet);
  border-radius: 24px 24px 0 0; box-shadow: 0 -10px 34px -12px rgba(0, 0, 0, 0.3); outline: none;
  animation: sheet-spring 0.3s cubic-bezier(0.2, 1.15, 0.35, 1) both;
  transition: transform 0.25s var(--glide), max-height 0.25s var(--glide);
}
.bottom-sheet:not(.popover, .tall, .full):has(input, textarea, .sheet-field, .photos, .stack, .actions) { max-height: 86dvh; }
.bottom-sheet.tall { height: 90dvh; max-height: 90dvh; }
.bottom-sheet.full { height: 100dvh; max-height: 100dvh; border-radius: 0; }
.closing .bottom-sheet { animation: sheet-down 0.25s var(--glide) both; }
@keyframes sheet-spring { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
.bottom-sheet.popover { position: fixed; height: auto; max-width: none; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.4); animation: pop-in 0.16s var(--glide) both; }
.closing .bottom-sheet.popover { animation: fade-out 0.12s both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
.sheet-head { flex: none; padding: 8px 16px 4px; touch-action: none; cursor: grab; }
.sheet-handle { width: 36px; height: 4px; margin: 0 auto 10px; background: var(--sheet-handle); border-radius: 4px; }
.sheet-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.sheet-title h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0; overflow-wrap: anywhere; }
.sheet-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); background: var(--sheet-search); border: 0; border-radius: 50%; cursor: pointer; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 14px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.popover .sheet-body { padding: 6px 8px 8px; }
.sheet-footer { flex: none; display: flex; padding: 10px 16px 12px; background: var(--sheet); border-top: 1px solid var(--line); }
.sheet-search { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; height: 44px; margin-bottom: 8px; padding: 0 12px; color: var(--muted); background: var(--sheet-search); border-radius: 12px; }
.sheet-search input { flex: 1; min-width: 0; height: 100%; padding: 0; color: var(--text); font: 600 15px Manrope, sans-serif; background: none; border: 0; outline: none; box-shadow: none; }
.sheet-search input:focus, .sheet-search input:focus-visible { background: none; border: 0; outline: none; box-shadow: none; }
.sheet-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sheet-search:focus-within { box-shadow: 0 0 0 2px var(--green); }
.sheet-group { margin: 8px 4px 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.sheet-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 7px 10px;
  color: var(--text); font: inherit; text-align: left; background: none; border: 0; border-radius: 12px; cursor: pointer;
  animation: sheet-row 0.22s var(--glide) both; animation-delay: calc(var(--i, 0) * 30ms);
  transition: background 0.12s;
}
@keyframes sheet-row { from { opacity: 0; transform: translateY(8px); } }
.sheet-item:hover { background: var(--sheet-search); }
.sheet-item.selected { background: var(--sheet-picked); }
.sheet-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--green); background: var(--green-soft); border-radius: 50%; }
.sheet-text { flex: 1; min-width: 0; }
.sheet-text b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.sheet-text small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.sheet-tick { flex: none; display: none; color: var(--green); }
.sheet-item.selected .sheet-tick { display: block; }
.sheet-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: transparent; border: 2px solid var(--line-strong); border-radius: 7px; }
.sheet-item.selected .sheet-check { color: var(--on-green); background: var(--green); border-color: var(--green); }
.hl { color: var(--green); font-weight: 800; background: none; }
.sheet-empty { display: grid; justify-items: center; gap: 6px; padding: 30px 10px; color: var(--muted); text-align: center; }
.sheet-empty p { margin: 0; font-size: 14px; font-weight: 600; }
.sheet-skel { height: 44px; margin-bottom: 8px; border-radius: 12px; }
.sheet-action { display: block; width: 100%; min-height: 52px; color: var(--text); font: 700 16px Manrope, sans-serif; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; animation: sheet-row 0.22s var(--glide) both; animation-delay: calc(var(--i, 0) * 30ms); }
.sheet-action:first-child { border-top: 0; }
.sheet-action.danger { color: var(--red); }
.sheet-field {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 52px; padding: 0 14px;
  color: var(--text); font: 600 15.5px Manrope, sans-serif; text-align: left;
  background: var(--input); border: 1px solid var(--line-strong); border-radius: 14px; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.sheet-field svg { flex: none; color: var(--muted); }
.sheet-field.empty .sheet-field-text { color: var(--faint); }
.sheet-field-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-field.flash-green { animation: field-flash 0.7s var(--glide); }
@keyframes field-flash { 0% { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); background: var(--green-soft); } }
.month-nav .month-pick { width: auto; height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font: 800 15px Manrope, sans-serif; background: none; box-shadow: none; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.photos figure { margin: 0; }
.photos img, .photo-empty { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--skel); border-radius: 16px; }
.photo-empty { display: grid; place-items: center; color: var(--muted); }
.photos figcaption { margin-top: 5px; color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* Radar */
.radar-screen { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 16px 0; text-align: center; }
.radar {
  position: relative; width: min(74vw, 290px); aspect-ratio: 1; overflow: hidden; border-radius: 50%;
  background-color: var(--green-soft);
  background-image: linear-gradient(var(--line-strong) 3px, transparent 3px), linear-gradient(90deg, var(--line-strong) 3px, transparent 3px), linear-gradient(32deg, transparent 49%, var(--line-strong) 49%, var(--line-strong) 51%, transparent 51%);
  background-size: 74px 62px, 92px 80px, 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(34, 165, 91, 0.3), var(--shadow);
}
.radar::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(34, 165, 91, 0) 0deg, rgba(34, 165, 91, 0) 280deg, rgba(34, 165, 91, 0.55) 360deg); animation: spin 1.8s linear infinite; }
.radar i { position: absolute; inset: 50%; border: 2px solid rgba(34, 165, 91, 0.45); border-radius: 50%; transform: translate(-50%, -50%); animation: ping 1.8s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: 0.6s; }
.radar i:nth-child(3) { animation-delay: 1.2s; }
@keyframes ping { from { width: 8%; height: 8%; opacity: 1; } to { width: 100%; height: 100%; opacity: 0; } }
.radar b { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; color: var(--on-green); background: var(--green); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 6px 16px -4px rgba(34, 165, 91, 0.7); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Natija */
.result { padding: 28px 20px; text-align: center; }
.result h1 { font-size: 25px; }
.result-mark { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 14px; color: var(--on-green); background: var(--grad); border-radius: 50%; box-shadow: 0 16px 30px -12px rgba(34, 165, 91, 0.7); animation: pop 0.55s var(--spring) both; }
.result-mark.warn { color: var(--red); background: var(--red-soft); box-shadow: none; }
.result-mark.check svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw-check 0.45s 0.22s var(--glide) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
.confetti { position: fixed; inset: 0; z-index: 30; width: 100%; height: 100%; pointer-events: none; }

/* Kamera */
.camera { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; background: #000; animation: fade 0.2s both; }
.camera-view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.camera video, .camera .shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera video { transform: scaleX(-1); }
.camera .shot { object-fit: contain; }
.camera .hint { position: absolute; top: calc(var(--safe-top) + 14px); left: 16px; right: 16px; padding: 9px 14px; color: #fff; font-size: 14px; font-weight: 700; text-align: center; background: rgba(0, 0, 0, 0.45); border-radius: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.camera .oval { position: absolute; top: 50%; left: 50%; width: 62%; aspect-ratio: 3 / 4; border: 2px dashed rgba(255, 255, 255, 0.7); border-radius: 50%; transform: translate(-50%, -52%); pointer-events: none; }
.camera-bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 20px calc(var(--safe-bottom) + 18px); background: var(--card-solid); }
.shutter { width: 72px; height: 72px; background: var(--green); border: 5px solid var(--card-solid); border-radius: 50%; outline: 3px solid var(--green); cursor: pointer; transition: transform 0.25s var(--spring); }
.shutter:active { transform: scale(0.88); }
.shutter[disabled] { opacity: 0.35; }
.camera-bar .side { position: absolute; left: 20px; }

/* Admin */
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--green-deep); font-size: 12px; font-weight: 800; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-dot 1.4s ease-in-out infinite; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.counts div { padding: 13px 8px; text-align: center; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.counts b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; }
.counts .c-ok b { color: var(--green); }
.counts .c-bad b { color: var(--red); }
.counts span { color: var(--muted); font-size: 12px; font-weight: 700; }
.thumb { flex: none; width: 46px; height: 46px; object-fit: cover; object-position: top; background: var(--skel); border-radius: 13px; }
.thumb.empty-thumb { display: grid; place-items: center; color: var(--green-deep); font-size: 17px; font-weight: 800; background: var(--green-soft); }
.map { width: 100%; height: 260px; overflow: hidden; background: var(--skel); border-radius: 20px; box-shadow: var(--shadow); }
.map.tall { height: min(46dvh, 420px); }
.map .leaflet-tile-pane { filter: var(--map-filter); }
.map .leaflet-control-attribution { font-size: 10px; color: #333; }

/* Oylik */
.money-card { position: relative; overflow: hidden; padding: 22px; color: #fff; background: var(--hero); border-radius: 28px; box-shadow: 0 22px 44px rgba(10, 39, 23, 0.28); }
.money-card > small { font-size: 13.5px; font-weight: 700; opacity: 0.92; }
.money-big { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sum-unit { font-size: 15px; font-weight: 700; opacity: 0.9; }
.money-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.money-split div { padding: 10px 12px; background: rgba(255, 255, 255, 0.2); border-radius: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.money-split span { display: block; font-size: 12px; font-weight: 700; opacity: 0.92; }
.money-split b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-card { margin-top: 12px; display: flex; justify-content: center; }
.ring-wrap { position: relative; width: 170px; height: 170px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring-track { stroke: var(--skel); }
.ring-bar { stroke: var(--green); transition: stroke-dashoffset 1s var(--glide); }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; }
.ring-text b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.ring-text small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.lines li { align-items: center; }
.line-end { display: inline-flex; align-items: center; gap: 8px; flex: none; color: inherit !important; }
.minus, .neg { color: var(--red) !important; }
.summary li.total { font-size: 16px; }
.summary li.total span { color: var(--text); font-weight: 800; }
.summary li.total b { font-weight: 800; }
.ask { flex: none; padding: 3px 8px; color: var(--green-deep); font: 700 11.5px Manrope, sans-serif; background: var(--green-soft); border: 0; border-radius: 8px; cursor: pointer; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; background: var(--card); border-left: 4px solid transparent; border-radius: 16px; box-shadow: var(--shadow); }
.pay-row small { overflow-wrap: anywhere; }
.pay-row.pending { border-left-color: var(--yellow); }
.pay-row.cancelled { opacity: 0.6; }
.ack { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ack .btn { height: 36px; padding: 0 12px; font-size: 13px; }
.totals.three { grid-template-columns: repeat(3, 1fr); margin: 0; }
.count { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--red); }
.cal-day.unconfirmed { color: var(--yellow-text); background: var(--yellow-soft); box-shadow: inset 0 0 0 2px var(--yellow-strong); }
.pill.lock { flex: none; }

.progress { height: 8px; margin-top: 10px; overflow: hidden; background: var(--skel); border-radius: 8px; }
.progress i { display: block; height: 100%; background: var(--grad-bar); border-radius: 8px; transition: width 0.8s var(--glide); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; overflow-x: auto; }
.bar { flex: 1 0 12px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.bar i { display: block; width: 100%; background: var(--grad); border-radius: 4px 4px 0 0; }
.bar small { color: var(--muted); font-size: 9.5px; font-weight: 700; }
.data-table tr.won td { background: var(--green-soft); }

.hbars { display: grid; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.hbar .progress { margin: 0; }
.hbar b { font-variant-numeric: tabular-nums; }
.data-table tr.alert-row td { background: var(--red-soft); }

.step-row { display: flex; align-items: center; gap: 10px; }
.photo-pick { display: flex; align-items: center; gap: 10px; }
.photo-pick img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.filter-row .sheet-field { flex: 1 1 140px; min-height: 44px; width: auto; }

/* Jadvallar */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table th { padding: 11px 10px; color: var(--muted); font-size: 12px; font-weight: 800; text-align: left; border-bottom: 1px solid var(--line-strong); }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr[tabindex] { cursor: pointer; }
.data-table tbody tr[tabindex]:hover td { background: var(--soft); }
.data-table .name b { display: block; font-weight: 700; }
.data-table .name small { color: var(--muted); }
.tabel th, .tabel td { padding: 8px 6px; text-align: center; }
.tabel .sticky { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--card-solid); }
.tabel .cell { font-size: 12px; font-weight: 700; border-left: 1px solid var(--line); }
.cell.ok { color: var(--green-deep); background: var(--green-soft); }
.cell.late, .cell.unconfirmed { color: var(--yellow-text); background: var(--yellow-soft); }
.cell.absent { color: var(--red); background: var(--red-soft); }
.cell.off { color: var(--muted); background: var(--soft); }

/* Kirish */
.pins { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
input.pin { height: 54px; padding: 0; font-size: 22px; font-weight: 800; text-align: center; }
.shake { animation: shake 0.42s; }
.shake .pin, .shake input[type='text'] { border-color: var(--red); }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.splash { position: relative; width: 84px; height: 84px; }
.splash img { width: 100%; height: 100%; border-radius: 24px; }
.splash i { position: absolute; left: 10%; right: 10%; bottom: -14px; height: 3px; overflow: hidden; background: var(--soft); border-radius: 3px; }
.splash i::after { content: ''; position: absolute; inset: 0; background: var(--green); transform: translateX(-100%); animation: splash-line 0.9s var(--glide) infinite; }
@keyframes splash-line { to { transform: translateX(100%); } }
input[type='date'], input[type='month'] { width: 100%; height: 52px; padding: 0 12px; color: var(--text); font: 600 15px Manrope, sans-serif; background: var(--input); border: 1px solid var(--line-strong); border-radius: 14px; outline: none; appearance: none; }
[hidden] { display: none !important; }

/* Kompyuterda chap menyu */
.sidebar { display: none; }
@media (min-width: 900px) {
  .shell.has-side { flex-direction: row; }
  .shell.has-side .tabbar { display: none; }
  .shell.has-side .panel-inner { max-width: 1120px; }
  .sidebar { flex: none; width: 232px; display: flex; flex-direction: column; gap: 3px; padding: 18px 12px; overflow-y: auto; background: var(--glass); border-right: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
  .side-brand img { width: 34px; height: 34px; border-radius: 10px; }
  .side-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; color: var(--muted); font: 700 14px Manrope, sans-serif; text-align: left; background: none; border: 0; border-radius: 12px; cursor: pointer; transition: background 0.15s, color 0.15s; }
  .side-item:hover { color: var(--text); background: var(--bg); }
  .side-item[aria-current='page'] { color: var(--green-deep); background: var(--green-soft); }
  .shell.has-side .hero { margin: 0 -16px; }
}

/* Sozlash ustasi */
.wizard { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: calc(var(--safe-top) + 50px) 12px 6px; }
.brand { position: absolute; top: calc(var(--safe-top) + 14px); left: 18px; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.sheet { position: relative; max-height: 68dvh; overflow-y: auto; padding: 20px 20px calc(var(--safe-bottom) + 20px); background: var(--glass); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-up); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); animation: sheet-up 0.7s var(--glide) both; }
.rail { display: flex; gap: 6px; margin-bottom: 16px; }
.rail i { position: relative; flex: 1; height: 4px; overflow: hidden; background: var(--soft); border-radius: 4px; }
.rail i::after { content: ''; position: absolute; inset: 0; background: var(--grad); transform: translateX(-101%); transition: transform 0.6s var(--glide); }
.rail i.done::after { transform: none; }
.step > * { animation: rise 0.5s var(--glide) both; }
.step > :nth-child(2) { animation-delay: 50ms; }
.step > :nth-child(3) { animation-delay: 100ms; }
.step > :nth-child(4) { animation-delay: 150ms; }
.step > :nth-child(5) { animation-delay: 200ms; }
.step > :nth-child(6) { animation-delay: 250ms; }
.step.back > * { animation-name: rise-back; }
@keyframes rise-back { from { opacity: 0; transform: translateY(-12px); } }
.tasks { margin: 0; padding: 0; list-style: none; }
.tasks li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #a5aeaa; font-size: 15px; font-weight: 700; transition: color 0.35s; }
.tasks .mark { flex: none; position: relative; width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 50%; transition: background 0.3s, border-color 0.3s, transform 0.5s var(--spring); }
.tasks li.active, .tasks li.done { color: var(--text); }
.tasks li.active .mark { border-color: var(--green); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.tasks li.done .mark { background: var(--green); border-color: var(--green); transform: scale(1.06); }
.tasks li.done .mark::after { content: ''; position: absolute; left: 5px; top: 2px; width: 6px; height: 11px; border: solid var(--on-green); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg); }

.scene { width: 100%; max-width: 860px; height: 100%; max-height: 100%; overflow: visible; filter: drop-shadow(0 18px 24px rgba(26, 31, 28, 0.1)); }
.floor { animation: floor-in 1s var(--glide) both; transform-origin: 320px 240px; }
@keyframes floor-in { from { opacity: 0; transform: scale(0.84); } }
.grid-line { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw 1.1s var(--glide) forwards; animation-delay: calc(var(--i) * 45ms + 200ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.walls { opacity: 0; transform: translateY(70px); clip-path: inset(100% -60px -60px -60px); transition: transform 1s var(--glide), opacity 0.4s, clip-path 1s var(--glide); }
.s-walls .walls { opacity: 1; transform: none; clip-path: inset(-60px -60px -60px -60px); }
.wall-edge { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.window { fill: var(--soft); stroke: var(--line-strong); transition: fill 0.7s, filter 0.7s; transition-delay: calc(var(--i) * 170ms); }
.s-lit .window { fill: #ffe39a; filter: drop-shadow(0 0 10px rgba(245, 190, 60, 0.9)); }
.sign { fill: var(--green); font: 800 24px Manrope, sans-serif; letter-spacing: 0.07em; }
.zone { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.35s, transform 0.55s var(--spring); }
.zone.on { opacity: 1; transform: none; }
.zone-floor { fill-opacity: 0.12; stroke-opacity: 0.6; stroke-width: 1; stroke-dasharray: 5 4; }
.crate { opacity: 0; transform: translateY(-34px); }
.zone.on .crate { opacity: 1; transform: none; transition: opacity 0.3s, transform 0.65s var(--spring); transition-delay: var(--crate-delay, 0ms); }
.scene:not(.s-filled) .zone.on .rack .crate { opacity: 0; transform: translateY(-34px); }
.robot { opacity: 0; transition: opacity 0.5s; }
.s-robot .robot { opacity: 1; animation: patrol 9s ease-in-out infinite; }
@keyframes patrol { 0%, 100% { transform: translate(78px, -45px); } 50% { transform: translate(-78px, 45px); } }
.beacon { animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* Kirish va xabar */
.center { height: 100%; display: grid; place-items: center; padding: 22px; }
.center-inline { display: grid; place-items: center; padding: 60px 0; }
.card { width: min(430px, 100%); padding: 28px 24px; animation: rise 0.6s var(--glide) both; }
.card .icon { display: block; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 16px; }
.loader { width: 40px; height: 40px; border: 3px solid var(--line-strong); border-top-color: var(--green); border-radius: 50%; animation: spin 0.9s linear infinite; }
.wait { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.2; transform: scale(0.7); } }

@media (min-width: 900px) {
  .wizard { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) 470px; padding-right: 26px; }
  .stage { padding: 30px; }
  .sheet { align-self: center; max-height: calc(100dvh - 52px); padding: 28px; border-radius: 26px; box-shadow: var(--shadow); animation-name: rise; }
  h1 { font-size: 34px; }
  .hero { margin: 0 calc((100% - 100vw) / 2); padding-left: 24px; padding-right: 24px; }
}
@media (max-height: 640px) and (max-width: 899px) {
  .stage { padding-top: calc(var(--safe-top) + 36px); }
  .lead { margin-bottom: 12px; font-size: 14px; }
  .sheet { padding-top: 14px; }
  input[type='text'], .sheet-field { height: 46px; min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
}

/* Yangi xodim kirishi */
input.auto-filled { color: var(--green); font-weight: 700; letter-spacing: 0.04em; animation: field-flash 0.9s var(--glide); }
.text-link { display: block; width: 100%; margin-top: 12px; padding: 10px; color: var(--muted); font: 600 14px Manrope, sans-serif; background: none; border: 0; cursor: pointer; }
.wait-mark { margin: 0 auto 16px; }
.wait-card { text-align: center; }
.access-actions { display: flex; flex-basis: 100%; gap: 8px; }
.access-actions .btn { flex: 1; width: auto; height: 46px; }

/* Ruxsatlar */
[hidden] { display: none !important; }
.read-only-note { margin: 0 0 12px; padding: 10px 14px; color: var(--yellow, var(--text)); font-size: 13.5px; font-weight: 700; background: var(--soft); border-radius: 12px; }
.panel-inner:has(> .read-only-note) .btn:not(.keep) { display: none; }
.panel-inner:has(> .read-only-note) :is(input, textarea, .sheet-field, .chip) { pointer-events: none; opacity: 0.75; }
.perm-row { padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.perm-row.changed { border-color: var(--yellow, #e0b13a); box-shadow: inset 3px 0 0 var(--yellow, #e0b13a); }
.perm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.perm-head strong { font-size: 15px; }
.perm-row .form-row { align-items: stretch; }
.perm-row .sheet-field { min-height: 44px; font-size: 14px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14.5px; font-weight: 600; border-top: 1px solid var(--line); }
.switch-row:first-child { border-top: 0; }
.switch { flex: none; position: relative; width: 48px; height: 28px; padding: 0; background: var(--soft); border: 1px solid var(--line-strong); border-radius: 28px; cursor: pointer; transition: background 0.2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--muted); border-radius: 50%; transition: transform 0.2s, background 0.2s; }
.switch[aria-checked='true'] { background: var(--green); border-color: var(--green); }
.switch[aria-checked='true'] i { background: var(--on-green); transform: translateX(20px); }
.switch:disabled { opacity: 0.6; cursor: default; }
.preview-phone { padding: 12px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 20px; }
.confirm-code { height: 56px; text-align: center; font-size: 26px !important; font-weight: 800; letter-spacing: 0.28em; }
.profile-photo { width: 64px; height: 64px; margin-bottom: 8px; overflow: hidden; border-radius: 50%; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.task-card { align-items: flex-start; gap: 12px; }
.task-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; }
.task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.task-side b { font-size: 13px; }
.task-faces { display: flex; margin-top: 6px; }
.task-face { display: grid; place-items: center; width: 26px; height: 26px; margin-right: -6px; overflow: hidden; color: var(--green-deep); font-size: 11px; font-weight: 800; background: var(--green-soft); border: 2px solid var(--bg); border-radius: 50%; }
.task-face.more { color: var(--muted); background: var(--soft); }
.task-face img { width: 100%; height: 100%; object-fit: cover; }
.share-input { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }

/* ================= Dizayn: Telegram WebApp (2026-11-10) ================= */
@keyframes ax-pop { 0% { opacity: 0; transform: scale(0.6) rotate(-8deg); } 60% { opacity: 1; transform: scale(1.06) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes ax-glow { 0%, 100% { box-shadow: 0 24px 60px rgba(30, 138, 76, 0.3); } 50% { box-shadow: 0 30px 80px rgba(30, 138, 76, 0.5); } }
@keyframes ax-ripple { 0% { transform: scale(0.9); opacity: 0.55; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes ax-load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes ax-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ax-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes ax-sheen { 0% { transform: translateX(-160px) rotate(18deg); } 55%, 100% { transform: translateX(560px) rotate(18deg); } }
@keyframes ax-grow { from { transform: scaleX(0); } }
@keyframes ax-ring { 0% { transform: scale(0.95); opacity: 0.55; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes ax-zone { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ax-scan { 0%, 100% { top: 12%; } 50% { top: 84%; } }
@keyframes ax-blink { 50% { opacity: 0.35; } }
@keyframes ax-rise-bar { from { transform: scaleY(0); } }

.ax-press { transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease; }
.ax-press:active { transform: scale(0.96); }
@media (hover: hover) { .ax-press:hover { transform: translateY(-2px); box-shadow: var(--lift); } }

/* Ochilish ekrani */
.ax-splash { position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: calc(var(--safe-top) + 40px) 24px calc(var(--safe-bottom) + 36px); background: var(--bg); }
.ax-splash .glow { position: absolute; border-radius: 50%; pointer-events: none; animation: ax-float 8s ease-in-out infinite; }
.ax-splash .glow.a { top: -140px; left: -120px; width: 360px; height: 360px; background: radial-gradient(circle, var(--glow-a) 0%, transparent 70%); }
.ax-splash .glow.b { bottom: -160px; right: -140px; width: 400px; height: 400px; background: radial-gradient(circle, var(--glow-b) 0%, transparent 70%); animation-delay: -3s; }
.ax-splash-main { position: relative; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; }
.ax-orbits { position: relative; width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; }
.ax-orbits .o1, .ax-orbits .o2 { position: absolute; border-radius: 50%; }
.ax-orbits .o1 { inset: 0; border: 1px dashed rgba(30, 138, 76, 0.35); animation: spin 18s linear infinite; }
.ax-orbits .o2 { inset: 28px; border: 1px solid rgba(30, 138, 76, 0.18); animation: spin 28s linear infinite reverse; }
.ax-orbits .o1 i { position: absolute; top: -5px; left: 125px; width: 10px; height: 10px; border-radius: 50%; background: #2fa35a; box-shadow: 0 0 16px #5bc45a; }
.ax-orbits .o2 i { position: absolute; bottom: -4px; left: 98px; width: 8px; height: 8px; border-radius: 50%; background: #14512f; }
.ax-orbits .rp { position: absolute; width: 140px; height: 140px; border-radius: 40px; background: rgba(47, 163, 90, 0.22); animation: ax-ripple 2.8s ease-out infinite; }
.ax-orbits .rp + .rp { background: rgba(47, 163, 90, 0.18); animation-delay: 1.4s; }
.ax-orbits img { position: relative; width: 140px; height: 140px; border-radius: 40px; object-fit: cover; animation: ax-pop 1s cubic-bezier(0.2, 0.8, 0.2, 1) both, ax-glow 3.2s ease-in-out 1s infinite; }
.ax-splash h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: 3px; text-align: center; animation: rise 0.8s var(--glide) 0.5s both; }
.ax-splash p { max-width: 280px; margin: 10px auto 0; color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; animation: rise 0.8s var(--glide) 0.65s both; }
.ax-loadbar { width: 160px; height: 6px; overflow: hidden; background: var(--skel); border-radius: 999px; animation: rise 0.8s var(--glide) 0.8s both; }
.ax-loadbar i { display: block; width: 40%; height: 100%; background: var(--grad-bar); border-radius: 999px; animation: ax-load 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.ax-secure { position: relative; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; animation: rise 0.8s var(--glide) 1s both; }
.ax-secure svg { color: var(--green); }

/* Sahifa sarlavhasi */
.ax-head { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ax-logo { flex: none; width: 48px; height: 48px; border-radius: 15px; object-fit: cover; box-shadow: 0 8px 18px rgba(11, 42, 26, 0.28); }
.ax-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ax-head-text small { color: var(--muted); font-size: 13px; font-weight: 600; }
.ax-head-text strong { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.25; overflow-wrap: anywhere; }
.ax-head-text h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; }
.ax-head-text span { color: var(--muted); font-size: 12px; font-weight: 600; }
.ax-icon-btn { flex: none; position: relative; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; padding: 0; color: var(--text); background: var(--card); border: 1px solid var(--line-strong); border-radius: 15px; cursor: pointer; }
.ax-icon-btn.sm { width: 44px; height: 44px; border-radius: 14px; }
.ax-icon-btn img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ax-icon-btn .ini { font-size: 17px; font-weight: 800; color: var(--green-deep); }
.ax-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; color: var(--text); font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; }
.ax-chip.green { color: var(--green-deep); background: var(--green-soft); border-color: transparent; }
.ax-chip.amber { color: var(--yellow-text); background: var(--yellow-soft); border-color: transparent; }
.ax-chip.gray { color: var(--text); background: var(--soft); border-color: transparent; }
button.ax-chip { font-family: inherit; cursor: pointer; }
.ax-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

/* Panel ichidagi fon nuri */
.panel:has(.ax-head) { background: radial-gradient(300px 300px at calc(100% + 40px) -40px, var(--glow-a), transparent 70%); }

/* To'q yashil asosiy kartochka */
.ax-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; padding: 22px; color: #fff; background: var(--hero); border-radius: 30px; box-shadow: 0 22px 44px rgba(10, 39, 23, 0.3); }
.ax-hero > * { position: relative; }
.ax-hero .orbit { position: absolute; right: -80px; top: -90px; width: 250px; height: 250px; border: 1px solid rgba(124, 214, 120, 0.28); border-radius: 50%; pointer-events: none; animation: spin 26s linear infinite; }
.ax-hero .orbit i { position: absolute; left: 30px; top: 44px; width: 8px; height: 8px; border-radius: 50%; background: #7cd678; box-shadow: 0 0 14px #7cd678; }
.ax-hero .orbit2 { position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border: 1px solid rgba(124, 214, 120, 0.18); border-radius: 50%; pointer-events: none; }
.ax-hero .sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ax-hero .sheen::after { content: ''; position: absolute; top: -60%; left: 0; width: 70px; height: 220%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)); animation: ax-sheen 5s ease-in-out infinite; }
.ax-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ax-hero-top > span { color: var(--hero-text); font-size: 13px; font-weight: 700; letter-spacing: 0.2px; }
.ax-eye { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; cursor: pointer; }
.ax-badge { padding: 6px 11px; font-size: 12px; font-weight: 800; border-radius: 999px; }
.ax-badge.paid { color: #0a2717; background: var(--hero-accent); }
.ax-badge.open { color: #3d2203; background: #f4c98e; }
.ax-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.ax-amount b { font-size: 38px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ax-amount span { color: var(--hero-text); font-size: 16px; font-weight: 700; }
.ax-hero-mid { display: flex; flex-direction: column; gap: 6px; }
.ax-hero-note { color: var(--hero-text); font-size: 13px; font-weight: 500; }
.ax-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ax-hero-stats div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; }
.ax-hero-stats span { color: var(--hero-text); font-size: 11px; font-weight: 600; }
.ax-hero-stats b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ax-hero-stats b.accent { color: var(--hero-accent); }

/* Oddiy oq kartochka */
.ax-card { position: relative; margin-bottom: 16px; padding: 18px; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 24px; }
.ax-card.tight { padding: 8px 16px; }
.ax-card h2 { margin: 0; font-size: 16px; font-weight: 800; }
.ax-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ax-card.tight > h2 { padding: 10px 0 6px; }
a.ax-card, button.ax-card { display: block; width: 100%; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }

/* Bugungi holat (bosh sahifa) */
.ax-today { display: flex; flex-direction: column; gap: 14px; }
.ax-today-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ax-today-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ax-today-title strong { display: block; font-size: 16px; font-weight: 800; }
.ax-today-title small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.ax-dot { position: relative; flex: none; width: 12px; height: 12px; }
.ax-dot::before, .ax-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--faint); }
.ax-dot.on::before { background: #2fa35a; animation: ax-pulse 1.9s ease-out infinite; }
.ax-dot.on::after { background: var(--green); }
.ax-dot.done::after { background: var(--muted); }
.ax-go { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 14px; color: var(--green-deep); font-size: 13px; font-weight: 700; background: var(--green-soft); border-radius: 999px; }
.ax-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ax-trio div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ax-trio span { color: var(--muted); font-size: 11px; font-weight: 600; }
.ax-trio b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ax-bar { height: 10px; overflow: hidden; background: var(--skel); border-radius: 999px; }
.ax-bar i { display: block; height: 100%; background: var(--grad-bar); border-radius: 999px; transform-origin: left center; animation: ax-grow 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both; transition: width 0.6s var(--glide); }
.ax-bar.thin { height: 7px; background: var(--line); }
.ax-bar.hair { height: 6px; background: var(--line); }
.ax-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.ax-note svg { flex: none; color: var(--green); }

/* Bo'limlar: 3 ustun */
.ax-section-title { margin: 4px 2px 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.ax-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (min-width: 620px) { .ax-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ax-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 16px 8px 14px; color: var(--text); font: inherit; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 22px; cursor: pointer; animation: rise 0.42s var(--glide) both; animation-delay: calc(var(--i, 0) * 45ms + 90ms); }
.ax-tile span.ico { width: 48px; height: 48px; display: grid; place-items: center; color: var(--green-deep); background: var(--green-soft); border-radius: 16px; }
.ax-tile span.ico.amber { color: var(--yellow-text); background: var(--yellow-soft); }
.ax-tile b { font-size: 13px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.ax-tile.soon { cursor: default; opacity: 0.6; }

/* Ro'yxat qatorlari */
.ax-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; color: var(--text); font: inherit; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); }
.ax-row:last-child { border-bottom: 0; }
button.ax-row { cursor: pointer; }
.ax-row-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: var(--green-deep); background: var(--green-soft); border-radius: 13px; }
.ax-row-ico.red { color: var(--red); background: var(--red-soft); }
.ax-row-ico.amber { color: var(--yellow-text); background: var(--yellow-soft); }
.ax-row-ico.gray { color: var(--text); background: var(--soft); }
.ax-row-ico.date { display: flex; flex-direction: column; font-size: 14px; font-weight: 800; line-height: 1; }
.ax-row-ico.date small { margin-top: 2px; font-size: 9px; font-weight: 700; }
.ax-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ax-row-main b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ax-row-main small { color: var(--muted); font-size: 12px; font-weight: 500; }
.ax-row-end { flex: none; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ax-row-end.plus { color: var(--green-text); }
.ax-row-end.minus { color: var(--red); }
.ax-row-end.late { color: var(--yellow-text); }
.ax-foot { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }

/* Davomat: xarita */
.ax-map-card { overflow: hidden; margin-bottom: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; }
.ax-map { position: relative; height: 170px; overflow: hidden; background-color: var(--map-bg); background-image: linear-gradient(var(--map-line) 1px, transparent 1px), linear-gradient(90deg, var(--map-line) 1px, transparent 1px); background-size: 24px 24px; }
.ax-map .road1 { position: absolute; left: -40px; top: 96px; width: 480px; height: 16px; background: var(--map-road); transform: rotate(-9deg); }
.ax-map .road2 { position: absolute; left: 62%; top: -30px; width: 14px; height: 240px; background: var(--map-road); transform: rotate(14deg); }
.ax-map .zn { position: absolute; left: 50%; top: 18px; width: 136px; height: 136px; margin-left: -68px; border-radius: 50%; background: rgba(30, 138, 76, 0.13); border: 2px dashed var(--green); opacity: 1; animation: ax-zone 3.5s ease-in-out infinite; pointer-events: none; }
.ax-map .wh-pin { position: absolute; left: 50%; top: 56px; width: 36px; height: 30px; margin-left: -18px; display: grid; place-items: center; color: #fff; background: #14512f; border-radius: 9px; box-shadow: 0 6px 14px rgba(20, 81, 47, 0.35); }
.ax-map .me { position: absolute; left: calc(50% + 22px); top: 104px; width: 18px; height: 18px; }
.ax-map .me::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: rgba(37, 99, 235, 0.3); animation: ax-ring 2.2s ease-out infinite; }
.ax-map .me::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5); }
.ax-map .tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; color: var(--green-deep); font-size: 12px; font-weight: 800; background: var(--card); border-radius: 999px; box-shadow: 0 4px 12px rgba(15, 26, 20, 0.1); }
.ax-map-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.ax-map-foot .l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ax-map-foot .l > span { flex: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--green-deep); background: var(--green-soft); border-radius: 12px; }
.ax-map-foot b { display: block; font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.ax-map-foot small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.ax-map-foot .r { flex: none; color: var(--muted); font-size: 12px; font-weight: 700; }

/* Davomat: katta tugma */
.ax-punch { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 16px; padding: 24px 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 28px; }
.ax-punch-ring { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
.ax-punch-ring .r { position: absolute; width: 176px; height: 176px; border-radius: 50%; background: rgba(47, 163, 90, 0.28); animation: ax-ring 2.2s ease-out infinite; }
.ax-punch-ring .r + .r { animation-delay: 1.1s; }
.ax-punch-ring.out .r { background: rgba(20, 81, 47, 0.22); }
.ax-punch-btn { position: relative; width: 176px; height: 176px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0; color: #fff; font-family: inherit; background: linear-gradient(145deg, #14512f, #1e8a4c 60%, #3fb062); border: 0; border-radius: 50%; box-shadow: 0 18px 40px rgba(20, 81, 47, 0.35); cursor: pointer; transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ax-punch-btn:active { transform: scale(0.95); }
.ax-punch-btn b { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.ax-punch-btn.out { background: linear-gradient(145deg, #0a2717, #14512f); box-shadow: 0 18px 40px rgba(10, 39, 23, 0.35); }
.ax-punch-btn.done { color: var(--green-deep); background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green-ring); cursor: default; }
.ax-punch-btn.done svg { animation: pop 0.45s var(--spring) both; }
.ax-punch-text { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ax-punch-text strong { font-size: 16px; font-weight: 800; }
.ax-punch-text small { color: var(--muted); font-size: 13px; font-weight: 600; }
.ax-boxes { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ax-boxes div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--bg); border-radius: 16px; }
.ax-boxes span { color: var(--muted); font-size: 11px; font-weight: 600; }
.ax-boxes b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Davomat: kalendar */
.ax-cal-nav { display: flex; align-items: center; gap: 6px; }
.ax-cal-nav button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: var(--text); background: var(--soft); border: 0; border-radius: 10px; cursor: pointer; }
.ax-cal-nav button[disabled] { opacity: 0.3; cursor: default; }
.ax-cal-nav .month-pick { width: auto; padding: 0 6px; font: 800 16px Manrope, sans-serif; white-space: nowrap; background: none; }
.ax-cal .cal-grid { gap: 6px; }
.ax-cal .cal-head { color: var(--muted); font-size: 11px; font-weight: 700; }
.ax-cal .cal-day { aspect-ratio: auto; height: 38px; color: var(--muted); font-size: 13px; background: var(--soft); border-radius: 11px; }
.ax-cal .cal-day.empty { visibility: hidden; }
.ax-cal .cal-day.ok { color: #fff; background: #1e8a4c; }
.ax-cal .cal-day.late { color: #5a3204; background: #f4c98e; }
.ax-cal .cal-day.absent { color: var(--red); background: var(--red-cell); box-shadow: inset 0 0 0 1px var(--red-cell-border); }
.ax-cal .cal-day.off { color: var(--muted); background: transparent; outline: 1px dashed var(--faint); outline-offset: -1px; }
.ax-cal .cal-day.pending { color: var(--green-deep); background: var(--card); box-shadow: inset 0 0 0 2px var(--green); }
.ax-cal .cal-day.unconfirmed { color: var(--yellow-text); background: var(--yellow-soft); box-shadow: inset 0 0 0 2px #f4c98e; }
.ax-cal .cal-day.is-today { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--green); }
.ax-cal .cal-day.none { background: var(--soft); opacity: 0.6; }
.ax-legend { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 600; }
.ax-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ax-legend i { width: 12px; height: 12px; border-radius: 4px; }
.ax-stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ax-stat3 div { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; }
.ax-stat3 b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ax-stat3 b.g { color: var(--green-deep); }
.ax-stat3 b.a { color: var(--yellow-text); }
.ax-stat3 b.r { color: var(--red); }
.ax-stat3 span { color: var(--muted); font-size: 12px; font-weight: 600; }

/* Oylik */
.ax-segbar { display: flex; gap: 2px; height: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.12); border-radius: 999px; }
.ax-segbar i { height: 100%; transform-origin: left; animation: ax-grow 1s var(--glide) 0.3s both; }
.ax-legend.on-hero { margin-top: 10px; gap: 6px 14px; color: var(--hero-text); }
.ax-legend.on-hero i { width: 10px; height: 10px; border-radius: 3px; }
.ax-lines .ax-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ax-lines .ax-line span { color: var(--muted); font-size: 14px; font-weight: 600; }
.ax-lines .ax-line b { font-size: 14px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.ax-lines .ax-line b.plus { color: var(--green-text); }
.ax-lines .ax-line b.minus { color: var(--red); }
.ax-lines .ax-line.dash { border-bottom-style: dashed; border-bottom-color: var(--line-strong); }
.ax-lines .ax-line.total { padding: 14px 0 12px; border-bottom: 0; }
.ax-lines .ax-line.total span { color: var(--text); font-size: 15px; font-weight: 800; }
.ax-lines .ax-line.total b { color: var(--green-deep); font-size: 17px; }
.ax-chart { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 14px; align-items: end; height: 150px; }
.ax-chart > div { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.ax-chart > div > b { font-size: 12px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ax-chart > div > small { color: var(--muted); font-size: 12px; font-weight: 700; }
.ax-chart .col { flex: 1; min-height: 0; width: 46px; display: flex; align-items: flex-end; }
.ax-chart .col i { width: 46px; min-height: 4px; background: var(--skel); border-radius: 12px 12px 6px 6px; transform-origin: bottom; animation: ax-rise-bar 0.9s var(--glide) 0.2s both; }
.ax-chart .col i.sel { background: linear-gradient(180deg, #3fb062, #14512f); }
.ax-pay-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ax-pay-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; }

/* Premiya */
.ax-score { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; margin-bottom: 16px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 28px; }
.ax-score::before { content: ''; position: absolute; left: -70px; top: -70px; width: 280px; height: 280px; border: 1px dashed rgba(30, 138, 76, 0.18); border-radius: 50%; animation: spin 26s linear infinite; pointer-events: none; }
.ax-ring { position: relative; flex: none; width: 150px; height: 150px; }
.ax-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ax-ring circle { fill: none; stroke-width: 13; }
.ax-ring .track { stroke: var(--skel); }
.ax-ring .bar { stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--glide); }
.ax-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ax-ring-text b { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.ax-ring-text small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ax-score-side { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ax-score-side > div { display: flex; flex-direction: column; gap: 2px; }
.ax-score-side span { color: var(--muted); font-size: 12px; font-weight: 600; }
.ax-score-side strong { font-size: 22px; font-weight: 800; }
.ax-score-side strong small { color: var(--muted); font-size: 13px; font-weight: 700; }
.ax-score-side .money { color: var(--green-deep); font-size: 17px; font-weight: 800; }
.ax-score-side .hint { align-self: flex-start; padding: 6px 9px; color: var(--yellow-text); font-size: 12px; font-weight: 700; background: var(--yellow-soft); border-radius: 10px; }
.ax-score-side .hint.win { color: var(--green-deep); background: var(--green-soft); }
.ax-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 16px; background: linear-gradient(120deg, #fbefd5, #fff8ea); border: 1px solid #f1ddb0; border-radius: 20px; }
.ax-banner > span { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: #7a4d06; background: #f4c98e; border-radius: 13px; }
.ax-banner b { display: block; color: #3d2203; font-size: 14px; font-weight: 800; }
.ax-banner small { display: block; color: #6b4206; font-size: 12px; font-weight: 600; }
[data-theme='dark'] .ax-banner { background: var(--yellow-soft); border-color: rgba(242, 182, 50, 0.3); }
[data-theme='dark'] .ax-banner b, [data-theme='dark'] .ax-banner small { color: var(--yellow-text); }
.ax-tabs { margin-bottom: 16px; }
.ax-rank { display: flex; align-items: center; gap: 12px; margin: 2px -6px; padding: 12px 6px; border-radius: 16px; }
.ax-rank.me { background: var(--green-soft); box-shadow: inset 0 0 0 1.5px var(--green-ring); }
.ax-rank .n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 800; background: var(--soft); border-radius: 10px; }
.ax-rank .n.r1 { color: #3d2203; background: #f4c98e; }
.ax-rank .n.r2 { color: #0f1a14; background: #dde3e0; }
.ax-rank .n.r3 { color: #4a1f08; background: #e8b79a; }
.ax-rank .av { flex: none; width: 38px; height: 38px; display: grid; place-items: center; color: var(--green-deep); font-size: 13px; font-weight: 800; background: var(--green-soft); border-radius: 50%; }
.ax-rank.me .av { color: #fff; background: #14512f; }
.ax-rank .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ax-rank .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ax-rank .top span { overflow: hidden; font-size: 14px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.ax-rank .top b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ax-rank .ax-bar i { background: #a9d3b4; }
.ax-rank.me .ax-bar i { background: linear-gradient(90deg, #14512f, #3fb062); }
.ax-rank.first .ax-bar i { background: linear-gradient(90deg, #c98a12, #f4c98e); }
.ax-bonus-tag { align-self: flex-start; padding: 3px 8px; color: #3d2203; font-size: 11px; font-weight: 800; background: #f4c98e; border-radius: 999px; }
.ax-part .ax-bar i { background: linear-gradient(90deg, #14512f, #3fb062); }
.ax-part.neg .ax-bar i { background: #e07a55; }
.ax-part .ax-row-ico { font-size: 15px; font-weight: 800; }

/* Kamera (dizayndagidek to'q yashil) */
.camera { background: #0a2717; }
.camera-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(var(--safe-top) + 16px) 18px 14px; color: #fff; }
.camera-top b { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.camera-top b i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; animation: ax-blink 1.4s ease-in-out infinite; }
.camera-top span { color: #cfebd6; font-size: 12px; font-weight: 600; }
.camera-view { margin: 0 18px; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #1f5a3a 0%, #0f3321 60%, #08200f 100%); }
.camera .oval { border-color: rgba(155, 229, 151, 0.85); }
.camera .corner { position: absolute; width: 26px; height: 26px; border: 0 solid #fff; pointer-events: none; }
.camera .corner.tl { left: 14px; top: 14px; border-left-width: 3px; border-top-width: 3px; border-radius: 8px 0 0 0; }
.camera .corner.tr { right: 14px; top: 14px; border-right-width: 3px; border-top-width: 3px; border-radius: 0 8px 0 0; }
.camera .corner.bl { left: 14px; bottom: 14px; border-left-width: 3px; border-bottom-width: 3px; border-radius: 0 0 0 8px; }
.camera .corner.br { right: 14px; bottom: 14px; border-right-width: 3px; border-bottom-width: 3px; border-radius: 0 0 8px 0; }
.camera .scan { position: absolute; left: 14%; right: 14%; height: 2px; background: linear-gradient(90deg, rgba(155, 229, 151, 0), #9be597, rgba(155, 229, 151, 0)); box-shadow: 0 0 14px #9be597; animation: ax-scan 2.6s ease-in-out infinite; pointer-events: none; }
.camera .hint { position: static; margin: 14px 18px 0; padding: 0; color: #cfebd6; font-size: 14px; font-weight: 600; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.camera-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 18px calc(var(--safe-bottom) + 18px); background: #0a2717; }
.camera-bar .cam-btn { height: 52px; color: #fff; font: 700 15px Manrope, sans-serif; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 16px; cursor: pointer; }
.camera-bar .cam-btn.main { color: #0a2717; font-weight: 800; background: #9be597; border: 0; }
.camera-bar .cam-btn[disabled] { opacity: 0.4; cursor: default; }

/* Tab bar oq, faol tab to'q yashil */
.tab[aria-current='page'] { color: var(--green-deep); }
[data-theme='dark'] .tab[aria-current='page'] { color: var(--green-text); }
.avatar { color: var(--green-deep); background: var(--green-soft); border-color: var(--card); }
.ax-card.ax-today { display: flex; }
.ax-icon-btn .avatar { width: 100%; height: 100%; font-size: 17px; border: 0; border-radius: 0; }
[data-theme='dark'] .ax-punch-btn.out { box-shadow: 0 0 0 1px rgba(155, 229, 151, 0.3), 0 18px 40px rgba(0, 0, 0, 0.5); }
[data-theme='dark'] .ax-punch-ring.out .r { background: rgba(155, 229, 151, 0.14); }
