/* =========================================================
   NURAZIZ — Kunlik tracker
   ========================================================= */

/* ---------- Shriftlar (oflayn ishlashi uchun lokal) ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/oswald-latin.woff2") format('woff2'); }

/* ---------- Ranglar ---------- */
:root {
  --bg: #0E0F12;
  --card: #17191E;
  --card-2: #14161B;
  --field: #1C1F26;
  --line: #262A32;
  --line-2: #2B2F38;
  --line-3: #343944;
  --text: #F3EEE8;
  --soft: #B9B2A6;
  --muted: #9A9388;
  --dim: #6F6A62;
  --accent: #FF9F5A;
  --on-accent: #14161B;

  /* Ogohlantirish ranglari */
  --success: #3DDC97;
  --error:   #FF5C6C;
  --warning: #FFC145;
  --info:    #5AB0FF;

  --pop: #181a20;
  --glass: rgba(23,25,30,.86);
  --tint: rgba(255,255,255,.035);
  --hover: rgba(255,255,255,.06);
  --dot-off: #4A505C;
  --dot-nos: #2c3038;
  --heat-none: #1a1d23;
  --heat-0: #23272f;
  --heat-base: #1d2026;
  --overlay: rgba(6,7,9,.68);
  --tip-bg: #F3EEE8;
  --tip-fg: #14161B;
  --zoom: 1;
  --tile-hole: var(--card);
  --radius: 16px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.35);
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { position: fixed; inset: auto 16px 16px; padding: 14px 18px; border-radius: 12px; background: #2a1215; color: #ffb3ba; border: 1px solid #5c2b2e; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 800; font-size: 15px; letter-spacing: .3px;
  transition: transform .12s var(--ease), background .2s, border-color .2s, opacity .2s, box-shadow .2s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line-3); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-success { background: var(--success); color: #0b1f16; }
.btn-error   { background: var(--error);   color: #2a0a0f; }
.btn-warning { background: var(--warning); color: #2a1e04; }
.btn-info    { background: var(--info);    color: #06192b; }
.btn-quiet   { background: var(--field); border-color: var(--line-2); color: var(--soft); }
.btn-quiet:hover { color: var(--text); border-color: var(--line-3); }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(0,0,0,.35); border-top-color: rgba(0,0,0,.85); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 6px; color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent); }

/* =========================================================
   AUTH ekranlari
   ========================================================= */
.auth {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 32px 16px; overflow: hidden;
}
.auth-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 100% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
    radial-gradient(600px 340px at 0% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.auth-card {
  position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 28px 26px; border-radius: 26px; background: var(--glass);
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px);
  animation: rise .45s var(--ease);
}
#screen-register .auth-card { max-width: 480px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.auth-brand { display: flex; align-items: center; gap: 12px; justify-content: center; }
.brand-bar { width: 7px; height: 38px; border-radius: 4px; background: var(--accent); }
.brand-name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 36px; letter-spacing: 6px; line-height: 1; }
.auth-pill {
  align-self: center; padding: 6px 18px; border-radius: 999px; border: 1.5px solid var(--accent);
  color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: 3px;
}
.auth-title { margin: 6px 0 0; text-align: center; font-size: 22px; font-weight: 800; }
.auth-sub { margin: -6px 0 2px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.auth-foot { position: relative; margin: 18px 0 0; color: var(--dim); font-size: 12px; font-weight: 600; }
.alert-slot:empty { display: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Profil tanlash */
.profiles { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; justify-content: center; flex-wrap: wrap; }
.profiles:empty { display: none; }
.profile {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: var(--field); border: 1.5px solid var(--line-2); text-align: left; transition: border-color .2s, background .2s;
}
.profile:hover { border-color: var(--line-3); }
.profile[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--field)); }
.profile .avatar { width: 34px; height: 34px; font-size: 13px; }
.profile b { display: block; font-size: 13px; }
.profile small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.avatar {
  display: inline-grid; place-items: center; border-radius: 50%; flex: 0 0 auto;
  background: color-mix(in srgb, var(--accent) 22%, var(--card)); color: var(--accent);
  font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: .5px;
}

/* PIN */
.pin-form { display: flex; flex-direction: column; gap: 14px; }
.pin-box {
  position: relative; height: 64px; border-radius: 16px; background: var(--field); border: 1.5px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; transition: border-color .2s, box-shadow .2s;
}
.pin-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.pin-box.is-error { border-color: var(--error); box-shadow: 0 0 0 4px color-mix(in srgb, var(--error) 18%, transparent); }
.pin-box.is-ok { border-color: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }
.pin-box.is-locked { border-color: var(--warning); opacity: .8; }
.pin-input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; background: transparent;
  font-size: 16px; caret-color: transparent; cursor: text;
}
.pin-input.is-visible { opacity: 1; text-align: center; font-family: 'Oswald', sans-serif; font-size: 28px; letter-spacing: 14px; padding-left: 14px; }
.pin-input.is-visible + .pin-eye, .pin-box:has(.pin-input.is-visible) .pin-dots { visibility: hidden; }
.pin-box:has(.pin-input.is-visible) .pin-eye { visibility: visible; color: var(--accent); }
.pin-dots { display: flex; gap: 14px; pointer-events: none; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-3); transition: background .15s, border-color .15s, transform .15s; }
.pin-dots i.on { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.pin-box.is-error .pin-dots i.on { background: var(--error); border-color: var(--error); }
.pin-box.is-ok .pin-dots i.on { background: var(--success); border-color: var(--success); }
.pin-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px;
  border-radius: 10px; border: 0; background: transparent; color: var(--dim); display: grid; place-items: center;
}
.pin-eye:hover { color: var(--text); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button {
  height: 50px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2);
  font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 500; color: var(--text);
  display: grid; place-items: center; transition: background .12s, border-color .12s, transform .08s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.keypad button:hover { border-color: var(--line-3); background: var(--field); }
.keypad button:active { transform: scale(.95); background: color-mix(in srgb, var(--accent) 18%, var(--field)); }
.keypad .kp-fn { color: var(--muted); font-size: 16px; }
.keypad button:disabled { opacity: .4; cursor: not-allowed; }
.shake { animation: shake .45s; }
@keyframes shake { 10%,90%{transform:translateX(-2px)} 20%,80%{transform:translateX(4px)} 30%,50%,70%{transform:translateX(-8px)} 40%,60%{transform:translateX(8px)} }

/* Forma maydonlari */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--soft); text-transform: uppercase; }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--dim); font-weight: 600; }
.field input, .input-prefix {
  height: 48px; width: 100%; padding: 0 14px; border-radius: 12px; background: var(--field);
  border: 1.5px solid var(--line-2); outline: none; font-size: 16px; font-weight: 600; transition: border-color .2s, box-shadow .2s;
}
.input-prefix { display: flex; align-items: center; gap: 4px; padding: 0 0 0 14px; }
.input-prefix span { color: var(--dim); font-weight: 800; }
.input-prefix input { height: 100%; border: 0 !important; box-shadow: none !important; background: transparent; padding-left: 0; }
.field input:focus, .input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.field-msg { font-size: 12px; color: var(--dim); font-weight: 600; min-height: 16px; transition: color .2s; }
.field.is-error input, .field.is-error .input-prefix { border-color: var(--error); box-shadow: 0 0 0 4px color-mix(in srgb, var(--error) 14%, transparent); }
.field.is-error .field-msg { color: var(--error); }
.field.is-error textarea, .field.is-error select, .field.is-error .nz-chips { border-color: var(--error); }
.field.is-warn input { border-color: var(--warning); }
.field.is-warn .field-msg { color: var(--warning); }
.field.is-ok input, .field.is-ok .input-prefix { border-color: color-mix(in srgb, var(--success) 70%, var(--line-2)); }
.field.is-ok .field-msg { color: var(--success); }
.field.is-error .field-msg::before { content: "✕ "; }
.field.is-ok .field-msg::before { content: "✓ "; }
.field.is-warn .field-msg::before { content: "! "; }
.strength { display: flex; gap: 4px; height: 4px; margin-top: 2px; }
.strength i { flex: 1; border-radius: 2px; background: var(--line); transition: background .25s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--error); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--warning); }
.strength[data-level="3"] i { background: var(--success); }

/* =========================================================
   Ogohlantirish banneri (sahifa ichida)
   ========================================================= */
.nz-alert {
  --tone: var(--info);
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 10%, var(--card-2));
  border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
  border-left: 4px solid var(--tone);
  animation: fadeIn .3s var(--ease);
}
.nz-alert--success { --tone: var(--success); }
.nz-alert--error   { --tone: var(--error); }
.nz-alert--warning { --tone: var(--warning); }
.nz-alert--info    { --tone: var(--info); }
.nz-alert__icon { flex: 0 0 22px; height: 22px; color: var(--tone); display: grid; place-items: center; margin-top: 1px; }
.nz-alert__text { flex: 1; font-size: 13.5px; line-height: 1.45; color: var(--text); font-weight: 600; }
.nz-alert__text b { display: block; color: var(--tone); font-weight: 800; font-size: 13.5px; margin-bottom: 1px; }
.nz-alert__x { flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); width: 26px; height: 26px; border-radius: 8px; font-size: 18px; line-height: 1; }
.nz-alert__x:hover { color: var(--text); background: var(--hover); }
.nz-alert__btn { margin-top: 8px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--tone); background: transparent; color: var(--tone); font-weight: 800; font-size: 12.5px; }
.nz-alert__btn:hover { background: color-mix(in srgb, var(--tone) 16%, transparent); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* =========================================================
   TOAST bildirishnomalar
   ========================================================= */
.nz-toasts {
  position: fixed; z-index: 9000; bottom: 18px; right: 18px; width: min(380px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.nz-toast {
  --tone: var(--info);
  position: relative; pointer-events: auto; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 12px 16px 14px; border-radius: 16px; overflow: hidden;
  background: color-mix(in srgb, var(--tone) 8%, var(--pop));
  border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.2);
  animation: toastIn .38s var(--ease);
}
.nz-toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(28px) scale(.97); margin-top: -70px; } }
.nz-toast--success { --tone: var(--success); }
.nz-toast--error   { --tone: var(--error); }
.nz-toast--warning { --tone: var(--warning); }
.nz-toast--info    { --tone: var(--info); }
.nz-toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); }
.nz-toast__icon {
  flex: 0 0 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone);
}
.nz-toast__body { flex: 1; min-width: 0; padding-top: 1px; }
.nz-toast__title { font-weight: 800; font-size: 14px; color: var(--tone); margin-bottom: 2px; }
.nz-toast__msg { font-size: 13.5px; line-height: 1.45; color: var(--text); font-weight: 600; word-wrap: break-word; }
.nz-toast__action { margin-top: 8px; height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--tone); background: transparent; color: var(--tone); font-weight: 800; font-size: 12.5px; }
.nz-toast__action:hover { background: color-mix(in srgb, var(--tone) 16%, transparent); }
.nz-toast__close { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
.nz-toast__close:hover { background: var(--hover); color: var(--text); }
.nz-toast__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tone); opacity: .75; transform-origin: left; animation: bar linear forwards; }
.nz-toast:hover .nz-toast__bar { animation-play-state: paused; }
@keyframes bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.nz-toast__count { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; font-size: 11px; background: var(--tone); color: #111; vertical-align: 1px; }

/* =========================================================
   DIALOG (modal oyna)
   ========================================================= */
.nz-modal {
  position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px;
  background: var(--overlay); backdrop-filter: blur(4px); animation: fade .2s ease;
}
.nz-modal.is-leaving { animation: fade .18s ease reverse forwards; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.nz-dialog {
  --tone: var(--info);
  width: 100%; max-width: 420px; padding: 26px 24px 22px; border-radius: 22px; background: var(--pop);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line)); box-shadow: var(--shadow);
  text-align: center; animation: pop .3s var(--ease); max-height: calc(100vh - 32px); overflow: auto;
}
.nz-dialog--success { --tone: var(--success); }
.nz-dialog--error   { --tone: var(--error); }
.nz-dialog--warning { --tone: var(--warning); }
.nz-dialog--info    { --tone: var(--info); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.nz-dialog__icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--tone) 6%, transparent);
}
.nz-dialog__icon svg { width: 28px; height: 28px; }
.nz-dialog__title { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.nz-dialog__msg { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.55; font-weight: 600; white-space: pre-line; }
.nz-dialog__form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; text-align: left; }
.nz-dialog__form:empty { display: none; }
.nz-dialog__form .field input { height: 46px; }
.nz-check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--field); border: 1.5px solid var(--line-2); cursor: pointer; font-weight: 700; font-size: 14px; }
.nz-check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.nz-dialog__err {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: left;
  color: var(--error); background: color-mix(in srgb, var(--error) 10%, transparent); border: 1px solid color-mix(in srgb, var(--error) 35%, transparent);
}
.nz-dialog__err.is-shake { animation: shake .4s; }
.nz-dialog__actions { display: flex; gap: 10px; margin-top: 20px; }
.nz-dialog__actions .btn { flex: 1; min-height: 46px; height: auto; padding: 8px 12px; line-height: 1.2; }

/* =========================================================
   TRACKER
   ========================================================= */
#screen-app { min-height: 100vh; }
.tr-pad {
  width: 100%; max-width: 1308px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding: 36px 44px 48px;
  background: radial-gradient(900px 420px at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--bg);
}
.tr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.tr-brand { display: flex; align-items: center; gap: 14px; }
.tr-brand .brand-bar { width: 8px; height: 44px; }
.tr-logo { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 44px; letter-spacing: 6px; line-height: 1; }
.tr-pill { padding: 12px 34px; border-radius: 999px; border: 1.5px solid var(--accent); font-weight: 800; font-size: 18px; letter-spacing: 4px; color: var(--accent); }
.tr-right { display: flex; align-items: center; gap: 10px; }
.month-nav { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; height: 44px; }
.month-nav button { height: 100%; border: 0; background: transparent; color: var(--soft); padding: 0 12px; font-size: 20px; font-weight: 700; border-radius: 14px; }
.month-nav button:hover { color: var(--accent); }
.month-nav .month-label { font-size: 14px; font-weight: 800; letter-spacing: 1px; color: var(--text); padding: 0 6px; min-width: 150px; }
.month-nav .month-label small { color: var(--muted); font-weight: 700; margin-right: 4px; }

.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 5px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 800; font-size: 14px; }
.user-chip:hover, .user-chip[aria-expanded="true"] { border-color: var(--accent); }
.user-chip .avatar { width: 34px; height: 34px; font-size: 13px; }
.user-chip .caret { color: var(--muted); font-size: 11px; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 260px; padding: 8px; border-radius: 16px;
  background: var(--pop); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: fadeIn .18s var(--ease);
}
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head b { display: block; font-size: 14px; }
.menu-head small { color: var(--muted); font-weight: 600; font-size: 12px; }
.menu button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 10px;
  background: transparent; text-align: left; font-weight: 700; font-size: 14px; color: var(--text);
}
.menu button:hover, .menu button:focus-visible { background: var(--field); outline: none; }
.menu button svg { flex: 0 0 18px; color: var(--muted); }
.menu button.is-danger { color: var(--error); }
.menu button.is-danger svg { color: var(--error); }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 6px 4px; }

.tr-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -4px; }
.greet { font-weight: 700; font-size: 14px; color: var(--muted); }
.greet b { color: var(--text); }
.tr-tools { display: flex; align-items: center; gap: 14px; }
.save-state { font-size: 12px; font-weight: 700; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; transition: color .3s; }
.save-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.save-state.is-saved { color: var(--success); }
.save-state.is-error { color: var(--error); }
.accents { display: flex; gap: 6px; }
.accents button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; padding: 0; outline-offset: 2px; }
.accents button[aria-pressed="true"] { border-color: var(--text); }
.tr-alerts { display: flex; flex-direction: column; gap: 10px; }
.tr-alerts:empty { display: none; }

.tr-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.tr-stat { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.tr-lab { font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--muted); }
.tr-num { font-family: 'Oswald', sans-serif; font-size: 24px; }
.tr-num.accent { color: var(--accent); }

.tr-weeks { display: grid; grid-template-columns: repeat(var(--wk, 5), minmax(0,1fr)); gap: 12px; }
.tr-week { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; }
.tr-week.is-now { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tr-week-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.tr-week-top .tr-lab { font-size: 11px; }
.tr-week-top .tr-num { font-size: 17px; }
.bar { margin-top: 6px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .4s var(--ease); }

.tr-card { background: var(--card-2); border: 1px solid var(--line); border-radius: 22px; padding: 16px 22px 14px; }
.tr-desk { display: block; overflow-x: auto; }
.tr-mob { display: none; }
.grid { min-width: 1030px; display: flex; flex-direction: column; }
.g-row { display: flex; height: 24px; align-items: center; }
.g-head { height: 30px; }
.g-head .c-name, .g-head .c-goal, .g-head .c-sum { font-weight: 800; font-size: 11px; letter-spacing: 2px; color: var(--dim); }
.g-head .c-goal, .g-head .c-best { font-size: 10px; letter-spacing: 1px; }
.c-name { flex: 0 0 230px; display: flex; align-items: center; gap: 8px; padding-right: 10px; }
.c-goal { flex: 0 0 46px; display: flex; justify-content: center; }
.c-day { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.c-sum, .c-pct { flex: 0 0 44px; text-align: center; font-family: 'Oswald', sans-serif; font-size: 13px; }
.c-best { flex: 0 0 46px; text-align: center; font-family: 'Oswald', sans-serif; font-size: 13px; color: var(--soft); }
.c-pct { color: var(--accent); }
.c-pct.is-full { color: var(--success); }
.g-head .c-day { font-size: 11px; font-weight: 800; line-height: 1.05; }
.g-head .c-day small { font-size: 8.5px; font-weight: 700; letter-spacing: .5px; color: var(--dim); }
.g-head .c-day.is-today { color: var(--accent) !important; }
.g-head .c-day.is-today small { color: var(--accent); }
.tint { background: var(--tint); }
.c-day.is-today-col { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--accent) 45%, transparent), inset -1px 0 0 color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.row-no { flex: 0 0 24px; font-family: 'Oswald', sans-serif; font-size: 13px; color: var(--dim); }
.in-name {
  flex: 1; min-width: 0; height: 20px; background: transparent; border: 0; border-bottom: 1px dashed var(--line-3);
  color: var(--text); font-size: 12px; font-weight: 600; outline: none; padding: 0 2px;
}
.in-name:focus { border-bottom-color: var(--accent); border-bottom-style: solid; }
.in-name::placeholder { color: var(--dim); }
.in-goal {
  width: 30px; height: 18px; text-align: center; background: var(--field); border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--text); font-family: 'Oswald', sans-serif; font-size: 12px; outline: none; padding: 0;
}
.in-goal:focus { border-color: var(--accent); }
.in-goal.is-invalid { border-color: var(--error) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 22%, transparent); animation: shake .4s; }
.dot-btn { width: 100%; height: 24px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.dot { display: block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--dot-off); transition: background .15s, border-color .15s, transform .15s; }
.dot-btn:hover .dot { border-color: var(--accent); transform: scale(1.12); }
.dot-btn.on .dot { background: var(--accent); border-color: var(--accent); }
.dot-btn.is-future { cursor: not-allowed; }
.dot-btn.is-future .dot { opacity: .35; border-style: dashed; }
.dot-btn.pop .dot { animation: popDot .35s var(--ease); }
@keyframes popDot { 0% { transform: scale(.6); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.sec-head { display: flex; align-items: center; gap: 12px; height: 32px; }
.sec-head .d { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.sec-head .t { font-weight: 800; font-size: 14px; letter-spacing: 3px; color: var(--accent); }
.sec-head .l { flex: 1; height: 1px; background: var(--line); }
.sec-head .n { font-size: 11px; font-weight: 700; color: var(--dim); letter-spacing: 1px; }
.m-label { flex: 0 0 276px; padding-left: 32px; font-weight: 700; font-size: 12px; color: var(--soft); }
.m-btn { width: 100%; height: 24px; padding: 0; border: 0; background: transparent; font-family: 'Oswald', sans-serif; font-size: 12px; color: var(--accent); }
.m-btn:hover { background: var(--hover); }
.m-btn.is-future { color: var(--line-3); cursor: not-allowed; }
.m-avg { flex: 0 0 136px; text-align: center; font-weight: 700; font-size: 11px; color: var(--muted); }
.m-avg b { font-family: 'Oswald', sans-serif; font-size: 13px; color: var(--text); font-weight: 500; }
.g-daily { height: 70px; align-items: flex-end; margin-top: 10px; }
.g-daily .m-label { padding-bottom: 6px; font-weight: 800; font-size: 11px; letter-spacing: 2px; color: var(--dim); }
.g-daily .c-day { height: 70px; justify-content: flex-end; }
.g-daily .col { width: 12px; border-radius: 4px 4px 0 0; background: var(--accent); transition: height .35s var(--ease); }
.g-daily .col.is-full { background: var(--success); }
.g-daily .cnt { height: 16px; font-family: 'Oswald', sans-serif; font-size: 11px; color: var(--soft); line-height: 16px; }

/* Mobil ko'rinish */
.mb-row { padding: 12px 0 14px; border-top: 1px solid var(--line); }
.mb-top { display: flex; align-items: center; gap: 8px; }
.mb-top .row-no { font-size: 14px; }
.mb-top .in-name { height: 36px; font-size: 16px; font-weight: 700; }
.mb-top .in-goal { flex: 0 0 46px; width: 46px; height: 36px; border-radius: 10px; font-size: 16px; }
.mb-meta { display: flex; gap: 14px; margin: 6px 0 10px 32px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mb-meta b { font-family: 'Oswald', sans-serif; font-size: 14px; color: var(--text); font-weight: 500; }
.mb-meta b.accent { color: var(--accent); }
.mb-meta b.ok { color: var(--success); }
.mb-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.mb-day {
  height: 40px; padding: 0; border-radius: 10px; border: 1.5px solid var(--dot-off); background: transparent; color: var(--soft);
  font-family: 'Oswald', sans-serif; font-size: 14px; transition: background .15s, border-color .15s;
}
.mb-day.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mb-day.is-today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.mb-day.is-future { opacity: .35; border-style: dashed; }
.mb-metric { height: 46px; padding: 0; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.mb-metric span { font-family: 'Oswald', sans-serif; font-size: 9px; color: var(--dim); line-height: 1; }
.mb-metric b { font-family: 'Oswald', sans-serif; font-size: 15px; color: var(--accent); line-height: 1.1; font-weight: 500; }
.mb-metric.is-future { opacity: .35; }
.mb-metric.is-today { border-color: var(--accent); }
.mb-mhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mb-mhead > span { font-weight: 700; font-size: 14px; }

.tr-notes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.note { background: var(--card-2); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 130px; transition: border-color .2s; }
.note:focus-within { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.note label { font-weight: 800; font-size: 12px; letter-spacing: 3px; color: var(--accent); display: flex; justify-content: space-between; }
.note label small { color: var(--dim); letter-spacing: 0; font-weight: 700; }
.note textarea { flex: 1; min-height: 80px; resize: vertical; background: transparent; border: 0; outline: none; color: var(--text); font-size: 16px; line-height: 1.5; padding: 0; }
.tr-foot { text-align: center; color: var(--dim); font-size: 12px; font-weight: 600; }

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 820px) {
  .tr-desk { display: none; }
  .tr-mob { display: block; }
  .tr-pad { padding: 18px 12px 28px; }
  .tr-logo { font-size: 32px; letter-spacing: 4px; }
  .tr-brand .brand-bar { height: 34px; }
  .tr-pill { order: 3; width: 100%; text-align: center; padding: 10px 16px; font-size: 15px; }
  .tr-right { flex: 1; justify-content: flex-end; }
  .month-nav .month-label { min-width: 0; font-size: 13px; }
  .user-chip .uname { display: none; }
  .tr-stats { gap: 8px; }
  .tr-stat { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 12px; min-height: 60px; }
  .tr-lab { font-size: 10px; letter-spacing: 1px; }
  .tr-num { font-size: 20px; }
  .tr-weeks { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .tr-notes { grid-template-columns: minmax(0,1fr); }
  .tr-card { padding: 10px 12px 12px; }
  .sec-head .t { font-size: 13px; }
  .nz-toasts { top: auto; bottom: 14px; right: 50%; transform: translateX(50%); }
  @keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes toastOut { to { opacity: 0; transform: translateY(24px) scale(.97); margin-top: -70px; } }
  .menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; min-width: 0; max-height: calc(100dvh - 90px); overflow-y: auto; z-index: 8700; }
  .nz-toast { padding: 11px 10px 13px 12px; border-radius: 14px; }
  .nz-toast__icon { flex-basis: 30px; height: 30px; }
  .nz-toast__msg { font-size: 13px; }
  .keypad button { height: 52px; }
}
@media (max-width: 460px) {
  .auth-card { padding: 24px 18px 20px; border-radius: 22px; }
  .brand-name { font-size: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .month-nav button { padding: 0 8px; }
  .month-nav .month-label small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .tr-right, .tr-tools, .tr-alerts, .nz-toasts { display: none !important; }
  body, .tr-pad { background: #fff !important; color: #000; }
}

/* =========================================================
   v3: BO'LIMLAR, BUGUN, STATISTIKA, YUTUQLAR
   ========================================================= */
.date-chip { height: 44px; display: flex; align-items: center; padding: 0 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 16%, var(--field)); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.muted { color: var(--muted); font-size: 13px; font-weight: 600; margin: 4px 0; }
.btn-mini { height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-3); background: var(--field); color: var(--text); font-weight: 800; font-size: 12.5px; }
.btn-mini:hover { border-color: var(--accent); color: var(--accent); }
.tr-foot .link-btn { font-size: 12px; padding: 0 2px; }

/* Bugun */
.td-hero { display: flex; align-items: center; gap: 22px; padding: 20px 22px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--card)), var(--card-2)); border: 1px solid var(--line); }
.td-ring, .sd-ring { position: relative; flex: 0 0 auto; color: var(--accent); }
.ring circle:last-child { transition: stroke-dashoffset .6s var(--ease); }
.td-ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.td-ring-txt b { font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 500; color: var(--text); line-height: 1; }
.td-ring-txt small { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.td-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.td-date { font-size: 15px; font-weight: 700; color: var(--muted); }
.td-date b { color: var(--text); font-size: 20px; }
.td-quote { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--soft); font-style: italic; }
.td-level { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 10px; align-items: center; max-width: 380px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2); text-align: left; }
.td-level:hover { border-color: var(--accent); }
.lv-badge { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700; }
.lv-txt { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.lv-txt small { color: var(--muted); font-weight: 700; }
.lv-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: block; }
.lv-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .5s var(--ease); }
.lv-bar.big { height: 10px; border-radius: 5px; margin: 8px 0 4px; }

.td-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.td-list { display: flex; flex-direction: column; gap: 14px; }
.td-group { display: flex; flex-direction: column; gap: 8px; }
.td-ghead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; font-weight: 800; font-size: 13px; letter-spacing: 1px; color: var(--soft); }
.td-ghead small { color: var(--dim); font-weight: 700; }
.hcard { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .15s; }
.hcard:hover { border-color: var(--line-3); }
.hcard.is-done { background: color-mix(in srgb, var(--accent) 9%, var(--card)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.hcard.is-skip { opacity: .72; border-style: dashed; }
.hcard.pop { animation: cardPop .4s var(--ease); }
@keyframes cardPop { 50% { transform: scale(1.015); } }
.hc-check { flex: 0 0 48px; height: 48px; border-radius: 15px; border: 2px solid var(--line-3); background: transparent; color: transparent; display: grid; place-items: center; font-size: 18px; transition: background .2s, border-color .2s, color .2s, transform .1s; }
.hc-check:hover { border-color: var(--accent); color: color-mix(in srgb, var(--accent) 50%, transparent); }
.hc-check:active { transform: scale(.92); }
.hcard.is-done .hc-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hcard.is-skip .hc-check { color: var(--muted); border-style: dashed; }
.hc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hc-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15.5px; }
.hc-emo { font-size: 20px; line-height: 1; }
.hc-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcard.is-done .hc-title { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-decoration-thickness: 2px; }
.hc-name kbd { margin-left: auto; font-family: 'Oswald', sans-serif; font-size: 11px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px; line-height: 18px; }
.hc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tag { padding: 0 8px; border-radius: 999px; background: var(--field); border: 1px solid var(--line-2); font-size: 11.5px; line-height: 18px; color: var(--soft); }
.tag-done { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 10%, transparent); }
.tag-skip { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); background: color-mix(in srgb, var(--info) 10%, transparent); }
.hc-strength { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; max-width: 260px; }
.hc-strength i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .5s var(--ease); }
.hc-btn { flex: 0 0 38px; height: 38px; border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--dim); display: grid; place-items: center; }
.hc-btn:hover { color: var(--text); background: var(--field); border-color: var(--line-2); }
.td-off { border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); padding: 10px 14px; }
.td-off summary { cursor: pointer; font-weight: 800; font-size: 13px; color: var(--muted); }
.off-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.off-row:first-of-type { margin-top: 8px; }
.off-row span { flex: 1; }
.off-row small { color: var(--dim); }
.add-habit { height: 52px; border-radius: 16px; border: 1.5px dashed var(--line-3); background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; }
.add-habit:hover { border-color: var(--accent); color: var(--accent); }
.empty-mini { padding: 18px; border-radius: 16px; background: var(--card-2); border: 1px dashed var(--line-3); color: var(--muted); font-weight: 700; text-align: center; }
.empty-card { text-align: center; padding: 40px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.empty-card h2 { margin: 8px 0; font-size: 20px; }
.empty-card p { margin: 0 auto 18px; max-width: 420px; color: var(--muted); font-weight: 600; line-height: 1.5; }
.empty-emo { font-size: 44px; }
.td-side { display: flex; flex-direction: column; gap: 16px; }
.journal { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.journal h3 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; }
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mood { height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--field); font-size: 22px; filter: grayscale(.7); opacity: .75; transition: all .15s; }
.mood:hover { filter: none; opacity: 1; }
.mood.on { filter: none; opacity: 1; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--field)); transform: scale(1.05); }
.journal textarea { min-height: 110px; resize: vertical; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--field); padding: 10px 12px; font-size: 15px; line-height: 1.5; outline: none; }
.journal textarea:focus { border-color: var(--accent); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-stats div { padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.mini-stats b { display: block; font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 500; }
.mini-stats small { color: var(--muted); font-weight: 700; font-size: 12px; }

/* Jadval: yangi holatlar */
.emo-btn { flex: 0 0 24px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; font-family: 'Oswald', sans-serif; font-size: 13px; color: var(--dim); line-height: 1; }
.emo-btn:hover { background: var(--field); color: var(--accent); }
.mb-top .emo-btn { flex-basis: 30px; height: 30px; font-size: 16px; }
.dot-btn.skip .dot { border-style: dashed; border-color: var(--info); background: transparent; position: relative; }
.dot-btn.skip .dot::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.5px; background: var(--info); transform: translateY(-50%); }
.dot-btn.nos:not(.on) .dot { border-color: var(--dot-nos); width: 6px; height: 6px; }
.mb-day.skip { border-style: dashed; border-color: var(--info); color: var(--info); }
.mb-day.nos:not(.on) { border-color: var(--dot-nos); color: var(--dim); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--dot-off); display: inline-grid; place-items: center; font-style: normal; font-size: 10px; line-height: 1; }
.lg-dot.on { background: var(--accent); border-color: var(--accent); }
.lg-dot.skip { border-style: dashed; border-color: var(--info); color: var(--info); }
.lg-dot.nos { width: 6px; height: 6px; border-color: var(--dot-nos); }
.lg-dot.fut { border-style: dashed; opacity: .4; }

/* Statistika */
.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.tile small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.tile b { font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 500; }
.tile em { font-style: normal; font-size: 15px; color: var(--muted); margin-left: 2px; }
.heat-card, .st-card { padding: 16px 18px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--line); }
.heat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.heat-card h3, .st-card h3 { margin: 0; font-size: 15px; font-weight: 800; }
.st-card h3 small, .st-card h4 small, .sec-title small { color: var(--dim); font-weight: 700; font-size: 12px; margin-left: 6px; }
.heat-scroll { overflow-x: auto; padding-bottom: 4px; }
.heat { display: grid; grid-template-columns: 24px repeat(53, minmax(0, 1fr)); grid-template-rows: 16px; grid-auto-rows: auto; gap: 3px; width: 100%; min-width: 720px; }
.hm { display: block; width: 100%; aspect-ratio: 1; border-radius: 3px; background: var(--line); }
.hm-legend .hm { width: 11px; height: 11px; aspect-ratio: auto; }
.hm-none { background: var(--heat-none); }
.hm-fut { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.hm-0 { background: var(--heat-0); }
.hm-1 { background: color-mix(in srgb, var(--accent) 28%, var(--heat-base)); }
.hm-2 { background: color-mix(in srgb, var(--accent) 50%, var(--heat-base)); }
.hm-3 { background: color-mix(in srgb, var(--accent) 74%, var(--heat-base)); }
.hm-4 { background: var(--accent); }
.hm-today { box-shadow: 0 0 0 1.5px var(--text); }
.heat .hm:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.hm-m { grid-row: 1; font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.hm-d { grid-column: 1; font-size: 10px; font-weight: 700; color: var(--dim); align-self: center; }
.hm-legend { display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.hm-legend .hm { width: 11px; height: 11px; }
/* Xarita: Oy | Yil almashtirgichi va oylik kalendar ko'rinishi */
.heat-top .hm-seg { margin-left: auto; }
.heat-top .hm-seg button { padding: 5px 12px; font-size: 12px; }
.hmm-wrap { max-width: 460px; margin: 0 auto; }
.hmm-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hmm-nav > div { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; gap: 1px; }
.hmm-nav b { font-size: 15px; font-weight: 800; }
.hmm-nav small { font-size: 12px; font-weight: 700; color: var(--muted); }
.hmm-arr { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; }
.hmm-arr:disabled { opacity: .35; cursor: default; }
.hmm-arr:not(:disabled):hover { border-color: var(--accent); }
.hmm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.hmm-wd { text-align: center; font-size: 11px; font-weight: 800; color: var(--dim); padding-bottom: 2px; }
.hmm { display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; font-style: normal; }
.hmm b { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.hmm.hm-3 b, .hmm.hm-4 b { color: var(--on-accent); }
.hmm.hm-2 b { color: var(--text); }
.hmm.hm-fut b { color: var(--dim); opacity: .6; }
.hmm.hm-today { box-shadow: 0 0 0 2px var(--text); }
.hmm:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.rank { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.rank-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 90px 44px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; text-align: left; font-size: 14px; }
.rank-row:hover { background: var(--field); }
.rank-row.on { background: color-mix(in srgb, var(--accent) 10%, var(--field)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.rk-n { font-family: 'Oswald', sans-serif; color: var(--dim); }
.rk-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.rank-row b { font-family: 'Oswald', sans-serif; font-weight: 500; text-align: right; }
.sd-head { display: flex; align-items: center; gap: 16px; }
.sd-head h3 { font-size: 18px; }
.sd-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 6px; }
.sd-nums div { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.sd-nums b { display: block; font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 500; }
.sd-nums small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.st-card h4 { margin: 16px 0 8px; font-size: 13px; font-weight: 800; color: var(--soft); }
.vbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; }
.vbars-12 { grid-template-columns: repeat(12, 1fr); gap: 4px; }
.vb { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vb-track { width: 100%; max-width: 34px; height: 90px; border-radius: 6px; background: var(--card); display: flex; align-items: flex-end; overflow: hidden; }
.vbars-12 .vb-track { max-width: 22px; height: 70px; }
.vb-track i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; transition: height .5s var(--ease); }
.vb b { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 500; }
.vb small { font-size: 10.5px; font-weight: 700; color: var(--dim); }
.nz-tip { position: fixed; z-index: 9800; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--tip-bg); color: var(--tip-fg); font-size: 12px; font-weight: 700; box-shadow: var(--shadow); max-width: 260px; }

/* Yutuqlar */
.lv-card { display: flex; align-items: center; gap: 22px; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card-2)); border: 1px solid var(--line); }
.lv-big { flex: 0 0 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: 'Oswald', sans-serif; font-size: 46px; font-weight: 700; box-shadow: 0 14px 40px -14px var(--accent); }
.lv-body { flex: 1; min-width: 0; }
.lv-body > small { font-size: 12px; font-weight: 800; letter-spacing: 3px; color: var(--muted); }
.lv-body h2 { margin: 2px 0 0; font-size: 26px; }
.xp-rules { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; color: var(--dim); }
.sec-title { margin: 6px 0 -4px; font-size: 15px; font-weight: 800; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 14px 14px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); }
.badge.on { background: color-mix(in srgb, var(--accent) 8%, var(--card)); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.bd-ico { font-size: 34px; height: 44px; filter: grayscale(1); opacity: .45; }
.badge.on .bd-ico { filter: none; opacity: 1; }
.badge b { font-size: 14px; }
.badge small { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.35; }
.badge em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--dim); margin-top: 4px; }
.badge.on em { color: var(--success); }
.bd-prog { width: 80%; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bd-prog i { display: block; height: 100%; background: var(--accent); }

/* Dialog: qo'shimcha maydonlar */
.nz-dialog.is-wide { max-width: 500px; }
.nz-flabel { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--soft); text-transform: uppercase; }
.nz-select { height: 46px; width: 100%; padding: 0 12px; border-radius: 12px; background: var(--field); border: 1.5px solid var(--line-2); font-size: 15px; font-weight: 600; outline: none; }
.nz-select:focus { border-color: var(--accent); }
.nz-chips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.nz-chip, .nz-emo { position: relative; cursor: pointer; }
.nz-chips.is-wrap { display: flex; flex-wrap: wrap; }
.nz-chips.is-wrap .nz-chip { max-width: 100%; }
.nz-chips.is-wrap .nz-chip span { display: block; height: 36px; line-height: 33px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nz-chip input, .nz-emo input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nz-chip span { display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--field); font-weight: 800; font-size: 13px; color: var(--muted); transition: all .15s; }
.nz-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.nz-chip input:focus-visible + span, .nz-emo input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.nz-emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.nz-emo span { display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--field); font-size: 20px; transition: all .15s; }
.nz-emo input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--field)); transform: scale(1.06); }
.nz-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9900; }

@media (max-width: 1000px) {
  .td-cols, .st-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .tabs { position: sticky; top: 8px; z-index: 40; box-shadow: 0 10px 30px -12px rgba(0,0,0,.8); }
  .tab { padding: 0 8px; font-size: 13px; gap: 6px; }
  .td-hero { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; padding: 18px 16px; }
  .td-ring { align-self: center; }
  .td-level { max-width: none; }
  .hcard { padding: 10px 6px 10px 10px; gap: 10px; }
  .hc-check { flex-basis: 52px; height: 52px; }
  .hc-name kbd { display: none; }
  .hc-btn { flex-basis: 34px; }
  .st-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sd-nums { grid-template-columns: 1fr 1fr; }
  .lv-card { flex-direction: column; text-align: center; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .date-chip { font-size: 12.5px; padding: 0 10px; }
  .vbars-12 .vb small { font-size: 8.5px; }
  .vbars-12 .vb:nth-child(even) small { visibility: hidden; }
}
@media print { .tabs { display: none !important; } }
@media (max-width: 460px) {
  .tab span { display: none; }
  .tab[aria-selected="true"] span { display: inline; }
  .nz-emojis { grid-template-columns: repeat(6, 1fr); }
  .rank-row { grid-template-columns: 20px minmax(0, 1fr) 60px 40px; }
}
.nz-textarea { width: 100%; min-height: 70px; resize: vertical; padding: 10px 12px; border-radius: 12px; background: var(--field); border: 1.5px solid var(--line-2); outline: none; font-size: 15px; line-height: 1.45; }
.nz-textarea:focus { border-color: var(--accent); }
.nz-toast__acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* =========================================================
   v4: REJA (vazifalar)
   ========================================================= */
.planner { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.pl-nav { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 14px; color: var(--soft); }
.pl-nav b { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-nav em { font-style: normal; font-family: 'Oswald', sans-serif; font-size: 12.5px; color: var(--muted); }
.pl-nav:hover { background: var(--field); color: var(--text); }
.pl-nav.on { background: color-mix(in srgb, var(--accent) 15%, var(--field)); color: var(--accent); }
.pl-nav.has-od em { color: var(--error); }
.pl-sep { display: flex; justify-content: space-between; align-items: center; margin: 10px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); }
.pl-addlist { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-3); background: transparent; color: var(--muted); font-size: 16px; line-height: 1; }
.pl-addlist:hover { color: var(--accent); border-color: var(--accent); }
/* Telefonda ajratgichlar (va ulardagi «+») yashirin — o'rniga qatordagi «＋ Ro'yxat» / «＋ Filtr» chiplari */
.pl-nav.pl-add-m { display: none; }
.pl-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pl-top { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 10px; align-items: start; }
.pl-search { height: 50px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); padding: 0 14px; font-size: 14px; outline: none; }
.pl-search:focus { border-color: var(--accent); }
.quick { display: flex; flex-direction: column; gap: 6px; }
.quick-row { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 8px 0 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.quick-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.quick-plus { color: var(--accent); font-size: 22px; font-weight: 700; }
.quick-row input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 15.5px; font-weight: 600; }
.quick-pv { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-pv:empty { display: none; }
.pv-chip { padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--accent) 12%, var(--field)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.quick-hint { font-size: 11.5px; color: var(--dim); font-weight: 600; padding-left: 4px; }
.pl-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 0; font-size: 22px; font-weight: 800; }
.pl-h small { font-size: 13px; color: var(--muted); font-weight: 700; }
.load { display: grid; grid-template-columns: repeat(3, auto) minmax(160px, 1fr); gap: 10px; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.load small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.load b { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 500; }
.load > div:not(.load-bar) { padding-right: 18px; border-right: 1px solid var(--line); }
.load-bar span { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.load-bar i { display: block; height: 100%; border-radius: 4px; transition: width .4s var(--ease); }
.tk-group { display: flex; flex-direction: column; gap: 6px; }
.tk-ghead { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 0; font-size: 13px; font-weight: 800; color: var(--soft); letter-spacing: .5px; }
.tk-ghead em { font-style: normal; color: var(--dim); font-weight: 700; margin-left: 6px; }
.tk-ghead small { color: var(--dim); font-weight: 700; }
.tk-group.is-od .tk-ghead span { color: var(--error); }
.tk-group.is-donegrp { opacity: .75; }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--pc); transition: border-color .2s, background .2s, opacity .2s; }
.task:hover { border-color: var(--line-3); border-left-color: var(--pc); }
.task.is-od { background: color-mix(in srgb, var(--error) 5%, var(--card)); }
.task.is-done { opacity: .6; }
.task.pop { animation: cardPop .4s var(--ease); }
.tk-check { flex: 0 0 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--pc); background: transparent; color: transparent; display: grid; place-items: center; padding: 0; transition: background .15s, color .15s; }
.tk-check svg { width: 14px; height: 14px; }
.tk-check:hover { color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, transparent); }
.task[style*="--line-3"] .tk-check { border-color: var(--dot-off); }
.task.is-done .tk-check { background: var(--success); border-color: var(--success); color: #0b1f16; }
.tk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tk-title { padding: 0; border: 0; background: transparent; text-align: left; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.35; word-break: break-word; }
.task.is-done .tk-title { text-decoration: line-through; color: var(--muted); }
.tk-star-on { margin-right: 4px; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tk-chip { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 1px 7px; border-radius: 7px; background: var(--field); }
.tk-chip.is-od { color: var(--error); background: color-mix(in srgb, var(--error) 12%, transparent); }
.tk-chip.is-today { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
/* 🔁 Har kungi vazifa: eslatma vaqti tugmasi (bosiladi) va bo'lim izohi */
.tk-remind { font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; border: 1px dashed var(--line-3); color: var(--soft); }
.tk-remind.on { border-style: solid; border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tk-remind:hover { color: var(--text); }
.pl-hint { margin: -2px 2px 12px; font-size: 13px; line-height: 1.45; }
.pl-drow > small { color: var(--muted); }
.tk-btn { flex: 0 0 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--dim); font-size: 16px; display: grid; place-items: center; }
.tk-btn:hover { background: var(--field); color: var(--text); }
.tk-btn.on { color: var(--warning); }
.tk-more { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.tk-notes { margin: 0; font-size: 13.5px; color: var(--soft); white-space: pre-wrap; line-height: 1.5; }
.tk-sub { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tk-sub input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.tk-sub.is-done span { text-decoration: line-through; color: var(--muted); }
.tk-addsub { height: 36px; border-radius: 10px; border: 1px dashed var(--line-3); background: transparent; padding: 0 10px; font-size: 13.5px; outline: none; width: 100%; }
.tk-addsub:focus { border-style: solid; border-color: var(--accent); }
.tk-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-mini.danger { color: var(--error); }
.btn-mini.danger:hover { border-color: var(--error); color: var(--error); }
.tk-none { padding: 10px 12px; color: var(--dim); font-size: 13px; font-weight: 600; }
.tk-empty { text-align: center; padding: 30px 16px; border-radius: 16px; border: 1px dashed var(--line-3); color: var(--muted); font-weight: 600; }
.tk-empty div { font-size: 34px; }
.tk-empty p { margin: 6px auto 0; max-width: 380px; line-height: 1.5; }
.log-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; }
.log-row > span { color: var(--success); font-weight: 800; }
.log-row b { flex: 1; font-weight: 600; color: var(--soft); }
.log-row small { color: var(--dim); font-weight: 700; }
/* Matritsa */
.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mq { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); border-top: 3px solid var(--qc); min-height: 180px; }
.mq-h { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; margin-bottom: 4px; }
.mq-h b { color: var(--qc); font-size: 14.5px; }
.mq-h small { grid-column: 1; font-size: 12px; color: var(--muted); font-weight: 600; }
.mq-h em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--qc); }
.mq .task { padding: 8px 6px 8px 10px; }
.mq .tk-title { font-size: 14px; }
/* Kun jadvali */
.tl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.tl { position: relative; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.tl-hour { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.tl-hour span { position: absolute; left: 8px; top: 3px; font-family: 'Oswald', sans-serif; font-size: 11.5px; color: var(--dim); }
.tl-lane { position: absolute; left: 58px; right: 8px; top: 0; bottom: 0; }
.tl-block { position: absolute; display: flex; gap: 6px; align-items: flex-start; padding: 4px 6px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-left: 3px solid var(--pc); overflow: hidden; }
.tl-block.is-mit { background: color-mix(in srgb, var(--warning) 16%, var(--card)); }
.tl-block.is-past { opacity: .55; }
.tl-check { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--soft); background: transparent; color: transparent; font-size: 11px; padding: 0; }
.tl-check:hover { color: var(--text); border-color: var(--text); }
.tl-txt { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.tl-txt b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-txt small { font-size: 11px; color: var(--soft); font-weight: 700; }
.tl-now { position: absolute; left: 50px; right: 0; height: 0; border-top: 2px solid var(--error); z-index: 2; }
.tl-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--error); }
.tl-now span { position: absolute; right: 6px; top: -18px; font-size: 10.5px; font-weight: 800; color: var(--error); }
.tl-side { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; }
.tl-side h3 { margin: 0; font-size: 14px; }
.tl-side h3 small { color: var(--dim); }
.tl-un { padding: 8px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.tl-un div { display: flex; gap: 6px; }
.tl-un input, .tl-un select { flex: 1; min-width: 0; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--field); padding: 0 6px; font-size: 13px; }
/* Pomodoro */
.pomo { position: fixed; left: 18px; bottom: 18px; z-index: 8500; width: 230px; padding: 12px 14px; border-radius: 18px; background: var(--pop); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; animation: rise .3s var(--ease); }
.pomo.is-break { border-color: color-mix(in srgb, var(--success) 50%, var(--line)); }
.pomo-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; color: var(--soft); }
.pomo-x { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; width: 26px; height: 26px; border-radius: 8px; }
.pomo-x:hover { background: var(--field); color: var(--text); }
.pomo-time { font-family: 'Oswald', sans-serif; font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: 1px; }
.pomo-task { font-size: 12.5px; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pomo-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pomo-bar i { display: block; height: 100%; background: var(--accent); }
.pomo.is-break .pomo-bar i { background: var(--success); }
.pomo-btns { display: flex; gap: 6px; }
.pomo-btns .btn-mini { flex: 1; }
.pomo small { font-size: 11px; color: var(--dim); font-weight: 700; }
/* Bugun sahifasidagi vazifalar kartasi */
.td-tasks h3 small { color: var(--dim); margin-left: 4px; }
.tdt-od { font-size: 12.5px; font-weight: 800; color: var(--error); }
.tdt-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.tdt-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdt-row small { color: var(--dim); font-weight: 700; font-size: 12px; }
.tdt-check { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid var(--pc); background: transparent; padding: 0; }
.tdt-check:hover { background: color-mix(in srgb, var(--pc) 25%, transparent); }
.td-tasks .btn-mini { align-self: flex-start; }
.tabs .tab { min-width: 0; }

@media (max-width: 1000px) {
  .planner { grid-template-columns: minmax(0, 1fr); }
  .pl-side { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .pl-nav { flex: 0 0 auto; height: 36px; }
  .pl-nav b { overflow: visible; }
  .pl-sep { display: none; }
  .pl-nav.pl-add-m { display: flex; color: var(--muted); border: 1px dashed var(--line-3); }
  .tl-wrap { grid-template-columns: minmax(0, 1fr); }
  .tl-side { position: static; }
}
@media (max-width: 820px) {
  .pl-top { grid-template-columns: minmax(0, 1fr); }
  .pl-search { height: 42px; }
  .quick-hint { display: none; }
  .load { grid-template-columns: repeat(3, 1fr); }
  .load > div:not(.load-bar) { border-right: 0; padding-right: 0; }
  .load-bar { grid-column: 1 / -1; }
  .matrix { grid-template-columns: minmax(0, 1fr); }
  .pomo { left: 12px; right: auto; bottom: 12px; width: 200px; padding: 10px 12px; }
  .pomo-time { font-size: 32px; }
  .task { padding: 10px 4px 10px 10px; gap: 8px; }
  .tk-btn { flex-basis: 30px; }
  .pl-h { font-size: 19px; }
}

.pomo-btns .btn-mini { display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.pomo-btns .btn-mini svg { width: 13px; height: 13px; }

.empty-card.small { padding: 26px 18px; }

/* v5: bulut va kalendar */
.cloud-state { font-size: 12px; font-weight: 700; color: var(--dim); white-space: nowrap; }
.cloud-state[data-s="ok"] { color: var(--success); }
.cloud-state[data-s="syncing"], .cloud-state[data-s="loading"] { color: var(--info); }
.cloud-state[data-s="error"] { color: var(--error); }
.cloud-state[data-s="offline"] { color: var(--warning); }
.nz-dialog__html { margin-top: 14px; text-align: left; }
.cal-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.cal-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.cal-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cal-row small { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }
.cal-row b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-row em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-row .btn-mini { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
@media (max-width: 820px) { .tr-tools:has(.cloud-state) .save-state { display: none; } }

/* =========================================================
   v6: MAVZULAR (Sozlamalar → Ko'rinish)
   ========================================================= */
:root[data-nz-theme="amoled"] {
  --bg: #000000; --card: #0b0c0e; --card-2: #070809; --field: #111215; --line: #1b1d22; --line-2: #22252b; --line-3: #2d3038;
  --pop: #0e0f12; --glass: rgba(10,11,13,.92); --heat-none: #0d0e11; --heat-0: #16181c; --heat-base: #101114;
}
:root[data-nz-theme="light"] {
  --bg: #F3F4F7; --card: #FFFFFF; --card-2: #F8F9FB; --field: #EEF0F4; --line: #E1E4EA; --line-2: #D5D9E0; --line-3: #C2C7D0;
  --text: #15171C; --soft: #3A3F49; --muted: #5C626D; --dim: #858B96;
  --success: #17915C; --error: #D23347; --warning: #A86E00; --info: #2470CC;
  --pop: #FFFFFF; --glass: rgba(255,255,255,.92); --tint: rgba(20,30,60,.035); --hover: rgba(20,30,60,.06);
  --dot-off: #B7BCC6; --dot-nos: #DDE0E6; --heat-none: #EEF0F4; --heat-0: #E2E5EB; --heat-base: #E9ECF1;
  --overlay: rgba(20,24,32,.45); --tip-bg: #15171C; --tip-fg: #FFFFFF;
  --shadow: 0 18px 50px -22px rgba(20,30,60,.35), 0 2px 8px rgba(20,30,60,.08);
  color-scheme: light;
}
:root[data-nz-theme="light"] .btn-success { color: #fff; }
:root[data-nz-theme="light"] .btn-error { color: #fff; }
:root[data-nz-theme="light"] .btn-info { color: #fff; }
:root[data-nz-theme="light"] .nz-toast__count { color: #fff; }
body { zoom: var(--zoom); }

/* Ogohlantirishlar joyi: tepada o'rtada (asosiy) yoki pastki o'ngda */
.nz-toasts.pos-top { top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); }
.nz-toasts.pos-br { top: auto; bottom: 18px; right: 18px; left: auto; transform: none; }
.pos-top .nz-toast { animation: toastDown .42s var(--ease); }
.pos-top .nz-toast.is-leaving { animation: toastUp .3s var(--ease) forwards; }
@keyframes toastDown { from { opacity: 0; transform: translateY(-36px) scale(.96); } 60% { opacity: 1; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes toastUp { to { opacity: 0; transform: translateY(-24px) scale(.97); margin-bottom: -70px; } }
@media (max-width: 820px) {
  .nz-toasts.pos-br { bottom: 14px; right: 50%; transform: translateX(50%); }
}

/* Chiqish tugmasi */
.logout-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--soft); font-weight: 800; font-size: 14px; }
.logout-btn:hover { border-color: var(--error); color: var(--error); }
@media (max-width: 820px) { .logout-btn span { display: none; } .logout-btn { padding: 0 11px; } }

/* Sozlamalar */
.set-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.set-nav { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.set-nav a { display: flex; gap: 10px; align-items: center; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--soft); text-decoration: none; font-weight: 700; font-size: 14px; }
.set-nav a:hover { background: var(--field); color: var(--text); }
.set-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.set-card { padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); scroll-margin-top: 16px; }
.set-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.set-card > p { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; }
.set-row > div:first-child { min-width: 0; }
.set-row b { display: block; font-size: 14.5px; font-weight: 700; }
.set-row small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; line-height: 1.4; }
.set-row.danger b { color: var(--error); }
.switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 13px; background: var(--line-3); transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-2); }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; font-size: 13px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.set-sel { height: 38px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--field); font-weight: 700; font-size: 13.5px; outline: none; }
.set-sel:focus { border-color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.swatches button[aria-pressed="true"] { border-color: var(--text); }
.swatches label { position: relative; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 2px dashed var(--line-3); display: grid; place-items: center; font-size: 15px; cursor: pointer; }
.swatches label input { position: absolute; inset: -6px; width: 44px; height: 44px; opacity: 0; cursor: pointer; }
.theme-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.theme-cards button { padding: 10px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--card-2); text-align: left; font-weight: 800; font-size: 13px; color: var(--text); }
.theme-cards button[aria-pressed="true"] { border-color: var(--accent); }
.theme-cards i { display: block; height: 46px; border-radius: 9px; margin-bottom: 8px; border: 1px solid rgba(128,128,128,.25); }
.set-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.set-meta { font-size: 12.5px; color: var(--muted); font-weight: 700; }
@media (max-width: 1000px) {
  .set-wrap { grid-template-columns: minmax(0, 1fr); }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .set-nav a { flex: 0 0 auto; }
}
@media (max-width: 560px) {
  .set-row { flex-wrap: wrap; }
  .theme-cards { grid-template-columns: 1fr 1fr; gap: 6px; }
  .set-card { padding: 14px 14px; }
}

.user-menu { display: flex; align-items: center; gap: 8px; }

@media (max-width: 520px) { .date-chip { display: none; } }

/* v7: logo */
.logo-tile { display: inline-grid; place-items: center; flex: 0 0 auto; background: var(--card); border: 1px solid var(--line); box-sizing: border-box; }
.logo-tile.is-accent { background: var(--accent); border-color: transparent; }
.logo-tile svg { display: block; }
.hdr-logo { box-shadow: 0 8px 24px -14px var(--accent); }
.auth-logo { display: inline-flex; }
.auth-logo:empty { width: 56px; height: 56px; border-radius: 14px; background: var(--card); }
.logo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; padding: 4px 0 12px; }
.logo-pick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 16px; border: 2px solid transparent; background: transparent; }
.logo-pick button:hover { background: var(--field); }
.logo-pick button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.logo-pick small { font-family: 'Oswald', sans-serif; font-size: 11.5px; color: var(--muted); }
@media (max-width: 820px) { .hdr-logo { width: 42px !important; height: 42px !important; border-radius: 10px !important; } .hdr-logo svg { width: 30px; height: 30px; } }

/* v8: sozlamalar tekshiruvidan keyin */
.set-row.is-off { opacity: .55; }
.set-why { color: var(--warning) !important; }
.switch input:disabled { cursor: not-allowed; }
.nz-reduce *, .nz-reduce *::before, .nz-reduce *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

/* ===== v9: To'liq logo — Muhr + NURAZIZ + haftalik nuqtalar ===== */
.nz-lockup { display: inline-flex; align-items: center; gap: 14px; color: var(--text); }
.nz-seal { display: block; flex: 0 0 auto; }
.nz-lock-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nz-lock-name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 38px; letter-spacing: 5px; line-height: .9; }
.nz-lock-tag { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nz-dots { display: inline-flex; gap: 5px; }
.nz-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-sizing: border-box; }
.nz-dots i.now { background: none; border: 2px solid var(--accent); }
.nz-dots i.off { background: none; border: 2px solid var(--line); }
.nz-lock-motto { margin-left: 4px; font-weight: 800; font-size: 9.5px; letter-spacing: 3px; color: var(--muted); }
.auth-brand { justify-content: center; }
.nz-lockup.is-head { gap: 14px; }
.nz-lockup.is-head .nz-lock-name { font-size: 44px; letter-spacing: 6px; }
.nz-lockup.is-head .nz-lock-motto { font-size: 11px; letter-spacing: 4px; }
.nz-lockup.is-head .nz-dots i { width: 9px; height: 9px; }
.nz-lockup.is-head .nz-seal { filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent)); }
@media (max-width: 820px) {
  .nz-lockup.is-head .nz-seal { width: 52px; height: 52px; }
  .nz-lockup.is-head .nz-lock-name { font-size: 32px; letter-spacing: 4px; }
  .nz-lockup.is-head { gap: 10px; }
}
@media (max-width: 520px) { .nz-lockup.is-head .nz-lock-motto { display: none; } }
@media (max-width: 400px) {
  .nz-lockup.is-auth { flex-direction: column; gap: 10px; text-align: center; }
  .nz-lockup.is-auth .nz-lock-text { align-items: center; }
}

/* ===== v10: Boshlang'ich tanlov (Onboard) — TickTick uslubida ===== */
#screen-onboard { min-height: 100vh; }
.ob { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); background: var(--bg); }
.ob-left { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 48px 5vw;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--card-2)) 0%, var(--card-2) 55%, color-mix(in srgb, var(--info) 8%, var(--card-2)) 100%); }
.ob-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -160px; left: -120px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.ob-cap { position: relative; margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.ob-cap b { color: var(--text); letter-spacing: 2px; font-family: 'Oswald', sans-serif; }
.ob-win { position: relative; width: min(100%, 760px); aspect-ratio: 16 / 11; display: grid; grid-template-columns: 62px 34% 1fr; border-radius: 20px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(0,0,0,.75), 0 0 0 6px color-mix(in srgb, var(--text) 3%, transparent); }
.ob-rail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; background: var(--card-2); border-right: 1px solid var(--line); }
.ob-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); margin-bottom: 6px; }
.ob-ri { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); animation: obIn .35s var(--ease) both; }
.ob-side { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); min-width: 0; overflow: hidden; }
.ob-nav { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; font-size: 13px; animation: obIn .35s var(--ease) both; min-width: 0; }
.ob-nav:first-child { background: var(--hover); }
.ob-nav span { width: 20px; text-align: center; flex: 0 0 auto; }
.ob-nav b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.ob-nav em { font-style: normal; font-size: 11px; color: var(--muted); }
.ob-sep { margin: 12px 4px 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--dim); text-transform: uppercase; }
.ob-hint { margin: 4px 0; padding: 10px 12px; border-radius: 10px; background: var(--tint); font-size: 12px; line-height: 1.45; color: var(--dim); }
.ob-main { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; }
.ob-top { display: flex; align-items: center; justify-content: space-between; }
.ob-top span { width: 80px; height: 10px; border-radius: 6px; background: var(--line); }
.ob-top em { font-style: normal; color: var(--dim); letter-spacing: 4px; font-size: 13px; }
.ob-add { padding: 10px 12px; border-radius: 10px; background: var(--tint); border: 1px dashed var(--line-2); font-size: 12px; color: var(--dim); }
.ob-row { display: flex; align-items: center; gap: 10px; }
.ob-row i { width: 15px; height: 15px; border-radius: 5px; border: 2px solid var(--line-3); flex: 0 0 auto; }
.ob-row span { height: 8px; border-radius: 5px; background: var(--line); }
.ob-ws { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ob-w { padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; animation: obIn .35s var(--ease) both; }
.ob-w b { font-size: 11.5px; font-weight: 800; color: var(--soft); }
.ob-time { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 22px; line-height: 1; color: var(--accent); }
.ob-time small { font-family: 'Manrope', sans-serif; font-size: 11px; color: var(--muted); }
.ob-dots { display: flex; gap: 4px; }
.ob-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-sizing: border-box; }
.ob-dots i.h { background: none; border: 2px solid var(--accent); }
.ob-dots i.o { background: none; border: 2px solid var(--line-3); }
.ob-mx { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 44px; }
.ob-mx i { height: 12px; border-radius: 3px; background: var(--error); opacity: .8; }
.ob-mx i:nth-child(2) { background: var(--warning); } .ob-mx i:nth-child(3) { background: var(--info); } .ob-mx i:nth-child(4) { background: var(--line-3); }
.ob-empty { margin: auto; max-width: 220px; text-align: center; font-size: 13px; color: var(--dim); }
.ob-flash { animation: obIn .35s var(--ease) both, obPulse 1.1s ease .1s 1; }
@keyframes obIn { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes obPulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent); } }

.ob-panel { display: flex; flex-direction: column; padding: 28px clamp(24px, 4vw, 56px) 32px; background: var(--bg); min-height: 100vh; }
.ob-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px 6px 2px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; border-radius: 8px; }
.ob-back:hover { color: var(--text); }
.ob-back-sp { height: 32px; }
.ob-body { margin-top: 26px; animation: obIn .4s var(--ease) both; }
.ob-h { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; font-weight: 800; letter-spacing: -.2px; }
.ob-wave { display: inline-block; transform-origin: 70% 80%; animation: obWave 1.6s ease .3s 1; }
@keyframes obWave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-8deg); } 60% { transform: rotate(12deg); } 80% { transform: rotate(-4deg); } }
.ob-p { margin: 10px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 520px; }
.ob-p b { color: var(--soft); }
.ob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 14px 40px 14px 16px; text-align: left; border-radius: 16px;
  background: var(--card); border: 1.5px solid var(--line); transition: border-color .18s, background .18s, transform .12s; }
.ob-card:hover { border-color: var(--line-3); background: color-mix(in srgb, var(--card) 85%, var(--text) 4%); }
.ob-card:active { transform: scale(.98); }
.ob-card[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.ob-ic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: var(--muted); background: var(--tint); transition: .18s; }
.ob-card[aria-pressed="true"] .ob-ic { color: var(--on-accent); background: var(--accent); }
.ob-emo { font-size: 24px; width: 34px; text-align: center; flex: 0 0 auto; }
.ob-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ob-tx b { font-size: 15px; font-weight: 800; }
.ob-tx small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ob-tick { position: absolute; top: 50%; right: 14px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line-3); color: transparent; transition: .18s; }
.ob-card[aria-pressed="true"] .ob-tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ob-note { min-height: 22px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--info); }
.ob-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 12px; }
.ob-steps { display: flex; gap: 6px; margin-right: auto; }
.ob-steps i { width: 7px; height: 7px; border-radius: 4px; background: var(--line-3); transition: width .25s var(--ease), background .25s; }
.ob-steps i.on { width: 22px; background: var(--accent); }
.ob-skip { border: 0; background: none; padding: 10px 12px; color: var(--muted); font-weight: 700; font-size: 14px; border-radius: 10px; }
.ob-skip:hover { color: var(--text); background: var(--hover); }
.ob-next { min-width: 170px; }
.ob-next:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.ob-overlay { position: fixed; inset: 0; z-index: 900; overflow: auto; background: var(--bg); animation: obIn .25s var(--ease) both; }

/* Sozlamalar → Funksiyalar */
.set-fi { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; vertical-align: -7px; border-radius: 8px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.set-fi svg { width: 16px; height: 16px; }

/* Teskari sanoq kartasi */
.cd-card h3 { display: flex; align-items: center; gap: 8px; }
.cd-add { margin-left: auto; width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--tint); color: var(--accent); font-size: 18px; line-height: 1; }
.cd-add:hover { background: var(--hover); }
.cd-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 8px; border-radius: 12px; text-align: left; background: var(--card-2); border: 1px solid var(--line); }
.cd-row:hover { border-color: var(--line-3); }
.cd-emo { font-size: 22px; }
.cd-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cd-tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-tx small { font-size: 11.5px; color: var(--muted); }
.cd-n { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.cd-n b { font-family: 'Oswald', sans-serif; font-size: 24px; line-height: 1; color: var(--text); }
.cd-n small { font-size: 10.5px; color: var(--muted); }
.cd-row.is-near .cd-n b, .cd-row.is-today .cd-n b { color: var(--accent); }
.cd-row.is-today { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card-2)); }
.cd-row.is-past { opacity: .55; }
.cd-card.is-big .cd-row { padding: 14px 16px; }
.cd-card.is-big .cd-n b { font-size: 30px; }
.td-hero.no-ring { grid-template-columns: 1fr; }

@media (max-width: 960px) {
  .ob { grid-template-columns: 1fr; }
  .ob-left { padding: 22px 16px 8px; gap: 10px; background: var(--bg); }
  .ob-glow, .ob-cap { display: none; }
  .ob-win { aspect-ratio: auto; height: 230px; grid-template-columns: 48px 42% 1fr; border-radius: 16px; }
  .ob-ri { width: 30px; height: 30px; } .ob-ri svg { width: 17px; height: 17px; }
  .ob-logo { width: 34px; height: 34px; }
  .ob-panel { min-height: 0; padding: 8px 16px 20px; }
  .ob-body { margin-top: 10px; }
  .ob-foot { position: sticky; bottom: 0; padding: 14px 0 6px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
}
@media (max-width: 520px) {
  .ob-win { grid-template-columns: 44px 1fr; height: 190px; }
  .ob-main { display: none; }
  .ob-grid { gap: 9px; }
  .ob-card { min-height: 64px; padding: 12px 34px 12px 12px; gap: 10px; border-radius: 14px; }
  .ob-ic { width: 32px; height: 32px; } .ob-ic svg { width: 17px; height: 17px; }
  .ob-tx b { font-size: 13.5px; } .ob-tx small { display: none; }
  .ob-tick { right: 10px; width: 18px; height: 18px; margin-top: -9px; }
  .ob-next { min-width: 0; flex: 1; }
  .ob-skip { padding: 10px 6px; }
}
.nz-reduce .ob-ri, .nz-reduce .ob-nav, .nz-reduce .ob-w, .nz-reduce .ob-body, .nz-reduce .ob-wave, .nz-reduce .ob-flash { animation: none !important; }

/* ===== v11: Bajarilgan vazifalar pastga tushadi + "Vazifa bajarildi ↶" ===== */
.tk-donegrp { margin-top: 18px; }
.tk-donehead { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 6px; border: 0; background: none; text-align: left; color: var(--text); border-radius: 10px; }
.tk-donehead:hover { background: var(--hover); }
.tk-donehead svg { color: var(--muted); transition: transform .2s var(--ease); }
.tk-donegrp.is-open .tk-donehead svg { transform: rotate(90deg); }
.tk-donehead b { font-size: 14px; font-weight: 800; }
.tk-donehead em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 700; }
.tk-donelist { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.tk-donegrp .task { opacity: .62; background: var(--card-2); }
.tk-donegrp .task:hover { opacity: .85; }

/* Belgilash animatsiyasi: belgi to'ladi, chiziladi, keyin qator yig'iladi */
.task.is-completing, .tdt-row.is-completing { animation: tkDone .43s var(--ease) forwards; overflow: hidden; pointer-events: none; }
.task.is-completing .tk-check, .tdt-row.is-completing .tdt-check { background: var(--success); border-color: var(--success); color: #0b1f16; animation: tkTick .25s var(--ease); }
.task.is-completing .tk-title { text-decoration: line-through; color: var(--muted); }
.tdt-row.is-completing span { text-decoration: line-through; color: var(--muted); }
@keyframes tkTick { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes tkDone {
  0%, 45% { opacity: 1; transform: none; max-height: 160px; }
  100% { opacity: 0; transform: translateY(10px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; border-width: 0; }
}

.nz-snack { position: fixed; left: 50%; bottom: 28px; z-index: 1200; display: flex; align-items: center; gap: 18px; padding: 12px 12px 12px 20px; border-radius: 12px;
  background: var(--pop); border: 1px solid var(--line-3); color: var(--text); font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .28s var(--ease), opacity .28s; }
.nz-snack.is-in { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.nz-snack.is-out { transform: translate(-50%, 14px); opacity: 0; }
.nz-snack-undo { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--warning); }
.nz-snack-undo:hover { background: var(--hover); }
@media (max-width: 520px) { .nz-snack { bottom: 18px; max-width: calc(100vw - 32px); } }
.nz-reduce .nz-snack { transition: none; }

/* ===== v12: 🎯 Eyzenxauer matritsasi — alohida bo'lim ===== */
.mx { display: flex; flex-direction: column; gap: 14px; }
.mx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.mx-head .pl-h { margin: 0; }
.mx-sub { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.mx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mx-tplbtn { display: inline-flex; align-items: center; gap: 6px; }
.mx-tplbtn em { font-style: normal; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--hover); font-size: 11px; }
.mx-tplbtn.on { border-color: var(--accent); color: var(--accent); }

.mx-intro { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--info) 40%, var(--line)); background: color-mix(in srgb, var(--info) 8%, var(--card)); }
.mx-intro p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--soft); }
.mx-intro-x { flex: 0 0 auto; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--card); font-weight: 800; font-size: 13px; }

.mx-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mx-sumq { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-align: left; min-width: 0; }
.mx-sumq:hover { border-color: var(--qc); }
.mx-sumq i { width: 10px; height: 10px; border-radius: 3px; background: var(--qc); flex: 0 0 auto; }
.mx-sumq span { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-sumq b { font-family: 'Oswald', sans-serif; font-size: 20px; line-height: 1; color: var(--qc); }

.mx-quick { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid color-mix(in srgb, var(--qc) 55%, var(--line)); transition: border-color .2s; }
.mx-quick:focus-within { border-color: var(--qc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--qc) 18%, transparent); }
.mx-qplus { color: var(--qc); font-size: 20px; font-weight: 700; }
.mx-quick input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 0; font-size: 15px; outline: none; }
.mx-qpick { display: flex; gap: 6px; }
.mx-dot { width: 32px; height: 32px; border-radius: 9px; border: 2px solid transparent; background: color-mix(in srgb, var(--qc) 80%, transparent); display: grid; place-items: center; padding: 0; transition: transform .12s, border-color .15s; }
.mx-dot span { font-size: 12px; font-weight: 800; color: #fff; opacity: .9; }
.mx-dot:hover { transform: translateY(-1px); }
.mx-dot.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--qc) 35%, transparent); }
.mx-qlabel { display: flex; align-items: center; gap: 8px; margin-top: -6px; padding-left: 4px; font-size: 12.5px; color: var(--muted); }
.mx-qlabel i { width: 9px; height: 9px; border-radius: 3px; }
.mx-qlabel b { color: var(--text); }

.mx-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.mx-wrap.has-panel { grid-template-columns: minmax(0, 1fr) 340px; }

/* Ro'yxat ko'rinishi (rasmdagidek: rangli guruhlar, o'ngda qavs) */
.mx-stack { display: flex; flex-direction: column; gap: 14px; }
.mx-q { position: relative; padding: 10px 26px 12px 12px; border-radius: 16px; background: color-mix(in srgb, var(--qc) 6%, var(--card-2)); border: 1px solid color-mix(in srgb, var(--qc) 22%, var(--line)); transition: background .2s, border-color .2s; }
.mx-q::after { content: ''; position: absolute; top: 14px; bottom: 14px; right: 8px; width: 9px; border: 2.5px solid var(--qc); border-left: 0; border-radius: 0 10px 10px 0; opacity: .85; }
.mx-q.is-over { background: color-mix(in srgb, var(--qc) 18%, var(--card-2)); border-color: var(--qc); }
.mx-q.is-ping { animation: mxPing 1s ease 1; }
@keyframes mxPing { 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--qc) 45%, transparent); } }
.mx-qh { display: flex; align-items: center; gap: 10px; padding: 2px 2px 10px; }
.mx-qn { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--qc); color: #fff; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.mx-qt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mx-qt b { font-size: 15px; font-weight: 800; }
.mx-qt small { font-size: 12px; color: var(--muted); font-weight: 600; }
.mx-qh em { font-style: normal; font-weight: 800; font-size: 14px; color: var(--qc); }
.mx-qh em i { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.mx-list { display: flex; flex-direction: column; gap: 7px; }
.mx-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--qc) 30%, var(--card)); border: 1px solid color-mix(in srgb, var(--qc) 55%, transparent); cursor: grab; transition: transform .15s, opacity .2s, background .2s; }
.mx-item:hover { background: color-mix(in srgb, var(--qc) 38%, var(--card)); }
.mx-item.is-drag { opacity: .45; transform: scale(.98); }
.mx-item.is-flash { animation: cardPop .45s var(--ease), mxPing 1.1s ease .1s 1; }
.mx-check { flex: 0 0 22px; height: 22px; margin-top: 1px; padding: 0; border-radius: 6px; border: 2px solid color-mix(in srgb, var(--text) 55%, var(--qc)); background: color-mix(in srgb, #000 18%, transparent); color: transparent; display: grid; place-items: center; transition: background .15s, color .15s; }
.mx-check:hover { color: color-mix(in srgb, var(--text) 60%, transparent); }
.mx-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.mx-title b { font-size: 14.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.mx-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--text) 72%, transparent); }
.mx-meta .is-od { color: #FFB4B4; }
.mx-more { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: color-mix(in srgb, var(--text) 70%, transparent); font-size: 16px; }
.mx-more:hover { background: color-mix(in srgb, #000 20%, transparent); }
.mx-item.is-done { background: var(--card); border-color: var(--line); opacity: .6; }
.mx-item.is-done .mx-check { background: var(--qc); border-color: var(--qc); color: #fff; }
.mx-item.is-done .mx-title b { text-decoration: line-through; color: var(--muted); }
.mx-item.is-completing { animation: tkDone .42s var(--ease) forwards; overflow: hidden; pointer-events: none; }
.mx-item.is-completing .mx-check { background: var(--qc); border-color: #fff; color: #fff; animation: tkTick .25s var(--ease); }
.mx-item.is-completing .mx-title b { text-decoration: line-through; }
.mx-empty { padding: 14px 12px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--qc) 40%, var(--line)); color: var(--soft); font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 3px; }
.mx-empty small { color: var(--dim); font-weight: 600; font-size: 11.5px; }
.mx-addq { width: 100%; margin-top: 8px; padding: 9px 12px; border-radius: 10px; border: 1px dashed transparent; background: none; font-size: 13px; color: var(--text); outline: none; }
.mx-addq::placeholder { color: var(--dim); }
.mx-addq:hover { border-color: var(--line-2); }
.mx-addq:focus { border-style: solid; border-color: var(--qc); background: var(--card); }

/* 2×2 ko'rinishi */
.mx-grid { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: auto; gap: 10px; }
.mx-ax { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.mx-ax-t { text-align: center; padding: 2px 0; }
.mx-ax-l { display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); }
.mx-grid .mx-q { min-height: 240px; padding-right: 12px; display: flex; flex-direction: column; }
.mx-grid .mx-q::after { display: none; }
.mx-grid .mx-q { border-top: 4px solid var(--qc); }
.mx-grid .mx-list { flex: 1; }

/* Shablonlar paneli */
.mx-backdrop { display: none; }
.mx-panel { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 32px); padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.mx-ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mx-ph b { font-size: 15px; font-weight: 800; }
.mx-ph small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.mx-px { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--tint); font-size: 18px; color: var(--muted); flex: 0 0 auto; }
.mx-px:hover { background: var(--hover); color: var(--text); }
.mx-steps { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mx-steps li { flex: 1; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 10px; background: var(--tint); font-size: 12px; font-weight: 700; color: var(--soft); }
.mx-steps b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 11px; flex: 0 0 auto; }
.mx-ps { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); font-size: 13px; outline: none; }
.mx-ps:focus { border-color: var(--accent); }
.mx-pbody { overflow: auto; margin: 0 -6px; padding: 0 6px 4px; display: flex; flex-direction: column; gap: 12px; }
.mx-pg { display: flex; flex-direction: column; gap: 5px; }
.mx-pgh { display: flex; justify-content: space-between; padding: 0 2px; font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .4px; }
.mx-tpl { border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); transition: border-color .15s; }
.mx-tpl.is-sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.mx-tpl.is-in { border-left: 3px solid var(--qc); }
.mx-tpl-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; text-align: left; border-radius: 12px; cursor: pointer; }
.mx-tpl-row:hover { background: var(--hover); }
.mx-tpl-emo { font-size: 17px; flex: 0 0 auto; }
.mx-tpl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mx-tpl-tx b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-tpl-tx small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-tpl-plus { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-weight: 800; flex: 0 0 auto; }
.mx-tpl-in { flex: 0 0 auto; font-size: 11.5px; font-weight: 800; color: var(--qc); }
.mx-tpl-pick { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 7px; animation: obIn .25s var(--ease) both; }
.mx-tpl-pick > small { font-size: 12px; color: var(--muted); }
.mx-tpl-pick > small b { color: var(--text); }
.mx-tpl-qs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mx-tq { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 9px; border-radius: 10px; text-align: left; border: 1.5px solid color-mix(in srgb, var(--qc) 45%, transparent); background: color-mix(in srgb, var(--qc) 16%, var(--card)); transition: background .15s, transform .1s; }
.mx-tq:hover { background: color-mix(in srgb, var(--qc) 30%, var(--card)); }
.mx-tq:active { transform: scale(.97); }
.mx-tq.on { border-color: var(--qc); background: color-mix(in srgb, var(--qc) 34%, var(--card)); }
.mx-tq i { width: 12px; height: 12px; margin-top: 2px; border-radius: 4px; background: var(--qc); flex: 0 0 auto; }
.mx-tq span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mx-tq b { font-size: 12.5px; font-weight: 800; }
.mx-tq small { font-size: 10.5px; color: var(--soft); line-height: 1.3; }
.mx-tq em { position: absolute; top: -7px; right: 6px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .3px; }
.mx-pempty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 12px; background: var(--tint); font-size: 13px; line-height: 1.55; color: var(--soft); }

/* Bugun sahifasidagi "Hozir qiling" kartasi */
.mx-today h3 { color: var(--qc) !important; }
.mx-trow .tdt-check { border-radius: 6px; }

/* Radio maydon (dialog) */
.nz-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nz-radio { position: relative; cursor: pointer; }
.nz-radio input { position: absolute; opacity: 0; pointer-events: none; }
.nz-radio span { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 10px 30px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--field); transition: .15s; }
.nz-radio span::before { content: ''; position: absolute; left: 10px; top: 13px; width: 12px; height: 12px; border-radius: 4px; background: var(--rc); }
.nz-radio b { font-size: 13px; }
.nz-radio small { font-size: 11px; color: var(--muted); }
.nz-radio input:checked + span { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 18%, var(--field)); }
.nz-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1099px) {
  .mx-wrap.has-panel { grid-template-columns: minmax(0, 1fr); }
  .mx-backdrop { display: block; position: fixed; inset: 0; z-index: 940; background: var(--overlay); animation: obIn .2s ease both; }
  .mx-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 950; max-height: 80vh; border-radius: 20px 20px 0 0; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); box-shadow: var(--shadow); animation: mxUp .28s var(--ease) both; }
  @keyframes mxUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 760px) {
  .mx-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-grid { grid-template-columns: minmax(0, 1fr); }
  .mx-ax, .mx-ax-c { display: none; }
  .mx-grid .mx-q { min-height: 0; }
  .mx-head { align-items: flex-start; }
  .mx-tools { width: 100%; }
  .mx-tplbtn { margin-left: auto; }
  .mx-intro { flex-direction: column; align-items: stretch; }
}
@media (max-width: 460px) {
  .mx-quick { flex-wrap: wrap; padding: 6px 8px 8px 12px; }
  .mx-quick input { flex-basis: calc(100% - 30px); }
  .mx-qpick { width: 100%; justify-content: space-between; }
  .mx-dot { flex: 1; height: 30px; }
  .mx-tpl-qs, .nz-radios { grid-template-columns: 1fr; }
}
.field label.nz-radio, .nz-radio b, .nz-radio small { text-transform: none; letter-spacing: normal; }
.nz-radio b { font-weight: 800; color: var(--text); }
.mx-tpl.is-in:not(.is-sel) { opacity: .72; }
.mx-tpl.is-in:not(.is-sel):hover { opacity: 1; }

/* ===== v13: Matritsa — 4 burchak (TickTick uslubida, asosiy ko'rinish) ===== */
.mx-qadd { width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--qc); font-size: 20px; line-height: 1; font-weight: 600; flex: 0 0 auto; }
.mx-qadd:hover { background: color-mix(in srgb, var(--qc) 16%, transparent); }
.mx-stack .mx-qadd { display: none; }
.mx-grid { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr); gap: 10px; height: clamp(520px, calc(100vh - 250px), 900px); }
.mx-grid .mx-q { min-height: 0; height: 100%; padding: 10px 10px 8px; border-radius: 16px; border-top-width: 1px; background: var(--card); border-color: var(--line); }
.mx-grid .mx-q::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 16px 16px 0 0; background: var(--qc); }
.mx-grid .mx-q.is-over { background: color-mix(in srgb, var(--qc) 10%, var(--card)); border-color: var(--qc); }
.mx-grid .mx-qh { padding: 2px 0 8px; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mx-grid .mx-qn { width: 22px; height: 22px; border-radius: 50%; font-size: 11.5px; }
.mx-grid .mx-qt { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mx-grid .mx-qt b { font-size: 14px; color: var(--qc); }
.mx-grid .mx-qt small { font-size: 11.5px; }
.mx-grid .mx-qh em { font-size: 12.5px; color: var(--muted); }
.mx-grid .mx-list { flex: 1; min-height: 0; overflow-y: auto; gap: 2px; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.mx-cell { align-items: center; gap: 9px; padding: 7px 6px; border-radius: 9px; background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.mx-cell:hover { background: var(--hover); }
.mx-cell .mx-check { flex-basis: 17px; height: 17px; margin: 0; border-radius: 5px; border: 1.8px solid var(--qc); background: none; }
.mx-cell .mx-check svg { width: 12px; height: 12px; }
.mx-cell .mx-check:hover { color: var(--qc); background: color-mix(in srgb, var(--qc) 14%, transparent); }
.mx-cell .mx-title { flex-direction: row; align-items: center; gap: 6px; }
.mx-cell .mx-title b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mx-ni { font-style: normal; font-size: 11px; opacity: .75; flex: 0 0 auto; }
.mx-when { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--info); white-space: nowrap; }
.mx-when.is-od { color: var(--error); }
.mx-cell.is-done { background: none; border-color: color-mix(in srgb, var(--line) 70%, transparent); opacity: .5; }
.mx-cell.is-done .mx-check { background: var(--qc); color: #fff; }
.mx-cell.is-flash { animation: cardPop .45s var(--ease); background: color-mix(in srgb, var(--qc) 14%, transparent); }
.mx-cempty { margin: auto; padding: 18px 10px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mx-cempty span { font-size: 22px; opacity: .8; }
.mx-grid .mx-list:has(.mx-cempty) { display: flex; }
.mx-grid .mx-addq { margin-top: 4px; padding: 7px 8px; font-size: 12.5px; }
.mx-grid .mx-ax-l b { font-weight: 800; }

@media (max-width: 760px) {
  .mx-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; height: clamp(440px, calc(100vh - 200px), 760px); }
  .mx-grid .mx-q { min-height: 0; padding: 8px 7px 6px; border-radius: 14px; }
  .mx-grid .mx-qt small { display: none; }
  .mx-grid .mx-qt b { font-size: 12.5px; }
  .mx-grid .mx-qn { display: none; }
  .mx-grid .mx-qadd { width: 24px; height: 24px; font-size: 18px; }
  .mx-cell { padding: 6px 2px; gap: 7px; }
  .mx-cell .mx-title b { font-size: 12.5px; }
  .mx-when { font-size: 10.5px; }
  .mx-grid .mx-addq { font-size: 11.5px; padding: 6px; }
  .mx-cempty { font-size: 11px; padding: 10px 4px; }
}
@media (max-width: 760px) {
  .mx-cell { align-items: flex-start; }
  .mx-cell .mx-check { margin-top: 1px; }
  .mx-cell .mx-title b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .mx-when { margin-top: 2px; }
}

/* ===== v14: Matritsada sudrab o'tkazish (sichqoncha + barmoq) ===== */
.mx-item, .mx-tpl-row { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mx-item.is-drag, .mx-tpl-row.is-drag { opacity: .3; }
.mx-ghost { position: fixed !important; z-index: 2000; pointer-events: none; margin: 0 !important; opacity: .97 !important;
  background: var(--pop) !important; border: 1px solid var(--line-3) !important; border-radius: 12px !important;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), 0 0 0 1px color-mix(in srgb, var(--qc, var(--accent)) 50%, transparent) !important; transition: none !important; animation: none !important; }
.mx-ghost.mx-tpl-row { width: auto; }
body.mx-dragging, body.mx-dragging * { cursor: grabbing !important; }
body.mx-dragging .mx-panel, body.mx-dragging .mx-backdrop { transition: opacity .15s; }
@media (max-width: 1099px) { body.mx-dragging .mx-panel, body.mx-dragging .mx-backdrop { opacity: 0; pointer-events: none; } }
.mx-q.is-over { outline: 2px solid var(--qc); outline-offset: -1px; }
.mx-grid .mx-q.is-over { border-color: var(--qc); box-shadow: 0 0 0 1px var(--qc); outline: 0; }
.mx-dropline { height: 3px; margin: 2px 4px; border-radius: 2px; background: var(--qc); box-shadow: 0 0 10px color-mix(in srgb, var(--qc) 60%, transparent); flex: 0 0 auto; }
.mx-q.is-over .mx-cempty { display: none; }
.mx-item { cursor: grab; }

/* ===== v15: 📅 Kalendar (TickTick uslubida) ===== */
.cal { display: flex; flex-direction: column; gap: 12px; position: relative; padding-bottom: 70px; }
.cal-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-arw { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); font-size: 20px; line-height: 1; color: var(--soft); }
.cal-arw:hover { background: var(--hover); color: var(--text); }
.cal-title { margin: 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; }
.cal-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-tools .btn-mini.on { border-color: var(--accent); color: var(--accent); }
.cal-tools em { font-style: normal; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--hover); font-size: 11px; }
.cal-optw { position: relative; }
.cal-opts { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(360px, 90vw); max-height: 70vh; overflow: auto; padding: 14px; border-radius: 16px; background: var(--pop); border: 1px solid var(--line-3); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; animation: obIn .18s var(--ease) both; }
.cal-orow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cal-orow > b { font-size: 13px; }
.cal-orow.is-col { flex-direction: column; align-items: stretch; }
.cal-orow .seg button { padding: 6px 10px; font-size: 12px; }
.cal-osw { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.cal-lc { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.cal-lc > div { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cal-sw { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; padding: 0; }
.cal-sw.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--pop) inset; }

.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.cal-wrap.has-panel { grid-template-columns: minmax(0, 1fr) 290px; }
.cal-body { min-width: 0; }

/* Oy / ko'p haftalik */
.cal-month { border-radius: 16px; border: 1px solid var(--line); background: var(--card-2); overflow: hidden; }
.cal-whs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-wh { padding: 9px 0; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cal-wh.is-we { color: color-mix(in srgb, var(--accent) 75%, var(--muted)); }
.cal-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); height: var(--mh); }
.cal-cell { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 4px 4px 2px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .15s; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.is-out { background: color-mix(in srgb, var(--bg) 55%, transparent); }
.cal-cell.is-out .cal-dn button { color: var(--dim); }
.cal-cell.cal-over { background: color-mix(in srgb, var(--accent) 12%, var(--card-2)); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-dn { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 3px; }
.cal-dn button { min-width: 26px; height: 26px; padding: 0 6px; border: 0; border-radius: 999px; background: none; font-size: 13.5px; font-weight: 800; color: var(--soft); }
.cal-dn button:hover { background: var(--hover); }
.cal-dn button b { font-weight: 900; }
.cal-dn small { font-size: 10.5px; font-weight: 700; color: var(--dim); }
.cal-cell.is-today .cal-dn button { background: var(--accent); color: var(--on-accent); }
.cal-evs { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.cal-ev { display: flex; align-items: center; gap: 5px; min-height: 21px; padding: 0 6px 0 4px; border-radius: 5px; background: color-mix(in srgb, var(--ec) 40%, var(--card)); color: var(--text); cursor: grab; flex: 0 0 auto; }
.cal-ev:hover { background: color-mix(in srgb, var(--ec) 55%, var(--card)); }
.cal-ev.is-done { background: color-mix(in srgb, var(--ec) 16%, var(--card-2)); opacity: .62; }
.cal-ev.is-done .cal-et span { text-decoration: line-through; color: var(--muted); }
.cal-ev.is-virtual { background: color-mix(in srgb, var(--ec) 18%, transparent); border: 1px dashed color-mix(in srgb, var(--ec) 60%, transparent); cursor: pointer; }
.cal-ev.is-od { box-shadow: inset 2px 0 0 var(--error); }
.cal-ev.is-cd { background: color-mix(in srgb, var(--ec) 22%, var(--card)); border-left: 3px solid var(--ec); cursor: default; }
.cal-cdi { font-size: 11px; }
.cal-ev.is-flash, .cal-blk.is-flash { animation: cardPop .45s var(--ease); }
.cal-ck { flex: 0 0 13px; width: 13px; height: 13px; padding: 0; border-radius: 3px; border: 1.5px solid color-mix(in srgb, var(--text) 70%, transparent); background: none; position: relative; }
.cal-ck:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 25%, transparent); }
.cal-ck:disabled { opacity: .4; cursor: default; }
.cal-ck[aria-pressed="true"] { background: var(--ec); border-color: var(--ec); }
.cal-ck[aria-pressed="true"]::after { content: ''; position: absolute; left: 3px; top: 0; width: 3px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.cal-et { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; text-align: left; font-size: 12.5px; font-weight: 600; cursor: inherit; }
.cal-et span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-et em { flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--text) 70%, transparent); }
.cal-more { align-self: flex-start; padding: 1px 6px; border: 0; border-radius: 5px; background: none; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.cal-more:hover { background: var(--hover); color: var(--text); }
.cal-fill { flex: 1; min-height: 14px; width: 100%; padding: 0; border: 0; border-radius: 6px; background: none; color: transparent; display: flex; align-items: center; justify-content: center; }
.cal-fill span { font-size: 16px; font-weight: 700; }
.cal-cell:hover .cal-fill, .cal-ad:hover .cal-fill { color: var(--dim); }
.cal-fill:hover { background: var(--hover); color: var(--accent) !important; }
.cal-qadd { width: 100%; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--accent); background: var(--field); font-size: 12.5px; outline: none; flex: 0 0 auto; }

/* Vaqt jadvali: hafta / ko'p kunlik / kun */
.cal-tg { border-radius: 16px; border: 1px solid var(--line); background: var(--card-2); overflow: hidden; }
.cal-thead, .cal-adrow { display: grid; grid-template-columns: 56px repeat(var(--n), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-tz { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; font-weight: 700; color: var(--dim); line-height: 1.2; }
.cal-th { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; border: 0; border-left: 1px solid var(--line); background: none; }
.cal-th small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cal-th b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; font-weight: 800; }
.cal-th.is-we small { color: color-mix(in srgb, var(--accent) 75%, var(--muted)); }
.cal-th.is-today b { background: var(--accent); color: var(--on-accent); }
.cal-th:hover b { box-shadow: 0 0 0 2px var(--line-3); }
.cal-ad { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 34px; max-height: 120px; overflow: auto; padding: 4px; border-left: 1px solid var(--line); }
.cal-ad .cal-fill { min-height: 10px; }
.cal-ad.cal-over { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-tbody { display: grid; grid-template-columns: 56px minmax(0, 1fr); height: max(420px, calc(100vh - 330px)); overflow-y: auto; position: relative; scrollbar-width: thin; }
.cal-hours { display: flex; flex-direction: column; }
.cal-hl { height: var(--hour); position: relative; }
.cal-hl span { position: absolute; top: -7px; right: 8px; font-size: 10.5px; font-weight: 700; color: var(--dim); }
.cal-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); height: calc(var(--hour) * 24);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px);
  background-size: 100% var(--hour), 100% calc(var(--hour) / 2); }
.cal-col { position: relative; border-left: 1px solid var(--line); cursor: cell; }
.cal-col.is-today { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cal-col.is-past { background: color-mix(in srgb, var(--bg) 30%, transparent); }
.cal-col.cal-over { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cal-blk { position: absolute; z-index: 2; display: flex; align-items: flex-start; gap: 6px; padding: 4px 6px; border-radius: 7px; overflow: hidden;
  background: color-mix(in srgb, var(--ec) 45%, var(--card)); border-left: 3px solid var(--ec); color: var(--text); cursor: grab; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.cal-blk:hover { background: color-mix(in srgb, var(--ec) 60%, var(--card)); z-index: 3; }
.cal-blk.is-done { background: color-mix(in srgb, var(--ec) 18%, var(--card-2)); opacity: .65; }
.cal-blk.is-done b { text-decoration: line-through; }
.cal-blk.is-virtual { background: color-mix(in srgb, var(--ec) 20%, var(--card-2)); border: 1px dashed var(--ec); border-left-width: 3px; cursor: pointer; }
.cal-blk .cal-ck { margin-top: 2px; }
.cal-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 0; border: 0; background: none; text-align: left; cursor: inherit; }
.cal-bt b { font-size: 12.5px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cal-bt small { font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--text) 72%, transparent); }
.cal-blk.is-short { align-items: center; padding-top: 1px; padding-bottom: 1px; }
.cal-blk.is-short .cal-bt { flex-direction: row; gap: 6px; align-items: center; }
.cal-blk.is-short .cal-bt b { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
.cal-rz { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.cal-rz::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: color-mix(in srgb, var(--text) 50%, transparent); opacity: 0; transition: opacity .15s; }
.cal-blk:hover .cal-rz::after { opacity: 1; }
.cal-now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--error); z-index: 4; pointer-events: none; }
.cal-now i { position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--error); }
.cal-sel { position: absolute; left: 2px; right: 2px; z-index: 5; border-radius: 7px; background: color-mix(in srgb, var(--accent) 30%, transparent); border: 1.5px solid var(--accent); font-size: 11.5px; font-weight: 800; padding: 3px 6px; color: var(--text); pointer-events: none; }
.cal-ghost { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; padding: 7px 10px; border-radius: 9px; background: color-mix(in srgb, var(--ec) 55%, var(--pop)); border-left: 3px solid var(--ec); box-shadow: 0 16px 36px -10px rgba(0,0,0,.7); display: flex; flex-direction: column; gap: 2px; }
.cal-ghost b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ghost small { font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--text) 80%, transparent); }
.cal-dragging { opacity: .35; }
body.cal-busy, body.cal-busy * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.cal .cal-ev, .cal .cal-blk, .cal-un, .cal-ar { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Yil */
.cal-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cal-ym { padding: 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.cal-ymh { border: 0; background: none; padding: 0 0 8px; font-weight: 800; font-size: 14px; color: var(--accent); }
.cal-ywh, .cal-ygrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-ywh span { font-size: 10px; font-weight: 800; color: var(--dim); }
.cal-yd { aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--soft);
  background: color-mix(in srgb, var(--accent) calc(var(--lv, 0) * 14%), transparent); }
.cal-yd.is-out { background: none; }
.cal-yd:hover { box-shadow: inset 0 0 0 1.5px var(--line-3); }
.cal-yd.is-today { background: var(--accent); color: var(--on-accent); }
.cal-yd.has-cd { box-shadow: inset 0 -2px 0 #E86AA6; }

/* Kun tartibi */
.cal-agenda { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.cal-ag { padding: 10px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.cal-ag.is-today { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.cal-ag.is-od { border-color: color-mix(in srgb, var(--error) 50%, var(--line)); }
.cal-ag.cal-over { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-ag h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.cal-ag h3 button { border: 0; background: none; padding: 0; font-weight: 800; font-size: 14px; }
.cal-ag h3 span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cal-agadd { margin-left: auto; width: 26px; height: 26px; border-radius: 8px !important; color: var(--accent); font-size: 18px !important; }
.cal-agadd:hover { background: var(--hover) !important; }
.cal-ar { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--line); }
.cal-ar:first-of-type { border-top: 0; }
.cal-ar .cal-ck { width: 16px; height: 16px; flex-basis: 16px; border-color: var(--ec); }
.cal-ar[data-drag] { cursor: grab; }
.cal-at { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 0; border: 0; background: none; text-align: left; }
.cal-at b { font-size: 14px; font-weight: 700; }
.cal-at small { font-size: 11.5px; color: var(--muted); }
.cal-ar em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ec); white-space: nowrap; }
.cal-ar.is-done { opacity: .55; } .cal-ar.is-done .cal-at b { text-decoration: line-through; }
.cal-adot { width: 10px; height: 10px; border-radius: 3px; background: var(--ec); }
.cal-ar.is-cd b { flex: 1; font-size: 13.5px; }
.cal-agnone { font-size: 12.5px; color: var(--dim); padding: 4px 6px; }
.cal-agmore { align-self: center; }

/* Rejalashtirilmagan paneli */
.cal-panel { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 32px); padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.cal-ph { display: flex; justify-content: space-between; gap: 10px; }
.cal-ph b { font-size: 14.5px; font-weight: 800; }
.cal-ph small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.cal-pb { overflow: auto; display: flex; flex-direction: column; gap: 12px; margin: 0 -4px; padding: 0 4px; }
.cal-pg { display: flex; flex-direction: column; gap: 4px; }
.cal-pgh { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--soft); }
.cal-pgh i { width: 9px; height: 9px; border-radius: 3px; }
.cal-pgh small { margin-left: auto; color: var(--dim); }
.cal-un { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 9px; background: color-mix(in srgb, var(--ec) 22%, var(--card-2)); border-left: 3px solid var(--ec); cursor: grab; }
.cal-un:hover { background: color-mix(in srgb, var(--ec) 34%, var(--card-2)); }

/* Pastdagi ko'rinishlar paneli (rasmdagidek) */
.cal-views { position: sticky; bottom: 14px; z-index: 40; align-self: center; display: flex; gap: 4px; padding: 6px; margin-top: -58px; border-radius: 999px; background: var(--pop); border: 1px solid var(--line-3); box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cal-views::-webkit-scrollbar { display: none; }
.cal-views button { flex: 0 0 auto; padding: 9px 16px; border: 0; border-radius: 999px; background: none; font-weight: 800; font-size: 14px; color: var(--soft); white-space: nowrap; }
.cal-views button:hover { color: var(--text); background: var(--hover); }
.cal-views button[aria-pressed="true"] { background: var(--line-2); color: var(--text); }

@media (max-width: 1099px) {
  .cal-wrap.has-panel { grid-template-columns: minmax(0, 1fr); }
  .cal-panel { position: static; max-height: 360px; order: -1; }
  .cal-year { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cal-title { font-size: 17px; margin: 0 2px; }
  .cal-year { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cal-ym { padding: 8px; }
  .cal-mgrid { height: auto; grid-template-rows: repeat(var(--rows), minmax(86px, auto)); }
  .cal-cell { padding: 2px 1px; }
  .cal-dn button { min-width: 22px; height: 22px; font-size: 12px; padding: 0 4px; }
  .cal-dn small { display: none; }
  .cal-ev { min-height: 17px; padding: 0 3px; gap: 3px; border-radius: 4px; }
  .cal-ev .cal-ck { display: none; }
  .cal-et { font-size: 10.5px; gap: 2px; }
  .cal-et em { display: none; }
  .cal-wh { font-size: 11px; padding: 7px 0; }
  .cal-thead, .cal-adrow { grid-template-columns: 40px repeat(var(--n), minmax(0, 1fr)); }
  .cal-tbody { grid-template-columns: 40px minmax(0, 1fr); height: max(380px, calc(100vh - 300px)); }
  .cal-hl span { right: 4px; font-size: 9.5px; }
  .cal-th b { width: 28px; height: 28px; font-size: 15px; }
  .cal-blk { padding: 3px 4px; gap: 3px; }
  .cal-blk .cal-ck { display: none; }
  .cal-bt b { font-size: 11px; }
  .cal-bt small { font-size: 9.5px; }
  .cal-views button { padding: 8px 12px; font-size: 13px; }
  .cal-tools .btn-mini { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 460px) {
  .tabs:has(.tab:nth-child(7)) .tab[aria-selected="true"] span { display: none; }
  .tabs:has(.tab:nth-child(7)) .tab { padding: 0 6px; min-width: 38px; }
}
@media (max-width: 760px) {
  .cal-blk.is-short .cal-bt small { display: none; }
  .cal.is-week .cal-blk .cal-bt small { display: none; }
  .cal.is-week .cal-bt b { font-size: 10px; -webkit-line-clamp: 4; }
}
/* Sozlamalar → Bo'limlar: guruh sarlavhalari va qulflangan qatorlar */
.set-sub { margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.set-card > .set-sub:first-of-type { margin-top: 6px; padding-top: 0; border-top: 0; }
.set-row.is-lock { opacity: .7; }
.set-lock { font-size: 14px; padding-right: 8px; }

/* =========================================================
   v7: miqdorli odat · buyruq paneli · tahlil kartalari
   ========================================================= */
/* Miqdorli odat (masalan 3/8 stakan): tugma ichida halqa-progress */
.hc-cnt { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 13px; color: var(--text); line-height: 1;
  background: conic-gradient(color-mix(in srgb, var(--accent) 45%, transparent) var(--p), transparent 0); }
.hc-cnt b { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 500; }
.hc-cnt small { font-size: 10px; font-weight: 800; color: var(--muted); margin-top: -2px; }
.hcard .hc-check:has(.hc-cnt) { color: var(--text); padding: 0; overflow: hidden; }

/* Sarlavhadagi qidiruv tugmasi */
.pal-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 8px 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--soft); font-size: 12.5px; font-weight: 700; }
.pal-btn:hover { border-color: var(--accent); color: var(--text); }
.pal-btn kbd, .pal-in kbd { font: 700 10.5px/1 'Manrope', sans-serif; padding: 4px 6px; border-radius: 6px; background: var(--field); color: var(--dim); border: 1px solid var(--line-2); }
@media (max-width: 820px) { .pal-btn span, .pal-btn kbd { display: none; } .pal-btn { padding: 0 8px; } }

/* Buyruq paneli */
.pal-modal { place-items: start center; padding-top: min(14vh, 120px); }
.pal { width: min(620px, 100%); border-radius: 18px; background: var(--pop); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; animation: palIn .18s var(--ease); }
@keyframes palIn { from { transform: translateY(-8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 16px 'Manrope', sans-serif; }
.pal-list { max-height: min(56vh, 440px); overflow-y: auto; padding: 6px; }
.pal-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 11px; background: none; color: var(--text); text-align: left; }
.pal-it.on, .pal-it:hover { background: var(--hover); }
.pal-it.on { box-shadow: inset 3px 0 0 var(--accent); }
.pal-ic { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--card); font-size: 15px; }
.pal-tx { min-width: 0; display: flex; flex-direction: column; }
.pal-tx b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-tx small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pal-none { padding: 22px; text-align: center; color: var(--muted); font-weight: 600; }
.pal-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--dim); }
@media (max-width: 600px) { .pal-modal { padding-top: 10px; } .pal-foot { display: none; } }

/* Statistika: hafta xulosasi, kayfiyat, fokus */
.st-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-grid-3 .sd-nums { grid-template-columns: repeat(3, 1fr); }
.sd-nums b.ok { color: var(--success); }
.sd-nums b.bad { color: var(--error); }
.mood-sum { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; }
.mood-big { font-size: 42px; line-height: 1; }
.mood-sum b { display: block; font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 500; }
.mood-sum small { font-size: 12px; color: var(--muted); font-weight: 700; }
.mood-dist { display: grid; gap: 5px; }
.mood-dist div { display: grid; grid-template-columns: 24px 1fr 26px; align-items: center; gap: 8px; }
.mood-dist i { display: block; height: 8px; min-width: 2px; border-radius: 4px; background: var(--accent); }
.mood-dist b { font-size: 12px; text-align: right; color: var(--soft); }
.mood-eff { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; margin-bottom: 5px; border-radius: 10px; background: var(--card); font-size: 13px; font-weight: 700; }
.mood-eff b { color: var(--success); }
.vbars-14 { grid-template-columns: repeat(14, 1fr); gap: 3px; margin-top: 8px; }
.vbars-14 .vb-track { height: 70px; max-width: 20px; gap: 2px; }
.vb-duo i { flex: 1; opacity: .55; }
.vb-duo i.vb-p, .vb-leg i.vb-p { opacity: 1; background: var(--success); }
.vb-leg { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.vb-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); opacity: .55; vertical-align: -1px; margin-right: 4px; }
@media (max-width: 1100px) { .st-grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .vbars-14 .vb:nth-child(odd) small { visibility: hidden; } }

/* v8: odat shablonlari, teglar */
.tpl-h { margin: 18px 0 8px; }
.tpl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tpl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-size: 13px; font-weight: 700; transition: border-color .15s, transform .1s; }
.tpl-chip:hover { border-color: var(--accent); }
.tpl-chip:active { transform: scale(.96); }
.tpl-chip small { color: var(--muted); font-weight: 700; font-size: 11px; }
button.tk-chip.tk-tag { border: 0; font-family: inherit; font-size: 11.5px; font-weight: 700; line-height: inherit; color: var(--info); background: color-mix(in srgb, var(--info) 12%, transparent); cursor: pointer; }
button.tk-chip.tk-tag:hover { background: color-mix(in srgb, var(--info) 22%, transparent); }
.tpl-more .tpl-chips { justify-content: flex-start; padding: 6px 4px 10px; }

/* =========================================================
   v10: AI yordamchi (suzuvchi tugma + yon panel)
   ========================================================= */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 8600; display: inline-flex; align-items: center; gap: 6px; height: 50px; padding: 0 18px 0 15px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #9B6CF0)); color: var(--on-accent); font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent), var(--shadow); transition: transform .15s var(--ease), opacity .2s; }
.ai-fab span { font-size: 18px; }
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab.is-open { opacity: 0; pointer-events: none; transform: scale(.8); }
body.has-ai-fab .nz-toasts.pos-br { bottom: 84px; }
.ai-panel { position: fixed; right: 16px; bottom: 16px; top: 16px; z-index: 9000; width: min(440px, calc(100vw - 32px)); display: flex; flex-direction: column;
  border-radius: 22px; background: var(--pop); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; animation: aiIn .22s var(--ease); }
@keyframes aiIn { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.ai-h { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 8px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, #9B6CF0 14%, transparent)); }
.ai-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 4px; }
.ai-ht b { font-size: 15px; }
.ai-eng { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-eng[data-e="offline"] { color: var(--warning); }
.ai-eng[data-e="claude"], .ai-eng[data-e="api"] { color: var(--success); }
.ai-ib { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--soft); font-size: 16px; }
.ai-ib:hover { background: var(--hover); color: var(--text); }
.ai-hist { max-height: 45%; overflow-y: auto; padding: 8px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.ai-hh { display: flex; justify-content: space-between; padding: 2px 6px 8px; font-size: 13px; }
.ai-hh small { color: var(--muted); }
.ai-hr { display: flex; align-items: center; gap: 2px; border-radius: 12px; }
.ai-hr.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ai-hopen { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 10px; border: 0; background: none; color: var(--text); text-align: left; border-radius: 12px; }
.ai-hopen:hover { background: var(--hover); }
.ai-hopen b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-hopen small { font-size: 11px; color: var(--muted); font-weight: 600; }
.ai-body { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 12px; }
.ai-hello { text-align: center; padding: 10px 4px; }
.ai-logo { width: 58px; height: 58px; margin: 6px auto 10px; display: grid; place-items: center; font-size: 28px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, #9B6CF0 30%, transparent)); }
.ai-hello h3 { margin: 0 0 6px; font-size: 17px; }
.ai-hello p { margin: 0 0 14px; color: var(--soft); font-size: 13.5px; line-height: 1.5; }
.ai-sugg { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.ai-sugg button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-size: 13.5px; font-weight: 600; text-align: left; }
.ai-sugg button:hover { border-color: var(--accent); }
.ai-m { display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
.ai-u { align-items: flex-end; }
.ai-u .ai-bub { max-width: 88%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--on-accent); font-size: 14px; line-height: 1.45; white-space: normal; word-wrap: break-word; }
.ai-a .ai-bub { padding: 2px 2px; font-size: 14px; line-height: 1.55; color: var(--text); word-wrap: break-word; }
.ai-a .ai-bub p { margin: 0 0 8px; }
.ai-a .ai-bub ul { margin: 0 0 8px; padding-left: 20px; }
.ai-a .ai-bub li { margin: 2px 0; }
.ai-a .ai-bub h4 { margin: 10px 0 6px; font-size: 14.5px; }
.ai-a .ai-bub code { padding: 1px 5px; border-radius: 5px; background: var(--field); font-size: 12.5px; }
.ai-a.is-err .ai-bub { color: var(--warning); }
.ai-think { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.ai-think i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: aiDot 1s infinite ease-in-out; }
.ai-think i:nth-child(2) { animation-delay: .15s; } .ai-think i:nth-child(3) { animation-delay: .3s; margin-right: 4px; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.ai-acts { display: flex; gap: 4px; }
.ai-act { border: 0; background: none; padding: 3px 6px; border-radius: 7px; color: var(--dim); font-size: 11.5px; font-weight: 700; }
.ai-act:hover { background: var(--hover); color: var(--text); }
.ai-prop { margin-top: 4px; padding: 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.ai-prop.is-applied { border-color: color-mix(in srgb, var(--success) 50%, var(--line)); background: color-mix(in srgb, var(--success) 7%, var(--card)); }
.ai-prop.is-cancelled, .ai-prop.is-undone { opacity: .7; }
.ai-ph { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.ai-ph small { color: var(--muted); }
.ai-pa { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-radius: 8px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.ai-pa:hover { background: var(--hover); }
.ai-pa input { margin-top: 2px; accent-color: var(--accent); }
.ai-pa.is-del span { color: var(--error); }
.ai-pb { display: flex; gap: 6px; margin-top: 8px; }
.ai-apply { background: var(--accent) !important; color: var(--on-accent) !important; border-color: var(--accent) !important; }
.ai-apply:disabled { opacity: .5; }
.ai-in { display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.ai-in textarea { flex: 1; min-width: 0; resize: none; max-height: 160px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); font: 500 14px/1.4 'Manrope', sans-serif; outline: 0; }
.ai-in textarea:focus { border-color: var(--accent); }
.ai-mic.is-rec { color: var(--error); animation: aiDot 1s infinite; }
.ai-send { flex: 0 0 40px; height: 40px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 800; }
.ai-send.is-stop { background: var(--error); color: #fff; }
.ai-chip { border-color: color-mix(in srgb, #9B6CF0 45%, var(--line-2)) !important; }
@media (max-width: 600px) {
  .ai-fab { right: 14px; bottom: 14px; height: 48px; padding: 0 14px; }
  .ai-fab b { display: none; }
  .ai-panel { inset: 0; width: 100%; border-radius: 0; border: 0; }
}
@media print { .ai-fab, .ai-panel { display: none !important; } }

/* =========================================================
   v11: vazifalarni saralash va qo'lda tartiblash
   ========================================================= */
.pl-tools { display: grid; gap: 6px; }
.pl-sort { height: 36px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--soft); padding: 0 10px; font: 700 12.5px 'Manrope', sans-serif; outline: none; cursor: pointer; }
.pl-sort:focus { border-color: var(--accent); }
.tk-grip { flex: 0 0 auto; align-self: center; margin: 0 -2px 0 -6px; padding: 6px 2px; color: var(--dim); font-size: 14px; letter-spacing: -3px; line-height: 1; cursor: grab; touch-action: none; user-select: none; border-radius: 6px; }
.tk-grip:hover { color: var(--accent); background: var(--hover); }
.task.is-dragging { opacity: .35; }
.tk-ghost { position: fixed; left: 0; top: 0; z-index: 9000; pointer-events: none; opacity: .95; box-shadow: var(--shadow); transform-origin: center; }
.tk-dropline { height: 3px; margin: 2px 6px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
body.tk-sorting, body.tk-sorting * { cursor: grabbing !important; user-select: none !important; }
@media (max-width: 820px) { .pl-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pl-sort { height: 42px; } }
@media (pointer: coarse) { .tk-grip { padding: 12px 6px; margin-left: -8px; font-size: 17px; } }

/* =========================================================
   v12: Admin panel (kirish sahifasida oxirgi Z ni 3 marta bosish)
   ========================================================= */
.nz-z { cursor: default; -webkit-user-select: none; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; padding: 0 2px; margin: 0 -2px; }
.adm { position: fixed; inset: 0; z-index: 8950; overflow-y: auto; background: var(--bg); animation: obIn .22s var(--ease) both; }
body.adm-open { overflow: hidden; }
body.adm-open .nz-snack { z-index: 9600; }
.adm-lock { width: min(420px, calc(100% - 32px)); margin: min(12vh, 90px) auto 40px; padding: 28px 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.adm-lock h2 { margin: 6px 0 4px; font-size: 22px; }
.adm-lock > p { margin: 0 0 18px; font-size: 14px; }
.adm-shield { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; font-size: 30px; border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 18%, var(--field)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.adm-shield.sm { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; margin: 0; }
.adm-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.adm-form .field input, .adm-form .field select { width: 100%; }
.adm-wrap { width: min(1100px, 100%); margin: 0 auto; padding: 18px 20px 60px; }
.adm-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.adm-ht { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-ht b { display: block; font-size: 19px; }
.adm-ht small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.adm-tabs { margin-bottom: 16px; }
.adm-body { display: flex; flex-direction: column; gap: 14px; }
.adm-tiles .tile b.adm-sm { font-size: 20px; }
.adm-quick { flex-wrap: wrap; }
.adm-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.adm-user { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.adm-uh { display: flex; align-items: center; gap: 12px; }
.adm-uh .avatar { width: 42px; height: 42px; font-size: 15px; }
.adm-uh > div { min-width: 0; }
.adm-uh b { display: block; font-size: 15px; }
.adm-uh b, .adm-uh small { overflow-wrap: anywhere; } /* uzun ism yoki login kartani ekrandan chiqarib yubormaydi */
.adm-uh small { color: var(--muted); font-size: 12px; font-weight: 600; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-chip { padding: 3px 9px; border-radius: 999px; background: var(--field); color: var(--muted); font-size: 11.5px; font-weight: 700; }
.adm-chip.is-ok { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.adm-chip.is-warn { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); }
.adm-chip.is-bad { color: var(--error); background: color-mix(in srgb, var(--error) 12%, transparent); }
.adm-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.adm-dl dt { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--dim); text-transform: uppercase; }
.adm-dl dd { margin: 0; font-size: 13px; font-weight: 600; }
.adm-user .set-btns { flex-wrap: wrap; }
.set-row.is-col { flex-direction: column; align-items: stretch; gap: 8px; }
.adm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.adm-table th, .adm-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.adm-table th { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--dim); }
.adm-table td:last-child, .adm-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table tr.is-total td { font-weight: 800; border-bottom: 0; }
.adm-log { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; margin-top: 8px; }
.adm-log > div { display: flex; gap: 12px; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.adm-log time { flex: 0 0 auto; color: var(--dim); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 700; }
.adm-log.is-err span { color: var(--warning); word-break: break-word; }
@media (max-width: 600px) {
  .adm-wrap { padding: 12px 12px 50px; }
  .adm-users { grid-template-columns: minmax(0, 1fr); }
  .adm-ht small { display: none; }
}

/* =========================================================
   v13: Admin ruxsati (arizalar) va admin ↔ foydalanuvchi suhbati
   ========================================================= */
/* Kutish ekrani */
.wait-card { text-align: center; }
.wait-ico { width: 76px; height: 76px; margin: 4px auto 0; display: grid; place-items: center; font-size: 36px; border-radius: 24px;
  background: color-mix(in srgb, var(--warning) 14%, var(--field)); border: 1px solid color-mix(in srgb, var(--warning) 40%, var(--line)); animation: waitPulse 2.4s ease-in-out infinite; }
.wait-ico.is-rej { background: color-mix(in srgb, var(--error) 14%, var(--field)); border-color: color-mix(in srgb, var(--error) 40%, var(--line)); animation: none; }
@keyframes waitPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.wait-card .auth-sub { margin: 0; line-height: 1.5; }
.wait-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.wait-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--field); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.wait-steps li span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--card); font-size: 12px; }
.wait-steps li.is-done { color: var(--success); }
.wait-steps li.is-done span { background: color-mix(in srgb, var(--success) 20%, transparent); }
.wait-steps li.is-now { color: var(--warning); }
.wait-steps li.is-now span { background: color-mix(in srgb, var(--warning) 20%, transparent); }
.wait-steps li.is-bad { color: var(--error); }
.wait-steps li.is-bad span { background: color-mix(in srgb, var(--error) 20%, transparent); }
.wait-card #waitNote { text-align: left; }
.wait-badge, .menu-cnt, .adm-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--error); color: #fff; font: 800 11px/1 'Manrope', sans-serif; font-style: normal; }
.menu-cnt { margin-left: auto; }
.menu-cnt.is-soft { background: var(--field); color: var(--muted); } /* jarayon (masalan, ko'rilgan darslar) — bildirishnoma emas */

/* Sarlavhadagi belgi */
.hub-chip { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--error) 50%, var(--line-2)); background: color-mix(in srgb, var(--error) 12%, var(--card)); color: var(--text); font-size: 13px; font-weight: 800; animation: hubIn .3s var(--ease); }
@keyframes hubIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* Foydalanuvchi suhbat oynasi */
.hub-chat { position: fixed; right: 16px; bottom: 16px; z-index: 9100; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 32px)); display: flex; flex-direction: column;
  border-radius: 22px; background: var(--pop); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; animation: aiIn .22s var(--ease); }
.hub-h { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 10%, var(--pop)); }
.hub-av { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 22%, var(--field)); font-size: 18px; }
.hub-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hub-ht b { font-size: 15px; }
.hub-ht small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.hub-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.hub-day { display: flex; justify-content: center; margin: 6px 0; }
.hub-day span { padding: 3px 10px; border-radius: 999px; background: var(--field); color: var(--dim); font-size: 11px; font-weight: 800; }
.hub-m { display: flex; flex-direction: column; max-width: 82%; }
.hub-m.is-me { align-self: flex-end; align-items: flex-end; }
.hub-m.is-them { align-self: flex-start; }
.hub-b { padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.hub-m.is-me .hub-b { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; }
.hub-m.is-them .hub-b { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.hub-m.is-sys .hub-b { background: color-mix(in srgb, var(--info) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--info) 35%, var(--line)); color: var(--text); }
.hub-m small { margin: 3px 4px 0; font-size: 10.5px; color: var(--dim); font-weight: 600; }
.hub-seen { color: var(--info); font-weight: 800; }
.hub-empty { margin: auto; text-align: center; color: var(--muted); padding: 20px; }
.hub-empty div { font-size: 34px; }
.hub-empty b { display: block; margin: 6px 0 4px; color: var(--text); }
.hub-empty p { margin: 0; font-size: 13px; line-height: 1.5; }
.hub-quick { display: flex; gap: 6px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.hub-quick:empty { display: none; }
.hub-quick .btn-mini { flex: 0 0 auto; white-space: nowrap; }
.hub-in { display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.hub-in textarea { flex: 1; min-width: 0; resize: none; max-height: 140px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); font: 500 14px/1.4 'Manrope', sans-serif; outline: 0; }
.hub-in textarea:focus { border-color: var(--accent); }
@media (max-width: 600px) { .hub-chat { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; } }

/* Admin: arizalar */
.adm-tabs .tab { position: relative; }
.adm-tabs .adm-badge { margin-left: 4px; }
.adm-tile-click { cursor: pointer; transition: border-color .15s; }
.adm-tile-click:hover { border-color: var(--accent); }
.adm-sech { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adm-filter { align-self: flex-start; flex-wrap: wrap; }
.adm-filter b { margin-left: 4px; color: var(--accent); }
.adm-req { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.adm-req.is-pending { border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); box-shadow: inset 3px 0 0 var(--warning); }
.adm-req .adm-uh > div { flex: 1; min-width: 0; }
.adm-req .set-btns { flex-wrap: wrap; }
.adm-note { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--field); font-size: 13px; color: var(--soft); }
.btn-mini.adm-ok { background: color-mix(in srgb, var(--success) 16%, transparent); border-color: color-mix(in srgb, var(--success) 50%, var(--line-2)); color: var(--success); }

/* Admin: suhbatlar (ikki ustun) */
.adm-chat { display: grid; grid-template-columns: 300px 1fr; height: min(70vh, 640px); border-radius: 20px; border: 1px solid var(--line); background: var(--card-2); overflow: hidden; }
.adm-ths { overflow-y: auto; border-right: 1px solid var(--line); padding: 6px; }
.adm-th { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none; color: var(--text); text-align: left; }
.adm-th:hover { background: var(--hover); }
.adm-th.on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.adm-th .avatar { width: 38px; height: 38px; font-size: 13px; }
.adm-tht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-tht b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-tht small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-thm { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.adm-thm small { font-size: 10.5px; color: var(--dim); font-weight: 700; }
.adm-conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.adm-conv.is-empty { display: grid; place-items: center; }
.adm-convh { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.adm-convh > div { flex: 1; min-width: 0; }
.adm-convh b { display: block; font-size: 14.5px; }
.adm-convh small { font-size: 12px; color: var(--muted); font-weight: 600; }
.adm-convh .avatar { width: 36px; height: 36px; font-size: 13px; }
.adm-back { display: none; }
.adm-msgs { min-height: 0; }
@media (max-width: 760px) {
  .adm-chat { grid-template-columns: 1fr; height: calc(100vh - 210px); }
  .adm-chat.has-cur .adm-ths { display: none; }
  .adm-chat:not(.has-cur) .adm-conv { display: none; }
  .adm-back { display: grid; }
}

/* =========================================================
   v13: xato chegarasi kartasi
   ========================================================= */
.crash-card .set-btns { justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.crash-card details { margin-top: 14px; color: var(--muted); font-size: 12px; text-align: left; }
.crash-card code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--field); white-space: pre-wrap; word-break: break-word; }
button.tk-more { display: block; width: 100%; margin: 6px 0 2px; padding: 10px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--soft); font-weight: 700; font-size: 13px; }
button.tk-more:hover { border-color: var(--accent); color: var(--text); }
button.tk-more small { color: var(--dim); font-weight: 700; margin-left: 4px; }

/* =========================================================
   v15: TickTick · Todoist · Habitica · Notion · Microsoft To Do'dan olingan funksiyalar
   Bajarilmaydi, qadash, savat, aqlli filtrlar, Kanban doska, hisobot, kunlik maqsad va seriya,
   fokus tovushlari, ta'til rejimi, mukofotlar do'koni, musobaqalar; admin: statistika, rollar, takliflar
   ========================================================= */
/* Vazifa holatlari */
.task.is-wont .tk-title { text-decoration: line-through; color: var(--dim); }
.task.is-done.is-wont .tk-check { background: var(--field); border-color: var(--line-3); color: var(--muted); }
.tk-wont-ico { font-size: 15px; line-height: 1; font-weight: 800; }
.tk-chip.is-wont { color: var(--muted); background: color-mix(in srgb, var(--dim) 20%, transparent); }
.task.is-pinned { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.tk-pin { margin-right: 4px; font-size: 12px; }
.log-row.is-wont > span { color: var(--muted); }
.log-row.is-wont b { text-decoration: line-through; color: var(--dim); }
.pl-h .btn-mini { margin-left: 6px; vertical-align: middle; }

/* Savat */
.pl-trow { flex-wrap: wrap; }
.pl-trow > span:first-child { color: var(--muted); }
.pl-trow b { min-width: 140px; }
.pl-tbtns { display: inline-flex; gap: 6px; margin-left: auto; }
.pl-nav.pl-trash { margin-top: 6px; opacity: .85; }

/* Ro'yxat / Doska almashtirgichi */
.seg.pl-layout { display: flex; padding: 3px; }
.pl-layout button { flex: 1; height: 30px; padding: 0 8px; font-size: 12.5px; }

/* Kanban doska */
.planner.is-board { grid-template-columns: 200px minmax(0, 1fr); }
.kb { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; align-items: flex-start; scroll-snap-type: x proximity; }
.kb-col { flex: 0 0 272px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 230px); padding: 10px; border-radius: 18px;
  background: var(--card-2); border: 1px solid var(--line); border-top: 3px solid var(--kc); scroll-snap-align: start; transition: border-color .15s, background .15s; }
.kb-col.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card-2)); }
.kb-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px; }
.kb-h b { font-size: 13.5px; font-weight: 800; }
.kb-h em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--muted); background: var(--field); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.kb-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 48px; }
.kb-card { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; gap: 6px; padding: 9px 10px 9px 2px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--pc); cursor: grab; user-select: none; -webkit-user-select: none; transition: border-color .15s, opacity .15s; }
.kb-card:hover { border-color: var(--line-3); border-left-color: var(--pc); }
.kb-card.is-mit { background: color-mix(in srgb, var(--warning) 6%, var(--card)); }
.kb-card.is-pinned { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.kb-card.is-dragging { opacity: .35; }
.kb-card.pop { animation: cardPop .4s var(--ease); }
.kb-grip { align-self: center; padding: 6px 3px; color: var(--dim); font-size: 12px; letter-spacing: -2px; cursor: grab; touch-action: none; }
.kb-card .tk-check { flex: 0 0 22px; width: 22px; height: 22px; }
.kb-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kb-title { border: 0; background: none; padding: 0; color: var(--text); text-align: left; font: 600 14px/1.35 'Manrope', sans-serif; overflow-wrap: anywhere; cursor: pointer; }
.kb-title:hover { color: var(--accent); }
.kb-none { padding: 14px 8px; text-align: center; font-size: 12.5px; color: var(--dim); border: 1.5px dashed var(--line-2); border-radius: 12px; }
.kb-add { height: 36px; padding: 0 10px; border-radius: 10px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--text); font: 600 13px 'Manrope', sans-serif; outline: none; }
.kb-add:focus { border-style: solid; border-color: var(--accent); background: var(--field); }
.kb-ghost { position: fixed; left: 0; top: 0; z-index: 9800; margin: 0; pointer-events: none; box-shadow: var(--shadow); opacity: .96; }
body.kb-dragging, body.kb-dragging * { cursor: grabbing !important; }
.kb-hint { margin: 0; font-size: 12px; }
@media (max-width: 1000px) { .planner.is-board { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .kb-col { flex-basis: 82vw; max-height: none; } .kb-card { cursor: default; } .kb-grip { padding: 8px 5px; font-size: 14px; } }

/* Fokus tovushlari */
.pomo-snd { display: flex; align-items: center; gap: 6px; }
.pomo-snd select { flex: 1; min-width: 0; height: 30px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); font: 700 12px 'Manrope', sans-serif; }
.pomo-snd input[type=range] { width: 72px; accent-color: var(--accent); }

/* Hisobot */
.pl-report { width: 100%; min-height: 260px; resize: vertical; font: 500 13px/1.55 ui-monospace, 'Cascadia Mono', Consolas, monospace; white-space: pre; }

/* Sozlamalar */
.seg-days button { min-width: 38px; padding: 0 8px; }
.set-on { color: var(--success); }
.set-card h3 small { color: var(--dim); font-weight: 700; font-size: 12px; margin-left: 6px; }
.sec-title .btn-mini { margin-left: 8px; vertical-align: middle; }

/* 🎁 Mukofotlar do'koni */
.rw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.rw-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 12px 12px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.rw-card.is-ok { border-color: color-mix(in srgb, var(--success) 40%, var(--line)); }
.rw-card.is-ok:hover { transform: translateY(-2px); }
.rw-emo { font-size: 30px; line-height: 1.15; }
.rw-card b { font-size: 14px; }
.rw-card em { font-style: normal; font-weight: 800; color: var(--warning); font-size: 13px; }
.rw-acts { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.btn-mini.rw-buy { min-width: 100px; }
.rw-card.is-ok .rw-buy { background: color-mix(in srgb, var(--success) 16%, transparent); border-color: color-mix(in srgb, var(--success) 50%, var(--line-2)); color: var(--success); }
.rw-logbtn { align-self: flex-start; }
.rw-log { display: flex; flex-direction: column; gap: 4px; }
.rw-log > div { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 13.5px; }
.rw-log b { flex: 1; font-weight: 600; }
.rw-log small { color: var(--dim); font-weight: 700; }

/* 🏆 Musobaqa kartasi (Bugun sahifasi) */
.ch-card { border-color: color-mix(in srgb, var(--warning) 35%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--warning) 8%, var(--card)), var(--card-2)); }
.ch-item { display: flex; flex-direction: column; gap: 8px; }
.ch-item + .ch-item { padding-top: 12px; border-top: 1px dashed var(--line-2); }
.ch-top { display: flex; align-items: center; gap: 10px; }
.ch-emo, .adm-chemo { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--field); font-size: 20px; }
.ch-top b { display: block; font-size: 14.5px; }
.ch-top small { color: var(--muted); font-size: 12px; font-weight: 700; }
.ch-desc { margin: 0; font-size: 13px; color: var(--soft); }
.ch-prog { display: flex; align-items: center; gap: 8px; }
.ch-prog span, .adm-lbp { flex: 1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ch-prog i, .adm-lbp i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--warning), var(--success)); }
.ch-prog b { font-size: 13px; font-variant-numeric: tabular-nums; }
.btn-mini.ch-join { background: color-mix(in srgb, var(--warning) 16%, transparent); border-color: color-mix(in srgb, var(--warning) 50%, var(--line-2)); color: var(--warning); }
.ch-lb { display: flex; flex-direction: column; gap: 2px; }
.ch-lb > div { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 10px; font-size: 13px; }
.ch-lb > div.is-me { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ch-lb span { text-align: center; font-weight: 800; color: var(--muted); }
.ch-lb em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Admin: rollar */
.adm-role { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.adm-role + .adm-role { border-top: 1px solid var(--line); }
.adm-role > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--field); font-size: 17px; }
.adm-role b { display: block; font-size: 14px; }
.adm-role small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* Admin: statistika (Notion workspace analytics uslubida) */
.adm-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.adm-bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: end; height: 150px; padding-top: 6px; }
.adm-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.adm-bar span { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.adm-bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 2px 2px; background: var(--accent); transition: height .4s var(--ease); }
.adm-bar:hover i { filter: brightness(1.2); }
.adm-bar b { font-size: 10px; color: var(--soft); font-weight: 800; line-height: 1.4; min-height: 14px; }
.adm-bar small { font-size: 9.5px; color: var(--dim); font-weight: 700; white-space: nowrap; min-height: 13px; }
.adm-tscroll { overflow-x: auto; }
.adm-stable td, .adm-stable th { white-space: nowrap; }
.adm-uname { display: inline-flex; align-items: center; gap: 8px; }
.adm-uname .avatar { width: 28px; height: 28px; font-size: 11px; }
.adm-uname b { display: block; font-size: 13px; }
.adm-uname small { color: var(--dim); font-size: 11px; }

/* Admin: musobaqalar */
.adm-lb { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 14px; background: var(--field); }
.adm-lbh { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 2px; }
.adm-lbh small { color: var(--muted); font-weight: 700; }
.adm-lbr { display: grid; grid-template-columns: 30px minmax(0, 1.2fr) minmax(60px, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; }
.adm-rank { text-align: center; font-weight: 800; color: var(--muted); }
.adm-lbn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-lbn small { color: var(--dim); }
.adm-lbp { height: 6px; }

/* Admin: e'lon, taklif kodi, yangi suhbat, jurnal */
.adm-annprev { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.adm-code { margin: 10px auto 4px; padding: 14px 18px; border-radius: 14px; background: var(--field); border: 1.5px dashed var(--accent); font: 600 26px/1 'Oswald', ui-monospace, monospace; letter-spacing: 3px; text-align: center; user-select: all; -webkit-user-select: all; }
.adm-newth { display: flex; flex-direction: column; gap: 6px; padding: 10px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 700; }
.adm-newth select { height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); padding: 0 8px; font-weight: 700; }
.adm-logq { flex: 1 1 180px; max-width: 280px; height: 38px; }
.adm-log > div em { margin-left: auto; padding-left: 8px; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) {
  .adm-lbr { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .adm-lbr .adm-lbp { display: none; }
  .adm-charts { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   v16: Burger menyu — barcha bo'limlar har qanday ekranga sig'adi
   Foydalanuvchi: keng ekranda tablar, torda ☰ + joriy bo'lim; Admin: kompyuterda chap yon menyu, torda ☰
   ========================================================= */
@keyframes navFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes navIn { from { transform: translateX(-104%); } to { transform: none; } }
.tabs-m { display: none; }
@media (max-width: 1100px) {
  .tabs { display: none; }
  .tabs-m { display: flex; gap: 8px; }
  .tabs-burger { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
  .tabs-cur { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--accent); font-size: 15px; }
  .tabs-cur b { flex: 1; min-width: 0; text-align: left; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs-burger:hover, .tabs-cur:hover { border-color: var(--accent); }
}
.nav-scrim { position: fixed; inset: 0; z-index: 8990; background: rgba(0, 0, 0, .45); animation: navFade .2s both; }
.nav-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 8995; width: min(310px, 86vw); display: flex; flex-direction: column; gap: 3px; padding: 14px 12px;
  overflow-y: auto; background: var(--pop); border-right: 1px solid var(--line-2); border-radius: 0 20px 20px 0; box-shadow: var(--shadow); animation: navIn .22s var(--ease) both; }
.nav-dh, .adm-navh { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; font-size: 15px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); font-weight: 800; font-size: 15px; text-align: left; }
.nav-item span { flex: 1; min-width: 0; }
.nav-item kbd { padding: 1px 6px; border-radius: 6px; background: var(--field); color: var(--dim); font: 700 11px 'Manrope', sans-serif; }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.on { background: color-mix(in srgb, var(--accent) 16%, var(--field)); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.nav-sep { height: 1px; margin: 8px 6px; background: var(--line); }

/* Admin: yon menyu */
.adm-wrap { width: min(1320px, 100%); }
.adm-h .adm-ht { flex: 1; }
.adm-burger { display: none; position: relative; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-size: 20px; }
.adm-burger .adm-badge { position: absolute; top: -6px; right: -6px; margin: 0; }
.adm-cur { display: none; }
.adm-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.adm-nav { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.adm-navh { display: none; }
.adm-ni { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 14px; text-align: left; }
.adm-ni span { width: 22px; flex: 0 0 22px; text-align: center; font-size: 16px; }
.adm-ni b { flex: 1; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-ni:hover { background: var(--hover); color: var(--text); }
.adm-ni[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 16%, var(--field)); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.adm-ni .adm-badge { margin-left: auto; }
.adm-scrim { display: none; }
@media (max-width: 980px) {
  .adm-burger { display: grid; place-items: center; }
  .adm-ht small { display: none; }
  .adm-cur { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; margin-bottom: 14px; padding: 0 14px; border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--accent); font-size: 15px; text-align: left; }
  .adm-cur b { flex: 1; min-width: 0; font-weight: 800; }
  .adm-cur small { color: var(--muted); font-weight: 700; font-size: 12px; }
  .adm-layout { display: block; }
  .adm-nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 9010; width: min(300px, 86vw); padding: 14px 12px; border-radius: 0 20px 20px 0; overflow-y: auto; box-shadow: var(--shadow); visibility: hidden; transform: translateX(-104%); }
  .adm-nav.is-open { visibility: visible; transform: none; animation: navIn .22s var(--ease) both; }
  .adm-navh { display: flex; }
  .adm-scrim { display: block; position: fixed; inset: 0; z-index: 9005; background: rgba(0, 0, 0, .45); animation: navFade .2s both; }
}

/* =========================================================
   v17: 🍅 Fokus bo'limi — Pomofocus, Focus To-Do, Forest, Session, Flow g'oyalari
   ========================================================= */
.fc { --fc: var(--error); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.fc.fc-short { --fc: var(--success); }
.fc.fc-long { --fc: var(--info); }
.fc-main { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 18px 18px; border-radius: 24px;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--fc) 14%, var(--card)), var(--card-2) 70%); border: 1px solid color-mix(in srgb, var(--fc) 30%, var(--line)); transition: background .4s, border-color .4s; }
.fc-modes { justify-content: center; }
.fc-modes button[aria-pressed="true"] { color: var(--fc); }
.fc-dial { position: relative; width: min(280px, 78vw); aspect-ratio: 1; }
.fc-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.fc-ring-bg { fill: none; stroke: color-mix(in srgb, var(--fc) 14%, var(--line)); stroke-width: 10; }
.fc-ring-fg { fill: none; stroke: var(--fc); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s linear, stroke .4s; }
.fc-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.fc-time { font: 500 clamp(46px, 13vw, 64px)/1 'Oswald', sans-serif; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.fc-under { color: var(--muted); font-size: 12.5px; font-weight: 700; text-align: center; max-width: 80%; }
.fc-cup { font-size: 48px; line-height: 1; margin-bottom: 6px; }
/* Forest daraxti: --p (0→1) bilan o'sadi */
.fc-tree { width: 96px; height: 96px; margin-bottom: 2px; }
.fc-ground { fill: color-mix(in srgb, #8B6B47 45%, var(--field)); }
.fc-grow { transform-origin: 60px 108px; transform: scale(calc(.12 + var(--p, 0) * .88)); opacity: calc(var(--p, 0) * 6); transition: transform .5s linear; }
.fc-trunk { fill: #8B6B47; }
.fc-leaf { fill: #4CAF6A; }
.fc-leaf.l2 { fill: #3E9A5B; }
.fc-sprout { fill: none; stroke: #5BC27A; stroke-width: 3; stroke-linecap: round; opacity: calc(1 - var(--p, 0) * 6); }
.fc-tree.is-dead .fc-leaf { fill: #8a7a5c; }
.fc-tree.is-dead .fc-leaf.l2 { fill: #75684e; }
.fc-tree.is-dead .fc-grow { transform: scale(.8) rotate(-6deg); opacity: 1; filter: saturate(.4); }
.fc-tree.is-dead .fc-sprout { opacity: 0; }
.fc-ctrls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.fc-go { min-width: 190px; height: 54px; font-size: 17px; border-radius: 16px; background: var(--fc); border-color: var(--fc); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--fc) 35%, transparent); }
.fc-go:hover { filter: brightness(1.06); }
.fc-go:disabled { opacity: .75; }
.fc-ib { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-size: 19px; }
.fc-ib:hover { border-color: var(--fc); }
.fc-stop:hover { border-color: var(--error); }
.fc-intent { width: min(460px, 100%); height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--field); color: var(--text); font: 600 14.5px 'Manrope', sans-serif; text-align: center; outline: 0; }
.fc-intent:focus { border-color: var(--fc); }
.fc-intent-on { max-width: 100%; padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--fc) 10%, var(--field)); font-size: 14px; text-align: center; overflow-wrap: anywhere; }
.fc-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fc-tag, .fc-tagchip { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 800; }
.fc-tagchip { display: inline-flex; align-items: center; height: 24px; margin-left: 6px; }
.fc-tag[aria-pressed="true"] { border-color: var(--fc); color: var(--fc); background: color-mix(in srgb, var(--fc) 12%, var(--card)); }
.fc-task { display: flex; align-items: center; gap: 8px; width: min(460px, 100%); }
.fc-task span { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--muted); }
.fc-task select { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); font: 700 13.5px 'Manrope', sans-serif; }
.fc-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; color: var(--muted); font-weight: 700; }
.fc-dots { display: inline-flex; align-items: center; gap: 5px; }
.fc-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.fc-dots i.on { background: var(--fc); }
.fc-dots small { margin-left: 4px; font-size: 12px; }
.fc-goalm b { color: var(--fc); font-size: 15px; }
.fc-snd { width: min(320px, 100%); }
.fc-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fc-badges span { padding: 3px 10px; border-radius: 999px; background: var(--field); color: var(--dim); font-size: 11.5px; font-weight: 700; }
.fc-side { display: flex; flex-direction: column; gap: 12px; }
.fc-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--line); }
.fc-card h3 { margin: 0; font-size: 15px; font-weight: 800; }
.fc-card h3 small { color: var(--dim); font-weight: 700; font-size: 12px; margin-left: 6px; }
.fc-tasks { display: flex; flex-direction: column; gap: 4px; }
.fc-trow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; border: 1px solid transparent; }
.fc-trow.on { border-color: color-mix(in srgb, var(--fc) 45%, var(--line)); background: color-mix(in srgb, var(--fc) 8%, transparent); }
.fc-tpick { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; color: var(--fc); font-size: 12px; }
.fc-tt { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-est { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.fc-est b { font-size: 12px; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.fc-est button { width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font-weight: 800; line-height: 1; }
.fc-finish { padding: 8px 10px; border-radius: 12px; background: var(--field); font-size: 13px; color: var(--soft); }
.fc-finish b { color: var(--text); }
.fc-frow { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fc-frow > div { display: flex; flex-wrap: wrap; gap: 1px; font-size: 17px; min-height: 22px; align-items: center; }
.fc-frow i { font-style: normal; }
.fc-forest p { margin: 2px 0 0; font-size: 11.5px; }
.fc-seth { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--text); text-align: left; }
.fc-seth b { font-size: 15px; }
.fc-seth small { flex: 1; color: var(--dim); font-weight: 700; font-size: 11.5px; }
.fc-setb { display: flex; flex-direction: column; gap: 4px; }
.fc-srow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.fc-srow > span:first-child { min-width: 0; }
.fc-srow small { display: block; color: var(--dim); font-size: 11.5px; font-weight: 600; }
.fc-srow select { height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); font-weight: 700; }
/* Hisobot */
.fc-report { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.fc-rh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fc-rh .sec-title { margin: 0; flex: 1; }
.fc-rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.fc-bars { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: end; height: 150px; }
.fc-bars::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(16px + min(1, var(--g)) * 134px); border-top: 1.5px dashed color-mix(in srgb, var(--error) 55%, transparent); pointer-events: none; }
.fc-bar { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.fc-bar span { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.fc-bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 2px 2px; background: var(--error); }
.fc-bar small { height: 16px; font-size: 10px; color: var(--dim); font-weight: 700; }
.fc-hb { display: grid; grid-template-columns: minmax(0, 1fr) 1.2fr auto; align-items: center; gap: 8px; font-size: 13px; }
.fc-hb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fc-hb i { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fc-hb i b { display: block; height: 100%; background: linear-gradient(90deg, var(--error), var(--warning)); border-radius: 4px; }
.fc-hb em { font-style: normal; font-weight: 800; font-size: 12px; color: var(--muted); }
.fc-tl { position: relative; height: 46px; margin: 18px 0 4px; border-radius: 10px; background: var(--field); }
.fc-tlh { position: absolute; top: -17px; transform: translateX(-50%); font-size: 10px; color: var(--dim); font-weight: 700; }
.fc-tl > i { position: absolute; top: 8px; bottom: 8px; min-width: 3px; border-radius: 5px; background: var(--error); }
.fc-tl > i.is-fail { background: repeating-linear-gradient(45deg, var(--dim) 0 4px, transparent 4px 8px); }
.fc-now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--accent); border-radius: 1px; }
.fc-log { display: flex; flex-direction: column; gap: 4px; }
.fc-lrow { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.fc-lrow.is-fail { opacity: .7; }
.fc-lic { font-size: 20px; line-height: 1.2; }
.fc-lb { flex: 1; min-width: 0; }
.fc-lb b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.fc-lb small { color: var(--muted); font-size: 12px; font-weight: 600; }
.fc-lb p { margin: 4px 0 0; font-size: 13px; color: var(--soft); overflow-wrap: anywhere; }
.fc-lm { display: flex; gap: 2px; font-size: 18px; }
/* Jurnal kunlar bo'yicha: Bugun / Kecha / sana — bosilsa ochiladi */
.fc-log { gap: 6px; }
.fc-day { border-radius: 14px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.fc-day.is-today { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.fc-dayh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fc-dayh:disabled { cursor: default; }
.fc-dayh:not(:disabled):hover { background: var(--hover); }
.fc-dayh b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.fc-dayh small { flex: 1; min-width: 0; text-align: right; color: var(--muted); font-size: 12px; font-weight: 700; }
.fc-dayc { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--field); color: var(--muted); font-weight: 800; transition: transform .18s var(--ease); }
.fc-day.is-today .fc-dayc { background: color-mix(in srgb, var(--accent) 20%, var(--field)); color: var(--accent); }
.fc-day.is-open .fc-dayc { transform: rotate(90deg); }
.fc-dayb { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 8px; }
.fc-dayb .fc-lrow { background: var(--card-2); }
@media (max-width: 420px) { .fc-dayh { flex-wrap: wrap; row-gap: 2px; } .fc-dayh small { flex-basis: 100%; text-align: left; padding-left: 32px; } }
/* Notify.form: 3 ustunli tanlov (fokus xulosasidagi niyat natijasi) */
.nz-radios.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nz-radios.is-3 .nz-radio { display: flex; }
.nz-radios.is-3 .nz-radio span { flex: 1; padding: 9px 6px 9px 26px; justify-content: center; }
.nz-radios.is-3 .nz-radio span::before { left: 8px; top: 50%; margin-top: -6px; }
.nz-radios.is-3 .nz-radio b { font-size: 12.5px; line-height: 1.25; }
/* Flow: butun ekranli tanaffus */
.fc-break { position: fixed; inset: 0; z-index: 9200; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--success) 18%, rgba(8, 10, 12, .94)); animation: navFade .3s both; }
.fc-bk { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.fc-bkemo { font-size: 64px; line-height: 1; }
.fc-bk h2 { margin: 0; font-size: 26px; }
.fc-bktime { font: 500 72px/1 'Oswald', sans-serif; font-variant-numeric: tabular-nums; color: var(--success); }
.fc-bk p { margin: 0; font-size: 16px; color: var(--soft); line-height: 1.5; }
.fc-bk .set-btns { flex-wrap: wrap; justify-content: center; margin-top: 8px; }
@media (max-width: 1000px) { .fc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .fc-main { padding: 16px 12px; }
  .fc-modes button { padding: 0 9px; font-size: 12px; }
  .fc-go { min-width: 150px; }
  .fc-hb { grid-template-columns: minmax(0, 1fr) 1fr auto; }
}
.fc-tiles .tile em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: 12px; font-weight: 700; }

/* v18: Fokus bo'limidan Sozlamalarga havola (taymer sozlamalari faqat Sozlamalarda) */
.fc-setlink { display: flex; flex-direction: row; align-items: center; gap: 10px; width: 100%; text-align: left; color: var(--text); cursor: pointer; font: inherit; }
.fc-setlink b { white-space: nowrap; font-size: 14px; }
.fc-setlink small { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.4; }
.fc-setlink > span { font-size: 22px; color: var(--muted); }
.fc-setlink:hover { border-color: var(--accent); }
.fc-setlink:hover > span { color: var(--accent); }
.set-card.is-flash { box-shadow: 0 0 0 2px var(--accent); transition: box-shadow .3s; }

/* v19: 🎮 O'yin — halol belgilar (✓ bajarildi · → qoldirildi · ✗ qila olmadim) va kunni yopish */
.hcard.is-fail { background: color-mix(in srgb, var(--error) 7%, var(--card)); border-color: color-mix(in srgb, var(--error) 40%, var(--line)); }
.hcard.is-fail .hc-check { border-color: var(--error); color: var(--error); font-size: 22px; font-weight: 800; }
.hcard.is-fail .hc-title { color: var(--soft); }
.tag-fail { color: var(--error); border-color: color-mix(in srgb, var(--error) 40%, transparent); background: color-mix(in srgb, var(--error) 10%, transparent); }
.hc-btn.hc-fail { font-size: 17px; font-weight: 800; color: color-mix(in srgb, var(--error) 70%, var(--dim)); }
.hc-btn.hc-fail:hover { color: var(--error); background: color-mix(in srgb, var(--error) 10%, var(--field)); border-color: color-mix(in srgb, var(--error) 40%, transparent); }
.hc-btn.hc-fail.on { color: var(--on-accent); background: var(--error); border-color: var(--error); }
.dot-btn.fail .dot { border-color: var(--error); background: color-mix(in srgb, var(--error) 22%, transparent); position: relative; }
.dot-btn.fail .dot::before, .dot-btn.fail .dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.6px; background: var(--error); border-radius: 1px; }
.dot-btn.fail .dot::before { transform: translate(-50%, -50%) rotate(45deg); }
.dot-btn.fail .dot::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mb-day.fail { border-color: var(--error); color: var(--error); background: color-mix(in srgb, var(--error) 10%, transparent); font-weight: 600; }
.lg-dot.fail { border-color: var(--error); color: var(--error); font-weight: 800; }

/* Bugun tepasidagi o'yin kartasi: yo'l xaritasi + kunni yopish (v20) */
.dbar { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.dbar small { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.dbar-road { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dbar-st { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--accent) 14%, var(--field)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.dbar-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dbar-rt b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbar-next { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 5px 10px; border-radius: 10px; background: var(--field); border: 1px dashed var(--line-3); text-align: right; cursor: default; }
.dbar-next span { font-size: 12.5px; font-weight: 800; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dbar-next small { font-size: 11.5px; color: var(--accent); font-weight: 800; }
.dbar-next.is-max { border-style: solid; border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.dbar-sbar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: -4px; }
.dbar-sbar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transition: width .5s var(--ease); }
.dbar-day { display: flex; flex-direction: column; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line); }
.dbar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dbar-top b { font-size: 14.5px; font-weight: 800; }
.dbar-top small { font-weight: 800; color: var(--accent); }
.dbar-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.dbar-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--warning), var(--success)); transition: width .5s var(--ease); }
.dbar-msg { display: flex; flex-direction: column; gap: 2px; }
.dbar-msg b { font-size: 14.5px; font-weight: 800; }
.dbar-warn { padding: 7px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); }
.dbar-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dbar-foot .is-warn { color: var(--warning); }
.dbar-foot .btn-mini { margin-left: auto; }
.dbar-link { padding: 0; border: 0; background: none; color: var(--dim); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dbar-link:hover { color: var(--accent); }
.dbar-foot > span + .dbar-link { margin-left: auto; }
.dbar.is-closed { background: color-mix(in srgb, var(--success) 7%, var(--card)); border-color: color-mix(in srgb, var(--success) 40%, var(--line)); }
.dbar.is-closed .dbar-day { border-top-color: color-mix(in srgb, var(--success) 30%, var(--line)); }
.dbar.is-closed .dbar-msg b { color: var(--success); }
.dbar.is-frozen { background: color-mix(in srgb, var(--info) 8%, var(--card)); border-color: color-mix(in srgb, var(--info) 35%, var(--line)); }
.dbar.is-rest { background: color-mix(in srgb, var(--info) 6%, var(--card)); border-color: color-mix(in srgb, var(--info) 30%, var(--line)); }
.dbar.is-rest .dbar-bar i { background: color-mix(in srgb, var(--info) 70%, var(--line-3)); }
.dbar.is-clock { border-color: color-mix(in srgb, var(--error) 45%, var(--line)); }
.dbar.is-clock .dbar-msg b { color: var(--error); }

/* Sozlamalar → 🎮 O'yin */
.gm-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.5; color: var(--soft); }
.gm-rules li::marker { color: var(--accent); font-weight: 800; }
.gh-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gh-nums div { padding: 10px 8px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); text-align: center; min-width: 0; }
.gh-nums b { display: block; font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 500; white-space: nowrap; }
.gh-nums small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-strip { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: 3px; margin-top: 4px; }
.gh-d { aspect-ratio: 1; min-width: 0; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-style: normal; line-height: 1; background: var(--field); border: 1px solid var(--line); color: var(--muted); overflow: hidden; }
.gh-legend .gh-d { width: 18px; display: inline-grid; vertical-align: middle; }
.gh-c { background: color-mix(in srgb, var(--success) 22%, var(--field)); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.gh-g { background: color-mix(in srgb, var(--warning) 18%, var(--field)); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.gh-m { background: color-mix(in srgb, var(--error) 18%, var(--field)); border-color: color-mix(in srgb, var(--error) 45%, transparent); color: var(--error); font-weight: 800; }
.gh-r, .gh-z { background: color-mix(in srgb, var(--info) 14%, var(--field)); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.gh-o { opacity: .6; }
.gh-today { border-color: var(--accent); color: var(--accent); font-weight: 800; }
.gh-pre { opacity: .35; border-style: dashed; }
.gh-open { border-style: dashed; }
.gh-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; font-weight: 700; color: var(--muted); }
.gh-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gm-rest { display: inline-flex; align-items: center; gap: 2px; padding: 0 2px 0 8px; margin: 2px 2px 0 0; border-radius: 999px; background: color-mix(in srgb, var(--info) 12%, var(--field)); border: 1px solid color-mix(in srgb, var(--info) 35%, transparent); color: var(--soft); font-weight: 700; }
.gm-rest button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dim); font-size: 11px; }
.gm-rest button:hover { color: var(--error); background: var(--field); }
@media (max-width: 560px) {
  .dbar { padding: 12px 12px 10px; }
  .dbar-next { padding: 4px 8px; }
  .gh-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gh-strip { grid-template-columns: repeat(14, minmax(0, 1fr)); }
}

/* Vazifa: → / ✗ tugmalari (✓ yonida) */
.gm-btns { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.gm-btn { width: 32px; height: 32px; padding: 0; border-radius: 9px; border: 1.5px solid; background: transparent; display: grid; place-items: center; font-size: 15px; font-weight: 800; line-height: 1; transition: background .15s, color .15s; }
.gm-btn.gm-p { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.gm-btn.gm-p:hover { background: color-mix(in srgb, var(--warning) 14%, transparent); }
.gm-btn.gm-f { color: var(--error); border-color: color-mix(in srgb, var(--error) 45%, transparent); }
.gm-btn.gm-f:hover { background: color-mix(in srgb, var(--error) 12%, transparent); }
.gm-btn.gm-f.on { background: var(--error); border-color: var(--error); color: #fff; }
.gm-btns.is-mini { gap: 3px; }
.gm-btns.is-mini .gm-btn { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.tk-chip.is-fail { color: var(--error); border-color: color-mix(in srgb, var(--error) 40%, transparent); background: color-mix(in srgb, var(--error) 10%, transparent); }
.tk-chip.is-strike { color: var(--warning); }
.tdt-row.is-fail span { color: var(--muted); }
.tdt-row.is-fail .tdt-check { border-color: var(--error); }
@media (max-width: 560px) {
  .task.has-gm .tk-pomob { display: none; }
  .gm-btn { width: 30px; height: 30px; }
}
/* Oy jadvali gorizontal suriladi (bugungi kunga) — odat nomlari doim ko'rinib tursin */
.tr-desk .c-name { position: sticky; left: 0; z-index: 2; background: var(--card); }
/* Sozlamalar tugmalari ikki qatorga bo'linmasin (masalan "❄️ Muzlatish") */
.set-btns .btn-mini { white-space: nowrap; }

/* v21: 🎮 Bosqich ochilishi va boshlang'ich oyna */
.gm-box { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-x: hidden; overflow-y: auto; padding: 26px 22px 20px; border-radius: 24px; background: var(--pop); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); text-align: center; animation: pop .35s var(--ease); }
.gm-ico { width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 24px; display: grid; place-items: center; font-size: 40px; line-height: 1; background: color-mix(in srgb, var(--accent) 16%, var(--field)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.gm-kick { display: block; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); }
.gm-box h2 { margin: 4px 0 14px; font-size: 23px; line-height: 1.25; }
.gm-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; counter-reset: gm; }
.gm-steps li { counter-increment: gm; position: relative; padding: 10px 12px 10px 44px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.gm-steps li::before { content: counter(gm); position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--accent); color: var(--on-accent); }
.gm-steps b { display: block; font-size: 13px; font-weight: 800; }
.gm-steps span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.gm-gift { margin-top: 10px; padding: 12px; border-radius: 14px; text-align: left; font-size: 13.5px; line-height: 1.5; background: color-mix(in srgb, var(--warning) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); }
.gm-next { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.gm-vd { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; text-align: left; font-size: 13px; line-height: 1.45; background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); }
.gm-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.add-habit.is-locked { border-style: dashed; color: var(--dim); font-size: 13px; font-weight: 700; }
.add-habit.is-locked:hover { border-color: var(--line-3); color: var(--muted); }
.in-name[readonly] { cursor: not-allowed; opacity: .7; }
.load.no-pomo { grid-template-columns: repeat(2, auto) minmax(160px, 1fr); }
@media (max-width: 820px) { .load.no-pomo { grid-template-columns: repeat(2, 1fr); } }

/* v22: Admin → Statistika → 🎮 O'yin (bosqichlar voronkasi) */
.adm-funnel { display: flex; flex-direction: column; gap: 7px; }
.adm-fr { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 44px 30px; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.adm-fr > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-fbar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.adm-fbar i { display: block; height: 100%; min-width: 2px; border-radius: 5px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--success))); transition: width .5s var(--ease); }
.adm-fr b { text-align: right; font-variant-numeric: tabular-nums; }
.adm-fr small { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-honest { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); }
.adm-honest i { display: block; height: 100%; }
.adm-hleg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.adm-hleg span { display: inline-flex; align-items: center; gap: 6px; }
.adm-hleg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.adm-gtable td, .adm-gtable th { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.adm-gtable td:first-child { white-space: normal; min-width: 96px; }
@media (max-width: 560px) { .adm-fr { grid-template-columns: minmax(0, 1fr) 72px 40px; } .adm-fr small { display: none; } }

/* v23: 🩺 Tekshiruv markazi (Admin → Tekshiruv) */
/* Qum quti: sinov paytida dastur ekrandan tashqarida chiziladi, bildirishnomalar va oynalar ko'rinmaydi */
.ck-sandbox { position: fixed; left: -12000px; top: 0; width: 1100px; height: 900px; overflow: hidden; pointer-events: none; contain: strict; }
body.nz-selftest .nz-toasts, body.nz-selftest .nz-snack, body.nz-selftest .nz-confetti { visibility: hidden !important; }
body.nz-selftest > .nz-modal, body.nz-selftest > .ob-overlay, body.nz-selftest > .vd-ov { opacity: 0 !important; pointer-events: none !important; }
/* Tekshiruv paytida admin bo'limlari kutib turadi (faqat to'xtatish va yopish ishlaydi) */
body.nz-selftest .adm-nav, body.nz-selftest .adm-cur { opacity: .45 !important; pointer-events: none; }
.ck-wrap { display: flex; flex-direction: column; gap: 12px; }
.ck-hero { display: flex; flex-direction: column; gap: 12px; border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.ck-lead { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.55; font-weight: 600; }
.ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-prog { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.ck-prog i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--success))); transition: width .25s var(--ease); }
.ck-cur { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.ck-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ck-sum > div { padding: 10px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.ck-sum b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ck-sum small { color: var(--muted); font-size: 12px; font-weight: 700; }
.ck-sum .ok b { color: var(--success); } .ck-sum .warn b { color: var(--warning); } .ck-sum .fail b { color: var(--error); }
.ck-groups { display: flex; flex-direction: column; gap: 10px; }
.ck-g { padding: 0; overflow: hidden; }
.ck-g.is-ok { border-color: color-mix(in srgb, var(--success) 35%, var(--line)); }
.ck-g.is-warn { border-color: color-mix(in srgb, var(--warning) 40%, var(--line)); }
.ck-g.is-fail { border-color: color-mix(in srgb, var(--error) 55%, var(--line)); }
.ck-g.is-run { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.ck-gh { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.ck-gh:hover { background: var(--hover, rgba(255,255,255,.03)); }
.ck-gi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: var(--field); }
.ck-gt b { display: block; font-size: 15px; font-weight: 800; }
.ck-gt small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.ck-gs { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-g.is-ok .ck-gs { color: var(--success); } .ck-g.is-fail .ck-gs { color: var(--error); } .ck-g.is-warn .ck-gs { color: var(--warning); }
.ck-gc { color: var(--dim); font-size: 12px; }
.ck-list { list-style: none; margin: 0; padding: 0 16px 6px; display: flex; flex-direction: column; }
.ck-t { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.ck-t b { display: block; font-size: 13.5px; font-weight: 800; }
.ck-t small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; font-weight: 600; }
.ck-t code { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 8px; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--field); color: var(--soft); }
.ck-t em { font-style: normal; font-size: 11.5px; color: var(--dim); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-s { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--field); color: var(--dim); }
.ck-t.is-ok .ck-s { background: color-mix(in srgb, var(--success) 18%, var(--card)); color: var(--success); }
.ck-t.is-warn .ck-s { background: color-mix(in srgb, var(--warning) 18%, var(--card)); color: var(--warning); }
.ck-t.is-warn code { background: color-mix(in srgb, var(--warning) 10%, var(--field)); }
.ck-t.is-fail .ck-s { background: color-mix(in srgb, var(--error) 18%, var(--card)); color: var(--error); }
.ck-t.is-fail code { background: color-mix(in srgb, var(--error) 10%, var(--field)); color: var(--text); }
.ck-t.is-run .ck-s { animation: ckPulse 1s ease-in-out infinite; }
@keyframes ckPulse { 50% { opacity: .35; } }
.ck-gfoot { padding: 4px 16px 14px; }
.ck-help { font-size: 13px; color: var(--soft); }
.ck-help summary { cursor: pointer; font-weight: 800; color: var(--muted); width: fit-content; }
.ck-help summary:hover { color: var(--text); }
.ck-help ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; line-height: 1.5; font-weight: 600; }
@media (max-width: 560px) {
  .ck-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ck-gh { grid-template-columns: 30px minmax(0, 1fr) 12px; padding: 12px; }
  .ck-gh .ck-gs { grid-column: 2; grid-row: 2; }
  .ck-gh .ck-gc { grid-column: 3; grid-row: 1; }
  .ck-list { padding: 0 12px 6px; }
}

/* =========================================================
   23-versiya: telefon navigatsiyasi va scroll
   (Todoist, TickTick, Habitify, Duolingo, Telegram uslubi)
   ========================================================= */
.menu-hint { margin-left: auto; color: var(--dim); font-size: 11.5px; font-weight: 700; }
.bnav, .fab, .sheet-grip { display: none; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 820px) {
  :root { --bnav-h: 62px; --bnav-safe: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px)); }
  /* Pastki tab panel: bosh barmoq yetadigan joyda; faol bo'lim — Material 3 "pill" belgisi */
  .tabs-m { display: none !important; }
  .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: flex; align-items: stretch;
    height: var(--bnav-safe); padding: 4px max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
    border-top: 1px solid var(--line); }
  .bn-item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 2px; border: 0;
    background: none; color: var(--muted); font-size: 11px; font-weight: 800; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .bn-item span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bn-item svg { box-sizing: content-box; padding: 4px 16px; border-radius: 999px; transition: background .2s, transform .12s var(--ease); }
  .bn-item.on { color: var(--accent); }
  .bn-item.on svg { background: color-mix(in srgb, var(--accent) 17%, transparent); }
  .bn-item:active svg { transform: scale(.9); }
  .tr-pad { padding-bottom: calc(var(--bnav-safe) + 22px); }
  /* Tez qo'shish (FAB) — o'ng pastda */
  .fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(var(--bnav-safe) + 14px); z-index: 810; display: grid; place-items: center;
    width: 56px; height: 56px; border: 0; border-radius: 18px; background: var(--accent); color: var(--on-accent); -webkit-tap-highlight-color: transparent;
    box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--accent) 75%, transparent), 0 3px 8px rgba(0, 0, 0, .35); transition: transform .12s var(--ease); }
  .fab:active { transform: scale(.92); }
  /* Panel ustidagi suzuvchi elementlar ko'tariladi */
  body:has(.bnav) .pomo { bottom: calc(var(--bnav-safe) + 12px); }
  body:has(.fab) .pomo { right: 84px; width: auto; }
  body:has(.bnav) .nz-snack { bottom: calc(var(--bnav-safe) + 12px); }
  body:has(.bnav) .nz-toasts:not(.pos-top) { bottom: calc(var(--bnav-safe) + 12px); }
  body:has(.bnav) .cal-views { bottom: calc(var(--bnav-safe) + 10px); }
  body:has(.bnav) .menu { bottom: calc(var(--bnav-safe) + 8px); max-height: calc(100dvh - var(--bnav-safe) - 80px); }
  /* «Ko'proq» — pastdan chiqadigan varaq (iOS sheet) */
  .nav-drawer { top: auto; right: 0; width: 100%; max-height: min(80dvh, 640px); padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-right: 0; border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0; overscroll-behavior: contain; animation: sheetUp .28s var(--ease) both; }
  .sheet-grip { display: block; flex: 0 0 auto; width: 40px; height: 5px; margin: 0 auto 6px; border-radius: 3px; background: var(--line-3); }
  /* Matn maydoni ochiq (klaviatura) — panel va FAB yashirinadi, maydon yopilib qolmaydi */
  body:has(:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), textarea, select, [contenteditable="true"]):focus) :is(.bnav, .fab) { display: none; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { .nav-drawer { animation: none; } }
html.nz-reduce .nav-drawer { animation: none; }

/* Surib belgilash: qator barmoq bilan siljiydi, ochilgan joyda amal nomi (Habitify, TickTick, Things) */
@media (pointer: coarse) { .hcard, .task, .tdt-row { touch-action: pan-y pinch-zoom; } }
.hcard, .task, .tdt-row { transition-property: border-color, background, opacity, transform; transition-duration: .2s; transition-timing-function: var(--ease); }
.is-swiping { position: relative; z-index: 2; transform: translateX(var(--sw, 0px)); transition: none !important; }
.is-swiping::before { content: attr(data-sw-label); position: absolute; top: -1px; bottom: -1px; width: max(var(--sw, 0px), calc(var(--sw, 0px) * -1));
  display: flex; align-items: center; padding: 0 14px; overflow: hidden; white-space: nowrap; font-weight: 800; font-size: 13.5px;
  color: var(--muted); background: var(--field); transition: background .15s, color .15s; }
.is-swiping[data-sw="r"]::before { right: 100%; justify-content: flex-start; border-radius: 16px 0 0 16px; }
.is-swiping[data-sw="l"]::before { left: 100%; justify-content: flex-end; border-radius: 0 16px 16px 0; }
.is-swiping[data-sw-k="done"]::before { color: var(--success); background: color-mix(in srgb, var(--success) 14%, var(--card)); }
.is-swiping[data-sw-k="undo"]::before { color: var(--soft); }
.is-swiping[data-sw-k="fail"]::before { color: var(--error); background: color-mix(in srgb, var(--error) 14%, var(--card)); }
.is-swiping[data-sw-k="later"]::before { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, var(--card)); }
.is-swiping.sw-armed[data-sw-k="done"]::before { background: var(--success); color: #0b1f16; }
.is-swiping.sw-armed[data-sw-k="undo"]::before { background: var(--line-3); color: var(--text); }
.is-swiping.sw-armed[data-sw-k="fail"]::before { background: var(--error); color: #2a0a0f; }
.is-swiping.sw-armed[data-sw-k="later"]::before { background: var(--warning); color: #2a1e04; }

/* Guruh sarlavhalari scroll paytida tepada qoladi (iOS bo'lim sarlavhalari, Things 3) */
.td-ghead, .tk-ghead { position: sticky; top: 0; z-index: 3; margin: 0 -6px; padding: 8px 10px 6px; border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); }
/* blur faqat bitta elementda (pastki panel) — ko'p sticky sarlavhada blur arzon telefonlarda scrollni og'irlashtiradi */
@media print { .td-ghead, .tk-ghead { position: static; background: none; } }
/* Kalendar: gorizontal surish brauzerga emas, davr almashtirishga ketadi */
@media (pointer: coarse) { .cal-month, .cal-year { touch-action: pan-y pinch-zoom; } }

/* Kayfiyat: yuz ostida nomi, tanlanganda jonli (Daylio, How We Feel, Apple «State of Mind») */
.mood { height: auto; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 2px 6px; }
.mood .mood-e { font-size: 24px; line-height: 1; transition: transform .2s var(--ease); }
.mood small { font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: .2px; white-space: nowrap; }
.mood.on small { color: var(--accent); }
.mood.on .mood-e { transform: scale(1.18); }
html.nz-reduce .mood.on .mood-e { transform: none; }

/* Kirish: akkauntlar — avatar kartochkalar qatori (Netflix, Google akkaunt tanlash, iOS) */
.profiles { flex-wrap: nowrap; justify-content: flex-start; gap: 10px; padding: 4px 2px 6px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.profile { position: relative; flex: 0 0 auto; width: 96px; flex-direction: column; align-items: center; gap: 5px; padding: 11px 6px 9px; border-radius: 18px; text-align: center; scroll-snap-align: center; }
.profile:first-child { margin-left: auto; }
.profile:last-child { margin-right: auto; }
.profile .avatar { position: relative; width: 46px; height: 46px; font-size: 16px; }
.profile b, .profile small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile b { font-size: 12.5px; }
.profile small { font-size: 10.5px; }
.profile[aria-checked="true"] .avatar { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.prof-st { position: absolute; right: -5px; bottom: -4px; font-style: normal; font-size: 13px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }

/* Gorizontal qatorlar: scroll bor tomonda yumshoq soya; telefonda snap bilan to'xtaydi */
.edge-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); }
.edge-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 34px), transparent); }
.edge-l.edge-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent); }
@media (max-width: 1099px) { .pl-side, .set-nav { scroll-snap-type: x proximity; overscroll-behavior-x: contain; } .pl-side > *, .set-nav > * { scroll-snap-align: start; } }

/* Teginish va matn: kulrang bosish izi yo'q, raqamlar bir xil kenglikda (taymer, hisoblagichlar sakramaydi), sarlavhalar muvozanatli */
button, a, [role="button"], label { -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse) { button, [role="button"] { touch-action: manipulation; } }
.tr-pad, .adm, .hub-chat { font-variant-numeric: tabular-nums; }
.tr-pad :is(h1, h2, h3), .auth-title, .empty-card h2 { text-wrap: balance; }
.tr-pad p, .auth-sub, .nz-dlg p { text-wrap: pretty; }
@media (max-width: 820px) { .nav-drawer .sheet-grip, .nav-drawer .nav-dh { touch-action: none; } .nav-drawer .sheet-grip { height: 5px; padding: 0; margin-top: 2px; box-shadow: 0 0 0 10px transparent; } }
@media (pointer: coarse) { .nav-item kbd { display: none; } }

/* Sozlamalar qidiruvi */
.set-search { position: relative; display: flex; align-items: center; margin: 2px 0 14px; }
.set-search span { position: absolute; left: 14px; font-size: 14px; opacity: .7; pointer-events: none; }
.set-search input { width: 100%; height: 46px; padding: 0 14px 0 40px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--field); color: var(--text); font-weight: 700; font-size: 15px; }
.set-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.set-search input::placeholder { color: var(--dim); font-weight: 600; }
.set-none { margin: 4px 2px 18px; color: var(--muted); font-weight: 700; font-size: 14px; }

/* Telefonda vazifa qatori ixcham: ☆ va ▶ vazifa ichida (sarlavhani bosganda), qatorda — faqat → ✗ ⋯ (Todoist, Things) */
.btn-mini.is-mob { display: none; }
@media (max-width: 560px) {
  .task .tk-starb:not(.on), .task .tk-pomob:not(.on) { display: none; }
  .btn-mini.is-mob { display: inline-flex; }
}

/* Ustunli grafiklar tor ekranda (320 px) ham sig'adi: ustunlar 0 gacha torayadi, yozuvlar kesiladi (avval sahifani kengaytirib yuborardi) */
.vbars { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.vbars-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.vbars-14 { grid-template-columns: repeat(14, minmax(0, 1fr)); }
.vb { min-width: 0; }
.vb b, .vb small { max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; }

/* Dialoglar telefonda — pastdan chiqadigan varaq: tutqich, pastga tortib yopish, tugmalar doim ko'rinadi (iOS sheet, Material 3) */
.nz-dialog__grip { display: none; }
@media (max-width: 600px) {
  .nz-modal.is-sheet { place-items: end stretch; padding: 0; }
  .nz-modal.is-sheet .nz-dialog { max-width: none; max-height: 92dvh; border-radius: 24px 24px 0 0; border-bottom: 0;
    padding: 8px 18px 0; overscroll-behavior: contain; animation: sheetUp .3s var(--ease); }
  .nz-modal.is-sheet .nz-dialog__grip { display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--line-3); }
  .nz-modal.is-sheet :is(.nz-dialog__grip, .nz-dialog__icon, .nz-dialog__title) { touch-action: none; }
  .nz-modal.is-sheet .nz-dialog__actions { position: sticky; bottom: 0; z-index: 2; margin: 16px -18px 0;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--pop); border-top: 1px solid var(--line); }
}
html.nz-reduce .nz-modal.is-sheet .nz-dialog { animation: none; }

/* Scroll: oyna/varaq ochiq — orqadagi sahifa qimirlamaydi; kompyuterda scrollbar paydo bo'lganda sahifa sakramaydi (Linear, Notion) */
html { scrollbar-gutter: stable; }
body:has(> .nz-modal, .nav-drawer, > .adm, .ob-overlay) { overflow: hidden; }
.nav-drawer, .adm, .hub-chat, .nz-dialog { overscroll-behavior: contain; }
@media print { html { scrollbar-gutter: auto; } }

/* Fokus — to'liq ekran: faqat taymer, boshqa hech narsa (Forest, Session, Flow) */
html.fc-zen body:has(.fc) .tr-pad > :not(.fc), html.fc-zen body:has(.fc) :is(.bnav, .fab, .pomo, .nz-toasts) { display: none !important; }
html.fc-zen body:has(.fc) .tr-pad { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
html.fc-zen .fc { display: block; width: min(560px, 100%); }
html.fc-zen .fc > :not(.fc-main) { display: none; }
html.fc-zen .fc-main { background: transparent; border-color: transparent; box-shadow: none; }
html.fc-zen .fc-main .fc-modes { opacity: .55; }

/* ===== v24: sarlavhada foydalanuvchi ismi (kirish sahifasida doim NURAZIZ) ===== */
.tr-brand, .tr-brand .nz-lockup { min-width: 0; max-width: 100%; }
.tr-logo, .nz-lockup.is-head .nz-lock-name { font-family: 'Oswald', 'Bahnschrift', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-block: .14em; margin-block: -.14em; }
.tr-logo[data-len="m"], .nz-lockup.is-head .nz-lock-name[data-len="m"] { font-size: 36px; letter-spacing: 4.5px; }
.tr-logo[data-len="l"], .nz-lockup.is-head .nz-lock-name[data-len="l"] { font-size: 29px; letter-spacing: 3px; }
@media (max-width: 820px) {
  .tr-logo[data-len="m"], .nz-lockup.is-head .nz-lock-name[data-len="m"] { font-size: 26px; letter-spacing: 3px; }
  .tr-logo[data-len="l"], .nz-lockup.is-head .nz-lock-name[data-len="l"] { font-size: 21px; letter-spacing: 2px; }
}
.set-in { width: 200px; max-width: 100%; }
@media (max-width: 560px) { .set-in { width: 100%; } }

/* ===== v26: Telegram mini app (html.in-tg — js/tg.js) =====
   Telegram o'zi bergan xavfsiz hudud ham hisobga olinadi (Android'da env() ko'pincha 0, Telegram esa pastki tizim panelini aytadi) */
html.in-tg { --tg-sab: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)); }
@media (max-width: 820px) {
  html.in-tg { --bnav-safe: calc(var(--bnav-h) + var(--tg-sab)); }
  html.in-tg .bnav { padding-bottom: var(--tg-sab); }
  html.in-tg .nav-drawer { padding-bottom: calc(14px + var(--tg-sab)); }
}
@media (max-width: 600px) { html.in-tg .nz-modal.is-sheet .nz-dialog__actions { padding-bottom: calc(14px + var(--tg-sab)); } }

/* ===== v28: kompyuterdagi Telegram — to'liq ekran (html.tg-full, js/tg.js) =====
   Telegram'ning yopish va ⋮ tugmalari sahifa ustida turadi — tepada Telegram aytgan joy qoldiriladi; yopishqoq sarlavhalar ham shu chiziqdan pastda */
html.tg-full { --tg-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); }
html.tg-full body { padding-top: var(--tg-top); box-sizing: border-box; }
html.tg-full .auth { min-height: calc(100dvh - var(--tg-top)); }
html.tg-full .adm { padding-top: var(--tg-top); }
html.tg-full .nz-toasts.pos-top { top: calc(12px + var(--tg-top)); }
html.tg-full .td-ghead, html.tg-full .tk-ghead { top: var(--tg-top); }
html.tg-full .pl-side, html.tg-full .set-nav, html.tg-full .adm-nav { top: calc(12px + var(--tg-top)); }
html.tg-full .mx-panel, html.tg-full .cal-panel { top: calc(16px + var(--tg-top)); max-height: calc(100vh - 32px - var(--tg-top)); }
@media (min-width: 821px) { html.tg-full .nav-drawer { padding-top: calc(14px + var(--tg-top)); } }
@media (max-width: 820px) { html.tg-full .tabs { top: calc(8px + var(--tg-top)); } }

/* ===== v29: «☆ Muhim» — vazifa yozish maydoni yonida (Reja va Bugun): yoqilsa, vazifa muhim bo'ladi va vaqtida eslatiladi (Telegram'da ham) ===== */
.quick-star { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; }
.quick-star b { font-size: 15px; line-height: 1; color: var(--muted); }
.quick-star.on { border-color: color-mix(in srgb, var(--warning) 55%, var(--line)); background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--text); }
.quick-star.on b { color: var(--warning); }
.tdt-add { display: flex; align-items: center; gap: 6px; }
.tdt-add .tk-addsub { flex: 1; min-width: 0; }
@media (max-width: 380px) { .quick-row .quick-star span { display: none; } }
/* «★ 15:30» — tanlangan eslatma vaqti tor ekranda ham ko'rinadi */
@media (max-width: 380px) { .quick-row .quick-star.has-time span { display: inline; } }

/* ===== v31: 🎬 Video darsliklar (js/videos.js) ===== */
.vd-card { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 10px 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.vd-cico { font-size: 26px; line-height: 1; }
.vd-ctx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vd-ctx b { font-size: 15px; }
.vd-ctx small { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.35; }
.vd-card .btn-mini { white-space: nowrap; }
.vd-cx { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; color: var(--muted); font-size: 18px; background: transparent; }
.vd-cx:hover { background: var(--hover); color: var(--text); }
/* 🎓 Dasturni o'rganish — butun ekran sahifasi (oyna emas): mavzular to'ri (raqam, sarlavha, holat, ›); ochig'i bosilsa — videosi */
.vd-ov { position: fixed; inset: 0; z-index: 9200; display: flex; flex-direction: column; background: var(--bg); animation: obIn .2s var(--ease) both; }
.vd-box { --vdw: 640px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vd-box.is-grid { --vdw: 1100px; }
.vd-h { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px max(10px, calc((100% - var(--vdw)) / 2 + 4px)) 10px max(14px, calc((100% - var(--vdw)) / 2 + 14px)); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.vd-hico { font-size: 22px; line-height: 1; }
.vd-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vd-ht b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-ht small { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-ib { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--soft); background: var(--field); }
.vd-ib:hover { background: var(--hover); color: var(--text); }
.vd-spd { width: auto; min-width: 46px; padding: 0 9px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.vd-wrap { width: min(var(--vdw), 100%); margin: 0 auto; padding: 14px 14px 32px; display: flex; flex-direction: column; gap: 14px; }
.vd-wrap > * { flex-shrink: 0; }
.vd-lvl { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.4; }
.vd-lvl b { color: var(--text); font-weight: 800; }
.vd-prog { height: 6px; border-radius: 99px; background: var(--field); overflow: hidden; }
.vd-prog i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s var(--ease); }
.vd-cont { align-self: flex-start; max-width: 100%; padding: 9px 16px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--text); font: inherit; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Mavzular to'ri: kompyuterda 3 ustun, planshetda 2, telefonda 1; har mavzu — kichik kartochka */
.vd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.vd-tile { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 74px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--card); border: 1.5px solid color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); }
.vd-tile:hover { background: color-mix(in srgb, var(--accent) 7%, var(--card)); border-color: var(--accent); }
.vd-tile:active { transform: scale(.985); }
.vd-num { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 15%, var(--card)); color: var(--accent); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vd-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vd-tt b { font-size: 15px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-tt small { font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-chev { flex: 0 0 auto; width: 22px; text-align: center; color: var(--muted); font-size: 22px; line-height: 1; }
.vd-tile.is-done .vd-num { background: color-mix(in srgb, var(--success) 16%, var(--card)); color: var(--success); }
.vd-tile.is-done .vd-tt small { color: var(--success); }
/* 🔒 Foydalanuvchida hali yo'q funksiya haqidagi mavzu: o'z o'rnida, xira; bosilsa — qaysi bosqichda ochilishi aytiladi */
.vd-tile.is-locked, .vd-tile.is-locked:hover { background: color-mix(in srgb, var(--field) 45%, var(--card)); border-color: var(--line); cursor: default; }
.vd-tile.is-locked .vd-num { background: var(--field); color: var(--dim); }
.vd-tile.is-locked .vd-tt b { color: var(--muted); }
.vd-tile.is-locked .vd-tt small { color: var(--dim); }
.vd-tile.is-locked .vd-chev { font-size: 15px; }
@media (max-width: 560px) { .vd-tiles { gap: 10px; } .vd-tile { min-height: 68px; gap: 12px; padding: 10px 10px 10px 12px; } .vd-num { width: 40px; height: 40px; } }
/* Bitta dars sahifasi: video, qismlar, tavsif, «Keyingi dars», «Barcha mavzular» */
.vd-les { display: flex; flex-direction: column; gap: 12px; }
.vd-desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.vd-all { align-self: center; padding: 8px 14px; border-radius: 99px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 700; }
.vd-all:hover { background: var(--hover); color: var(--text); }
/* Vertikal video ekrandan oshmaydi: balandligi ~75% ekran, eni proporsional; ▶ muqovadagi sarlavhani yopmasin — pastroqda */
.vd-media { position: relative; display: block; width: min(100%, calc(75vh * 9 / 16)); aspect-ratio: 9 / 16; margin: 0 auto; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #000; color: #fff; font: inherit; }
@supports (height: 1dvh) { .vd-media { width: min(100%, calc(75dvh * 9 / 16)); } }
.vd-media img, .vd-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vd-media img { object-fit: cover; }
.vd-video { object-fit: contain; background: #000; }
.vd-face { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.vd-pl { position: absolute; left: 50%; top: 78%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 88%, transparent); box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: transform .15s var(--ease), background .15s var(--ease); }
.vd-pl svg { width: 30px; height: 30px; margin-left: 4px; fill: var(--on-accent); }
.vd-face:hover .vd-pl, .vd-face:focus-visible .vd-pl { transform: scale(1.06); background: var(--accent); }
.vd-face em { position: absolute; right: 10px; bottom: 12px; padding: 2px 7px; border-radius: 7px; background: rgba(0,0,0,.72); font-size: 12px; font-weight: 800; font-style: normal; }
.vd-face .vd-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.vd-face .vd-bar i { display: block; height: 100%; background: var(--accent); }
/* To'liq nusxa yuklanayotganda (Claude havolasi: qism yoki davom etish joyiga o'tish) */
.vd-wait { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 2; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.78); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; pointer-events: none; }
.vd-parts { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
.vd-parts::-webkit-scrollbar { display: none; }
.vd-parts button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: inherit; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; }
.vd-parts button em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.vd-parts button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.vd-parts button.on em { color: var(--accent); }
.vd-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 16px; text-align: center; color: var(--muted); }
.vd-empty b { color: var(--text); font-size: 17px; }
.vd-empty p { margin: 0; line-height: 1.4; }
.vd-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--field); border-top-color: var(--accent); animation: vdSpin .8s linear infinite; }
@keyframes vdSpin { to { transform: rotate(360deg); } }
.vd-foot { margin: 0; color: var(--dim); font-size: 12px; text-align: center; line-height: 1.4; }
html.vd-open, html.vd-open body { overflow: hidden; }
html.in-tg .vd-wrap { padding-bottom: calc(32px + var(--tg-sab, 0px)); }
html.tg-full .vd-h { padding-top: calc(10px + var(--tg-top, 0px)); }

/* ===== ⭐ Premium (Sozlamalar kartochkasi, TOLOV-REJA.md): ikki tarif — yillik «Eng foydali» bilan ajratilgan ===== */
.prem-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.prem-plan { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); }
.prem-plan b { font-size: 13px; color: var(--muted); font-weight: 800; }
.prem-plan strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.prem-plan small { font-size: 12px; color: var(--muted); font-weight: 600; }
.prem-plan.is-best { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.prem-plan.is-best small { color: var(--accent); font-weight: 800; }
.prem-plan em { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; font-style: normal; }
.prem-feat { margin: 10px 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.4; }
@media (max-width: 360px) { .prem-plans { grid-template-columns: 1fr; } }
/* ⭐ Premium: «bepuldagi hamma narsa, qo'shimcha», Stars tugmalari, qulf kartochkasi */
.prem-all { margin: 10px 0 0; font-size: 13px; font-weight: 800; color: var(--muted); }
.prem-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.prem-buy .btn { width: 100%; justify-content: center; text-align: center; }
.prem-buy a.btn { grid-column: 1 / -1; text-decoration: none; }
.prem-note { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.prem-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; vertical-align: 2px; background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .2px; }
.prem-lock { border-style: dashed; }
.prem-lock .btn { margin-top: 6px; }
@media (max-width: 420px) { .prem-buy { grid-template-columns: 1fr; } }
/* 💳 Payme: brend belgisi, saqlangan karta qatori */
.pm-brand { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.pm-logo { padding: 3px 10px; border-radius: 8px; background: #33CCCC; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.prem-card { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--field); font-size: 13.5px; font-weight: 700; }
.prem-card small { color: var(--muted); font-weight: 600; margin-right: auto; }
/* Admin: ⭐ Premium narxlari va to'lovlar jurnali */
.adm-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 10px 0; }
.adm-prices .field { margin: 0; }
.adm-prices input { width: 100%; }
.adm-pays { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 320px; overflow: auto; }
.adm-pay { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; background: var(--field); font-size: 13px; }
.adm-pay small { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; }
.adm-pay.is-off { opacity: .6; }
.adm-pay em { font-style: normal; font-weight: 800; }
.adm-pay .btn-mini { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 480px) { .adm-prices { grid-template-columns: 1fr; } }

/* 📲 O'rnatish taklifi — dasturga kirganda pastdan chiqadigan varaq (app.js Install) */
.inst-scrim { position: fixed; inset: 0; z-index: 960; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s ease; }
.inst-sheet { position: fixed; left: 50%; bottom: 0; z-index: 961; width: min(460px, 100%); transform: translate(-50%, 110%);
  transition: transform .34s cubic-bezier(.2, .8, .2, 1); background: var(--card); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 24px 24px 0 0; padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 48px rgba(0, 0, 0, .4); }
.inst-scrim.is-in { opacity: 1; }
.inst-sheet.is-in { transform: translate(-50%, 0); }
.inst-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-3); margin: 0 auto 16px; }
.inst-head { display: flex; align-items: center; gap: 14px; }
.inst-head img { width: 56px; height: 56px; border-radius: 16px; flex: 0 0 auto; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); }
.inst-head b { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; }
.inst-head small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--soft); line-height: 1.35; }
.inst-pts { list-style: none; margin: 16px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--field); display: grid; gap: 8px; font-size: 14px; color: var(--text); }
.inst-pts.is-steps { list-style: decimal inside; }
.inst-pts.is-steps li::marker { font-weight: 800; color: var(--accent); }
.inst-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }
.inst-btns .btn-block { grid-column: 1 / -1; }
@media (min-width: 821px) { .inst-sheet { bottom: 24px; border-radius: 24px; border-bottom: 1px solid var(--line-2); } }
.nz-reduce .inst-sheet, .nz-reduce .inst-scrim { transition: none; }
@media (prefers-reduced-motion: reduce) { .inst-sheet, .inst-scrim { transition: none; } }

/* 🔑 Parol maydoni: 👁 ko'rsatish tugmasi va klaviatura ogohlantirishi (notify.js passAssist) */
.nz-pass { position: relative; }
.nz-pass input { width: 100%; padding-right: 48px; }
.nz-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--soft); cursor: pointer; }
.nz-eye:hover { color: var(--text); }
.nz-eye[aria-pressed="true"] { color: var(--accent); }
.nz-kbd-hint { color: var(--warning); font-weight: 600; }

/* ✏️ / 🗑 Suhbatda o'z xabarini tahrirlash va o'chirish (Hub.bubbles … { edit: true }) */
.hub-acts { display: inline-flex; gap: 2px; margin-right: 6px; vertical-align: middle; }
.hub-act { border: 0; background: transparent; padding: 2px 4px; border-radius: 6px; font-size: 12px; line-height: 1; cursor: pointer; opacity: .55; }
.hub-act:hover, .hub-act:focus-visible { opacity: 1; background: var(--field); }
@media (hover: hover) { .hub-m .hub-acts { opacity: 0; transition: opacity .15s; } .hub-m:hover .hub-acts, .hub-m:focus-within .hub-acts { opacity: 1; } }
.hub-editing { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; margin: 0 10px; border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, var(--accent) 14%, var(--card)); font-size: 12.5px; font-weight: 700; color: var(--text); }

/* ===== ⏰ Budilnik (js/alarm.js): sarlavhadagi belgi, budilniklar sahifasi, tahrirlash varag'i, chalish ekrani =====
   Sahifa toast va oynalar (Notify) ostida turadi — saqlangach «… chaladi» xabari ko'rinsin; chalish ekrani — hamma narsaning ustida */
.al-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--soft); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-chip:hover { border-color: var(--accent); color: var(--text); }
.al-chip.is-on { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.al-chip.is-on b { color: var(--accent); font-weight: 800; }
.al-chip em { font-style: normal; }
@media (max-width: 820px) { .al-chip em { display: none; } .al-chip { padding: 0 8px; } }
.al-ov { position: fixed; inset: 0; z-index: 8950; display: flex; flex-direction: column; background: var(--bg); animation: obIn .2s var(--ease) both; }
.al-box { --alw: 640px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.al-h { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px max(10px, calc((100% - var(--alw)) / 2 + 4px)) 10px max(14px, calc((100% - var(--alw)) / 2 + 14px)); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.al-hico { font-size: 22px; line-height: 1; }
.al-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.al-ht b { font-size: 16px; }
.al-ht small { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-add { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 24px; font-weight: 800; line-height: 1; display: grid; place-items: center; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.al-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.al-wrap { width: min(var(--alw), 100%); margin: 0 auto; padding: 14px 14px 40px; display: flex; flex-direction: column; gap: 14px; }
.al-list { display: flex; flex-direction: column; gap: 10px; }
.al-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.al-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.al-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.al-ct { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 14px; }
.al-time { grid-row: span 2; font-family: 'Oswald', 'Manrope', sans-serif; font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: .5px; font-variant-numeric: tabular-nums; color: var(--text); }
.al-name { align-self: end; font-size: 15px; font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-name i { font-style: normal; }
.al-ct small { align-self: start; font-size: 12.5px; font-weight: 700; color: var(--accent); min-width: 0; line-height: 1.35; }
.al-card.is-off { background: var(--card-2); }
.al-card.is-off .al-time, .al-card.is-off .al-name, .al-card.is-off small { color: var(--dim); }
.al-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px 20px; text-align: center; color: var(--muted); }
.al-empty-ico { font-size: 54px; line-height: 1; animation: alShake 2.4s ease-in-out infinite; transform-origin: 50% 12%; }
.al-empty b { color: var(--text); font-size: 18px; }
.al-empty p { margin: 0 0 6px; line-height: 1.45; max-width: 420px; }
.al-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.al-dl { list-style: none; margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--field); display: flex; flex-direction: column; gap: 10px; }
.al-dl li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 13.5px; }
.al-dl li b { font-weight: 800; }
.al-dl li small { flex: 1 1 100%; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.al-dl li .btn-mini { margin-top: 4px; }
.al-dl li.is-ok b { color: var(--success); }
.al-foot { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.45; text-align: center; }
html.al-open, html.al-open body { overflow: hidden; }
/* Tahrirlash: telefonda pastdan varaq, kompyuterda — markazda */
.al-edw { position: fixed; inset: 0; z-index: 8960; display: flex; align-items: flex-end; justify-content: center; }
.al-scrim { position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity .2s ease; }
.al-ed { position: relative; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--card); border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -16px 48px rgba(0, 0, 0, .4); transform: translateY(40px); opacity: 0; transition: transform .28s var(--ease), opacity .2s ease; }
@supports (height: 1dvh) { .al-ed { max-height: 92dvh; } }
.al-edw.is-in .al-scrim { opacity: 1; }
.al-edw.is-in .al-ed { transform: none; opacity: 1; }
@media (min-width: 640px) { .al-edw { align-items: center; padding: 16px; } .al-ed { border-radius: 24px; border-bottom: 1px solid var(--line-2); max-height: calc(100vh - 32px); } }
.al-ed > * { flex-shrink: 0; }
.al-ed-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.al-ed-h b { font-size: 17px; }
.al-tbig { display: block; }
.al-tbig input { display: block; width: 100%; height: 86px; padding: 0 14px; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--field); color: var(--text); font-family: 'Oswald', 'Manrope', sans-serif; font-size: 54px; font-weight: 600; text-align: center; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.al-tbig input:focus { border-color: var(--accent); outline: none; }
.al-tbig input::-webkit-calendar-picker-indicator { width: 26px; height: 26px; cursor: pointer; opacity: .7; }
.al-left { margin: -6px 0 0; text-align: center; font-size: 13.5px; font-weight: 800; color: var(--accent); min-height: 1.2em; }
.al-f { display: flex; flex-direction: column; gap: 8px; }
.al-f .nz-flabel small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.al-pre { display: flex; flex-wrap: wrap; gap: 6px; }
.al-prb { height: 32px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line-2); background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 800; }
.al-prb.on { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.al-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.al-sg { height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--field); color: var(--soft); font-size: 12px; font-weight: 700; }
.al-sg:hover { color: var(--text); border-color: var(--accent); }
.al-snds { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.al-snd { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--field); color: var(--text); font-size: 13.5px; font-weight: 700; text-align: left; }
.al-snd span { font-size: 18px; line-height: 1; }
.al-snd.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.al-vol { flex-direction: row; align-items: center; gap: 12px; }
.al-vol .nz-flabel { flex: 0 0 auto; margin: 0; }
.al-vol .nz-flabel b { color: var(--accent); letter-spacing: 0; }
.al-vol input { flex: 1; min-width: 0; accent-color: var(--accent); }
.al-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.al-ed .field { margin: 0; }
.al-ed .nz-check small { font-weight: 600; color: var(--muted); }
.al-ed-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px; }
.al-ed-acts .al-del { margin-right: auto; color: var(--error); }
@media (max-width: 420px) { .al-ed-acts .btn { flex: 1; } .al-ed-acts .al-del { flex: 1 1 100%; } }
/* Chalish ekrani: doim qorong'i (tunda ko'zni qamashtirmaydi), katta soat va katta tugmalar */
.al-ring { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; overflow: hidden auto; background: #0b0c10; color: #fff; animation: obIn .25s var(--ease) both; }
.al-ring.is-out { opacity: 0; transition: opacity .2s ease; }
.al-ring-bg { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(60% 45% at 50% 36%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%); animation: alPulse 1.6s ease-in-out infinite; }
.al-ring-in { position: relative; width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: env(safe-area-inset-top); }
.al-bell { font-size: 64px; line-height: 1; animation: alShake .9s ease-in-out infinite; transform-origin: 50% 12%; }
.al-now { margin-top: 8px; font-family: 'Oswald', 'Manrope', sans-serif; font-size: clamp(72px, 24vw, 120px); font-weight: 600; line-height: 1; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.al-day { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .72); }
.al-lbl { margin: 14px 0 0; font-size: 24px; font-weight: 800; line-height: 1.25; word-break: break-word; }
.al-meta { margin: 0; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .66); }
.al-acts { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.al-snz { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 16px; border-radius: 20px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff; font-size: 19px; font-weight: 800; }
.al-snz small { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.al-snz:hover { background: rgba(255, 255, 255, .16); }
.al-stop { width: 100%; padding: 20px; border-radius: 22px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 21px; font-weight: 800; box-shadow: 0 10px 34px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.al-stop:active, .al-snz:active { transform: scale(.98); }
.al-unmute { margin-top: 14px; padding: 12px 16px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); color: #fff; font-size: 15px; font-weight: 800; }
.al-math { width: 100%; margin-top: 24px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; gap: 10px; }
.al-math.is-shake { animation: shake .4s; }
.al-mq { margin: 0; font-family: 'Oswald', 'Manrope', sans-serif; font-size: 40px; font-weight: 600; letter-spacing: 1px; }
.al-min { width: 100%; height: 60px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .3); color: #fff; font-size: 30px; font-weight: 800; text-align: center; }
.al-min:focus { outline: none; border-color: var(--accent); }
.al-merr { margin: 0; font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.al-mbtns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.al-math .btn-quiet { color: #fff; }
html.al-ringing, html.al-ringing body { overflow: hidden; }
html.tg-full .al-h { padding-top: calc(10px + var(--tg-top, 0px)); }
html.tg-full .al-ring-in { padding-top: var(--tg-top, 0px); }
html.in-tg .al-wrap { padding-bottom: calc(40px + var(--tg-sab, 0px)); }
@keyframes alShake { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
@keyframes alPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.nz-reduce .al-bell, .nz-reduce .al-ring-bg, .nz-reduce .al-empty-ico { animation: none; }
@media (prefers-reduced-motion: reduce) { .al-bell, .al-ring-bg, .al-empty-ico { animation: none; } .al-ed, .al-scrim { transition: none; } }

/* 📝 Vazifaga budilnik: sahifadagi vazifalar ro'yxati, Reja'dagi «⏰ 15:30» belgisi, chalish ekranidagi «✓ Bajardim» */
.al-tasks { display: flex; flex-direction: column; gap: 8px; }
.al-tsh { display: flex; flex-direction: column; gap: 2px; }
.al-tsh b { font-size: 15px; font-weight: 800; }
.al-tsh small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.al-task { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.al-task:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.al-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.al-tt b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-tt small { font-size: 12px; color: var(--muted); font-weight: 600; }
.al-task em { flex: 0 0 auto; padding: 5px 10px; border-radius: 99px; background: var(--field); color: var(--soft); font-style: normal; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.al-task em.on { background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--accent); }
.tk-chip.is-alarm { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); font-weight: 800; }
.btn-mini.is-on { border-color: var(--accent); color: var(--accent); }
.al-tk { margin: 12px 0 -8px; font-size: 13px; font-weight: 800; letter-spacing: .3px; color: rgba(255, 255, 255, .7); }
.al-done { width: 100%; padding: 18px; border-radius: 22px; border: 0; background: var(--success); color: #0b1a12; font-size: 20px; font-weight: 800; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--success) 80%, transparent); }
.al-done:active { transform: scale(.98); }

/* 🗑 Budilnik kartochkasidagi o'chirish tugmasi */
.al-del-b { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 17px; cursor: pointer; }
.al-del-b:hover, .al-del-b:focus-visible { background: color-mix(in srgb, var(--error) 14%, transparent); color: var(--error); }

/* 😴 Uyqu to'plami (5 ta budilnik) va ⭐ VIP: tahrirlashdagi blok, sahifadagi maslahat, chalish ekranidagi «🌅 Uyg'ondim» */
.al-sleep { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; border: 1.5px dashed var(--line-2); transition: border-color .15s var(--ease), background .15s var(--ease); }
.al-sleep.on { border-style: solid; border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.al-sleep .nz-check { background: transparent; border: 0; padding: 4px 4px 2px; }
.al-sleep .nz-check small { display: block; margin-top: 2px; color: var(--accent); font-weight: 700; }
.al-tip { padding: 0 4px 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); font-weight: 600; }
.al-tipcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.al-tipico { font-size: 28px; line-height: 1; flex: 0 0 auto; }
.al-tiptx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.al-tiptx b { font-size: 14px; font-weight: 800; line-height: 1.3; }
.al-tiptx small { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.35; }
.al-tipcard .btn-mini { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 420px) { .al-tipcard { flex-wrap: wrap; } .al-tipcard .btn-mini { width: 100%; height: 36px; } }
.al-vip { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.al-vip b { font-size: 16px; font-weight: 800; }
.al-vip small { font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 600; }
.al-wake { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 16px; border-radius: 20px; border: 0; background: #ffd56b; color: #2a1d00; font-size: 20px; font-weight: 800; box-shadow: 0 10px 30px -12px rgba(255, 200, 80, .8); }
.al-wake small { font-size: 12.5px; font-weight: 700; opacity: .8; }
.al-wake:active { transform: scale(.98); }

/* ===== ✨ Dizayn sayqali (2026-11-11, foydalanuvchi: «dizayni unchalik zo'r emas — mukammal qil, UI/UX ham») =====
   Tamoyil: kontent — asosiy; ikkinchi darajali tugmalar sokin, nomlar qisqarib qolmaydi, telefonda sarlavha ixcham */
/* Kartochkalar: yuqori qirrada nozik yorug'lik va yumshoq soya — tekis emas, «qatlamli» ko'rinish */
.hcard, .dbar, .set-card, .al-card, .vd-card, .td-hero { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 10px 28px -18px rgba(0, 0, 0, .7); }
:root[data-nz-theme="light"] .hcard, :root[data-nz-theme="light"] .dbar, :root[data-nz-theme="light"] .set-card, :root[data-nz-theme="light"] .al-card,
:root[data-nz-theme="light"] .vd-card, :root[data-nz-theme="light"] .td-hero { box-shadow: 0 1px 2px rgba(20, 22, 27, .06), 0 8px 22px -16px rgba(20, 22, 27, .25); }
/* Nomlar ikki qatorgacha — «Ota-onaga qo'ng'i…» kabi erta qisqarish yo'q */
.hc-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; overflow-wrap: anywhere; }
.tdt-row > span:not(.gm-btns) { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; overflow-wrap: anywhere; }
.tdt-row > .gm-btns { flex: 0 0 auto; display: inline-flex; overflow: visible; }
/* Ikkinchi darajali tugmalar (✗ qila olmadim, → keyinga) — kulrang, bosilganda / ustiga kelganda rangli: ro'yxat «qizil» ko'rinmaydi */
.hc-btn.hc-fail { color: var(--muted); }
.gm-btn.gm-p, .gm-btn.gm-f { color: var(--muted); border-color: var(--line-2); }
.gm-btn.gm-p:hover, .gm-btn.gm-p:focus-visible { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.gm-btn.gm-f:hover, .gm-btn.gm-f:focus-visible { color: var(--error); border-color: color-mix(in srgb, var(--error) 45%, transparent); }
/* «+» tugmasi: pastga aylantirganda yashirinadi (kontentni yopmaydi), yuqoriga — qaytadi */
.fab { transition: transform .26s var(--ease), opacity .2s ease, box-shadow .2s ease; }
.fab.is-away { transform: translateY(150%) scale(.9); opacity: 0; pointer-events: none; }
/* Telefon: sarlavha ixchamroq, bosqich kartochkasida nom qisqarmaydi */
@media (max-width: 480px) {
  .tr-logo { font-size: 26px; letter-spacing: 3px; }
  .dbar-road { flex-wrap: wrap; }
  .dbar-rt b { white-space: normal; }
  .dbar-next { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}
.nz-reduce .fab, .nz-reduce .fab.is-away { transition: none; }

/* ✨ Dizayn sayqali — 2-qism (Reja, Statistika, umumiy his-tuyg'u) */
/* Bosilganda yengil «botish» — telefonda tugma bosilgani seziladi */
.btn:active, .btn-mini:active, .bn-item:active, .hc-check:active, .tk-check:active, .tdt-check:active, .gm-btn:active, .al-task:active, .rank-row:active { transform: scale(.97); }
.btn-mini, .bn-item, .gm-btn, .rank-row { transition: transform .12s var(--ease), background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
/* Statistika: odat nomi ikki qatorgacha — «Ota-onaga qo'n…» bo'lmasin */
.rk-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; overflow-wrap: anywhere; }
/* Telefonda ogohlantirish bannerlari ixchamroq — ro'yxatni pastga surib yubormaydi */
@media (max-width: 480px) {
  .nz-alert { padding: 10px 12px; gap: 10px; }
  .nz-alert__text { font-size: 13px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) { .btn:active, .btn-mini:active, .bn-item:active, .hc-check:active, .tk-check:active, .tdt-check:active, .gm-btn:active, .al-task:active, .rank-row:active { transform: none; } }
.nz-reduce .btn:active, .nz-reduce .btn-mini:active, .nz-reduce .bn-item:active, .nz-reduce .hc-check:active, .nz-reduce .tk-check:active, .nz-reduce .tdt-check:active, .nz-reduce .gm-btn:active, .nz-reduce .al-task:active, .nz-reduce .rank-row:active { transform: none; }

/* ✨ Dizayn sayqali — 3-qism: telefonda kalendar oylik ko'rinishida voqea nomi ikki qatorgacha ("Eski fa…" o'rniga "Eski fayllarni") */
@media (max-width: 760px) {
  .cal-mgrid .cal-ev { align-items: flex-start; padding-top: 1px; padding-bottom: 1px; }
  .cal-mgrid .cal-et { align-items: flex-start; padding: 1px 0; }
  .cal-mgrid .cal-et span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; overflow-wrap: anywhere; }
}

/* 🚀 Birinchi qadamlar (2026-11-22): yangi foydalanuvchiga Bugun bo'limi tepasida 3–5 ta qadam */
.guide { margin: 14px 0 0; padding: 14px 16px 12px; border-radius: var(--radius, 18px); background: color-mix(in srgb, var(--accent) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); }
.guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.guide-head b { display: block; font-size: 15px; font-weight: 800; }
.guide-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.guide-x { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; margin: -4px -6px 0 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.guide-x:hover { background: var(--hover); color: var(--text); }
.guide-bar { height: 6px; margin: 10px 0 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.guide-bar i { display: block; height: 100%; min-width: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--success))); transition: width .5s var(--ease); }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.guide-step { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; }
.guide-step + .guide-step { border-top: 1px dashed color-mix(in srgb, var(--accent) 18%, var(--line)); }
.guide-dot { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-3); color: var(--muted); font-size: 12px; font-weight: 800; }
.guide-step.is-next .guide-dot { border-color: var(--accent); color: var(--accent); }
.guide-step.is-ok .guide-dot { border-color: var(--success); background: var(--success); color: #fff; }
.guide-txt { flex: 1 1 auto; min-width: 0; }
.guide-txt b { display: block; font-size: 13.5px; font-weight: 750; line-height: 1.3; }
.guide-step.is-ok .guide-txt b { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); font-weight: 650; }
.guide-txt small { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.guide-step .btn-mini { flex: 0 0 auto; white-space: nowrap; }
.btn-mini.btn-mini-pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.btn-mini.btn-mini-pri:hover { filter: brightness(1.06); }
@media (max-width: 480px) { .guide { padding: 12px 13px 10px; } .guide-txt b { font-size: 13px; } }
/* Admin statistikasi: tasdiq kutayotganlar, «Nega to'xtashdi?» */
.tile.is-warn { border-color: color-mix(in srgb, var(--warning) 55%, var(--line)); background: color-mix(in srgb, var(--warning) 9%, var(--card)); }
.tile.is-warn b { color: var(--warning); }
.adm-stat-note { margin: 8px 2px 0; font-size: 12.5px; }
.adm-why { margin-top: 14px; }
.adm-why-bars { display: grid; gap: 8px; margin-top: 6px; }
.adm-why-notes { display: grid; gap: 8px; margin-top: 14px; }
.adm-why-notes blockquote { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--field); border-left: 3px solid var(--accent); }
.adm-why-notes p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.adm-why-notes small { color: var(--muted); font-size: 11.5px; }
