/* ============================================================
   ✨ EXTRAS — extras.js uchun uslublar
   ============================================================ */

/* ---------- umumiy ---------- */
.x-ov { position: fixed; inset: 0; z-index: 450; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .18s; backdrop-filter: blur(3px); }
.x-ov.open { opacity: 1; }
.x-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 18px); padding: 20px 18px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.4); transform: translateY(10px) scale(.98); transition: transform .18s; box-sizing: border-box; }
.x-ov.open .x-box { transform: none; }
.x-box.x-mx-box { max-width: 760px; }
.x-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface2, transparent); color: var(--text-muted); cursor: pointer; font-size: 14px; }
.x-h { margin: 0 36px 4px 0; font-family: Syne, sans-serif; font-size: var(--fs-lg, 18px); color: var(--text); }
.x-sub { font-size: var(--fs-xs, 12px); color: var(--text-muted); margin: 4px 0 10px; line-height: 1.45; }
.x-sub b { color: var(--text); }
.x-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.x-btn { border: none; border-radius: 12px; padding: 9px 14px; font-weight: 700; font-size: var(--fs-sm, 13px); cursor: pointer; background: var(--accent); color: #fff; font-family: inherit; transition: transform .1s, opacity .15s; }
.x-btn:active { transform: scale(.97); }
.x-btn:disabled { opacity: .45; cursor: default; }
.x-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.x-btn.sm { padding: 6px 10px; font-size: var(--fs-xs, 12px); }
.x-btn.wide { width: 100%; margin-top: 12px; }
.x-link { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 4px 6px; }
.x-link.danger:hover { color: var(--red, #ef4444); }
.x-in { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2, var(--bg)); color: var(--text); font: inherit; font-size: var(--fs-sm, 13px); box-sizing: border-box; }
textarea.x-in { width: 100%; resize: vertical; }
.x-empty { text-align: center; color: var(--text-dim, var(--text-muted)); font-size: var(--fs-sm, 13px); padding: 16px 8px; }
.x-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md, 14px); padding: 14px; margin-bottom: 12px; }
.x-card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--text); }
.x-card-h span { font-size: var(--fs-xs, 12px); color: var(--text-muted); }
.x-sec-t { font-size: var(--fs-xs, 12px); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 8px; }
.x-chk { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs, 12px); color: var(--text-muted); cursor: pointer; margin: 4px 2px; }
.x-chk input { width: 16px; height: 16px; }
.x-insight { background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 12px; padding: 10px 12px; font-size: var(--fs-sm, 13px); color: var(--text); margin: 8px 0; }
.x-insight.big { font-size: var(--fs-md, 15px); }

/* ---------- vazifalar sahifasi ---------- */
.x-tools-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -2px 0 12px; padding-bottom: 2px; }
.x-tools-row::-webkit-scrollbar { display: none; }
.x-tool { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: var(--fs-xs, 12px); font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.x-tool:hover { border-color: var(--accent); }
.x-boss-strip { cursor: pointer; margin-bottom: 10px; }
.x-boss-strip .x-boss { padding: 8px 12px; }
.x-boss-strip .x-boss-e { font-size: 30px; width: 40px; height: 40px; }
.x-boss-strip .x-boss-s { display: none; }
.x-qchip.q1 { color: #ef4444; background: rgba(239,68,68,.12); }
.x-qchip.q2 { color: #3b82f6; background: rgba(59,130,246,.12); }
.x-qchip.q3 { color: #f59e0b; background: rgba(245,158,11,.12); }
.x-qchip.q4 { color: #94a3b8; background: rgba(148,163,184,.12); }

/* ---------- 🐉 boss ---------- */
.x-boss { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, color-mix(in srgb, #ef4444 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, #ef4444 30%, var(--border)); border-radius: 14px; padding: 12px 14px; }
.x-boss.won { background: linear-gradient(135deg, color-mix(in srgb, #22c55e 16%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, #22c55e 35%, var(--border)); }
.x-boss-e { font-size: 44px; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.x-boss.won .x-boss-e { filter: grayscale(1); opacity: .6; }
.x-boss-e.hit { animation: xShake .5s; }
@keyframes xShake { 0%,100% { transform: none; } 20% { transform: translateX(-6px) rotate(-8deg); filter: brightness(1.8) saturate(2); } 40% { transform: translateX(6px) rotate(6deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.x-boss-m { flex: 1; min-width: 0; }
.x-boss-t { display: flex; justify-content: space-between; gap: 6px; color: var(--text); font-size: var(--fs-sm, 13px); }
.x-boss-t span { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.x-hp { position: relative; height: 16px; border-radius: 999px; background: rgba(239,68,68,.15); overflow: hidden; margin: 6px 0 4px; }
.x-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ef4444, #f97316); border-radius: 999px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.x-boss.won .x-hp i { background: #22c55e; }
.x-hp span { position: relative; display: block; text-align: center; font-size: 10.5px; font-weight: 800; line-height: 16px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.x-boss-s { font-size: 11px; color: var(--text-muted); }
.x-boss-log > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed var(--border); font-size: var(--fs-xs, 12px); color: var(--text); }
.x-boss-log b { color: #ef4444; white-space: nowrap; }
.x-boss-hist { display: flex; flex-wrap: wrap; gap: 6px; }
.x-boss-hist span { padding: 4px 8px; border-radius: 999px; font-size: 13px; background: var(--surface2, rgba(255,255,255,.05)); }
.x-boss.lost { background: linear-gradient(135deg, color-mix(in srgb, #64748b 16%, var(--surface)), var(--surface)); border-color: var(--border); }
.x-boss.lost .x-boss-e { filter: grayscale(1); opacity: .6; }
.x-boss.lost .x-hp i { background: #64748b; }
.x-boss.urgent .x-boss-t span { color: #ef4444; }
.x-boss-pick { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); }
.x-boss-pick .x-boss-e { font-size: 30px; }
.x-boss-p { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.x-boss-pick.big { padding: 16px 14px; }
.x-boss-strip .x-boss-pick { padding: 8px 12px; }
.x-boss-strip .x-boss-pick .x-boss-e { font-size: 24px; }
.x-boss-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.x-boss-act .x-boss-s { flex: 1; min-width: 0; }
.x-boss-act .x-btn { flex-shrink: 0; }
.x-btn-fight { background: linear-gradient(135deg, #ef4444, #f97316); }
.x-btn-flee { background: #64748b; }
.x-bossr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; margin-bottom: 12px; }
.x-bossr { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-width: 0; }
.x-bossr.beaten { border-color: color-mix(in srgb, #22c55e 35%, var(--border)); }
.x-bossr.cur { border-color: #ef4444; box-shadow: 0 0 0 2px color-mix(in srgb, #ef4444 30%, transparent); }
.x-bossr.locked { opacity: .62; }
.x-bossr-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.x-bossr-e { font-size: 32px; width: 40px; text-align: center; flex-shrink: 0; }
.x-bossr.locked .x-bossr-e { font-size: 24px; }
.x-bossr-n { display: flex; flex-direction: column; min-width: 0; }
.x-bossr-n b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-bossr-n small { font-size: 11px; color: var(--gold, #f5b041); letter-spacing: 1px; }
.x-bossr-st { display: flex; flex-wrap: wrap; gap: 4px; }
.x-bossr-st span { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: var(--surface2, rgba(255,255,255,.05)); color: var(--text-muted); white-space: nowrap; }
.x-bossr-st span.g { color: #22c55e; background: rgba(34,197,94,.12); }
.x-bossr-st span.r { color: #ef4444; background: rgba(239,68,68,.12); }
.x-bossr-st.c { justify-content: center; margin: 8px 0; }
.x-bossr .x-btn { width: 100%; margin-top: auto; }
.x-bossr-lock { font-size: 11px; color: var(--text-muted); text-align: center; padding: 6px 4px; border: 1px dashed var(--border); border-radius: 10px; margin-top: auto; }
.x-bres { text-align: center; color: var(--text); }
.x-bres-e { font-size: 56px; line-height: 1.1; }
.x-bres h3 { margin: 6px 0 4px; font-size: 18px; }
.x-bres p { font-size: var(--fs-sm, 13px); color: var(--text-muted); margin: 6px 0; line-height: 1.5; }
.x-bres-w { color: #f97316 !important; font-weight: 700; }
.x-bres-c { font-size: 22px !important; font-weight: 800; color: #ef4444 !important; }
.x-bres-a { display: flex; gap: 8px; margin-top: 14px; }
.x-bres-a .x-btn { flex: 1; }

/* ---------- 🚀 hub ---------- */
.x-hub { padding: 4px 0; }
.x-hub-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.x-hub-tools button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; line-height: 1.2; }
.x-hub-tools button span { font-size: 22px; }
.x-hub-tools button:hover { border-color: var(--accent); }
.x-hub-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px; }
.x-hub-nav::-webkit-scrollbar { display: none; }
.x-hub-nav button { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: var(--fs-sm, 13px); font-weight: 600; cursor: pointer; font-family: inherit; }
.x-hub-nav button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 420px) { .x-hub-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; } .x-hub-tools button { font-size: 10px; padding: 10px 2px; } .x-hub-tools button span { font-size: 19px; } }

/* ---------- 📑 shablonlar ---------- */

/* ---------- ▦ matritsa ---------- */
.x-mx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.x-mx-q, .x-mx-un { min-width: 0; border-radius: 14px; padding: 10px; border: 1px solid var(--border); min-height: 120px; display: flex; flex-direction: column; }
.x-mx-un { margin-top: 8px; min-height: 70px; background: var(--surface2, transparent); }
.x-mx-q.q1 { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.3); }
.x-mx-q.q2 { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.3); }
.x-mx-q.q3 { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.3); }
.x-mx-q.q4 { background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.3); }
.x-mx-qh { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--text); margin-bottom: 6px; }
.x-mx-qh span { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.x-mx-list { flex: 1; display: flex; flex-direction: column; gap: 5px; min-height: 40px; }
.x-mx-un .x-mx-list { flex-direction: row; flex-wrap: wrap; }
.x-mx-chip { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; color: var(--text); cursor: grab; user-select: none; }
.x-mx-chip i { font-style: normal; color: var(--text-muted); font-size: 11px; }
.x-mx-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.x-mx-done { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); background: transparent; cursor: pointer; flex-shrink: 0; padding: 0; }
.x-mx-done:hover { border-color: var(--green, #22c55e); background: rgba(34,197,94,.2); }
.x-mx-chip { min-width: 0; max-width: 100%; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s, opacity .15s; -webkit-tap-highlight-color: transparent; }
.x-mx-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.x-mx-chip.x-mx-sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 6px 16px var(--accent-glow, rgba(0,0,0,.25)); transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.x-mx-edit { flex-shrink: 0; width: 28px; height: 28px; margin: -6px -5px -6px 0; border: none; border-radius: 8px; background: transparent; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; opacity: .55; transition: opacity .15s, background .15s; }
.x-mx-edit:hover, .x-mx-edit:focus-visible { opacity: 1; background: color-mix(in srgb, var(--accent) 15%, transparent); }
.x-mx-chip.x-mx-sel .x-mx-edit { opacity: .9; }
.x-mx-qh { flex-wrap: wrap; }
.x-mx-hint { display: none; flex-basis: 100%; font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
.x-mx-picking [data-zone] { cursor: pointer; transition: border-color .15s, opacity .15s, box-shadow .15s; }
.x-mx-picking [data-zone]:not(.x-mx-src) { outline: 2px dashed var(--accent); outline-offset: -2px; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--accent) 5%, transparent); }
.x-mx-picking [data-zone]:not(.x-mx-src) .x-mx-hint { display: block; animation: xMxHint 1.2s ease-in-out infinite; }
.x-mx-picking [data-zone].x-mx-src > .x-mx-qh, .x-mx-picking [data-zone].x-mx-src .x-mx-chip:not(.x-mx-sel) { opacity: .45; }
@keyframes xMxHint { 50% { opacity: .55; } }
@media (hover: hover) { .x-mx-picking [data-zone]:not(.x-mx-src):hover { box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--accent) 11%, transparent); } }
@media (prefers-reduced-motion: reduce) { .x-mx-chip.x-mx-sel { transform: none; } .x-mx-picking [data-zone] .x-mx-hint { animation: none !important; } }
@media (max-width: 520px) { .x-mx-grid { gap: 6px; } .x-mx-q { padding: 8px; min-height: 100px; } .x-mx-qh { flex-direction: column; } .x-mx-hint { flex-basis: auto; } .x-mx-chip { padding: 6px 7px; gap: 6px; } .x-mx-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; line-height: 1.25; } .x-mx-edit { width: 24px; margin-right: -4px; } }

/* ---------- 🌙 kun yakuni ---------- */

/* ---------- 🔥 heatmap ---------- */
.x-hm-sum { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.x-hm-sum b { color: var(--text); font-size: 15px; }
.x-hm-wrap { display: flex; gap: 4px; }
.x-hm-days { display: flex; flex-direction: column; gap: 3px; padding-top: 16px; }
.x-hm-days span { height: 11px; font-size: 9px; line-height: 11px; color: var(--text-muted); }
.x-hm-scroll { overflow-x: auto; flex: 1; scrollbar-width: thin; }
.x-hm-months { display: flex; gap: 3px; height: 14px; margin-bottom: 2px; }
.x-hm-months span { width: 11px; flex-shrink: 0; font-size: 9px; color: var(--text-muted); white-space: nowrap; overflow: visible; }
.x-hm { display: flex; gap: 3px; }
.x-hm-c { display: flex; flex-direction: column; gap: 3px; }
.x-hm i, .x-hm-leg i { display: block; width: 11px; height: 11px; border-radius: 3px; background: color-mix(in srgb, var(--text-muted) 14%, transparent); }
.x-hm i.x-hm-x { background: transparent; }
.x-hm i.l1, .x-hm-leg i.l1 { background: color-mix(in srgb, #22c55e 35%, transparent); }
.x-hm i.l2, .x-hm-leg i.l2 { background: color-mix(in srgb, #22c55e 55%, transparent); }
.x-hm i.l3, .x-hm-leg i.l3 { background: color-mix(in srgb, #22c55e 78%, transparent); }
.x-hm i.l4, .x-hm-leg i.l4 { background: #16a34a; }
.x-hm-leg { display: flex; align-items: center; gap: 3px; justify-content: flex-end; font-size: 10px; color: var(--text-muted); margin-top: 8px; }
.x-hm-leg i { display: inline-block; }

/* ---------- 📊 ustunli diagramma ---------- */
.x-bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 6px; }
.x-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.x-bar i { display: block; width: 100%; max-width: 26px; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--accent) 45%, transparent); transition: height .4s; }
.x-bar.hi i { background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent); }
.x-bar span { font-size: 9.5px; color: var(--text-muted); height: 12px; line-height: 12px; }

/* ---------- 🔗 bog'liqlik ---------- */
.x-corr { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.x-corr:last-of-type { border-bottom: none; }
.x-corr-t { font-size: var(--fs-sm, 13px); color: var(--text); }
.x-corr-bar { position: relative; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--text-muted) 15%, transparent); overflow: hidden; }
.x-corr-bar i { position: absolute; inset: 0 auto 0 0; background: #22c55e; border-radius: 999px; }
.x-corr-bar em { position: absolute; inset: 0 auto 0 0; border-right: 2px solid var(--text); opacity: .6; }

/* ---------- 📅 oylik yakun ---------- */
.x-wrap-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 36px 12px; color: var(--text); }
.x-wrap-card { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px 18px; color: #fff; background: linear-gradient(150deg, #2b1a6b 0%, #7c5cfc 55%, #f472b6 100%); box-shadow: 0 14px 40px rgba(124,92,252,.35); }
.x-wrap-card::before { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); top: -80px; right: -60px; }
.x-wrap-top { position: relative; display: flex; justify-content: space-between; font-size: 13px; opacity: .9; }
.x-wrap-hero { position: relative; margin: 10px 0 14px; font-size: 15px; font-weight: 600; }
.x-wrap-big { font-size: 64px; font-weight: 900; line-height: 1; font-family: Syne, sans-serif; }
.x-wrap-hero em { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.2); margin-left: 4px; }
.x-wrap-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.x-wrap-grid > div { background: rgba(255,255,255,.14); border-radius: 14px; padding: 10px 8px; }
.x-wrap-grid b { display: block; font-size: 20px; font-weight: 800; }
.x-wrap-grid span { font-size: 10.5px; opacity: .9; }
.x-wrap-top3 { position: relative; margin-top: 12px; background: rgba(0,0,0,.15); border-radius: 14px; padding: 10px 12px; }
.x-wrap-lbl { font-size: 11px; opacity: .85; margin-bottom: 4px; font-weight: 700; }
.x-wrap-top3 > div:not(.x-wrap-lbl) { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.x-wrap-foot { position: relative; margin-top: 10px; font-size: 13px; }
.x-wrap-brand { position: relative; margin-top: 12px; font-size: 10px; opacity: .65; }

/* ---------- 🎯 fokus ---------- */
.x-focus { position: fixed; inset: 0; z-index: 470; background: radial-gradient(ellipse at top, #1e1b4b 0%, #0b0b12 70%); color: #fff; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .25s; }
.x-focus.open { opacity: 1; }
.x-fc-in { width: 100%; max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.x-fc-top { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .8; }
.x-fc-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer; }
.x-fc-sel { width: 100%; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); font: inherit; }
.x-fc-sel option { color: #000; }
.x-fc-task b { display: block; font-size: 22px; font-weight: 800; font-family: Syne, sans-serif; }
.x-fc-task span { font-size: 13px; opacity: .7; }
.x-fc-ring { position: relative; width: min(70vw, 280px); aspect-ratio: 1; }
.x-fc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.x-fc-ring circle { fill: none; stroke-width: 6; }
.x-fc-ring .bg { stroke: rgba(255,255,255,.1); }
.x-fc-ring .fg { stroke: #a78bfa; stroke-linecap: round; transition: stroke-dashoffset .3s linear; filter: drop-shadow(0 0 8px rgba(167,139,250,.6)); }
.x-fc-time { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(44px, 14vw, 64px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.x-fc-ph { position: absolute; left: 0; right: 0; bottom: 26%; font-size: 12px; opacity: .6; }
.x-fc-presets { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.x-fc-presets button { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: 12px; }
.x-fc-presets button.on { background: #a78bfa; border-color: #a78bfa; color: #1e1b4b; font-weight: 700; }
.x-fc-ctrl { display: flex; gap: 14px; }
.x-fc-ctrl button { width: 64px; height: 64px; border-radius: 50%; border: none; background: #a78bfa; color: #1e1b4b; font-size: 24px; cursor: pointer; }
.x-fc-ctrl .x-fc-reset { background: rgba(255,255,255,.1); color: #fff; width: 52px; height: 52px; align-self: center; font-size: 20px; }
.x-fc-act { display: flex; gap: 8px; }
.x-fc-act button { padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font: inherit; font-size: 13px; }
.x-fc-quote { font-size: 13px; opacity: .55; font-style: italic; }
html.x-focus-on, html.x-focus-on body { overflow: hidden; }
/* Fokus rejimidagi "🎵 Tovushlar" pleyeri fokus ekranining ustida ochilsin (aks holda orqasida qolib ketadi) */
html.x-focus-on #focus-player-modal-overlay { z-index: 480; }
/* Pomodoro suzuvchi taymeri fokus ekranidagi vazifa tanlovini to'sib qo'ymasin */
html.x-focus-on #pomo-float { display: none !important; }

/* ---------- 😴 uyqu ---------- */
.x-sleep-card { padding: 12px 14px; }
.x-sleep-card:empty { display: none; }
.x-sl-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; color: var(--text); }
.x-sl-top b { font-size: var(--fs-sm, 13px); }
.x-sl-q { font-size: var(--fs-xs, 12px); color: var(--text-muted); }
.x-sl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.x-sl-step { display: inline-flex; align-items: center; gap: 4px; background: var(--surface2, var(--bg)); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.x-sl-pm { width: 34px; height: 34px; border: none; border-radius: 9px; background: transparent; color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; font-family: inherit; line-height: 1; }
.x-sl-pm:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.x-sl-val { min-width: 62px; text-align: center; font-size: var(--fs-lg, 18px); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.x-sl-val small { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.x-sl-val.ok { color: #22c55e; }
.x-sl-val.mid { color: #f5a623; }
.x-sl-val.low { color: #f87171; }
.x-sl-chips { display: flex; gap: 5px; flex: 1; min-width: 0; }
.x-sl-chip { flex: 1; min-width: 34px; max-width: 52px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: var(--fs-sm, 13px); cursor: pointer; font-family: inherit; }
.x-sl-chip:hover { border-color: var(--accent); }
.x-sl-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.x-sl-foot { display: flex; align-items: flex-end; gap: 12px; margin-top: 10px; }
.x-sl-mini { display: flex; align-items: flex-end; gap: 3px; height: 40px; flex: 0 0 132px; }
.x-sl-mb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.x-sl-mb i { display: block; width: 100%; max-width: 14px; border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.x-sl-mb.off i { background: color-mix(in srgb, #f5a623 55%, transparent); }
.x-sl-mb.td i { outline: 1px solid var(--accent); }
.x-sl-mb span { font-size: 9px; line-height: 10px; color: var(--text-muted); }
.x-sl-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--text-muted); }
.x-sl-meta b { color: var(--text); }
.x-sl-clr { align-self: flex-start; font-size: 11px; padding: 2px 0; text-decoration: underline; }


/* ---------- 🛍 do'kon ---------- */
.x-shop-bal { display: flex; gap: 16px; font-size: 14px; color: var(--text); }
.x-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.x-shop-it { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface2, transparent); cursor: pointer; color: var(--text); font-family: inherit; }
.x-shop-it.own { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.x-shop-it.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.x-shop-n { font-size: 12px; font-weight: 600; text-align: center; }
.x-shop-p { font-size: 11.5px; font-weight: 700; color: var(--gold, #f5b041); }
.x-shop-it.own .x-shop-p, .x-shop-it.on .x-shop-p { color: var(--accent); }
.x-shop-av { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.x-shop-nk { font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-shop-tt { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); font-weight: 700; }
.x-ptitle { display: inline-block; margin: 4px auto 0; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); font-weight: 700; }

/* ramkalar (do'kon ko'rinishi + profil avatari) */
.xf-gold, html[data-x-frame="gold"] #profile-avatar { box-shadow: 0 0 0 3px #f5c542, 0 0 18px rgba(245,197,66,.55) !important; border-color: #f5c542 !important; }
.xf-ice, html[data-x-frame="ice"] #profile-avatar { box-shadow: 0 0 0 3px #7dd3fc, 0 0 20px rgba(125,211,252,.6) !important; border-color: #bae6fd !important; }
.xf-neon, html[data-x-frame="neon"] #profile-avatar { box-shadow: 0 0 0 3px #c084fc, 0 0 0 6px rgba(34,211,238,.6), 0 0 26px rgba(192,132,252,.8) !important; border-color: #c084fc !important; }
.xf-fire, html[data-x-frame="fire"] #profile-avatar { box-shadow: 0 0 0 3px #f97316, 0 0 22px #ef4444, 0 -6px 26px rgba(250,204,21,.6) !important; border-color: #f97316 !important; animation: xFire 1.6s ease-in-out infinite; }
.xf-rainbow, html[data-x-frame="rainbow"] #profile-avatar { border-color: transparent !important; box-shadow: 0 0 0 3px #f43f5e, 0 0 0 6px #f59e0b, 0 0 0 9px #22c55e, 0 0 0 12px #3b82f6, 0 0 24px rgba(168,85,247,.6) !important; animation: xRainbow 4s linear infinite; }
@keyframes xFire { 50% { box-shadow: 0 0 0 3px #facc15, 0 0 30px #f97316, 0 -8px 30px rgba(239,68,68,.6); } }
@keyframes xRainbow { to { filter: hue-rotate(360deg); } }
/* nik ranglari */
.xn-mint, html[data-x-nick="mint"] #user-title, html[data-x-nick="mint"] #profile-name-big { color: #34d399 !important; }
.xn-pink, html[data-x-nick="pink"] #user-title, html[data-x-nick="pink"] #profile-name-big { color: #f472b6 !important; }
.xn-gold, html[data-x-nick="gold"] #user-title, html[data-x-nick="gold"] #profile-name-big { color: #f5c542 !important; text-shadow: 0 0 10px rgba(245,197,66,.45); }
.xn-rainbow, html[data-x-nick="rainbow"] #user-title, html[data-x-nick="rainbow"] #profile-name-big { background: linear-gradient(90deg, #f43f5e, #f59e0b, #22c55e, #3b82f6, #a855f7) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }

/* ---------- 👥 birga / 📰 lenta ---------- */
.x-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.x-sh-it { border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.x-sh-it.both { border-color: #22c55e; background: color-mix(in srgb, #22c55e 7%, var(--surface)); }
.x-sh-h { display: flex; justify-content: space-between; color: var(--text); font-size: var(--fs-sm, 13px); }
.x-sh-h span { font-weight: 800; color: #f97316; }
.x-sh-p { display: flex; gap: 10px; margin-top: 10px; }
.x-sh-who { flex: 1; display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 12px; background: var(--surface2, rgba(255,255,255,.04)); font-size: 12px; color: var(--text-muted); min-width: 0; }
.x-sh-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-sh-who.ok { color: var(--text); background: color-mix(in srgb, #22c55e 12%, transparent); }
.x-feed-tools { justify-content: space-between; margin: 0 0 10px; }
.x-feed-it { border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 8px; background: var(--surface); }
.x-feed-h { display: flex; align-items: center; gap: 10px; }
.x-feed-h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.x-feed-h b { font-size: 13px; color: var(--text); }
.x-feed-h b i { font-weight: 500; color: var(--text-muted); font-style: normal; }
.x-feed-h span { font-size: 11px; color: var(--text-muted); }
.x-feed-h em { font-style: normal; font-size: 22px; }
.x-feed-t { font-size: 13.5px; color: var(--text); margin: 8px 0; line-height: 1.4; }
.x-feed-r { display: flex; gap: 6px; flex-wrap: wrap; }
.x-feed-r button { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; font-size: 13px; font-family: inherit; }
.x-feed-r button.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); }
.x-boss-t b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-boss-t span { flex-shrink: 0; }

/* ↕️ TOTAL panelidagi saralash */
.xs-modes { margin-bottom: 12px; }
.xs-lbl { font-size: var(--fs-2xs, 11px); color: var(--text-dim, var(--text-muted)); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.xs-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.xs-chips::-webkit-scrollbar { display: none; }
.xs-chip { flex-shrink: 0; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface2, transparent); color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.xs-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.xs-chip i { font-style: normal; }
.xs-gt { font-size: var(--fs-2xs, 11px); color: var(--text-dim, var(--text-muted)); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.xs-row { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.xs-row:last-of-type { border-bottom: none; }
.xs-row.empty { opacity: .45; }
.xs-row-t { display: flex; justify-content: space-between; font-size: var(--fs-sm, 13px); color: var(--text); }
.xs-bar { height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--text-muted) 15%, transparent); margin: 6px 0; overflow: hidden; }
.xs-bar i { display: block; height: 100%; background: var(--green, #22c55e); border-radius: 999px; }
.xs-row-s { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.xs-row-s span { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--surface2, rgba(255,255,255,.05)); color: var(--text-muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xs-row-s span.d { text-decoration: line-through; opacity: .6; }
.xs-row-s em { font-style: normal; font-size: 11px; color: var(--gold, #f5b041); margin-left: auto; font-weight: 700; }
.xs-hint { font-size: 11px; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* 🛍 do'kon — yangi buyumlar */
.xf-ocean, html[data-x-frame="ocean"] #profile-avatar { box-shadow: 0 0 0 3px #0ea5e9, 0 0 0 6px rgba(56,189,248,.35), 0 0 22px rgba(14,165,233,.55) !important; border-color: #38bdf8 !important; }
.xf-sakura, html[data-x-frame="sakura"] #profile-avatar { box-shadow: 0 0 0 3px #f9a8d4, 0 0 0 6px rgba(244,114,182,.35), 0 0 22px rgba(249,168,212,.6) !important; border-color: #fbcfe8 !important; }
.xf-matrix, html[data-x-frame="matrix"] #profile-avatar { box-shadow: 0 0 0 2px #22c55e, 0 0 0 5px #052e16, 0 0 0 7px #16a34a, 0 0 20px rgba(34,197,94,.6) !important; border-color: #22c55e !important; animation: xMatrix 1.4s steps(2) infinite; }
.xf-lava, html[data-x-frame="lava"] #profile-avatar { box-shadow: 0 0 0 3px #dc2626, 0 0 0 7px #f97316, 0 0 30px rgba(234,88,12,.7) !important; border-color: #ea580c !important; animation: xFire 2s ease-in-out infinite; }
.xf-galaxy, html[data-x-frame="galaxy"] #profile-avatar { box-shadow: 0 0 0 3px #6366f1, 0 0 0 6px #a855f7, 0 0 0 9px rgba(236,72,153,.6), 0 0 34px rgba(99,102,241,.7) !important; border-color: #818cf8 !important; animation: xRainbow 8s linear infinite; }
@keyframes xMatrix { 50% { box-shadow: 0 0 0 2px #4ade80, 0 0 0 5px #052e16, 0 0 0 7px #22c55e, 0 0 28px rgba(74,222,128,.8); } }
.xn-ocean, html[data-x-nick="ocean"] #user-title, html[data-x-nick="ocean"] #profile-name-big { color: #38bdf8 !important; }
.xn-lava, html[data-x-nick="lava"] #user-title, html[data-x-nick="lava"] #profile-name-big { color: #fb923c !important; text-shadow: 0 0 8px rgba(249,115,22,.4); }
.xn-ice, html[data-x-nick="ice"] #user-title, html[data-x-nick="ice"] #profile-name-big { color: #e0f2fe !important; text-shadow: 0 0 10px rgba(125,211,252,.8); }
.xn-neon, html[data-x-nick="neon"] #user-title, html[data-x-nick="neon"] #profile-name-big { color: #f0abfc !important; text-shadow: 0 0 6px #d946ef, 0 0 14px #a21caf; }
.xn-aurora, html[data-x-nick="aurora"] #user-title, html[data-x-nick="aurora"] #profile-name-big { background: linear-gradient(90deg, #22d3ee, #a78bfa, #34d399, #22d3ee) !important; background-size: 200% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; animation: xAurora 4s linear infinite; }
@keyframes xAurora { to { background-position: 200% 0; } }
.x-nbadge { margin-left: 4px; font-size: .9em; vertical-align: middle; }
.x-shop-th { display: flex; gap: 4px; height: 48px; align-items: center; }
.x-shop-th i { width: 14px; height: 30px; border-radius: 6px; background: var(--tc); }
.x-shop-th i:nth-child(2) { height: 40px; opacity: .7; } .x-shop-th i:nth-child(3) { height: 22px; opacity: .45; }
.x-shop-fx { font-size: 22px; height: 48px; display: flex; align-items: center; letter-spacing: 2px; }
.x-fx { position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%, -50%); animation: xFx 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes xFx { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 80px)) rotate(var(--rot)) scale(1); } }

/* 📊 Statistika bo'limiga ko'chirilgan kartalar */
.xst-reports { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.xst-reports .wr-open-btn { margin: 0 !important; width: 100%; }
.xst-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 12px; }
.xst-card:empty { display: none; }
.x-mood-card { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; font-family: inherit; color: var(--text); }
.x-mood-card:hover { border-color: var(--accent); }
.x-mood-e { font-size: 30px; }
.x-mood-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.x-mood-t span { font-size: 12px; color: var(--text-muted); }
.x-mood-go { font-size: 22px; color: var(--text-muted); }
.pomo-focus-btn { font-size: 18px; }

/* 📊 Admin paneli */
.ad-ov { position: fixed; inset: 0; z-index: 460; background: rgba(0,0,0,.7); display: flex; justify-content: center; align-items: flex-start; padding: 16px; overflow-y: auto; backdrop-filter: blur(3px); }
.ad-box { width: 100%; max-width: 1100px; background: var(--bg, #0b0b12); border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-sizing: border-box; }
.ad-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; position: sticky; top: -16px; background: var(--bg, #0b0b12); z-index: 2; padding: 6px 0; }
.ad-head-b { display: flex; gap: 8px; align-items: center; }
.ad-title { font-family: Syne, sans-serif; font-size: 20px; font-weight: 800; color: var(--text); }
.ad-upd { font-size: 11px; color: var(--text-muted); }
.ad-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ad-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.ad-tile-l { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.ad-tile-v { font-family: Syne, sans-serif; font-size: 28px; font-weight: 800; color: var(--text); margin: 4px 0 2px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ad-tile-s { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.ad-delta { font-weight: 700; }
.ad-delta.up { color: var(--green, #34D399); } .ad-delta.down { color: var(--red, #F87171); }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ad-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; min-width: 0; }
.ad-card-t { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.ad-sub-t { font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin: 12px 0 6px; }
.ad-bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; }
.ad-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; cursor: default; }
.ad-bar i { display: block; width: 100%; max-width: 28px; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .85; transition: opacity .15s; }
.ad-bar:hover i { opacity: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.ad-bar span { font-size: 9.5px; color: var(--text-muted); height: 12px; line-height: 12px; white-space: nowrap; }
.ad-row { padding: 5px 0; }
.ad-row-t { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text); }
.ad-row-t span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.ad-row-t b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ad-row-t em { font-style: normal; color: var(--text-muted); font-weight: 500; font-size: 11px; margin-left: 4px; }
.ad-row-b { height: 6px; border-radius: 999px; background: var(--surface2); overflow: hidden; margin-top: 4px; }
.ad-row-b i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.ad-dim { color: var(--text-muted); }
.ad-empty { text-align: center; color: var(--text-muted); font-size: 13px; padding: 14px; }
.ad-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ad-mini > div { background: var(--surface2); border-radius: 10px; padding: 8px 10px; }
.ad-mini b { display: block; font-size: 18px; color: var(--text); font-family: Syne, sans-serif; font-variant-numeric: tabular-nums; }
.ad-mini span { font-size: 11px; color: var(--text-muted); }
.ad-tbl-w { overflow-x: auto; }
.ad-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; color: var(--text); }
.ad-tbl th { text-align: left; font-size: 11px; color: var(--text-muted); font-weight: 600; padding: 6px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ad-tbl td { padding: 7px 6px; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); white-space: nowrap; }
.ad-tip { position: fixed; z-index: 470; display: none; transform: translate(-50%, -100%); background: var(--surface2); color: var(--text); border: 1px solid var(--border-hover, var(--border)); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.ad-open-btn { width: 100%; margin-bottom: 12px; padding: 13px; border-radius: 14px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
@media (max-width: 520px) { .ad-box { padding: 12px; } .ad-grid { grid-template-columns: 1fr; } .ad-kpis { grid-template-columns: 1fr 1fr; } .ad-tile { padding: 10px; } .ad-tile-v { font-size: 22px; } }

/* 🧭 Asosiy menyuda faqat 5 ta bo'lim — qolganlari Hub → Bo'limlar */
#tabs-bar .tab.x-moved { display: none !important; }
.x-secs-t { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin: 2px 2px 8px; }
.x-secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.x-sec { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.x-sec span { font-size: 24px; line-height: 1; }
.x-sec:hover { border-color: var(--accent); }

/* 📱 Telefon: pastki navigatsiya paneli */
#x-bnav { display: none; }
html.layout-mobile #x-bnav {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
#x-bnav button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: none; background: none; color: var(--text-muted); font-family: inherit; cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
#x-bnav .x-bn-i { font-size: 21px; line-height: 1; transition: transform .15s; }
#x-bnav .x-bn-l { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#x-bnav button.on { color: var(--accent); }
#x-bnav button.on .x-bn-i { transform: translateY(-1px) scale(1.08); }
#x-bnav button:active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
html.layout-mobile #tabs-bar { display: none !important; }
html.layout-mobile body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
html.layout-mobile .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; }
html.layout-mobile #undo-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; }
html.layout-mobile #focus-mini-player { bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; }
/* Pomodoro oynasi ochiq bo'lsa pastki panel uning ostida qoladi */
html.layout-mobile body:has(#pomo-modal-overlay.open) #x-bnav { display: none; }

/* 📱 Telefon qulayligi: gorizontal "qimirlash"ning oldini olish, katta bosish maydonlari */
html.layout-mobile, html.layout-mobile body { overflow-x: hidden; max-width: 100%; }
html.layout-mobile .wrapper { overflow-x: clip; }
html.layout-mobile .check-btn { min-width: 30px; min-height: 30px; }
html.layout-mobile input, html.layout-mobile select, html.layout-mobile textarea { font-size: 16px; } /* iOS avtomatik zoom qilmasin */

/* 📲 O'rnatish */
.x-install-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); }
.x-install-banner img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.x-ib-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.x-ib-t b { font-size: 14px; color: var(--text); }
.x-ib-t span { font-size: 11.5px; color: var(--text-muted); line-height: 1.35; }
.x-inst-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.x-inst-steps > div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); line-height: 1.45; }
.x-inst-steps b:first-child { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

/* 📨 Admin paneli: Statistika / Fikrlar tablari */
.ad-tabs { display: flex; gap: 6px; margin: 4px 0 12px; }
.ad-tab { flex: 1; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-muted); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ad-tab.on { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: var(--accent); color: var(--text); }
.ad-tab-n:not(:empty) { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #EF4444; color: #fff; font-size: 11px; }

/* 📌 Vazifalar sahifasi: boss · kvestlar · uyqu · matritsa — bitta ixcham qator */
.x-today { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.x-today::-webkit-scrollbar { display: none; }
.x-tchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; position: relative; }
.x-tchip:hover { border-color: var(--accent); }
.x-tchip span { font-size: 15px; line-height: 1; }
.x-tchip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.x-tchip em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.x-tchip-hot { border-color: var(--accent); }
.x-tchip-bar { display: inline-block; width: 44px; height: 6px; border-radius: 999px; background: color-mix(in srgb, #ef4444 20%, transparent); overflow: hidden; }
.x-tchip-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #f97316); border-radius: 999px; }
.x-today-box { max-width: 520px; }
.x-today-sheet .quests-card, .x-today-sheet .x-sleep-card { margin: 8px 0 0; }

/* 🔔 Eslatmalar kartasi (Sozlamalar) */
.x-push-card { margin-bottom: 12px; }
.x-push-h { display: flex; align-items: center; gap: 10px; }
.x-push-h > span { font-size: 22px; }
.x-push-h > div { flex: 1; min-width: 0; }
.x-push-h b { display: block; color: var(--text); font-size: 14px; }
.x-push-h small { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.x-push-card .x-chk { display: flex; margin-top: 8px; }

/* 🎁 Do'st taklif qilish */
.x-ref-box { max-width: 460px; }
.x-ref-p { color: var(--text-muted); font-size: 13.5px; line-height: 1.5; margin: 4px 0 12px; }
.x-ref-p b { color: var(--text); }
.x-ref-link { display: flex; gap: 6px; }
.x-ref-link input { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: 13px; }
.x-ref-acts { display: flex; gap: 6px; margin: 8px 0 14px; flex-wrap: wrap; }
.x-ref-acts a { text-decoration: none; }
.x-ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.x-ref-stats > div { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 6px; text-align: center; }
.x-ref-stats b { display: block; color: var(--text); font-size: 18px; }
.x-ref-stats span { font-size: 11px; color: var(--text-muted); }
.x-ref-by { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.x-ref-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
.x-ref-row em { font-style: normal; color: var(--text-muted); }

/* 🛡 Klanlar */
.x-clan-box { max-width: 520px; }
.x-clan-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.x-clan-emo { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: color-mix(in srgb, var(--accent) 18%, var(--surface2)); border: 1px solid var(--border); }
.x-clan-hd b { display: block; color: var(--text); font-size: 16px; }
.x-clan-hd small { color: var(--text-muted); font-size: 12px; }
.x-clan-tag { color: var(--accent); font-weight: 800; font-size: .85em; letter-spacing: .03em; }
.x-clan-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.x-clan-stats > div { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 9px 6px; text-align: center; }
.x-clan-stats b { display: block; color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.x-clan-stats span { font-size: 11px; color: var(--text-muted); }
.x-clan-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.x-clan-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text); }
.x-clan-row.mine { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 10px; }
.x-clan-pos { width: 26px; text-align: center; flex-shrink: 0; color: var(--text-muted); font-weight: 700; }
.x-clan-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.x-clan-nm small { display: block; color: var(--text-muted); font-size: 11px; }
.x-clan-nm em { font-style: normal; color: var(--accent); font-size: 11px; }
.x-clan-row > b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.x-clan-leave { margin-top: 12px; width: 100%; }
.x-clan-create { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.x-clan-create summary { cursor: pointer; font-weight: 700; color: var(--text); }
.x-clan-create input { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: 14px; }
.x-clan-create .x-btn { margin-top: 10px; width: 100%; }
.x-clan-emos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.x-clan-emos button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); font-size: 18px; cursor: pointer; }
.x-clan-emos button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--surface2)); }
/* ---------- 🏅 Yutuqlar devori (Achievements wall) ---------- */
.x-aw-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 18px); padding: 14px 16px; margin-bottom: 12px; }
.x-aw-card:empty { display: none; }
.x-aw-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.x-aw-title { font-size: var(--fs-xs, 12px); color: var(--text-muted); letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.x-aw-count { font-size: var(--fs-2xs, 11px); color: var(--gold, #F5A623); background: var(--gold-dim, rgba(245,166,35,.15)); border-radius: 999px; padding: 2px 8px; font-weight: 700; white-space: nowrap; }
.x-aw-choose { margin-left: auto; }
.x-aw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .x-aw-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.x-aw-hint { font-size: var(--fs-xs, 12px); color: var(--text-dim, var(--text-muted)); text-align: center; padding: 10px 6px; line-height: 1.45; }
.x-aw-note { font-size: var(--fs-3xs, 10px); color: var(--text-dim, var(--text-muted)); margin-top: 10px; text-align: right; }

/* bitta badge */
.x-aw-b { --tc: #CD7F32; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 10px 4px 8px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--tc) 70%, transparent); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%), var(--surface2, var(--bg)); box-shadow: 0 0 12px color-mix(in srgb, var(--tc) 18%, transparent); color: var(--text); font-family: inherit; text-align: center; box-sizing: border-box; }
.x-aw-t1 { --tc: #CD7F32; } .x-aw-t2 { --tc: #B8C2CC; } .x-aw-t3 { --tc: #F5A623; } .x-aw-t4 { --tc: #22D3EE; } .x-aw-t5 { --tc: #C084FC; }
.x-aw-i { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.x-aw-n { font-size: var(--fs-2xs, 11px); font-weight: 700; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-aw-empty { --tc: var(--border); border-style: dashed; background: transparent; box-shadow: none; color: var(--text-dim, var(--text-muted)); font-size: 20px; cursor: pointer; min-height: 64px; }
.x-aw-empty:hover { color: var(--accent); border-color: var(--accent); }

/* boshqalar profilida — ixcham qator */
.x-aw-sec { margin-top: 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-md, 12px); padding: 10px; }
.x-aw-sec-t { font-size: var(--fs-3xs, 10px); color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.x-aw-sec-t .x-aw-count { font-size: var(--fs-3xs, 10px); padding: 1px 7px; }
.x-aw-none { font-size: var(--fs-xs, 12px); color: var(--text-dim, var(--text-muted)); text-align: center; padding: 6px 4px; }
.x-aw-row .x-aw-pin { border-width: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 45%, transparent), 0 0 14px color-mix(in srgb, var(--tc) 40%, transparent); }
.x-aw-row .x-aw-pin::after { content: '📌'; position: absolute; top: 2px; right: 3px; font-size: 9px; line-height: 1; }
.x-aw-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.x-aw-row .x-aw-b { padding: 7px 3px 6px; border-radius: 11px; gap: 3px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%), var(--surface); }
.x-aw-row .x-aw-i { font-size: 20px; }
.x-aw-row .x-aw-n { font-size: var(--fs-3xs, 10px); }
#friend-profile-modal .x-aw-sec { margin: 0 0 12px; }

/* tanlash oynasi */
.x-aw-box { max-width: 560px; }
.x-aw-pk-g { font-size: var(--fs-xs, 12px); font-weight: 700; color: var(--text-muted); margin: 12px 0 6px; }
.x-aw-pk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 420px) { .x-aw-pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.x-aw-pk-grid .x-aw-b { cursor: pointer; padding: 8px 3px 7px; transition: transform .12s, box-shadow .12s; }
.x-aw-pk-grid .x-aw-b:active { transform: scale(.96); }
.x-aw-pk-grid .x-aw-b .x-aw-i { font-size: 22px; }
.x-aw-pk-grid .x-aw-b.on { outline: 2px solid var(--accent); outline-offset: 1px; box-shadow: 0 0 0 4px var(--accent-glow, rgba(0,0,0,.1)), 0 0 14px color-mix(in srgb, var(--tc) 35%, transparent); }
.x-aw-pk-grid .x-aw-b.locked { --tc: var(--border); opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(1); }
.x-aw-no { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.x-aw-foot { position: sticky; bottom: -18px; display: flex; align-items: center; gap: 8px; margin: 14px -18px -18px; padding: 12px 18px; background: var(--surface); border-top: 1px solid var(--border); }
.x-aw-sel { font-weight: 800; color: var(--text); margin-right: auto; font-size: var(--fs-sm, 13px); }
.x-aw-head { flex-wrap: nowrap; align-items: center; }
.x-aw-hl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1; }
.x-aw-choose { flex-shrink: 0; }
.x-aw-g { position: absolute; top: 5px; left: 6px; font-size: 11px; line-height: 1; opacity: .85; }
.x-aw-gn { font-size: var(--fs-3xs, 10px); color: var(--text-muted); line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: -2px; }
.x-aw-row .x-aw-g { top: 3px; left: 4px; font-size: 9px; }
.x-aw-row .x-aw-gn { font-size: 9px; }
/* 🍅 Pomodoro ishlayotganda: Hub tugmasi (kompyuter + telefon) va Hub → Pomodoro plitkasi
   pomidor rangida ajralib turadi. Holat <html class="x-pomo-running [x-pomo-break]"> orqali. */
:root { --x-pomo: #F0563F; }
html.x-pomo-break { --x-pomo: var(--gold, #F5B53F); }
.x-pomo-live { display: none; }
html.x-pomo-running .x-pomo-live:not(:empty) {
  display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; color: var(--x-pomo);
}
html.x-pomo-running .x-pomo-live:not(:empty)::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0;
  animation: x-pomo-blink 1.6s ease-in-out infinite;
}
@keyframes x-pomo-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes x-pomo-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--x-pomo) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--x-pomo) 0%, transparent); }
}

/* Kompyuter: yuqori/yon panel tugmasi */
html.x-pomo-running #tab-hub {
  border-color: color-mix(in srgb, var(--x-pomo) 70%, transparent);
  background: color-mix(in srgb, var(--x-pomo) 14%, var(--surface));
  color: var(--x-pomo);
  animation: x-pomo-ring 2.2s ease-out infinite;
}
html.x-pomo-running #tab-hub.active {
  background: var(--x-pomo); color: #fff; border-color: transparent;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--x-pomo) 40%, transparent);
}
html.x-pomo-running #tab-hub .x-pomo-live:not(:empty) {
  margin-left: 7px; padding: 3px 7px; border-radius: 999px; font-size: 11px; vertical-align: 1px;
  background: color-mix(in srgb, var(--x-pomo) 18%, transparent);
}
html.x-pomo-running #tab-hub.active .x-pomo-live:not(:empty) { color: #fff; background: rgba(255,255,255,.22); }

/* Telefon: pastki navigatsiyadagi Hub */
#x-bnav button[data-bn="hub"] { position: relative; }
html.x-pomo-running #x-bnav button[data-bn="hub"] { color: var(--x-pomo); background: color-mix(in srgb, var(--x-pomo) 13%, transparent); }
html.x-pomo-running #x-bnav button[data-bn="hub"] .x-bn-i { animation: x-pomo-ring 2.2s ease-out infinite; border-radius: 50%; }
html.x-pomo-running #x-bnav button[data-bn="hub"] .x-pomo-live:not(:empty) {
  position: absolute; top: 1px; left: calc(50% + 7px); padding: 2px 5px; border-radius: 999px; font-size: 9.5px;
  background: var(--x-pomo); color: #fff; box-shadow: 0 0 0 2px var(--surface);
}
html.x-pomo-running #x-bnav button[data-bn="hub"] .x-pomo-live:not(:empty)::before { width: 4px; height: 4px; }

/* Hub → Bo'limlar: Pomodoro plitkasi */
.x-sec[data-sec-go="pomo"] { position: relative; }
html.x-pomo-running .x-sec[data-sec-go="pomo"] {
  border-color: var(--x-pomo); color: var(--x-pomo);
  background: color-mix(in srgb, var(--x-pomo) 13%, var(--surface));
  animation: x-pomo-ring 2.2s ease-out infinite;
}
html.x-pomo-running .x-sec[data-sec-go="pomo"] .x-pomo-live:not(:empty) { font-size: 11px; margin-top: 1px; }

/* 🍅 Vazifa kartasidagi "Pomodoro'da ishlash" tugmasi */
.tk-pomo-btn {
  width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0; margin: 0; transition: border-color .15s, background .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.tk-pomo-btn:hover, .tk-pomo-btn:focus-visible { border-color: #F0563F; background: color-mix(in srgb, #F0563F 12%, transparent); }
.tk-pomo-btn:active { transform: scale(.92); }
html.layout-mobile .tk-pomo-btn { width: 34px; height: 34px; font-size: 15px; }

/* Vazifadan ochilganda tegishli amaliylik kartasi bir lahza yorishadi */
.pomo-act-card.pomo-act-flash { animation: x-pomo-flash 1.5s ease-out; }
@keyframes x-pomo-flash {
  0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, #F0563F 70%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html.x-pomo-running #tab-hub,
  html.x-pomo-running #x-bnav button[data-bn="hub"] .x-bn-i,
  html.x-pomo-running .x-sec[data-sec-go="pomo"],
  html.x-pomo-running .x-pomo-live::before,
  .pomo-act-card.pomo-act-flash { animation: none !important; }
}

/* Sub-task: ixtiyoriy tanga miqdori */
.st-coins-row{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.st-coins-row label{font-size:var(--fs-2xs);color:var(--text-muted);margin:0;text-transform:none;letter-spacing:normal}
.st-coins-row input{width:72px;padding:6px 8px;border-radius:var(--radius-sm,8px);border:1px solid var(--border);background:var(--surface,var(--bg));color:var(--text);font-weight:700;text-align:center}

/* ✏️ "Yangi vazifa" oynasi — kengroq va tartibli */
#modal-box{max-width:680px}
@media (min-width:900px){
  #modal-box{max-width:900px;width:min(900px,94vw);padding:28px 32px}
  #modal-box .modal-fields-columns{column-gap:40px}
}
#modal-box .modal-field{margin-bottom:18px}
#modal-box #m-emoji{width:100%;max-width:none}
#modal-box .tier-opts{gap:8px}
#modal-box .tier-opt{padding:10px 4px 8px;gap:3px;min-height:86px;justify-content:flex-start}
#modal-box .tier-opt small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.2}
#modal-box .tier-opt small.tier-c{color:var(--gold);font-weight:700}
#modal-box .tk-time-row{display:flex;align-items:center;gap:8px}
#modal-box input[type="time"]{flex:1;min-width:0;width:100%;padding:10px 12px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:var(--fs-base);font-family:inherit;outline:none;color-scheme:dark}
#modal-box input[type="time"]:focus{border-color:var(--accent)}
#modal-box input[type="date"]{color-scheme:dark}
body.light #modal-box input[type="time"],body.light #modal-box input[type="date"]{color-scheme:light}
#modal-box #m-remind{max-width:200px}
#modal-box .tk-time-check{display:flex;align-items:center;gap:8px;text-transform:none;letter-spacing:normal;font-size:var(--fs-xs);color:var(--text-muted);margin:10px 0 0;cursor:pointer}
#modal-box .tk-time-check input[type="checkbox"]{width:18px;height:18px;margin:0;flex:none;accent-color:var(--accent);cursor:pointer}

/* 🍅 Hub tepasidagi Pomodoro paneli (suzuvchi taymer o'rniga) */
.x-hub-pomo{display:flex;align-items:center;gap:10px;padding:10px 12px;margin:0 0 12px;border-radius:var(--radius-md,12px);border:1px solid color-mix(in srgb,var(--x-pomo,#ef4444) 45%,var(--border));background:color-mix(in srgb,var(--x-pomo,#ef4444) 10%,var(--surface))}
.x-hub-pomo.brk{border-color:color-mix(in srgb,#34D399 45%,var(--border));background:color-mix(in srgb,#34D399 10%,var(--surface))}
.x-hub-pomo .x-hp-ic{font-size:22px;line-height:1}
.x-hub-pomo .x-hp-t{display:flex;flex-direction:column;min-width:0;flex:1}
.x-hub-pomo .x-hp-t b{font-size:var(--fs-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x-hub-pomo .x-hp-s{font-size:var(--fs-3xs);color:var(--text-muted)}
.x-hub-pomo .x-hp-time{font-family:'Syne',sans-serif;font-weight:700;font-size:var(--fs-lg);font-variant-numeric:tabular-nums}
.x-hub-pomo.on .x-hp-time{color:var(--x-pomo,#ef4444)}
.x-hub-pomo.brk .x-hp-time{color:#34D399}
.x-hub-pomo .x-hp-btn{width:40px;height:40px;border-radius:50%;border:none;background:var(--x-pomo,#ef4444);color:#fff;font-size:16px;cursor:pointer;flex:none}
.x-hub-pomo .x-hp-btn.ghost{background:var(--surface2);color:var(--text);border:1px solid var(--border)}
@media (max-width:420px){.x-hub-pomo .x-hp-time{font-size:var(--fs-base)}}
/* ---------- 🧘 Salomatlik: tasdiq · SOS · haftalik tahlil · odatlar ---------- */
.x-aff-card { display: flex; align-items: flex-start; gap: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--gold) 8%, var(--surface))); }
.x-aff-ic { font-size: 22px; line-height: 1.2; }
.x-aff-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.x-aff-t small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.x-aff-t q { quotes: '“' '”'; font-size: var(--fs-md, 15px); line-height: 1.45; font-weight: 600; color: var(--text); }
.x-aff-re { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 17px; cursor: pointer; font-family: inherit; }
.x-aff-re:hover { color: var(--accent); border-color: var(--accent); }

.x-calm-card { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; font-family: inherit; color: var(--text); border-color: color-mix(in srgb, #38bdf8 40%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, #38bdf8 12%, var(--surface)), color-mix(in srgb, #34d399 10%, var(--surface))); }
.x-calm-card:hover { border-color: #38bdf8; }
.x-calm-e { font-size: 30px; }
.x-calm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.x-calm-t span { font-size: 12px; color: var(--text-muted); }
.x-calm-n { font-size: 12px; font-weight: 700; color: #22c55e; background: color-mix(in srgb, #22c55e 14%, transparent); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }

html.x-calm-on, html.x-calm-on body { overflow: hidden; }
.x-calm-ov { position: fixed; inset: 0; z-index: 2600; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, #38bdf8 16%, var(--bg, #0E0E12)), var(--bg, #0E0E12) 75%); opacity: 0; transition: opacity .2s; overflow-y: auto; box-sizing: border-box; }
.x-calm-ov.open { opacity: 1; }
.x-calm-x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 16px; cursor: pointer; z-index: 1; }
.x-calm-in { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 18px; margin: auto; }
.x-calm-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.x-calm-tabs button { border: none; background: transparent; color: var(--text-muted); font: inherit; font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.x-calm-tabs button.on { background: var(--accent); color: #fff; }
.x-calm-body { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.x-br-wrap { position: relative; width: min(260px, 70vw); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.x-br-c { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, #38bdf8 55%, transparent), color-mix(in srgb, #34d399 30%, transparent) 70%); box-shadow: 0 0 60px color-mix(in srgb, #38bdf8 35%, transparent); transform: scale(.55); transition: transform 4s ease-in-out; }
.x-br-c.in, .x-br-c.hold { transform: scale(1); }
.x-br-c.out { transform: scale(.55); }
.x-br-txt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--text); }
.x-br-ph { font-size: 20px; font-family: Syne, sans-serif; }
.x-br-cd { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.x-br-left { font-size: 13px; color: var(--text-muted); min-height: 1.3em; text-align: center; }
.x-br-mins { display: flex; gap: 8px; }
.x-br-mins button { border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.x-br-mins button.on { border-color: var(--accent); color: var(--accent); }
.x-br-mins button:disabled { opacity: .5; cursor: default; }
.x-br-go { min-width: 160px; padding: 11px 18px; font-size: 15px; }
.x-calm-hint { font-size: 12px; color: var(--text-muted); text-align: center; margin: 0; line-height: 1.5; max-width: 320px; }
.x-gr-dots { display: flex; gap: 6px; }
.x-gr-dots i { width: 28px; height: 6px; border-radius: 3px; background: var(--border); }
.x-gr-dots i.on { background: var(--accent); }
.x-gr-dots i.ok { background: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.x-gr-card { width: 100%; box-sizing: border-box; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 18px); padding: 26px 20px; text-align: center; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.x-gr-e { font-size: 46px; }
.x-gr-n { font-size: 48px; font-weight: 800; font-family: Syne, sans-serif; color: var(--accent); line-height: 1; }
.x-gr-card b { font-size: 18px; }
.x-gr-card p { margin: 4px 0 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.x-gr-nav { display: flex; gap: 10px; width: 100%; }
.x-gr-nav .x-btn { flex: 1; padding: 12px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .x-br-c, .x-br-c.in, .x-br-c.hold, .x-br-c.out { transition: none !important; transform: scale(.8) !important; }
  .x-calm-ov { transition: none; }
}

.x-new { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 7px; }
.x-wk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.x-wk-s { background: var(--surface2, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius-sm, 10px); padding: 9px 8px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.x-wk-s > span { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-wk-s b { font-size: 19px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.x-wk-s b small { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.x-wk-d { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.x-wk-d.up { color: #22c55e; }
.x-wk-d.dn { color: #f87171; }
.x-wk-bars { display: flex; gap: 6px; align-items: flex-end; height: 74px; margin: 12px 0 6px; }
.x-wk-b { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.x-wk-b i { display: block; width: 100%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.x-wk-b.td i { background: var(--accent); }
.x-wk-b span { font-size: 10px; color: var(--text-muted); line-height: 1; }
.x-wk-b .x-wk-bn { color: var(--text); font-weight: 700; min-height: 10px; }
.x-wk-cmp { font-size: 11px; color: var(--text-muted); text-align: right; }
.x-wk-ins { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.x-wk-ins li { font-size: 13px; line-height: 1.45; color: var(--text); background: color-mix(in srgb, var(--accent) 8%, var(--surface2, var(--bg))); border-radius: var(--radius-sm, 10px); padding: 8px 10px; }
.x-wk-ins b { color: var(--accent); }
.x-wk-hint { margin-top: 10px; font-size: 13px; color: var(--text-muted); background: var(--surface2, var(--bg)); border: 1px dashed var(--border); border-radius: var(--radius-sm, 10px); padding: 10px; line-height: 1.45; }

.x-hb-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.x-hb-row:first-of-type { border-top: none; padding-top: 2px; }
.x-hb-e { font-size: 26px; width: 34px; text-align: center; flex-shrink: 0; }
.x-hb-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.x-hb-m b { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-hb-n { font-size: 12px; color: var(--text-muted); }
.x-hb-n strong { color: var(--gold); font-size: 13px; }
.x-hb-bar { height: 5px; border-radius: 3px; background: var(--surface2, var(--border)); overflow: hidden; margin-top: 2px; }
.x-hb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 3px; }
.x-hb-act { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.x-hb-empty { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.x-hb-form { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.x-hb-form[hidden] { display: none; }
.x-hb-pre { display: flex; flex-wrap: wrap; gap: 6px; }
.x-hb-pre button { border: 1px solid var(--border); background: var(--surface2, var(--bg)); color: var(--text); font: inherit; font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.x-hb-pre button.on { border-color: var(--accent); color: var(--accent); }
.x-hb-ei { flex: 0 0 52px; text-align: center; font-size: 18px; padding: 6px; }
.x-hb-dl { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.x-hb-dl .x-in { flex: 0 1 170px; color-scheme: dark; }
body.light .x-hb-dl .x-in { color-scheme: light; }
/* 🗂 Vazifa bo'limlari (kategoriyalar) */
.tc-bar{margin:-4px 0 12px}
.tc-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px 0 4px;margin:0 -2px;padding-left:2px;scroll-snap-type:x proximity}
.tc-chips::-webkit-scrollbar{display:none}
.tc-chip{--tc:var(--accent);flex-shrink:0;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;white-space:nowrap;scroll-snap-align:start;transition:background .15s,border-color .15s,color .15s;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:pan-x}
.tc-chip:hover{border-color:color-mix(in srgb,var(--tc) 55%,var(--border))}
.tc-chip .tc-n{font-size:11px;font-weight:700;min-width:18px;padding:0 5px;line-height:18px;border-radius:999px;background:var(--surface2);color:var(--text-dim);text-align:center}
.tc-chip.on{background:color-mix(in srgb,var(--tc) 16%,var(--surface));border-color:var(--tc);color:var(--text)}
.tc-chip.on .tc-n{background:var(--tc);color:#fff}
.tc-chip.tc-gear{padding:7px 11px;font-size:14px;color:var(--text-dim)}
.tc-empty{font-size:12px;color:var(--text-dim);padding:6px 2px 0}
.tk-chip.tk-chip-cat{--tc:var(--accent);color:color-mix(in srgb,var(--tc) 75%,var(--text));background:color-mix(in srgb,var(--tc) 13%,transparent);max-width:140px;overflow:hidden;text-overflow:ellipsis}
/* modal: bo'lim tanlagichi */
.tc-opts{display:flex;flex-wrap:wrap;gap:6px}
.tc-opt{--tc:var(--text-dim);display:inline-flex;align-items:center;gap:4px;padding:7px 10px;border-radius:999px;border:1px solid var(--border);background:var(--surface2);color:var(--text-muted);font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;white-space:nowrap;transition:all .15s}
.tc-opt:hover{border-color:color-mix(in srgb,var(--tc) 60%,var(--border))}
.tc-opt.sel{border-color:var(--tc);background:color-mix(in srgb,var(--tc) 16%,var(--surface2));color:var(--text)}
.tc-opt:first-child.sel{--tc:var(--accent)}
.tc-opt.tc-add{padding:7px 12px;color:var(--accent);border-style:dashed}
.tc-inline{display:inline-flex;align-items:center;gap:4px}
#modal-box .tc-inline input[type="text"]{width:150px;padding:7px 10px;border-radius:999px;font-size:13px}
.tc-inline button{width:32px;height:32px;border-radius:50%;border:none;background:var(--accent);color:#fff;font-weight:700;cursor:pointer;flex:none}
/* boshqaruv oynasi */
.tc-ov{position:fixed;inset:0;z-index:460;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .16s;backdrop-filter:blur(3px)}
.tc-ov.open{opacity:1}
.tc-box{width:100%;max-width:460px;max-height:86vh;overflow-y:auto;box-sizing:border-box;background:var(--surface);border:1px solid var(--border);border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.35);transform:translateY(20px);transition:transform .18s}
.tc-ov.open .tc-box{transform:none}
@media (min-width:620px){.tc-ov{align-items:center;padding:16px}.tc-box{border-radius:18px;padding:20px}}
.tc-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tc-head h3{margin:0;font-family:Syne,sans-serif;font-size:18px;color:var(--text)}
.tc-x{width:32px;height:32px;border-radius:50%;border:1px solid var(--border);background:var(--surface2);color:var(--text-muted);cursor:pointer;font-size:14px}
.tc-sub{font-size:12.5px;color:var(--text-muted);margin:6px 0 14px;line-height:1.45}
.tc-rows{display:flex;flex-direction:column;gap:8px}
.tc-row{display:flex;align-items:center;gap:8px;padding:6px;border:1px solid var(--border);border-radius:14px;background:var(--surface2)}
.tc-row input{font-family:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;outline:none;font-size:15px;box-sizing:border-box}
.tc-row input:focus,.tc-new input:focus{border-color:var(--accent)}
.tc-emo{width:42px;height:38px;text-align:center;padding:0;flex:none;font-size:18px !important}
.tc-name{flex:1;min-width:0;height:38px;padding:0 10px}
.tc-color{width:26px;height:26px;border-radius:50%;border:2px solid var(--surface);box-shadow:0 0 0 1px var(--border);cursor:pointer;flex:none}
.tc-cnt{min-width:22px;text-align:center;font-size:12px;font-weight:700;color:var(--text-dim);flex:none}
.tc-del{width:36px;height:36px;border-radius:10px;border:1px solid transparent;background:transparent;cursor:pointer;font-size:15px;flex:none}
.tc-del:hover{background:rgba(248,113,113,.12);border-color:rgba(248,113,113,.35)}
.tc-none{font-size:13px;color:var(--text-dim);text-align:center;padding:10px}
.tc-foot{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.tc-new{display:flex;gap:8px}
.tc-new input{flex:1;min-width:0;height:42px;padding:0 12px;font-family:inherit;font-size:15px;color:var(--text);background:var(--surface2);border:1px dashed var(--border);border-radius:12px;outline:none;box-sizing:border-box}
.tc-new-btn{flex:none;height:42px;padding:0 14px;border-radius:12px;border:1px solid var(--accent);background:transparent;color:var(--accent);font-weight:700;font-family:inherit;font-size:14px;cursor:pointer}
.tc-done{height:44px;border-radius:12px;border:none;background:var(--accent);color:#fff;font-weight:700;font-size:15px;font-family:inherit;cursor:pointer}
/* 📅 Kalendarlar — telefon ekranlari uchun tuzatishlar (desktop o'zgarmaydi) */
/* Sensorli ekranda "hover" yopishib qoladi: bosilgan katak scale(1.12) bo'lib qo'shnilarini yopardi */
@media (hover: none) {
  #cal-grid > [data-date], #gcal-grid > [data-date], #goal-cal-grid > [data-date],
  .calx-day:not(.future):hover, .moodx-day:hover:not(.fut) { transform: none !important; }
}
@media (max-width: 600px) {
  /* Oy navigatsiyasi: kattaroq bosish maydoni (≥38px) */
  #calendar-section > div:nth-child(2) > button, #goals-calendar-section > div:nth-child(2) > button,
  #goal-cal-modal-box > div:nth-of-type(2) > button, #tt-filter-panel > div:first-child > button,
  #cal-monthyear-modal-overlay .modal > div:first-child > button,
  .mood-nav-btn, .pomo-cal-nav-btn { width: 38px !important; height: 38px !important; }
  #cal-today-btn, #gcal-today-btn { padding: 3px 12px !important; margin-top: 1px; border-radius: 999px !important; }
  #cal-month-label, #gcal-month-label, #goal-cal-month-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

  /* Asosiy kalendar katagi: emoji/tanga/chiziq bir-birini bosmasin */
  #cal-grid, #cal-day-headers, #gcal-grid, #gcal-day-headers { gap: 4px !important; }
  .calx-day { border-radius: 10px; gap: 2px; padding-bottom: 2px; }
  .calx-num { font-size: 12px; }
  .calx-coin { font-size: 9px; }
  .calx-mood { top: 2px; right: 2px; font-size: 9px; }
  .calx-day:has(.calx-mood) { padding-top: 6px; }
  .calx-day > div { display: none; } /* streak nuqtasi — pastki chiziq bilan ustma-ust tushardi */
  #cal-detail-title, #gcal-detail-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #cal-detail-header, #gcal-detail-header { gap: 8px; min-height: 40px; }

  /* Maqsadlar kalendari: 7px "0/1" yozuvi o'qib bo'lmasdi */
  #gcal-grid > [data-date] > span + span { font-size: 9px !important; }

  /* Kayfiyat kalendari: kun raqami emojini bosib qolardi */
  .moodx-day.has .moodx-n { top: 2px; left: 4px; font-size: 8px; }
  .moodx-day.has .moodx-e { font-size: 18px; margin-top: 7px; }
  #mood-cal-grid { gap: 5px !important; }

  /* Pomodoro kalendari: vaqt yozuvi (8px) siqilib qolardi */
  .pomo-cal-day .pomo-cal-daytime { font-size: 8.5px; letter-spacing: -.2px; white-space: nowrap; }

  /* Filtr kalendari (barcha vazifalar statistikasi) */
  #tt-filter-panel { padding: 12px !important; }
  #tt-cal-grid { gap: 4px !important; }
}
/* Yorug' rejimda "Navbatda emas" legend kvadrati ko'rinmasdi */
body.light #goal-cal-modal-box span[style*="opacity:0.45"] { border: 1px solid var(--border); }

/* 📨 Fikrlar qutisi (admin) + "Mening xabarlarim" (foydalanuvchi) */
.fbx { color: var(--text); font-size: 13px; }
.fbx-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.fbx-title { font-family: Syne, sans-serif; font-weight: 800; font-size: 16px; }
.fbx-sum { display: flex; gap: 6px; margin-right: auto; font-size: 12px; color: var(--text-muted); align-items: center; }
.fbx-unread { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, #EF4444 18%, transparent); color: #EF4444; font-weight: 700; }
.fbx-seg-wrap { margin-bottom: 10px; max-width: 100%; }
#fbx-seg.uk-seg { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
#fbx-seg.uk-seg::-webkit-scrollbar { display: none; }
#fbx-seg .uk-seg-item { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; }
.fbx-cnt { font-style: normal; font-size: 10.5px; min-width: 16px; padding: 0 5px; border-radius: 999px; background: color-mix(in srgb, currentColor 16%, transparent); font-variant-numeric: tabular-nums; line-height: 16px; }
.fbx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fbx-chips > button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-muted); font: 600 12px/1.2 inherit; font-family: inherit; cursor: pointer; }
.fbx-chips > button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.fbx-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-bottom: 8px; }
.fbx-in { width: 100%; box-sizing: border-box; padding: 9px 11px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: 13px/1.4 inherit; font-family: inherit; outline: none; }
.fbx-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.fbx-sel { width: auto; cursor: pointer; padding-right: 8px; }
.fbx-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 0; margin-bottom: 8px; }
.fbx-bulk:empty { display: none; }
.fbx-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.fbx-chk input, .fbx-cb input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.fbx-bulk-a { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.fbx-danger { background: var(--red, #EF4444) !important; color: #fff !important; border-color: transparent !important; }
.fbx-list { display: flex; flex-direction: column; gap: 8px; }
.fbx-item { --pc: transparent; position: relative; background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--pc); border-radius: 12px; padding: 10px 12px; transition: border-color .15s, background .15s; min-width: 0; }
.fbx-item.is-new { background: color-mix(in srgb, var(--accent) 7%, var(--surface2)); }
.fbx-item.is-sel { border-color: var(--accent); border-left-color: var(--accent); }
.fbx-ih { display: flex; gap: 8px; align-items: flex-start; }
.fbx-cb { padding-top: 2px; flex-shrink: 0; }
.fbx-ih-m { flex: 1; min-width: 0; cursor: pointer; }
.fbx-ih-1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fbx-ih-2 { display: flex; gap: 4px 10px; flex-wrap: wrap; font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.fbx-who { font-weight: 700; font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbx-who i { font-weight: 500; color: var(--text-muted); }
.fbx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); flex-shrink: 0; }
.fbx-kind, .fbx-st { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-muted); }
.fbx-k-bug { background: color-mix(in srgb, #EF4444 16%, transparent); color: #F87171; }
.fbx-k-idea { background: color-mix(in srgb, #F59E0B 16%, transparent); color: #F59E0B; }
.fbx-k-complaint { background: color-mix(in srgb, #A78BFA 18%, transparent); color: #A78BFA; }
.fbx-st-new { background: color-mix(in srgb, #3B82F6 16%, transparent); color: #60A5FA; }
.fbx-st-in_progress { background: color-mix(in srgb, #F59E0B 16%, transparent); color: #F59E0B; }
.fbx-st-done { background: color-mix(in srgb, #10B981 16%, transparent); color: #34D399; }
.fbx-st-wontfix { background: color-mix(in srgb, #64748B 22%, transparent); color: #94A3B8; }
body.light .fbx-k-bug { color: #DC2626; } body.light .fbx-k-idea, body.light .fbx-st-in_progress { color: #B45309; }
body.light .fbx-st-done { color: #047857; } body.light .fbx-st-new { color: #2563EB; } body.light .fbx-k-complaint { color: #7C3AED; } body.light .fbx-st-wontfix { color: #475569; }
.fbx-flag { --fc: var(--text-muted); color: var(--fc); font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; gap: 1px; }
.fbx-flag b { font-size: 10px; }
.fbx-flag.off { opacity: .4; }
.fbx-replied { font-size: 12px; color: var(--accent); font-weight: 700; }
.fbx-chev { background: none; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 2px 4px; flex-shrink: 0; }
.fbx-msg { margin: 8px 0 0 24px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; cursor: pointer; }
.fbx-msg.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fbx-more { margin: 2px 0 0 24px; background: none; border: none; padding: 2px 0; color: var(--accent); font: 600 12px inherit; font-family: inherit; cursor: pointer; }
.fbx-item.is-open .fbx-msg { cursor: text; user-select: text; }
.fbx-body { margin: 10px 0 0 24px; padding-top: 10px; border-top: 1px dashed var(--border); }
.fbx-row { display: flex; gap: 8px; align-items: baseline; font-size: 12px; margin-bottom: 4px; min-width: 0; }
.fbx-lbl { color: var(--text-muted); flex-shrink: 0; min-width: 84px; }
.fbx-val { min-width: 0; word-break: break-word; overflow-wrap: anywhere; }
.fbx-ua { font-size: 11px; color: var(--text-muted); font-family: ui-monospace, monospace; }
.fbx-mini { background: none; border: none; cursor: pointer; padding: 0 2px; font-size: 12px; }
.fbx-sec-t { font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin: 12px 0 6px; display: flex; align-items: center; gap: 6px; }
.fbx-saved { font-weight: 600; color: var(--green, #34D399); }
.fbx-dim { color: var(--text-muted); font-weight: 500; font-size: 11.5px; }
.fbx-sts, .fbx-pris, .fbx-tpls, .fbx-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.fbx-stb, .fbx-prb, .fbx-tpl { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 12px/1.2 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.fbx-stb.on { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.fbx-stb:disabled { opacity: .5; }
.fbx-prb { --fc: var(--text-muted); color: var(--fc); }
.fbx-prb.on { background: color-mix(in srgb, var(--fc) 18%, var(--surface)); border-color: var(--fc); }
.fbx-tpl { font-weight: 500; color: var(--text-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fbx-tpl:hover, .fbx-stb:hover, .fbx-prb:hover { border-color: var(--accent); }
.fbx-note, .fbx-reply { resize: vertical; min-height: 44px; }
.fbx-reply { margin-top: 8px; min-height: 70px; }
.fbx-reply-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.fbx-reply-old { margin-bottom: 8px; }
.fbx-reply-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.fbx-noacc { padding: 8px 10px; border-radius: 10px; background: var(--surface); line-height: 1.45; }
.fbx-acts { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.fbx-acts .fbx-danger { margin-left: auto; }
.fbx-del-q { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface2); font-size: 12.5px; text-align: left; white-space: pre-wrap; word-break: break-word; max-height: 90px; overflow: hidden; }
.fbx-err { padding: 12px; border-radius: 12px; background: color-mix(in srgb, #EF4444 10%, transparent); color: var(--text); font-size: 13px; line-height: 1.45; }
.fbx-err small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; word-break: break-word; }
.fbx-badge, .fbx-udot { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #EF4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.x-hub-tools [data-tool] { position: relative; }
.x-hub-tools [data-tool] .fbx-badge { position: absolute; top: 4px; right: 4px; margin: 0; }
.settings-sub-icon.fbx-has-dot { position: relative; }
.settings-sub-icon.fbx-has-dot::after { content: ''; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 2px var(--surface); }
/* Foydalanuvchi modali */
.fbx-mtabs { margin-bottom: 14px; }
.fbx-mtabs.uk-seg { width: 100%; display: flex !important; }
.fbx-mtabs .uk-seg-item { display: inline-flex; align-items: center; justify-content: center; }
body.light #feedback-modal > .fbx-modal { background: var(--surface) !important; border-color: var(--border) !important; }
.fbx-guest-mini { font-size: 11.5px; color: var(--text-muted); background: var(--surface2); border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; line-height: 1.4; }
.fbx-guest { padding: 16px; border-radius: 14px; background: var(--surface2); font-size: 13px; line-height: 1.55; color: var(--text-muted); text-align: center; }
.fbx-guest b { color: var(--text); font-size: 14px; }
.fbx-mine { display: flex; flex-direction: column; gap: 12px; }
.fbx-thread { padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface2) 60%, transparent); display: flex; flex-direction: column; gap: 6px; }
.fbx-thread.is-fresh { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.fbx-th-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fbx-th-h .fbx-dim { margin-left: auto; }
.fbx-bubble { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; box-sizing: border-box; }
.fbx-bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.fbx-bubble-w { align-self: flex-start; max-width: 88%; display: flex; flex-direction: column; }
.fbx-bubble-w .fbx-bubble { max-width: 100%; }
.fbx-bubble.admin { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.fbx-reply-old .fbx-bubble.admin { max-width: 100%; }
.fbx-bubble-who { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.fbx-new-tag { padding: 0 6px; border-radius: 999px; background: #EF4444; color: #fff; font-size: 10px; }
.fbx-await { align-self: flex-start; font-size: 11.5px; color: var(--text-muted); padding-left: 4px; }
html.design-fx .fbx-item, html.design-fx .fbx-thread { background: color-mix(in srgb, var(--glass-strong, var(--surface2)) 70%, transparent); }
@media (max-width: 560px) {
  .fbx-tools { grid-template-columns: 1fr 1fr; }
  .fbx-tools #fbx-q { grid-column: 1 / -1; }
  .fbx-sel { width: 100%; }
  .fbx-msg, .fbx-more, .fbx-body { margin-left: 0; }
  .fbx-item { padding: 10px; }
  .fbx-lbl { min-width: 70px; }
  .fbx-bulk-a { margin-left: 0; }
  .fbx-tpls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .fbx-tpls::-webkit-scrollbar { display: none; }
  .fbx-tpl { flex: 0 0 auto; }
}

/* 🎵 SOS: tinchlantiruvchi musiqa tanlovi */
.x-calm-music{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:18px}
.x-calm-music span{opacity:.7;font-size:14px;margin-right:2px}
.x-calm-music button{width:38px;height:38px;border-radius:50%;border:1px solid var(--border);background:var(--surface2);color:var(--text);font-size:17px;cursor:pointer;line-height:1}
.x-calm-music button.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 22%,var(--surface2));box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 35%,transparent)}

/* 👑 Jamoa (staff) niklari — faqat serverdan berilgan rol bilan, boshqalar bu ko'rinishni ololmaydi */
.x-staff-name{font-weight:800;background-size:200% auto;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:xs-shine 3.5s linear infinite}
.x-staff-name.xs-owner{background-image:linear-gradient(90deg,#FDE68A,#F59E0B,#FFF7D6,#F59E0B,#FDE68A);filter:drop-shadow(0 0 6px rgba(245,158,11,.55))}
.x-staff-name.xs-admin{background-image:linear-gradient(90deg,#F87171,#C084FC,#FCA5A5,#C084FC,#F87171);filter:drop-shadow(0 0 6px rgba(239,68,68,.45))}
.x-staff-name.xs-helper{background-image:linear-gradient(90deg,#6EE7B7,#10B981,#D1FAE5,#10B981,#6EE7B7);filter:drop-shadow(0 0 5px rgba(16,185,129,.45))}
.x-staff-badge{display:inline-flex;align-items:center;gap:3px;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.06em;line-height:1.6;vertical-align:middle;white-space:nowrap;-webkit-text-fill-color:initial}
.x-staff-badge.xs-owner{color:#1a1200;background:linear-gradient(135deg,#FDE68A,#F59E0B);box-shadow:0 0 10px rgba(245,158,11,.6)}
.x-staff-badge.xs-admin{color:#fff;background:linear-gradient(135deg,#EF4444,#9333EA);box-shadow:0 0 10px rgba(239,68,68,.5)}
.x-staff-badge.xs-helper{color:#022c22;background:linear-gradient(135deg,#6EE7B7,#10B981);box-shadow:0 0 8px rgba(16,185,129,.5)}
@keyframes xs-shine{to{background-position:200% center}}
@media (prefers-reduced-motion: reduce){.x-staff-name{animation:none}}
/* Podium: nik qisqarsa ham staff belgisi alohida qatorda ko'rinsin */
.rk-pod-name:has(.x-staff-badge){overflow:visible;text-overflow:clip;white-space:normal;display:flex;flex-direction:column;align-items:center;gap:4px}
.rk-pod-name .x-staff-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rk-pod-name .x-staff-badge{margin-left:0}

/* ============================================================
   📥 INBOX (Hub → Inbox) — barcha vazifalar + Chest + Maqsadlar
   ============================================================ */
.x-sec[data-sec-go="inbox"] { position: relative; }
.x-sec-badge { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; font-style: normal; line-height: 18px; text-align: center; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.ib { padding-bottom: 24px; }
.ib-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px 2px; border-radius: 0 0 14px 14px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ib-back { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 18px; cursor: pointer; font-family: inherit; }
.ib-back:hover { border-color: var(--accent); }
.ib-title { flex: 1; min-width: 0; margin: 0; font-size: 20px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; font-family: Syne, 'DM Sans', sans-serif; }
.ib-total:not(:empty) { font-size: 12px; font-weight: 800; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 999px; padding: 2px 9px; font-family: 'DM Sans', sans-serif; }
.ib-add { flex-shrink: 0; white-space: nowrap; }
.ib .x-btn.sm { padding: 7px 12px; font-size: 12.5px; }
.ib-sub { margin: 0 0 10px; font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.ib-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ib-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.ib-search:focus-within { border-color: var(--accent); }
.ib-search span { font-size: 14px; opacity: .7; }
.ib-search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; font-family: inherit; }
.ib-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.ib-chips::-webkit-scrollbar { display: none; }
.ib-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.ib-chip.sm { padding: 5px 11px; font-size: 12px; }
.ib-chip:hover { border-color: var(--border-hover, var(--accent)); color: var(--text); }
.ib-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ib-cats .ib-chip.on[style] { background: color-mix(in srgb, var(--tc) 22%, var(--surface)); border-color: var(--tc); color: var(--text); }
.ib-cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc, var(--accent)); flex-shrink: 0; }
.ib-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ib-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.ib-sort select { height: 32px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12.5px; font-family: inherit; padding: 0 8px; cursor: pointer; }
.ib-sort select option { background: var(--bg); color: var(--text); }
.ib-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text-muted); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 4px 0; }
.ib-toggle i { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); transition: background .15s; flex-shrink: 0; }
.ib-toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-muted); transition: transform .15s, background .15s; }
.ib-toggle.on { color: var(--text); }
.ib-toggle.on i { background: var(--accent); border-color: var(--accent); }
.ib-toggle.on i::after { transform: translateX(14px); background: #fff; }

.ib-list { display: flex; flex-direction: column; gap: 12px; }
.ib-sec { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.ib-sec-hd { display: flex; align-items: center; }
.ib-sec-h { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 0; background: transparent; color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; text-align: left; }
.ib-chev { font-size: 11px; color: var(--text-muted); transition: transform .15s; width: 12px; }
.ib-sec.is-col .ib-chev { transform: rotate(-90deg); }
.ib-sec-i { font-size: 15px; }
.ib-sec-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-cnt { font-size: 11.5px; font-weight: 800; color: var(--text-muted); background: var(--surface2); border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.ib-g-overdue .ib-cnt { color: var(--red); background: rgba(248,113,113,.14); }
.ib-g-today .ib-cnt { color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.ib-sec-a { width: 32px; height: 32px; margin-right: 8px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: 16px; cursor: pointer; flex-shrink: 0; }
.ib-sec-a:hover { color: var(--text); border-color: var(--accent); }
.ib-sec-b { border-top: 1px solid var(--border); }
.ib-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-top: 1px solid var(--border); position: relative; }
.ib-item:first-child { border-top: 0; }
.ib-item.has-label { box-shadow: inset 3px 0 0 var(--ib-lb); }
.ib-item.is-done .ib-name { text-decoration: line-through; text-decoration-color: var(--text-dim); color: var(--text-muted); }
.ib-item.is-done, .ib-item.is-frozen { opacity: .7; }
.ib-chk { width: 26px !important; height: 26px !important; flex-shrink: 0; }
.ib-chk-static { cursor: default; }
.ib-chk-fut { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 2px dashed var(--border-hover, var(--border)); background: transparent; font-size: 11px; line-height: 1; padding: 0; cursor: pointer; opacity: .75; }
.ib-lead { width: 26px; flex-shrink: 0; text-align: center; font-size: 18px; line-height: 1; display: inline-flex; justify-content: center; }
.ib-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); display: inline-block; }
.ib-dot.d2 { background: var(--gold); }
.ib-dot.d3 { background: var(--red); }
.ib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 5px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; padding: 2px 0; font-family: inherit; }
.ib-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ib-emo { margin-right: 6px; }
.ib-pin { margin-right: 4px; font-size: 11px; }
.ib-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.ib-meta .tk-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tk-chip.ib-chip-ok { color: var(--green); background: rgba(52,211,153,.12); }
.tk-chip.ib-chip-fut { color: var(--info); background: rgba(96,165,250,.12); }
.tk-chip.ib-chip-ice { color: #7DD3FC; background: rgba(125,211,252,.13); }
.tk-chip.ib-chip-fire { color: var(--gold); background: var(--gold-dim); }
.ib-prog { display: flex; align-items: center; gap: 8px; }
.ib-bar { flex: 1; height: 5px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.ib-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent2, #B48EFF)); }
.ib-prog small { font-size: 11px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ib-more { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ib-more:hover { color: var(--text); border-color: var(--accent); }
.ib-today { flex-shrink: 0; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.ib-today:hover { background: var(--accent); color: #fff; }
.ib-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 16px; color: var(--text-muted); font-size: 14px; border: 1px dashed var(--border); border-radius: 16px; }
.ib-empty > span { font-size: 34px; }
.ib-empty small { font-size: 12px; color: var(--text-dim); overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .ib-title { font-size: 18px; }
  .ib-item { gap: 8px; padding: 9px 8px 9px 10px; }
  .ib-today { padding: 0 8px; }
  .ib-more { width: 30px; height: 30px; }
}
@media (min-width: 900px) {
  .ib-item { padding: 10px 14px; }
  .ib-sub { font-size: 13px; }
}
