/* Clean Panda — концепт 1 «Чистый минимализм» */
:root {
  --bg: #F2F2F7; --card: #FFFFFF; --card-2: #F7F7FA; --text: #0B0B0F; --muted: #8A8A8E; --muted-2: #B4B4B9;
  --line: rgba(60,60,67,.10); --line-strong: rgba(60,60,67,.22); --track: rgba(60,60,67,.09);
  --accent: #12B76A; --accent-press: #0E9F5B; --accent-soft: rgba(18,183,106,.11); --on-accent: #fff;
  --star: #F59E0B; --star-soft: rgba(245,158,11,.12); --gram: #1A73E8; --gram-soft: rgba(26,115,232,.10);
  --red: #F04438; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px rgba(16,24,40,.06);
  --shadow-lg: 0 20px 50px rgba(16,24,40,.14); --nav-bg: rgba(255,255,255,.82); --sheet-bg: #fff; --scrim: rgba(0,0,0,.28);
  --bubble: #fff; --wall-1: #CDE6C1; --wall-2: #A9D3A0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #1C1C1E; --card-2: #2C2C2E; --text: #FFFFFF; --muted: #8E8E93; --muted-2: #636366;
    --line: rgba(84,84,88,.36); --line-strong: rgba(120,120,128,.5); --track: rgba(120,120,128,.22);
    --accent: #2FD27F; --accent-press: #22B86C; --accent-soft: rgba(47,210,127,.14); --on-accent: #04170D;
    --star-soft: rgba(245,158,11,.16); --gram: #4FA3FF; --gram-soft: rgba(79,163,255,.14);
    --shadow: none; --shadow-lg: 0 20px 50px rgba(0,0,0,.6); --nav-bg: rgba(22,22,24,.82); --sheet-bg: #1C1C1E; --scrim: rgba(0,0,0,.55);
    --bubble: #262628; --wall-1: #1F3A2B; --wall-2: #14281D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1C1C1E; --card-2: #2C2C2E; --text: #FFFFFF; --muted: #8E8E93; --muted-2: #636366;
  --line: rgba(84,84,88,.36); --line-strong: rgba(120,120,128,.5); --track: rgba(120,120,128,.22);
  --accent: #2FD27F; --accent-press: #22B86C; --accent-soft: rgba(47,210,127,.14); --on-accent: #04170D;
  --star-soft: rgba(245,158,11,.16); --gram: #4FA3FF; --gram-soft: rgba(79,163,255,.14);
  --shadow: none; --shadow-lg: 0 20px 50px rgba(0,0,0,.6); --nav-bg: rgba(22,22,24,.82); --sheet-bg: #1C1C1E; --scrim: rgba(0,0,0,.55);
  --bubble: #262628; --wall-1: #1F3A2B; --wall-2: #14281D; color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
.ic { flex: none; display: block; }
.cur { flex: none; display: inline-block; vertical-align: -0.14em; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; }
.screen { padding: 8px 16px 172px; animation: in .28s ease both; }
.screen.no-nav { padding-bottom: 120px; }
@keyframes in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Шапка ---------- */
.topbar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 48px 0 2px; }
.topbar .spacer { flex: 1; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.role-pill { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px; border-radius: 19px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.role-pill .mini-panda { width: 30px; height: 30px; }
.role-pill .ic { color: var(--muted); }
.large-title { font-size: 32px; line-height: 1.12; font-weight: 750; letter-spacing: -0.02em; margin: 6px 2px 4px; }
.subtitle { color: var(--muted); font-size: 15px; margin: 0 2px 18px; }

/* ---------- Карточки и списки ---------- */
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.pad { padding: 20px; }
.section-label { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 26px 18px 8px; font-weight: 500; }
.list { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; min-height: 62px; width: 100%; text-align: left; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 72px; height: 1px; background: var(--line); }
.list.plain .row + .row::before { left: 16px; }
.row:active { background: var(--card-2); }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { color: var(--muted); font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { text-align: right; font-weight: 600; font-size: 15px; white-space: nowrap; }
.row .end .s { font-weight: 400; }
.row > .ic.chev { color: var(--muted-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px var(--accent-soft); }
.dot.off { background: var(--muted-2); box-shadow: none; }
.ico-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ico-tile.green { background: var(--accent-soft); color: var(--accent); }
.ico-tile.amber { background: var(--star-soft); color: var(--star); }
.ico-tile.blue { background: var(--gram-soft); color: var(--gram); }
.ico-tile.gray { background: var(--track); color: var(--muted); }

/* ---------- Большие цифры ---------- */
.hero-num { text-align: center; padding: 26px 20px 24px; }
.hero-num .lbl { color: var(--muted); font-size: 15px; font-weight: 500; }
.hero-num .big { font-size: 52px; line-height: 1.05; font-weight: 750; letter-spacing: -0.035em; margin: 8px 0 6px; display: inline-flex; align-items: center; gap: 10px; }
.hero-num .big .cur { width: 40px; height: 40px; }
.hero-num .sub { color: var(--muted); font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.pos { color: var(--accent); font-weight: 600; }

/* ---------- Кнопки ---------- */
.main-btn { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: 448px; height: 54px; border-radius: 16px;
  background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; z-index: 20;
  box-shadow: 0 10px 24px -8px rgba(18,183,106,.55); transition: transform .12s, background .12s; }
.main-btn:active { transform: translateX(-50%) scale(.98); background: var(--accent-press); }
.no-nav-page .main-btn { bottom: calc(18px + env(safe-area-inset-bottom)); }
.main-btn[disabled] { background: var(--track); color: var(--muted); box-shadow: none; }
.main-btn .cur { width: 20px; height: 20px; }
.ghost-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 600; width: 100%; }
.link-btn { color: var(--accent); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Нижняя навигация ---------- */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30; padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); display: flex; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.nav button.on { color: var(--accent); }
.nav button .ic { width: 26px; height: 26px; }

/* ---------- Старт ---------- */
.start { padding-top: 10px; text-align: center; }
.hero-art { position: relative; margin: 0 auto; }
.hero-start { width: 300px; height: 250px; }
.hero-start .hero-bg { position: absolute; inset: -10px -30px; width: 360px; height: 300px; }
.hero-panda { position: absolute; left: 50%; top: 50%; width: 176px; height: 176px; transform: translate(-50%, -46%); animation: bob 4s ease-in-out infinite; }
.hero-panda svg { width: 100%; height: 100%; }
@keyframes bob { 50% { transform: translate(-50%, -50%); } }
.float-chip { position: absolute; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.fc-1 { left: 6px; top: 64px; transform: rotate(-8deg); }
.fc-2 { right: 10px; top: 36px; transform: rotate(10deg); }
.fc-3 { right: 22px; bottom: 34px; transform: rotate(-6deg); }
.brand { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 6px; }
.tagline { color: var(--muted); font-size: 17px; line-height: 1.4; margin: 0 auto 28px; max-width: 310px; }
.choice { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); text-align: left; margin-bottom: 12px; border: 1.5px solid transparent; }
.choice:active { transform: scale(.985); }
.choice .ico-tile { width: 52px; height: 52px; border-radius: 16px; }
.choice .t { font-size: 18px; font-weight: 700; }
.choice .s { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.choice .ic.chev { color: var(--muted-2); margin-left: auto; }
.foot-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 16px; }

/* ---------- Экран чата ---------- */
.chat-head { display: flex; align-items: center; gap: 12px; margin: 4px 2px 16px; }
.chat-head .t { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.chat-head .s { color: var(--muted); font-size: 14px; }
.status-card { text-align: center; padding: 24px 16px 8px; }
.shield-ring { width: 132px; height: 132px; display: block; margin: 0 auto 10px; }
.status-card .st { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.status-card .ss { color: var(--muted); font-size: 15px; margin-top: 4px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid var(--line); }
.trio button { padding: 16px 4px 14px; text-align: center; position: relative; border-radius: 0 0 0 0; }
.trio button + button::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.trio button:active { background: var(--card-2); }
.trio .n { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 4px; }
.trio .n .cur { width: 18px; height: 18px; }
.trio .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.week { padding: 6px 0; }
.say { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.say + .say { border-top: 1px solid var(--line); margin-left: 70px; padding-left: 0; }
.say + .say .ico-tile { margin-left: -54px; }
.say .txt { font-size: 16px; line-height: 1.38; padding-top: 1px; }
.say .txt b { font-weight: 700; }
.say .when { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

/* ---------- Нижняя шторка ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 51; background: var(--sheet-bg); border-radius: 26px 26px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2,.9,.3,1) both; max-height: 88vh; overflow: auto; }
@keyframes up { from { transform: translate(-50%, 100%); } }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 14px; }
.sheet .sh-title { font-size: 15px; color: var(--muted); font-weight: 500; text-align: center; }
.sheet .sh-big { font-size: 46px; font-weight: 750; letter-spacing: -0.03em; text-align: center; margin: 4px 0 2px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sheet .sh-sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.sheet .sh-btn { margin-top: 18px; height: 52px; border-radius: 15px; background: var(--card-2); width: 100%; font-weight: 600; }

/* мини-столбики */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 0 4px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { display: block; width: 100%; max-width: 30px; border-radius: 8px; background: var(--track); min-height: 6px; transition: height .5s; }
.bars .b.hi i { background: linear-gradient(180deg, #3EE08F, #0FA45C); }
.bars .b span { font-size: 12px; color: var(--muted); }
.bars .b em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--text); }
.bars .b:not(.hi) em { color: var(--muted); font-weight: 500; }

/* ---------- Настройки рекламы ---------- */
.switch { display: inline-block; vertical-align: middle; width: 51px; height: 31px; border-radius: 16px; background: var(--track); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
.price-box { text-align: center; padding: 22px 16px 20px; }
.price-box .lbl { color: var(--muted); font-size: 15px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 6px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; color: var(--text); }
.stepper button:active { transform: scale(.92); }
.stepper .val { font-size: 50px; font-weight: 750; letter-spacing: -0.035em; min-width: 150px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.stepper .val .cur { width: 34px; height: 34px; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.chip { height: 36px; padding: 0 14px; flex: none; border-radius: 18px; background: var(--card-2); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; }
.chip.on { background: var(--accent-soft); color: var(--accent); }
.chip .cur { width: 15px; height: 15px; }
.gram-line { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); text-align: left; }
.gram-line .main { flex: 1; }
.gram-line .t { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.gram-line .s { color: var(--muted); font-size: 14px; margin-top: 2px; }
.seg { display: flex; background: var(--track); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; height: 36px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text); }
.seg button.on { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
:root[data-theme="dark"] .seg button.on { background: #636366; }
.note { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); color: var(--text); font-size: 15px; margin-top: 14px; }
.note .ic { color: var(--accent); }
.note b { color: var(--accent); }

/* ---------- Каталог ---------- */
.search { display: flex; align-items: center; gap: 8px; height: 42px; border-radius: 12px; background: var(--track); padding: 0 12px; color: var(--muted); margin-bottom: 14px; }
.search input { flex: 1; background: none; border: 0; outline: 0; font-size: 16px; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.tabs-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px; scrollbar-width: none; }
.tabs-row::-webkit-scrollbar { display: none; }
.ad-card { display: flex; align-items: center; gap: 14px; padding: 16px; width: 100%; text-align: left; }
.ad-card + .ad-card { border-top: 1px solid var(--line); }
.ad-card:active { background: var(--card-2); }
.ad-card .main { flex: 1; min-width: 0; }
.ad-card .t { font-weight: 650; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-card .s { color: var(--muted); font-size: 14px; margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ad-card .price { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.ad-card .price .p1 { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 4px; }
.ad-card .price .p2 { color: var(--muted); font-size: 13px; margin-top: 3px; display: inline-flex; align-items: center; gap: 3px; }
.clean-tag { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-weight: 600; font-size: 13px; }
.promo { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 20px; overflow: hidden; margin-bottom: 18px; }
.promo .main { flex: 1; }
.promo .t { font-weight: 750; font-size: 19px; letter-spacing: -0.01em; line-height: 1.2; }
.promo .s { color: var(--muted); font-size: 14px; margin-top: 4px; }
.mini-hero { width: 120px; height: 96px; flex: none; }

/* ---------- Заказ ---------- */
.steps { display: flex; gap: 6px; margin: 2px 2px 18px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--track); }
.steps i.on { background: var(--accent); }
.step-kicker { color: var(--accent); font-weight: 600; font-size: 14px; margin: 0 2px 4px; }
.field { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px; }
.field label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.field textarea { width: 100%; border: 0; outline: 0; resize: none; background: none; font-size: 17px; line-height: 1.4; min-height: 130px; }
.field input { width: 100%; border: 0; outline: 0; background: none; font-size: 17px; }
.field + .field { margin-top: 10px; }
.counter { text-align: right; color: var(--muted); font-size: 13px; margin-top: 6px; }
.radio-row .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.radio-row.on .radio { border-color: var(--accent); background: var(--accent); color: #fff; }
.preview { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.tg-head .t { font-weight: 650; font-size: 15px; }
.tg-head .s { color: var(--muted); font-size: 12.5px; }
.tg-wall { padding: 18px 14px 18px; background: linear-gradient(160deg, var(--wall-1), var(--wall-2)); position: relative; }
.tg-wall::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(circle at 20% 30%, #fff 1.5px, transparent 2px), radial-gradient(circle at 70% 60%, #fff 1.5px, transparent 2px); background-size: 38px 38px, 52px 52px; }
.bubble { position: relative; background: var(--bubble); border-radius: 18px 18px 18px 6px; padding: 10px 12px 8px; max-width: 88%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble .from { color: var(--accent); font-weight: 650; font-size: 14px; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.bubble .ad-mark { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 5px; }
.bubble .body { font-size: 15.5px; line-height: 1.4; white-space: pre-wrap; }
.bubble .time { text-align: right; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.tg-btn { position: relative; margin-top: 4px; max-width: 88%; height: 40px; border-radius: 12px; background: rgba(0,0,0,.22); color: #fff; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 6px; backdrop-filter: blur(6px); }
.summary .row { min-height: 52px; }
.summary .row .t { font-weight: 400; color: var(--muted); font-size: 15px; }
.summary .row .end { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Оплата ---------- */
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); width: 100%; text-align: left; border: 2px solid transparent; margin-bottom: 10px; }
.pay-opt.on { border-color: var(--accent); }
.pay-opt .logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.pay-opt .logo.s { background: var(--star-soft); }
.pay-opt .logo.g { background: var(--gram-soft); }
.pay-opt .logo .cur { width: 28px; height: 28px; }
.pay-opt .main { flex: 1; }
.pay-opt .t { font-weight: 700; font-size: 17px; }
.pay-opt .s { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pay-opt .amt { font-weight: 750; font-size: 20px; letter-spacing: -0.01em; }
.center-page { text-align: center; padding-top: 40px; }
.wait-ring { position: relative; width: 170px; height: 170px; margin: 0 auto 22px; }
.wait-spin { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 1.3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait-panda { position: absolute; inset: 26px; }
.wait-panda svg { width: 100%; height: 100%; }
.center-page h2 { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 8px; }
.center-page p { color: var(--muted); font-size: 16px; line-height: 1.45; margin: 0 auto 22px; max-width: 320px; }
.addr { display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-align: left; }
.addr .main { flex: 1; min-width: 0; }
.addr .s { color: var(--muted); font-size: 13px; }
.addr .t { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checklist { text-align: left; margin-top: 12px; }
.checklist .say { padding: 12px 16px; }
.success { width: 160px; height: 160px; display: block; margin: 0 auto 14px; }
.success .burst { animation: pop .6s ease both; transform-origin: 80px 80px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- Рефералы ---------- */
.hero-gift { width: 260px; height: 200px; }
.hero-gift svg { width: 100%; height: 100%; }
.ref-title { text-align: center; font-size: 26px; line-height: 1.2; font-weight: 750; letter-spacing: -0.02em; margin: 4px 12px 6px; }
.ref-sub { text-align: center; color: var(--muted); font-size: 16px; margin: 0 20px 20px; line-height: 1.4; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-mini { padding: 16px; }
.stat-mini .n { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; }
.stat-mini .n .cur { width: 22px; height: 22px; }
.stat-mini .l { color: var(--muted); font-size: 14px; margin-top: 2px; }
.how { counter-reset: how; }
.how .say .num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.how .say + .say { margin-left: 60px; }
.how .say + .say .num { margin-left: -44px; }

/* ---------- Статистика ---------- */
.picker { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 6px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; }
.picker .avatar { width: 26px; height: 26px; }
.stat-head { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 14px; gap: 10px; }
.stat-head .seg { width: 180px; }
.chart-card { padding: 18px 16px 14px; margin-top: 12px; }
.chart-card .ct { font-weight: 650; font-size: 16px; margin: 0 4px 2px; }
.chart-card .cs { color: var(--muted); font-size: 14px; margin: 0 4px 16px; }

/* ---------- Заказы ---------- */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 600; }
.pill.green { background: var(--accent-soft); color: var(--accent); }
.pill.amber { background: var(--star-soft); color: var(--star); }
.pill.gray { background: var(--track); color: var(--muted); }

/* ---------- Переключатель темы (для показа) ---------- */
.theme-toggle { position: fixed; top: 10px; right: max(10px, calc(50% - 230px)); z-index: 40; width: 38px; height: 38px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-lg); display: grid; place-items: center; color: var(--text); border: 1px solid var(--line); }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: 14.5px; z-index: 60; animation: in .2s ease both; display: flex; gap: 8px; align-items: center; }
.mini-panda svg { width: 100%; height: 100%; }

.toast { animation: fade .2s ease both; }
.name-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.name-line .t { min-width: 0; }
.name-line .ic { color: var(--accent); flex: none; }
.btn-fade { position: fixed; left: 0; right: 0; bottom: 0; height: calc(176px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg) 42%); z-index: 19; pointer-events: none; }
.no-nav-page .btn-fade { height: calc(104px + env(safe-area-inset-bottom)); }
.sheet .btn-fade { display: none; }
.tg-btn { background: rgba(20,50,30,.32); }
:root[data-theme="dark"] .tg-btn { background: rgba(255,255,255,.12); }
.hero-num .big { display: flex; justify-content: center; }
.hero-num .sub { display: flex; justify-content: center; flex-wrap: wrap; }
.promo .t { font-size: 18px; }
.mini-hero { width: 104px; height: 84px; }

/* ===== боевая версия: дополнения ===== */
.topbar { padding: 0 2px; }
.hero-btn { display: block; width: 100%; color: inherit; }
.hero-btn:active { transform: scale(.99); }
/* 26.11: личный баланс / доход платформы — подписи к каждому числу */
.bal-card .sub { display: block; font-size: 14px; line-height: 1.4; margin-top: 4px; }
.bal-card .sub.why { color: var(--text); margin-top: 0; }
.bal-card .sub.note { font-size: 12.5px; opacity: .85; margin-top: 8px; }
.bal-card .sub .amt { display: inline-flex; align-items: center; gap: 2px; vertical-align: -2px; font-weight: 650; color: var(--text); }
.bal-card .bal-more { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 10px; color: var(--link, var(--accent)); }
.bal-card .big.plat-big { font-size: 40px; flex-wrap: wrap; }
.plat-card .sub .amt, .plat-card .note { white-space: normal; }
.hero-num .sub .ic { color: var(--muted-2); }
.amt { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.plus { color: var(--muted); font-weight: 400; margin: 0 2px; }
.badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.badge.static { position: static; display: inline-grid; }
.nav button { position: relative; }
.dot.bad { background: var(--red); box-shadow: 0 0 0 3px rgba(240,68,56,.14); }
.sk { background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 26px 20px 10px; }
.empty-panda { width: 120px; height: 120px; margin: 0 auto 8px; }
.empty-panda svg { width: 100%; height: 100%; }
.empty h3 { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; margin: 4px 0 6px; }
.empty p { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 0 auto 16px; max-width: 310px; }
.empty .ghost-btn { max-width: 240px; margin: 0 auto; }
.list.inset { box-shadow: none; background: var(--card-2); margin-top: 14px; }
.list.inset .row { min-height: 50px; }
.inset-input { width: 100%; border: 0; outline: 0; border-radius: 14px; background: var(--card-2); padding: 12px 14px; font-size: 16px; margin-top: 12px; resize: none; color: var(--text); }
.main-btn.static { position: static; transform: none; width: 100%; max-width: none; margin-top: 16px; }
.main-btn.static:active { transform: scale(.98); }
.ghost-btn { margin-top: 10px; }
.ghost-btn.red { background: rgba(240,68,56,.10); color: var(--red); }
.choice.flat { background: var(--card-2); box-shadow: none; }
.choice.sel { border-color: var(--accent); }
.ad-card { padding: 0; gap: 0; }
.ad-main { display: flex; align-items: center; gap: 14px; padding: 14px 8px 14px 16px; flex: 1; min-width: 0; text-align: left; }
.ad-main:active { background: var(--card-2); }
.cart-tog { width: 34px; height: 34px; border-radius: 50%; margin-right: 12px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cart-tog.on { background: var(--accent); color: var(--on-accent); }
.img-pick { cursor: pointer; margin-top: 10px; }
.thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.bimg { display: block; width: calc(100% + 24px); margin: -10px -12px 8px; border-radius: 18px 18px 0 0; max-height: 220px; object-fit: cover; }
.copy-list { text-align: left; }
.copy-list .row .t { font-size: 16px; }
.row.must { background: var(--star-soft); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 15px; line-height: 1.45; }
.pk-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast.bad { background: var(--red); color: #fff; }
.sheet .field { margin-top: 12px; box-shadow: none; background: var(--card-2); }
.two .field + .field { margin-top: 0; }
.pill.blue { background: var(--gram-soft); color: var(--gram); }
.pill.red { background: rgba(240,68,56,.12); color: var(--red); }
.sheet .pay-opt { background: var(--card-2); box-shadow: none; }
.row .end .amt .cur { width: 14px; height: 14px; }
.sh-big .amt { gap: 6px; }
.week .say .txt .amt .cur { width: 15px; height: 15px; }

/* ===== 25.11 вечер: оболочка без моргания, тема Telegram, 3D-иконки, маскот, адаптив ===== */
.screen { animation: none !important; padding: 4px 16px 172px; }
.screen.no-nav { padding-bottom: 120px; }
#top { max-width: 480px; margin: 0 auto; padding: 8px 16px 0; }
#top:empty { display: none; }
#view { max-width: 480px; margin: 0 auto; min-height: 60vh; }
#prog { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .2s; pointer-events: none; }
#prog.on { opacity: 1; animation: prog 1.2s ease-in-out infinite; }
@keyframes prog { 0% { transform: scaleX(0); } 60% { transform: scaleX(.8); } 100% { transform: scaleX(1); opacity: .2; } }
.main-btn { bottom: calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 8px 20px -10px var(--accent); }
body.has-nav .main-btn { bottom: calc(86px + env(safe-area-inset-bottom)); }
.main-btn.static { box-shadow: none; }
.btn-fade { height: calc(104px + env(safe-area-inset-bottom)); }
body.has-nav .btn-fade { height: calc(176px + env(safe-area-inset-bottom)); }
.nav { padding-top: 6px; }
.nav-ind { position: absolute; top: 6px; left: 16px; height: 54px; border-radius: 16px; background: var(--accent-soft); transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s; z-index: 0; pointer-events: none; }
.nav button { z-index: 1; padding: 5px 0 4px; }
.nav button .fe { width: 28px; height: 28px; filter: grayscale(.9); opacity: .6; transition: filter .2s, opacity .2s, transform .2s; }
.nav button.on .fe { filter: none; opacity: 1; transform: translateY(-1px); }
.nav button.on span { color: var(--accent); }
.fe { display: block; flex: none; object-fit: contain; }
.cur { display: inline-block; vertical-align: -0.16em; object-fit: contain; }
.ico-tile { background: var(--track); }
.ico-tile .fe { width: 26px; height: 26px; }
.ico-tile.green { background: rgba(32,178,107,.14); }
.ico-tile.amber { background: rgba(245,158,11,.15); }
.ico-tile.blue { background: rgba(36,129,204,.13); }
.choice .ico-tile .fe { width: 32px; height: 32px; }
.pos { color: #20b26b; }
.dot { background: #20b26b; box-shadow: 0 0 0 3px rgba(32,178,107,.16); }
.pill.green { background: rgba(32,178,107,.14); color: #16a05e; }
.mascot { display: block; border-radius: 50%; }
.mini-panda { width: 30px; height: 30px; display: block; flex: none; }
.mini-panda .mascot { width: 100%; height: 100%; }
.picker .mascot { width: 26px; height: 26px; }
.empty-panda { width: 120px; height: 120px; }
.empty-panda .mascot { width: 100%; height: 100%; }
.hero-start { width: 280px; height: 250px; }
.hero-glow { position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(circle, rgba(32,178,107,.28) 0%, rgba(32,178,107,.06) 55%, rgba(32,178,107,0) 70%); }
.hero-glow.gold { background: radial-gradient(circle, rgba(255,201,74,.32) 0%, rgba(255,201,74,.06) 55%, rgba(255,201,74,0) 70%); }
.hero-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); border: 1px solid var(--line); }
.hero-ring.r1 { width: 220px; height: 220px; border-style: dashed; }
.hero-ring.r2 { width: 270px; height: 270px; }
.hero-panda { width: 176px; height: 176px; }
.hero-panda .mascot { width: 100%; height: 100%; filter: drop-shadow(0 12px 22px rgba(0,0,0,.18)); }
.float-chip .fe { width: 32px; height: 32px; }
.shield-ring { position: relative; width: 132px; height: 132px; margin: 0 auto 10px; }
.shield-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shield-ring .ring-ic { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); }
.success-wrap { position: relative; width: 160px; height: 160px; margin: 0 auto 14px; }
.success-ic { position: absolute; left: 20px; top: 20px; width: 120px; height: 120px; animation: pop .5s ease both; }
.success-wrap .sb { position: absolute; animation: pop .7s ease both; }
.success-wrap .s1 { right: 6px; top: 8px; }
.success-wrap .s2 { left: 0; bottom: 12px; }
.mini-hero { position: relative; width: 92px; height: 84px; flex: none; }
.mini-hero .mascot { position: absolute; left: 0; top: 4px; width: 76px; height: 76px; }
.mini-hero .mini-chip { position: absolute; right: -2px; bottom: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.mini-hero .mini-chip .fe { width: 28px; height: 28px; }
.promo { gap: 10px; padding: 14px 12px 14px 18px; }
.promo .t { font-size: 17px; }
.hero-gift { width: 230px; height: 190px; }
.hero-gift .gift-ava { position: absolute; left: 40px; top: 18px; width: 150px; height: 150px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.16)); }
.hero-gift .fc-g { right: 8px; bottom: 14px; width: 60px; height: 60px; border-radius: 18px; transform: rotate(8deg); }
.hero-gift .fc-h { left: 4px; top: 22px; transform: rotate(-10deg); }
.hero-gift .fc-g .fe { width: 40px; height: 40px; }
.wait-panda { inset: 21px; }
.wait-panda .mascot { width: 100%; height: 100%; }
.ad-main { align-items: center; gap: 12px; padding: 12px 8px 12px 14px; }
.ad-main .main { min-width: 0; flex: 1; }
.t2 { font-weight: 650; font-size: 15.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ad-main .s { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.ad-card .price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ad-card .price .p1 { font-weight: 700; font-size: 15.5px; }
.ad-card .price .p2 { color: var(--muted); font-size: 13px; margin: 0; }
.cart-tog { margin: 0 12px 0 2px; }
.row .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.28; }
.row .s { white-space: normal; overflow-wrap: anywhere; }
.row .end { flex: none; max-width: 52%; }
.row .end .s { white-space: nowrap; }
.chat-head .t { overflow-wrap: anywhere; }
.seg button { white-space: nowrap; padding: 0 6px; font-size: 14.5px; min-width: 0; }
.stat-head { flex-wrap: wrap; row-gap: 10px; }
.stat-head .seg { width: auto; flex: 1 1 170px; max-width: 220px; }
.picker { max-width: 100%; }
.pk-name { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper { gap: 12px; }
.stepper .val { min-width: 0; font-size: clamp(36px, 12vw, 50px); }
.trio .n { font-size: clamp(18px, 6vw, 24px); }
.hero-num .big { font-size: clamp(38px, 13vw, 52px); }
.large-title { font-size: clamp(26px, 8vw, 32px); }
.ref-title { font-size: clamp(22px, 7vw, 26px); }
:root[data-theme="dark"] .seg button.on { background: var(--line-strong); }
.pref-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 4px 8px; }
.sheet .seg { margin-bottom: 4px; }
@media (max-width: 340px) {
  .screen { padding-left: 12px; padding-right: 12px; }
  #top { padding-left: 12px; padding-right: 12px; }
  .ad-main { gap: 10px; padding-left: 12px; }
  .nav span { font-size: 10.5px; }
}
.tour { position: fixed; inset: 0; z-index: 85; background: var(--bg); display: flex; flex-direction: column; transition: opacity .2s; }
.tour.out { opacity: 0; }
.tour-skip { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 16px; z-index: 2; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--card); color: var(--muted); font-weight: 600; font-size: 14.5px; }
.tour-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tour-track::-webkit-scrollbar { display: none; }
.tour-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 24px 150px; text-align: center; box-sizing: border-box; }
.tour-art { position: relative; width: min(74vw, 46vh, 330px); aspect-ratio: 1 / 1; border-radius: 36px; background: radial-gradient(circle at 50% 45%, rgba(32,178,107,.22), rgba(32,178,107,.04) 70%), var(--card); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 26px; flex: none; }
.tour-comp { position: absolute; inset: 0; display: grid; place-items: center; }
.tour-comp .tour-ava { width: 66%; height: 66%; filter: drop-shadow(0 12px 22px rgba(0,0,0,.18)); }
.tour-chip { position: absolute; right: 9%; bottom: 9%; width: 27%; aspect-ratio: 1; border-radius: 24%; background: var(--card); box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.tour-chip .fe { width: 68%; height: 68%; }
.tour-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-slide h2 { font-size: clamp(22px, 7vw, 28px); line-height: 1.15; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 10px; }
.tour-slide p { color: var(--muted); font-size: 16px; line-height: 1.45; margin: 0; max-width: 320px; }
.tour-dots { position: absolute; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 7px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line-strong); transition: width .25s, background .25s; }
.tour-dots i.on { width: 22px; background: var(--accent); }
.tour .tour-next { position: absolute; left: 16px; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); width: auto; max-width: 448px; margin: 0 auto; }
@media (max-height: 640px) {
  .tour-slide { padding-top: 46px; padding-bottom: 130px; }
  .tour-art { width: min(70vw, 40vh, 300px); margin-bottom: 16px; }
  .tour-dots { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.sheet .seg button { white-space: normal; line-height: 1.15; height: auto; min-height: 36px; padding: 4px 6px; font-size: 14px; }
.row .t, .t2, .row .s { overflow-wrap: break-word; word-break: normal; }
.summary .row .end, .list.inset .row .end { white-space: normal; text-align: right; }
.copy-list .row .t, .addr .t { overflow-wrap: anywhere; }
.row[data-act="copy"] .t { -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.hero-num .sub .ic { display: inline-block; vertical-align: -2px; }

/* ===== 26.11: настройки в шапке, карточка заданий, онбординг без наездов ===== */
.gear-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 8px; border-radius: 19px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; color: var(--text); flex: none; }
.gear-btn .fe { width: 22px; height: 22px; }
.gear-btn:active { transform: scale(.96); }
@media (max-width: 350px) { .gear-btn span { display: none; } .gear-btn { padding: 0 8px; } }
.start .topbar { margin-bottom: 4px; }
.sh-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 0 6px; }
.sh-head .fe { width: 40px; height: 40px; }
.pref-label { display: flex; align-items: center; gap: 6px; }
.pref-label .fe { width: 18px; height: 18px; }
.seg.big button { height: 44px; font-size: 15px; }
.earn-card { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 20px; text-align: left; color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #0f8a40 100%); box-shadow: 0 10px 24px -12px rgba(22,163,74,.7); }
.earn-card:active { transform: scale(.985); }
.earn-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.earn-ic .fe { width: 38px; height: 38px; }
.earn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.earn-t { font-weight: 750; font-size: 17px; line-height: 1.2; }
.earn-s { font-size: 14px; opacity: .92; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.earn-s .amt { font-weight: 700; }
.earn-card .ic { color: rgba(255,255,255,.85); flex: none; }
.promo + .earn-card { margin: -6px 0 14px; }
/* онбординг: всё в потоке — картинка / текст / точки / кнопка, без прокрутки */
.tour { top: 0; left: 0; right: 0; bottom: auto; height: var(--tg-viewport-stable-height, 100vh); height: var(--tg-viewport-height, 100vh); min-height: 0; overflow: hidden; }
.tour-skip { position: static; align-self: flex-end; margin: calc(10px + env(safe-area-inset-top)) 16px 0 0; flex: none; }
.tour-track { flex: 1 1 auto; min-height: 0; overflow-y: hidden; scrollbar-width: none; }
.tour-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.tour-slide { padding: 8px 24px 8px; justify-content: center; min-height: 0; height: 100%; overflow: hidden; }
.tour-art { width: auto; height: min(330px, 74vw, 44vh); aspect-ratio: 1 / 1; margin-bottom: 20px; flex: 0 1 auto; }
.tour-slide h2 { flex: none; }
.tour-slide p { flex: none; }
.tour-foot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.tour-dots { position: static; }
.tour .tour-next { position: static; width: 100%; max-width: 448px; margin: 0; }
@media (max-height: 640px) { .tour-art { height: min(300px, 70vw, 38vh); margin-bottom: 14px; } .tour-slide h2 { font-size: 22px; } .tour-slide p { font-size: 15px; } .tour-foot { gap: 12px; } }
@media (max-height: 520px) { .tour-art { height: 30vh; } }
.hint-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.35; margin: 10px 4px 0; }
.hint-line .fe { width: 20px; height: 20px; }
.hint-line b { color: var(--text); font-weight: 600; }
.link-note { margin-top: 10px; align-items: center; }
.link-note .fe { width: 22px; height: 22px; }
.link-note > div { flex: 1; min-width: 0; font-size: 14.5px; }
.link-note .mini-sub { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; margin-top: 2px; }
.link-note .chip { flex: none; }
.ava-wrap { position: relative; display: inline-block; flex: none; border-radius: 50%; }
.ava-wrap .avatar { display: block; }
.ava-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; opacity: 0; transition: opacity .18s; }
.ava-img.ok { opacity: 1; transition: none; }
.pay-gram .center-block { text-align: center; padding: 18px 8px 6px; }
.pay-gram .center-block h2 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; margin: 6px 0 6px; }
.pay-gram .center-block p { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 0 auto; max-width: 340px; }
.pay-gram .wait-ring { width: 120px; height: 120px; margin: 0 auto 6px; }
.pay-gram .wait-panda { inset: 15px; }
.wallet-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); margin-top: 4px; }
.wallet-chip .main { flex: 1; min-width: 0; }
.wallet-chip .s { color: var(--muted); font-size: 12.5px; }
.wallet-chip .t { font-size: 15px; font-weight: 600; }
.wallet-chip .chip { flex: none; }
details.manual { margin-top: 16px; }
details.manual > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--muted); font-weight: 600; font-size: 14.5px; cursor: pointer; }
details.manual > summary::-webkit-details-marker { display: none; }
details.manual > summary span { flex: 1; }
details.manual > summary .fe { width: 20px; height: 20px; }
details.manual > summary .ic { transform: rotate(90deg); transition: transform .2s; }
details.manual[open] > summary .ic { transform: rotate(-90deg); }
details.manual .copy-list { margin-top: 10px; }
details.manual .copy-list .t.mono { font-size: 13px; }
tc-root { z-index: 95; }
.friends { padding: 2px 0; }
.friend { padding: 12px 16px; }
.friend + .friend { border-top: 1px solid var(--line); }
.friend .f-top { display: flex; align-items: center; gap: 12px; }
.friend .main { flex: 1; min-width: 0; }
.friend .t { font-weight: 650; font-size: 15.5px; overflow-wrap: anywhere; }
.friend .muted-i { color: var(--muted); font-weight: 500; font-size: 14px; }
.friend .s { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.friend .f-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0 52px; }
.friend .f-nums > div { background: var(--card-2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.friend .f-nums .l { color: var(--muted); font-size: 12px; }
.friend .f-nums b { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.empty-friends { display: flex; gap: 14px; align-items: center; padding: 16px; }
.empty-friends .ef-ava { flex: none; width: 72px; height: 72px; }
.empty-friends .ef-ava .mascot { width: 72px; height: 72px; }
.empty-friends .t { font-weight: 700; font-size: 16px; }
.empty-friends .s { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 4px; }
.t.nowrap { white-space: nowrap; display: block; -webkit-line-clamp: unset; overflow: hidden; text-overflow: clip; }
.copy-btn { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--muted); }
.ref-screen { padding-bottom: 190px; }
.row .t.mono.nowrap { font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.row .t.linkt { display: block; -webkit-line-clamp: unset; white-space: normal; overflow-wrap: normal; word-break: normal; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.row .t.linkt .nw { white-space: nowrap; }
/* 26.11: единая шапка, мастер заданий */
.topbar { height: 52px; flex-wrap: nowrap; gap: 10px; }
.topbar .role-pill { min-width: 0; max-width: calc(100% - 150px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gear-btn { white-space: nowrap; margin-left: auto; }
.large-title .cur, .sh-big .cur { width: .82em; height: .82em; vertical-align: -0.08em; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.type-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-align: left; border: 2px solid transparent; }
.type-card.on { border-color: var(--accent); }
.type-card .fe { width: 36px; height: 36px; }
.type-card .t { font-weight: 700; font-size: 15px; line-height: 1.2; }
.type-card .s { color: var(--muted); font-size: 13px; line-height: 1.3; }
.quote-card { margin-top: 14px; padding: 12px 16px; }
.quote-card:empty { display: none; }
.q-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; color: var(--muted); font-size: 14.5px; }
.q-row b { color: var(--text); display: inline-flex; align-items: center; gap: 3px; }
.q-row.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; color: var(--text); font-weight: 600; }
.q-row.total b { font-size: 17px; }
.q-warn { color: var(--red); font-size: 13.5px; margin-top: 6px; }
.task-row .progress { height: 4px; border-radius: 2px; background: var(--track); margin-top: 7px; overflow: hidden; }
.task-row .progress i { display: block; height: 100%; background: linear-gradient(90deg, #3EE08F, #0FA45C); border-radius: 2px; }
/* audit1 26.11: на узких экранах шестерёнка без подписи — пилюле роли отдаём место (было «Рекламодател» обрезано на 320) */
@media (max-width: 350px) { .topbar .role-pill { max-width: calc(100% - 60px); } .row .t { -webkit-line-clamp: 3; } }
