/* home-portal – Tổng quan cổng thành viên (khách hàng mua traffic / cộng tác viên). Tiền tố ph-. */
.ph { display: grid; gap: 14px; min-width: 0; }
.ph > * { min-width: 0; }

/* ---- Đầu trang */
.ph-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, #1d5fb8 0%, #0b3f86 38%, #022352 100%); color: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); }
.ph-hero::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgb(255 255 255 / 6%); pointer-events: none; }
.ph-hi { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ph-hi > div:last-child { min-width: 0; }
.ph-hi small { color: #b8cbe2; }
.ph-hi h2 { color: #fff !important; font-size: 22px; margin: 2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-av { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #d7e3f5 100%); color: var(--brand); box-shadow: 0 4px 14px rgb(0 0 0 / 20%); }
.ph-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgb(255 255 255 / 14%); color: #fff; border: 1px solid rgb(255 255 255 / 18%); white-space: nowrap; }
.ph-badge.green { background: rgb(16 185 129 / 25%); border-color: rgb(110 231 183 / 45%); }
.ph-badge.amber { background: rgb(245 158 11 / 25%); border-color: rgb(252 211 77 / 45%); }
.ph-badge.red { background: rgb(239 68 68 / 28%); border-color: rgb(252 165 165 / 45%); }
.ph-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; position: relative; z-index: 1; }
.ph-cta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ph-hero .btn { border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 10%); color: #fff; }
.ph-hero .btn:hover { background: rgb(255 255 255 / 20%); }
.ph-hero .btn.primary { background: #fff; color: var(--brand); border-color: #fff; }
.ph-hero .btn.primary:hover { background: #e8f0fb; }
.ph-seg { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 22%); }
.ph-seg button { color: #d6e2f3; padding: 6px 12px; }
.ph-seg button + button { border-left-color: rgb(255 255 255 / 18%); }
.ph-seg button.active { background: #fff; color: var(--brand); }
.ph-range { grid-column: 1 / -1; color: #9fb6d6; position: relative; z-index: 1; }

/* ---- Tab khách hàng / cộng tác viên */
.ph-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-tabs button { text-align: left; border: 2px solid transparent; background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 14px; cursor: pointer; font: inherit; font-weight: 700; color: var(--text); font-size: 15px; }
.ph-tabs button small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.ph-tabs button.active { border-color: var(--brand-2); background: linear-gradient(180deg, #f3f7fd, #fff); color: var(--brand); }
#ph-body { display: grid; gap: 14px; min-width: 0; }
#ph-body > * { min-width: 0; }
.ph-tips:empty { display: none; }
.ph-tips { margin-top: 0; }

/* ---- KPI */
.ph-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 0; }
.ph-kpi { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; text-decoration: none; overflow: hidden; transition: transform .12s, box-shadow .12s; }
a.ph-kpi:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px #bfdbfe, var(--shadow); }
.ph-kpi b { font-size: 22px; line-height: 1.2; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-kpi > small.muted { line-height: 1.35; }
.ph-kpi .pr-m { margin-top: 6px; }
.ph-d { font-style: normal; font-size: 11.5px; font-weight: 700; align-self: flex-start; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.ph-d.up { background: #ecfdf5; color: #047857; }
.ph-d.down { background: #fef2f2; color: #b91c1c; }
.ph-d.neu { background: #eff6ff; color: #1d4ed8; }
.ph-d.new { background: #f5f3ff; color: #6d28d9; }
.ph-spark { display: block; width: 100%; height: 26px; margin-top: 6px; opacity: .9; }

/* ---- Lưới */
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.ph-col { display: grid; gap: 14px; min-width: 0; }
.ph-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ph-2 { align-items: start; }
.ph-card { margin: 0; min-width: 0; }
.ph-ch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ph-ch h3 { margin: 0 auto 0 0; font-size: 15px; }
.ph-seg-sm button { padding: 4px 10px; font-size: 12.5px; }
.ph-sep { height: 1px; background: var(--line); margin: 12px 0; }
.ph-mt { margin: 10px 0 0; }

/* ---- Biểu đồ vùng */
.ph-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.ph-yax { display: flex; flex-direction: column; justify-content: space-between; height: var(--h); font-size: 10.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ph-yax span { line-height: 1; transform: translateY(-2px); }
.ph-yax span:last-child { transform: translateY(2px); }
.ph-plot { position: relative; height: var(--h); margin-bottom: 20px; touch-action: pan-y; cursor: crosshair; }
.ph-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ph-plot .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.ph-plot .cur { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ph-plot .prev { fill: none; stroke: #94a3b8; stroke-width: 1.4; stroke-dasharray: 5 5; }
.ph-xax { position: absolute; left: 0; right: 0; bottom: -18px; height: 14px; font-size: 10.5px; color: var(--muted); }
.ph-xax span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ph-xax span:first-child { transform: none; }
.ph-xax span:last-child { transform: translateX(-100%); }
.ph-guide, .ph-dot, .ph-tip { position: absolute; display: none; pointer-events: none; }
.ph-guide { top: 0; bottom: 0; width: 1px; background: #cbd5e1; }
.ph-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2.5px solid; box-shadow: 0 1px 4px rgb(0 0 0 / 25%); }
.ph-tip { top: -6px; z-index: 2; min-width: 130px; background: #0f172a; color: #fff; border-radius: 8px; padding: 6px 9px; font-size: 12px; box-shadow: 0 6px 18px rgb(0 0 0 / 22%); display: none; flex-direction: column; gap: 1px; }
.ph-tip .muted { color: #94a3b8; }
.ph-chart.hover .ph-guide, .ph-chart.hover .ph-dot { display: block; }
.ph-chart.hover .ph-tip { display: flex; }
.ph-sum { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
.ph-sum > div:not(.ph-lg) { display: flex; flex-direction: column; gap: 1px; }
.ph-sum span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.ph-sum b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ph-lg { margin-left: auto; display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.ph-lg span { display: inline-flex; align-items: center; gap: 5px; text-transform: none; letter-spacing: 0; }
.ph-lg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.ph-lg i.dash { background: repeating-linear-gradient(90deg, #94a3b8 0 4px, transparent 4px 7px); }

/* ---- Vòng tiến độ / donut */
.ph-ring { position: relative; width: 84px; height: 84px; flex: none; }
.ph-ring svg { width: 100%; height: 100%; }
.ph-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray .4s; }
.ph-ring circle.bg { stroke: var(--surface-2); stroke: #edf1f7; }
.ph-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.ph-ring b { font-size: 16px; color: var(--brand); font-variant-numeric: tabular-nums; }
.ph-ring small { font-size: 10.5px; color: var(--muted); }
.ph-today { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.ph-today .small > div + div { margin-top: 3px; }
.ph-donut { display: flex; gap: 16px; align-items: center; }
.ph-donut-c { position: relative; width: 104px; height: 104px; flex: none; }
.ph-donut-c svg { width: 100%; height: 100%; }
.ph-donut-c circle { fill: none; stroke-width: 12; }
.ph-donut-c circle.bg { stroke: #edf1f7; }
.ph-donut-c > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ph-donut-c b { font-size: 17px; color: var(--brand); }
.ph-donut-c small { font-size: 11px; color: var(--muted); }
.ph-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; min-width: 0; font-size: 13px; }
.ph-donut li { display: flex; align-items: center; gap: 8px; }
.ph-donut li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ph-donut li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Lượt theo giờ */
.ph-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 110px; padding-bottom: 16px; }
.ph-hours > div { position: relative; height: 100%; }
.ph-hours i { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 3px 3px 0 0; }
.ph-hours i.y { background: #e2e8f0; }
.ph-hours i.t { background: var(--brand-2); left: 18%; right: 18%; }
.ph-hours > div.now i.t { background: var(--accent); }
.ph-hours > div.fut i.y { opacity: .55; }
.ph-hours span { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.ph-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.ph-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ph-legend i { width: 10px; height: 10px; border-radius: 3px; }
.ph-legend i.t { background: var(--brand-2); }
.ph-legend i.y { background: #e2e8f0; }

/* ---- Thanh ngang */
.ph-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ph-hbars .row { gap: 8px; flex-wrap: nowrap; font-size: 13px; }
.ph-hbars .row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-hbars .row b { font-variant-numeric: tabular-nums; }
.ph-hb { height: 6px; border-radius: 99px; background: #edf1f7; overflow: hidden; margin-top: 3px; }
.ph-hb i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0b4a9e, #3b82f6); }

/* ---- Ví */
.ph-wallet { position: relative; overflow: hidden; color: #fff; border-radius: 16px; padding: 16px 18px; display: grid; gap: 12px;
  background: linear-gradient(140deg, #0b4a9e 0%, #073574 55%, #022352 100%); box-shadow: 0 8px 24px rgb(2 35 82 / 25%); }
.ph-wallet::before { content: ''; position: absolute; top: -70px; right: -50px; width: 200px; height: 200px; border-radius: 50%; background: rgb(255 255 255 / 7%); }
.ph-wallet.post { background: linear-gradient(140deg, #4c3fb0 0%, #2e2780 55%, #1b1650 100%); }
.ph-wallet.earn { background: linear-gradient(140deg, #0e9f6e 0%, #08754f 55%, #054d35 100%); box-shadow: 0 8px 24px rgb(5 77 53 / 25%); }
.ph-wallet > * { position: relative; }
.ph-w-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: rgb(255 255 255 / 75%); }
.ph-w-big { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.1; overflow-wrap: anywhere; }
.ph-w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-w-grid > div { background: rgb(255 255 255 / 9%); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.ph-w-grid small, .ph-w-fc small, .ph-w-credit small, .ph-w-note { display: block; font-size: 11.5px; color: rgb(255 255 255 / 72%); }
.ph-w-grid b { font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ph-wallet b.bad { color: #fecaca; }
.ph-w-fc, .ph-w-credit { display: grid; gap: 5px; font-size: 13px; }
.ph-w-fc .row, .ph-w-credit .row { justify-content: space-between; flex-wrap: nowrap; }
.ph-w-bar { height: 6px; border-radius: 99px; background: rgb(255 255 255 / 18%); overflow: hidden; }
.ph-w-bar i { display: block; height: 100%; border-radius: 99px; background: #6ee7b7; }
.ph-w-bar.low i { background: #fbbf24; }
.ph-w-st { font-size: 12.5px; background: rgb(255 255 255 / 10%); border-radius: 8px; padding: 6px 10px; }
.ph-w-st.warn { background: rgb(251 191 36 / 22%); }
.ph-w-act { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-w-act .btn { background: #fff; color: var(--brand); border-color: #fff; font-weight: 600; }
.ph-w-act .btn.ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 35%); }
.ph-wallet.earn .ph-w-act .btn:not(.ghost) { color: #065f46; }

/* ---- Danh sách chiến dịch */
.ph-camps { display: grid; gap: 4px; }
.ph-camp { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px; gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: 10px; color: inherit; text-decoration: none; }
.ph-camp + .ph-camp { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.ph-camp:hover { background: var(--surface-2); }
.ph-camp-m { min-width: 0; }
.ph-camp-m > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-camp-m > small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-camp-m .cm-flags { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.ph-camp-n { font-size: 12px; min-width: 0; }
.ph-camp-n .row { justify-content: space-between; flex-wrap: nowrap; color: var(--muted); }
.ph-camp-n b { color: var(--text); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ph-camp-n b small { color: var(--muted); font-weight: 500; }
.ph-more { display: block; text-align: center; padding: 8px; font-size: 13px; text-decoration: none; }

/* ---- Website, giao dịch, VAT */
.ph-sites, .ph-tx, .ph-rates { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ph-sites li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ph-sites li:last-child { border-bottom: 0; }
.ph-sites li > i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.ph-sites li > i.ok { background: var(--ok); box-shadow: 0 0 0 4px #d1fae5; }
.ph-sites li > i.bad { background: var(--danger); box-shadow: 0 0 0 4px #fee2e2; }
.ph-sites li > div { flex: 1; min-width: 0; }
.ph-sites b, .ph-sites small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-sites small { font-size: 12px; }
.ph-tx li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ph-tx li:last-child { border-bottom: 0; }
.ph-tx li > div { min-width: 0; }
.ph-tx li > div:not(.num) b, .ph-tx li > div:not(.num) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-tx small { font-size: 12px; }
.ph-tx .num { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ph-tx-i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 14px; }
.ph-tx-i.in { background: #ecfdf5; color: #047857; }
.ph-tx-i.out { background: #eff6ff; color: #1d4ed8; }
.ph-vat-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.ph-vat-k > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.ph-vat-k span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-vat-k b { font-size: 18px; color: var(--brand); font-variant-numeric: tabular-nums; }
.ph-vat-k b.bad { color: var(--danger); }
.ph-empty-s { display: grid; gap: 8px; justify-items: start; }

/* ---- Cộng tác viên */
.ph-links { display: grid; }
.ph-link { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ph-link:last-child { border-bottom: 0; }
.ph-link-m { min-width: 0; }
.ph-link-m b, .ph-link-m small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-link-m small { font-size: 12px; }
.ph-link-f { font-size: 12px; color: var(--muted); }
.ph-link-f b { color: var(--text); }
.ph-link .num { display: flex; align-items: center; gap: 4px; }
.ph-rates li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ph-rates li span { min-width: 0; }
.ph-rates li b { white-space: nowrap; color: var(--ok); }
.ph-rates li b small { color: var(--muted); font-weight: 500; }
.ph-rates + small { display: block; margin-top: 8px; }
.ph-ref { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ph-ref code { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px; padding: 4px 10px; font-weight: 700; letter-spacing: .05em; }

/* ---- Bắt đầu / hướng dẫn */
.ph-onb { margin: 0; }
.ph-onb-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ph-onb-h h3 { margin: 0 0 2px; }
.ph-onb-h .ph-ring { width: 64px; height: 64px; }
.ph-onb-h .ph-ring b { font-size: 14px; }
.ph-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.ph-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.ph-steps li:last-child { border-bottom: 0; }
.ph-steps li > span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); }
.ph-steps li > div { flex: 1; min-width: 0; }
.ph-steps li b { display: block; font-weight: 600; }
.ph-steps li small { display: block; font-size: 12px; }
.ph-steps li.ok { color: var(--text); }
.ph-steps li.ok b { text-decoration: line-through; text-decoration-color: #94a3b8; color: var(--muted); }
.ph-steps li.ok > span { background: var(--ok); border-color: var(--ok); color: #fff; }
.ph-steps li.cur { color: var(--text); }
.ph-steps li.cur b { color: var(--brand); }
.ph-steps li.cur > span { background: var(--brand-2); border-color: var(--brand-2); color: #fff; box-shadow: 0 0 0 4px #dbeafe; }
.ph-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ph-how li { display: flex; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.ph-how li > span { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.ph-how li b { display: block; }
.ph-how li small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ph-promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; background: linear-gradient(135deg, #ecfdf5, #fff 70%); }
.ph-promo p { margin: 2px 0 0; }

/* ---- Màn hình hẹp */
@media (max-width: 1350px) {
  .ph-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
  .ph-grid { grid-template-columns: minmax(0, 1fr); }
  .ph-grid > .ph-col:last-child { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
  .ph-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .ph-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .ph-ctl { align-items: stretch; }
  .ph-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ph-seg button { padding: 6px 4px; font-size: 12.5px; }
  .ph-cta { justify-content: stretch; }
  .ph-cta .btn { flex: 1; justify-content: center; }
  .ph-3 { grid-template-columns: minmax(0, 1fr); }
  .ph-grid > .ph-col:last-child { grid-template-columns: minmax(0, 1fr); }
  .ph-camp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; }
  .ph-camp-m { grid-column: 1 / -1; }
  .ph-link { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .ph-link-f { grid-column: 1 / -1; grid-row: 2; }
  .ph-how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .ph-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ph-kpi b { font-size: 19px; }
  .ph-tabs button { padding: 8px 10px; font-size: 14px; }
  .ph-hi h2 { font-size: 19px; }
  .ph-av { width: 44px; height: 44px; font-size: 19px; }
  .ph-sum { gap: 8px 16px; }
  .ph-lg { margin-left: 0; width: 100%; }
  .ph-w-big { font-size: 26px; }
  .ph-tips.cu-tips { grid-template-columns: minmax(0, 1fr); }
  .ph-xax span:nth-last-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ph-kpi, .ph-ring circle { transition: none; } }
