/* Natija, Miya xaritasi, bo'limlar, hisobot (chop etish).
   Egasi: result agenti. Dizayn: REDESIGN.md (chiziqsiz, yumshoq, lavanda). Rang va o'lchamlar faqat style.css :root dan.
   Holat rangi (yaxshi / takrorlash / zaif / tekshirilmagan) bitta joyda: JS faqat data-tone yozadi, rang --tone orqali olinadi. */

:is(#screen-result, #screen-report) [data-tone] { --tone: var(--brand-tint); }
:is(#screen-result, #screen-report) [data-tone="good"] { --tone: var(--ok); }
:is(#screen-result, #screen-report) [data-tone="mid"] { --tone: var(--sun); }
:is(#screen-result, #screen-report) [data-tone="bad"] { --tone: var(--bad-seg); }
:is(#screen-result, #screen-report) [data-tone="none"] { --tone: var(--brand-tint); }

/* Holat belgisi: rangga yolg'iz tayanmaslik uchun (✓ yaxshi, ~ takrorlash, ! zaif; belgi yo'q = tekshirilmagan).
   Xarita bargida bir xil belgi JS da chiziladi (app.js TONE_GLYPH), bob doirasida va izohda shu yerdan. Oq chiziq, shaffof fon: nishon ichida ham, niqob sifatida ham ishlaydi. */
#screen-result [data-tone="good"] { --gl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 16 16' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M-3.6 .3L-1 2.9L3.8 -2.7'/%3E%3C/svg%3E"); }
#screen-result [data-tone="mid"] { --gl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 16 16' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M-4 .4C-2.6 -2.2 -1.1 -2.2 0 0S2.6 2.4 4 -.2'/%3E%3C/svg%3E"); }
#screen-result [data-tone="bad"] { --gl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 16 16' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 -3.8V.6M0 3.5H.01'/%3E%3C/svg%3E"); }

/* ---------- natija: sarlavha va "hero" ---------- */
.result { display: flex; flex-direction: column; gap: 20px; }
.r-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; }
.r-title { margin: 0; font-weight: 800; font-size: clamp(32px, 9vw, 42px); line-height: 1.05; letter-spacing: -.025em; }
.r-title em { font-weight: 700; }

.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 18px 26px; border-radius: var(--r-lg); color: #fff; text-align: center; background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); box-shadow: var(--sh-2); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.hero::before { width: 230px; height: 230px; right: -80px; top: -100px; }
.hero::after { width: 160px; height: 160px; left: -70px; bottom: -80px; background: rgba(255, 255, 255, .1); }
.hero > * { position: relative; }
.hero-top { display: flex; align-items: center; justify-content: center; gap: 14px; }
.hero .owl-wrap { width: 104px; height: 104px; }
.hero-main { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.hero-t { margin: 0; font-weight: 800; font-size: clamp(26px, 7.4vw, 32px); line-height: 1.12; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hero-p { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.4; text-wrap: balance; }

/* yulduzlar: soni ham ko'rsatadi (rangga yolg'iz tayanilmaydi) */
.hero-stars { display: flex; gap: 8px; }
.hero-stars .star { width: 40px; height: 40px; stroke-width: 1.8; stroke-linejoin: round; }
.hero-stars .star.on { fill: var(--sun); stroke: var(--sun); animation: pop .5s ease both; }
.hero-stars .star.on:nth-child(2) { animation-delay: .12s; }
.hero-stars .star.on:nth-child(3) { animation-delay: .24s; }
.hero.still .star.on { animation: none; }
.hero-stars .star.off { fill: rgba(255, 255, 255, .2); stroke: rgba(255, 255, 255, .55); }

/* konfetti: pastel, matndan chetda */
.hero > .confetti { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.confetti i { position: absolute; display: block; width: 14px; height: 14px; border-radius: 4px; opacity: .95; }
.confetti i:nth-child(1) { left: 20px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); }
.confetti i:nth-child(2) { left: 22px; top: 96px; width: 12px; height: 12px; background: var(--ok-seg); transform: rotate(20deg); }
.confetti i:nth-child(3) { right: 24px; top: 20px; background: var(--bad-seg); transform: rotate(-16deg); }
.confetti i:nth-child(4) { right: 28px; top: 100px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-tint); }
.confetti i:nth-child(5) { left: 16px; bottom: 56px; background: var(--peach); transform: rotate(30deg); }
.confetti i:nth-child(6) { right: 18px; bottom: 70px; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); }

/* foiz doirasi: to'q ko'k doira ichida son, atrofida shaftoli yoy (referensdagi "0/5" kabi) */
.map-score { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; font-weight: 800; font-size: 16px; line-height: 1.2; }
.hero .ring { position: relative; width: 132px; height: 132px; }
.hero .ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 12; }
.ring-track { stroke: rgba(255, 255, 255, .3); }
.ring-arc { stroke: var(--peach); stroke-linecap: round; }
.ring-c { position: absolute; inset: 17px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); box-shadow: 0 10px 18px -10px rgba(27, 26, 64, .7); }
.ring-n { font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -.02em; }

/* ---------- miya xaritasi ---------- */
.map-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 18px 14px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mx { display: block; width: 100%; max-width: 350px; overflow: visible; }
.mx-plate { fill: var(--soft); }
.mx-seg { fill: var(--tone); stroke: var(--tone); stroke-linejoin: round; }
.mx-n { fill: var(--ink); font-family: var(--font); font-weight: 800; font-size: 17px; text-anchor: middle; }
.mx-badge { fill: var(--navy); }
.mx-n.sel { fill: #fff; font-size: 15px; }
.mx-bd { fill: var(--navy); stroke: var(--card); stroke-width: 2; }
.mx-gl { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mx-cloud { fill: var(--card); }
.mx-wave { fill: var(--brand-tint); }
.mx-water { fill: var(--brand); opacity: .7; }
.mx-brow { fill: none; stroke: var(--brand-deep); stroke-width: 3; stroke-linecap: round; opacity: .28; }
.mx-eye { fill: var(--ink); }
.mx-shine { fill: #fff; }
.mx-cheek { fill: var(--bad-seg); opacity: .6; }
.mx-mouth { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.wave { animation: wave 2.6s linear infinite; }
@keyframes wave { to { transform: translateX(-40px); } }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.lg { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 14px 5px 8px; border-radius: 999px; background: var(--soft); font-weight: 800; font-size: 15px; line-height: 1.2; }
/* izoh doirasi: rang + bob doirasidagi nishon bilan bir xil belgi (to'q ko'k, niqob orqali) */
.lg i { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--tone); display: inline-block; }
.lg i::after { content: ""; position: absolute; inset: 0; background: var(--navy); -webkit-mask: var(--gl) center / 100% no-repeat; mask: var(--gl) center / 100% no-repeat; }
.lg i[data-tone="none"]::after { display: none; }

.parent { border-radius: var(--r-md); background: rgba(255, 255, 255, .62); padding: 16px 18px; }
.parent .eyebrow { margin-bottom: 6px; }
.parent p { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.5; }
.eyebrow { font-weight: 800; font-size: 14px; line-height: 1.3; color: var(--muted); }

/* ---------- bob tanlash ---------- */
.picks-wrap { display: flex; flex-direction: column; gap: 12px; }
.picks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px 6px; justify-items: center; padding: 8px 0 4px; }
.pick { position: relative; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: var(--tone); color: var(--ink); font: 800 18px/1 var(--font); box-shadow: var(--sh-1); }
.pick.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 5px var(--navy); }
/* holat nishoni: to'q ko'k doira + belgi (tekshirilmagan bobda nishon yo'q) */
.pick:is([data-tone="good"], [data-tone="mid"], [data-tone="bad"])::after { content: ""; position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--gl) center / 100% no-repeat, var(--navy); box-shadow: 0 0 0 2px var(--card); }
@media (min-width: 520px) {
  .picks { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px 10px; padding: 10px 8px 6px; }
  .pick { width: 46px; height: 46px; }
}

/* ---------- ma'lumot kartochkalari (.card.tint ichida) ---------- */
.detail { gap: 16px; }
.det-head { display: flex; align-items: center; gap: 14px; }
.det-meta { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.det-meta .chip { margin-top: 6px; padding: 4px 12px; font-size: 14px; }
.donut { position: relative; width: 72px; height: 72px; flex: none; }
.donut svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 11; }
.dn-track { stroke: var(--card); }
.dn-arc { stroke: var(--tone); stroke-linecap: round; }
.donut-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.det-t { margin: 2px 0 0; font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -.015em; }
.muted-t { color: var(--muted); }
.dash-note { border-radius: var(--r-md); background: var(--card); padding: 14px 16px; font-weight: 700; font-size: 16px; color: var(--muted); line-height: 1.45; }
.lessons { display: flex; flex-direction: column; gap: 14px; }
.lessons-t { font-weight: 800; font-size: 18px; }
.ls-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.ls-pct { font-weight: 800; white-space: nowrap; }
.ls-n { font-weight: 700; font-size: 14px; color: var(--muted); }
.ls-bar { height: 12px; margin-top: 7px; border-radius: 999px; background: var(--card); overflow: hidden; }
.ls-fill { height: 100%; min-width: 8px; border-radius: 999px; background: var(--tone); }
.tip { display: flex; gap: 12px; background: var(--card); border-radius: var(--r-md); padding: 14px 16px; font-weight: 700; font-size: 16px; line-height: 1.45; }
.tip.warm { background: var(--warn-bg); }
.tip-ic { margin-top: 1px; color: var(--brand-deep); }
.tip.warm .tip-ic { color: var(--ink-2); }
.tip-list { margin: 6px 0 0; padding-left: 20px; }
.tip-list li { margin: 3px 0; }
.tip p { margin: 0 0 6px; }
.tip p:last-child { margin: 0; }
.conf { font-weight: 700; font-size: 15px; color: var(--muted); line-height: 1.45; }
#screen-result .muted-p { font-size: 16px; }

/* "Uyda mashq": shaftoli ta'kidli kartochka */
.next-card { position: relative; overflow: hidden; isolation: isolate; background: var(--peach); border-radius: var(--r-lg); box-shadow: var(--sh-peach); padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.next-card::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -70px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .34); }
.next-card .eyebrow { color: var(--ink-2); font-size: 15px; }
.next-t { font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.015em; }
.next-p { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.45; }
.next-card .btn { margin-top: 6px; }
.next-card .link { min-height: 44px; color: var(--ink); }

/* to'q tugma: matn chapda, oxirida yumaloq o'q (asosiy tugma bilan bir til) */
#screen-result .btn.dark { height: auto; min-height: 58px; padding-block: 8px; line-height: 1.15; text-align: left; }
#screen-result .btn.dark:has(> .ico:last-child) { justify-content: space-between; padding: 8px 8px 8px 26px; }
#screen-result .btn.dark > .ico:last-child { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--peach); stroke: var(--navy); stroke-width: 2.4; }

/* ---------- natija bo'limlari ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; background: var(--card); border-radius: 999px; box-shadow: var(--sh-1); }
.tab { min-height: 46px; padding: 0 6px; font: 800 16px/1.1 var(--font); color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.tab.on { background: var(--navy); color: #fff; box-shadow: 0 8px 16px -8px rgba(27, 26, 64, .7); }
.col { display: flex; flex-direction: column; gap: 18px; }
.h2.nm { margin: 0; }

.growth { gap: 14px; }
.growth .h2 { margin: 0; }
.growth-chart { display: flex; justify-content: center; }
/* viewBox 260 birlik (app.js growthSvg): yozuvlar 14 birlik, 320px ekranda ~13px, 390px da ~16px */
.gr { display: block; width: 100%; max-width: 340px; }
.gr-grid { stroke: var(--brand-tint); stroke-width: 2; }
.gr-lbl { fill: var(--muted); font-family: var(--font); font-weight: 800; font-size: 14px; }
.gr-area { fill: var(--brand); fill-opacity: .16; }
.gr-line { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.gr-dot { fill: var(--tone); stroke: var(--card); stroke-width: 3.5; }
.gr-val { fill: var(--ink); font-family: var(--font); font-weight: 800; font-size: 14px; text-anchor: middle; }
.trend { padding: 12px 14px; border-radius: var(--r-md); background: var(--card); font-weight: 700; font-size: 16px; line-height: 1.4; }
.trend.up { background: var(--ok-bg); color: var(--ok-ink); }
.trend.down { background: var(--bad-bg); color: var(--bad-ink); }
.deltas { display: flex; flex-direction: column; gap: 8px; }
.delta { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--card); font-weight: 800; font-size: 16px; line-height: 1.3; }
.delta.up .dv { color: var(--ok-ink); white-space: nowrap; }
.delta.down .dv { color: var(--bad-ink); white-space: nowrap; }

/* "Uyda reja": har mashq kartochkasida sarlavha, foiz va tugma ko'rinadi; qolgani <details> da yig'ilgan (birinchisi ochiq) */
.plan-item { gap: 14px; }
.pi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pi-title { font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.pi-root { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-sm); padding: 10px 14px; font-weight: 800; font-size: 15px; line-height: 1.4; }
.pi-sec { background: rgba(255, 255, 255, .6); border-radius: var(--r-md); padding: 14px 16px; }
.pi-sec p, .pi-act p { margin: 6px 0 0; font-weight: 600; font-size: 17px; line-height: 1.5; }
.pi-label { font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--brand-deep); }
.pi-list { margin: 8px 0 0; padding-left: 22px; font-weight: 600; font-size: 17px; line-height: 1.45; }
.pi-list li { margin: 6px 0; }
.pi-home { background: var(--card); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-1); }
.pi-act strong { font-size: 17px; }
.pi-book { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--muted); }
.pi-ic { width: 20px; height: 20px; }
#screen-result .pi-btn { height: auto; min-height: 58px; padding-block: 8px; background: var(--peach); box-shadow: var(--sh-peach); font-size: 18px; line-height: 1.15; text-align: left; }
.pi-btn:has(> .ico:last-child) { justify-content: space-between; padding: 8px 8px 8px 24px; }
.pi-btn > .ico:last-child { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--navy); color: #fff; stroke-width: 2.4; }

.pi-fold { display: flex; flex-direction: column; }
.pi-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 8px 6px 20px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-weight: 800; font-size: 17px; line-height: 1.2; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.pi-sum::-webkit-details-marker { display: none; }
.pi-chev { width: 38px; height: 38px; padding: 7px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); stroke-width: 2.8; transition: transform .2s; }
.pi-fold[open] > .pi-sum .pi-chev { transform: rotate(180deg); }
.pi-more { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }

.week { gap: 12px; }
.week .h2 { margin: 0; }
.week-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ws { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--card); border-radius: var(--r-md); }
.ws-home { background: var(--warn-bg); }
.ws-app { background: var(--ok-bg); }
.ws-test { background: var(--brand-soft); }
.ws-day { min-width: 38px; height: 38px; flex: none; padding: 0 9px; border-radius: 999px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 16px/1 var(--font); }
.ws-t { font-weight: 800; font-size: 17px; line-height: 1.3; }
.ws-s { font-weight: 700; font-size: 15px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }

.foot-links { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.foot-links .link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; font-size: 16px; }
.link.danger { color: var(--bad-ink); }

.save-status { align-self: center; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 8px; text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); }
.save-status.saved { padding: 8px 16px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); }
.save-status.saved .ico { color: var(--ok-ink); }
.save-status.failed { align-self: stretch; padding: 12px 16px; border-radius: var(--r-md); background: var(--bad-bg); color: var(--bad-ink); }
.save-status .ico { width: 20px; height: 20px; }
.save-status .link { min-height: 44px; padding: 0 4px; color: var(--bad-ink); }

/* natija: keng ekranda xarita chapda, tafsilot o'ngda */
.res-grid, .res-row { display: flex; flex-direction: column; gap: 20px; }
.res-left, .res-right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- hisobot (ekranda va chop etishda) ---------- */
.report { display: flex; flex-direction: column; gap: 14px; }
.rp-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-toolbar .btn { width: auto; font-size: 18px; }
.rp-toolbar .btn.ghost { flex: 0 0 auto; padding: 0 24px; }
.rp-toolbar .btn.cta { flex: 1 1 250px; min-width: 0; height: auto; min-height: 56px; line-height: 1.15; text-align: left; }
/* sahifa tepasidagi to'q lavanda gradient ustida --muted 4.5:1 dan past (4.2-4.4); shu yerda --ink-2 (7.5:1) */
.rp-hint { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.rp-doc { background: var(--card); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 22px 18px; display: flex; flex-direction: column; gap: 24px; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px 14px; padding-bottom: 14px; border-bottom: 2px solid var(--brand-soft); }
.rp-brand { font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); }
.rp-head h1 { margin: 2px 0 0; font-weight: 800; font-size: 26px; line-height: 1.1; }
.rp-meta { margin-left: auto; text-align: right; font-weight: 700; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.rp-sec h2 { margin: 0 0 10px; font-weight: 800; font-size: 20px; line-height: 1.2; }
.rp-sec > p, .rp-growth > p { margin: 10px 0 0; font-weight: 700; font-size: 16px; }
.rp-sum { margin: 0; padding-left: 20px; font-weight: 600; font-size: 16px; line-height: 1.55; }
.rp-sum li { margin: 3px 0; }
.rp-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.rp-map { display: flex; justify-content: center; }
.rp-map svg { width: 100%; max-width: 300px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rp-table th { text-align: left; padding: 6px 8px; font-weight: 800; font-size: 13px; color: var(--muted); border-bottom: 2px solid var(--brand-tint); }
.rp-table td { padding: 8px; border-bottom: 1px solid var(--brand-soft); vertical-align: middle; font-weight: 600; }
.rp-bar { position: relative; height: 20px; min-width: 72px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.rp-bar i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 6px; border-radius: 999px; background: var(--tone); }
.rp-bar span { position: relative; padding-left: 9px; font-weight: 800; font-size: 12px; line-height: 20px; }
.rp-doc .card, .rp-doc .card.tint { background: var(--soft); box-shadow: none; border-radius: var(--r-md); padding: 16px; break-inside: avoid; }
.rp-doc .rp-sec > .card { margin-top: 12px; }
.rp-foot { padding-top: 12px; border-top: 2px solid var(--brand-soft); font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 600; }
.rp-foot p { margin: 0 0 4px; }

@media screen and (max-width: 560px) {
  /* tor ekranda jadval qatori ikki qatorli kartochkaga aylanadi (gorizontal aylantirish bo'lmasin) */
  .rp-table, .rp-table tbody { display: block; }
  .rp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rp-table tr { display: grid; grid-template-columns: 30px minmax(0, 1fr) 112px; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--brand-soft); }
  .rp-table td { padding: 0; border: 0; }
  .rp-table td:nth-child(1) { grid-area: 1 / 1; font-weight: 800; color: var(--muted); text-align: center; }
  .rp-table td:nth-child(2) { grid-area: 1 / 2; font-weight: 700; }
  .rp-table td:nth-child(5) { grid-area: 1 / 3; font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; text-align: right; }
  .rp-table td:nth-child(3) { grid-area: 2 / 2; }
  .rp-table td:nth-child(4) { grid-area: 2 / 3; font-size: 13px; font-weight: 800; white-space: nowrap; text-align: right; }
}

@media (min-width: 720px) {
  .hero { flex-direction: row; justify-content: center; gap: 44px; padding: 30px 44px; text-align: left; }
  .hero-main { align-items: flex-start; }
  .hero-top { flex: none; gap: 24px; }
  .hero .owl-wrap { width: 128px; height: 128px; }
  .rp-doc { padding: 32px 36px; }
}

@media (min-width: 980px) {
  .res-grid { gap: 24px; }
  .res-row { display: grid; grid-template-columns: minmax(380px, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
  /* "Qayerdan boshlaymiz": ikki ustun ostida butun kenglikda; matn chapda, tugmalar o'ngda */
  .res-grid > .next-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); column-gap: 40px; row-gap: 8px; align-items: center; padding: 28px 32px; }
  .res-grid > .next-card > .eyebrow, .res-grid > .next-card > .next-t, .res-grid > .next-card > .next-p { grid-column: 1; }
  .res-grid > .next-card > .btn { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin-top: 0; }
  .res-grid > .next-card > .link { grid-column: 1; grid-row: 4; justify-self: start; padding-left: 0; }
}
/* chap ustun (xarita + izoh, ~700px) faqat to'liq sig'sagina yopishqoq: past oynada pastki qismi ekrandan tashqarida qolmasin */
@media (min-width: 980px) and (min-height: 800px) {
  .res-left { position: sticky; top: 84px; }
}

@media (max-width: 400px) {
  .tabs { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.05fr); }
  .tab { font-size: 15px; padding: 0 2px; }
}

@media (max-width: 380px) {
  .hero .owl-wrap { width: 88px; height: 88px; }
  .hero .ring { width: 120px; height: 120px; }
  .ring-c { inset: 15px; }
  .ring-n { font-size: 28px; }
  .picks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app { max-width: none; padding: 0; min-height: 0; overflow: visible; background: #fff; }
  .decor, .no-print, .topbar, .tabbar, .toasts, .pwa-bar, .screen:not(#screen-report) { display: none !important; }
  #screen-report:not([hidden]) { display: flex !important; padding: 0; max-width: none; }
  .rp-doc { box-shadow: none; padding: 0; border-radius: 0; gap: 14px; font-size: 14px; line-height: 1.4; orphans: 3; widows: 3; }
  /* xarita va o'sish grafigi chapda, jadval o'ngda: birinchi sahifa to'ladi, qog'oz tejaladi */
  .rp-two { grid-template-columns: 250px 1fr; grid-template-rows: auto 1fr; grid-template-areas: "map tbl" "grow tbl"; align-items: start; gap: 12px 18px; }
  .rp-two > .rp-map { grid-area: map; }
  .rp-two > .rp-tbl { grid-area: tbl; }
  .rp-two > .rp-growth { grid-area: grow; }
  .rp-growth .growth-chart .gr { max-width: 250px; }
  .rp-table td { padding: 6px 8px; }
  .rp-doc .card, .rp-doc .card.tint { background: #fff; border: 1px solid var(--brand-tint); padding: 10px 14px; gap: 8px; }
  .rp-doc .tip { border: 1px solid var(--brand-soft); font-size: 13.5px; padding: 10px 14px; }
  .rp-doc .pi-home { background: var(--soft); box-shadow: none; padding: 10px 14px; gap: 8px; }
  .rp-doc .pi-sec { background: none; padding: 0; }
  .rp-doc .pi-sec p, .rp-doc .pi-list, .rp-doc .pi-act p, .rp-doc .pi-act strong { font-size: 13.5px; }
  .rp-doc .pi-sec p, .rp-doc .pi-act p { margin-top: 3px; }
  .rp-doc .pi-list { margin-top: 3px; }
  .rp-doc .pi-list li { margin: 3px 0; }
  .rp-doc .pi-label { font-size: 13px; }
  .rp-doc .pi-title { font-size: 18px; }
  .rp-doc .ws-t { font-size: 14px; }
  .rp-doc .ws-s { font-size: 13px; }
  .rp-doc .rp-sec > p, .rp-doc .rp-growth > p, .rp-doc .rp-sum { font-size: 14px; }
  .rp-sec h2 { break-after: avoid; }
  /* uzun kartochkalar sahifaga bo'linadi (sahifa bo'sh qolmasin), ichki bloklar esa butun qoladi */
  .rp-doc .card.tint.plan-item, .rp-doc .card.tint.week { break-inside: auto; }
  /* bo'linadigan kartochkada ramka yo'q: sahifa oxirida bo'sh ramka qolib ketmasin; kartochkani tepadagi chiziq ajratadi */
  .rp-doc .card.tint.plan-item, .rp-doc .card.tint.week { border: 0; padding: 0; }
  .rp-doc .plan-item > .pi-head { padding-top: 10px; border-top: 2px solid var(--brand-soft); }
  .rp-doc .pi-head, .rp-doc .pi-sec, .rp-doc .pi-home, .rp-doc .pi-root, .rp-doc .tip, .rp-doc .pi-book, .rp-doc .ws, .rp-head, .rp-table tr, .rp-growth { break-inside: avoid; }
  .rp-doc .pi-head, .rp-doc .week .h2 { break-after: avoid; }
}

/* ---------- 3D rasmlar: bob rasmi (bob nomi yonida), "Uyda mashq" rasmi (keyingi qadam kartochkasi) ---------- */
.eb-art { display: flex; align-items: center; gap: 8px; }
.bob-art.mini { width: 36px; height: 36px; object-fit: contain; }
.next-card .next-art { position: absolute; z-index: 1; right: 8px; top: 8px; width: 96px; height: 96px; object-fit: contain; }
.next-card.has-art .eyebrow, .next-card.has-art .next-t { padding-right: 88px; }
.next-card.has-art .next-t { min-height: 56px; }
@media (min-width: 980px) {
  .res-grid > .next-card.has-art .eyebrow, .res-grid > .next-card.has-art .next-t { padding-right: 0; }
  .res-grid > .next-card.has-art .next-t { min-height: 0; }
  .res-grid > .next-card > .next-art { position: static; grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: start; width: 96px; height: 96px; }
  .res-grid > .next-card.has-art > .btn { grid-row: 3 / span 2; }
}
