/* ==========================================================
   KES Lookbook page layouts: home, detail modal, board, swipe
   ========================================================== */

body { padding-bottom: 72px; }
@media (min-width: 720px) { body { padding-bottom: 0; } }

/* ---------- mobile tab bar ---------- */
.tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--kes-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; text-decoration: none; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: var(--radius-sm); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--kes-espresso); }
.tabbar a[aria-current="page"] svg { color: var(--accent); }
.tabbar b { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
@media (min-width: 720px) { .tabbar { display: none; } }
@media (max-width: 719px) { .site-header .nav { display: none; } .site-header .wrap { justify-content: center; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 88px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--kes-espresso); color: var(--kes-cream); padding: 12px 20px; border-radius: var(--radius-pill); font-size: var(--fs-sm); box-shadow: var(--shadow); transition: all var(--dur) var(--ease); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #fff; font-weight: 600; margin-left: 8px; }
@media (min-width: 720px) { .toast { bottom: 32px; } }

/* ---------- home hero ---------- */
.hero { padding-block: var(--s-7) var(--s-5); display: grid; gap: var(--s-5); align-items: end; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.4fr 1fr; padding-block: var(--s-8) var(--s-6); } }
.hero h1 { margin-bottom: var(--s-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.steps { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); list-style: none; padding: 0; margin: var(--s-5) 0 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kes-espresso); }
.steps li { display: flex; align-items: center; gap: var(--s-2); }
.steps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-strong); font-size: 11px; }
.hero-note { font-size: var(--fs-sm); color: var(--text-muted); border-left: 2px solid var(--accent); padding-left: var(--s-4); max-width: 34ch; }

/* ---------- filter bar ---------- */
.filterbar { position: sticky; top: 64px; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); padding-block: var(--s-3); }
.chip-sep { flex: 0 0 1px; align-self: stretch; margin: 8px 4px; background: var(--kes-line); }
.chip-group-label { flex: 0 0 auto; align-self: center; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding-left: 4px; }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-muted); margin: var(--s-3) 0 var(--s-4); min-height: 24px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: var(--fs-sm); }
.empty { text-align: center; padding: var(--s-8) var(--s-4); }
.empty h2 { font-size: var(--fs-xl); }
.sentinel { height: 1px; }
.loading-more { text-align: center; padding: var(--s-6); font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Pinterest button spacing ---------- */
.tile-actions > span { display: flex; align-items: flex-start; }
.pin-wrap { display: inline-block; }

/* ---------- look detail modal ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(43, 31, 30, 0.55); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-panel { position: relative; width: 100%; max-width: 1080px; max-height: 94vh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(24px); transition: transform 320ms var(--ease); }
.modal.open .modal-panel { transform: none; }
@media (min-width: 900px) { .modal { align-items: center; padding: var(--s-6); } .modal-panel { border-radius: var(--radius-lg); max-height: 90vh; } }
.modal-close { position: sticky; top: var(--s-3); float: right; margin: var(--s-3) var(--s-3) 0 0; z-index: 3; }
.look-detail { display: grid; gap: var(--s-5); padding: var(--s-4); }
@media (min-width: 900px) { .look-detail { grid-template-columns: 1fr 1fr; gap: var(--s-7); padding: var(--s-6); } }
.look-detail-media .tile-media { border-radius: var(--radius); overflow: hidden; background: var(--kes-cream-deep); }
.look-detail-media .tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look-detail-body h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.look-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-5); }
.look-tags span { font-size: var(--fs-xs); padding: 4px 12px; border-radius: var(--radius-pill); background: var(--kes-cream-deep); color: var(--kes-espresso); }
.h-small { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); margin: var(--s-5) 0 var(--s-2); }
.services { background: var(--surface); border-radius: var(--radius); padding: var(--s-1) var(--s-4); margin-bottom: var(--s-4); }
.detail-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-5); }
.detail-actions .btn { flex: 1 1 180px; }
.more-like { padding: 0 var(--s-4) var(--s-6); }
@media (min-width: 900px) { .more-like { padding: 0 var(--s-6) var(--s-6); } }
.more-row { display: grid; grid-auto-flow: column; grid-auto-columns: 140px; gap: var(--s-3); overflow-x: auto; padding-bottom: var(--s-2); scrollbar-width: thin; }
@media (min-width: 900px) { .more-row { grid-auto-columns: 1fr; } }
.more-item { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: var(--fs-xs); font-weight: 500; color: var(--text); }
.more-item .tile-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5 !important; margin-bottom: 6px; background: var(--kes-cream-deep); }
.more-item .tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.more-item .ph { border-radius: var(--radius-sm); padding: var(--s-2); }
.more-item .ph-label { font-size: 9px; }
.more-item .ph::before { top: 10px; left: 10px; width: 14px; height: 21px; }

/* ---------- board ---------- */
.page-head { padding-block: var(--s-7) var(--s-4); }
.page-head h1 { font-size: var(--fs-2xl); }
.board-bar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-5); }
.board-bar .spacer { flex: 1; }
.shared-note { background: var(--surface); border-radius: var(--radius); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); }
.shared-note p { margin: 0; }
.next-steps { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 720px) { .next-steps { grid-template-columns: repeat(3, 1fr); } }
.next-steps .card h3 { font-size: var(--fs-lg); }
.next-steps .card p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- swipe ---------- */
.swipe-page { max-width: 460px; margin: 0 auto; padding: var(--s-5) var(--gutter) var(--s-6); display: flex; flex-direction: column; min-height: calc(100vh - 64px - 72px); min-height: calc(100dvh - 64px - 72px); }
.swipe-head { text-align: center; margin-bottom: var(--s-4); }
.swipe-head h1 { font-size: var(--fs-xl); margin-bottom: var(--s-1); }
.swipe-progress { height: 3px; background: var(--kes-cream-deep); border-radius: 2px; overflow: hidden; margin-bottom: var(--s-4); }
.swipe-progress i { display: block; height: 100%; background: var(--accent); transition: width var(--dur) var(--ease); }
.deck { position: relative; flex: 1; min-height: 420px; max-height: 620px; }
.swipe-card { position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); touch-action: none; user-select: none; will-change: transform; transition: transform 320ms var(--ease), opacity 320ms var(--ease); display: flex; flex-direction: column; }
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card .sc-media { position: relative; flex: 1; background: var(--kes-cream-deep); }
.swipe-card .sc-media .tile-media { position: absolute; inset: 0; aspect-ratio: auto !important; height: 100%; }
.swipe-card .sc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe-card .ph { border-radius: 0; border: 0; }
.swipe-card .sc-body { padding: var(--s-4) var(--s-5); }
.swipe-card .sc-body h2 { font-size: var(--fs-lg); margin: 0 0 2px; }
.swipe-card .sc-body p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.swipe-card:nth-last-child(2) { transform: scale(0.96) translateY(10px); }
.swipe-card:nth-last-child(3) { transform: scale(0.92) translateY(20px); }
.swipe-card:nth-last-child(n+4) { opacity: 0; }
.stamp { position: absolute; top: 24px; z-index: 2; padding: 6px 14px; border: 2px solid; border-radius: 8px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--fs-sm); opacity: 0; background: rgba(255, 252, 250, 0.9); }
.stamp.love { left: 20px; color: var(--accent-strong); border-color: var(--accent); transform: rotate(-10deg); }
.stamp.skip { right: 20px; color: var(--kes-espresso); border-color: var(--kes-espresso); transform: rotate(10deg); }
.swipe-controls { display: flex; justify-content: center; gap: var(--s-6); margin-top: var(--s-5); }
.swipe-btn { width: 68px; height: 68px; border-radius: 50%; border: 1px solid var(--kes-line); background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease); color: var(--kes-espresso); }
.swipe-btn:hover { transform: scale(1.06); }
.swipe-btn svg { width: 28px; height: 28px; }
.swipe-btn.love { background: var(--accent); border-color: var(--accent); color: #fff; }
.swipe-btn.love svg path { fill: currentColor; }
.swipe-labels { display: flex; justify-content: center; gap: var(--s-6); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: var(--s-2); }
.swipe-labels span { width: 68px; text-align: center; }
.swipe-hint { text-align: center; font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--s-3); }
.swipe-done { text-align: center; padding: var(--s-7) var(--s-4); }
.swipe-done .btn { margin: 6px; }

/* ---------- booking sheet ---------- */
.book-panel { max-width: 560px; }
.book-body { padding: var(--s-5); }
@media (min-width: 900px) { .book-body { padding: var(--s-6); } }
.book-body h2 { font-size: var(--fs-xl); }
.tip { background: #F3E3D9; border-radius: var(--radius); padding: var(--s-4); font-size: var(--fs-sm); margin: var(--s-4) 0; color: var(--kes-text); }
.dm-text { width: 100%; min-height: 110px; padding: var(--s-3); line-height: 1.45; resize: vertical; }

/* ---------- stylists ---------- */
.stylist-list { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .stylist-list { grid-template-columns: 1fr 1fr; } }
.stylist-card { grid-template-columns: 72px 1fr; }
.stylist-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.stylist-actions .btn { min-height: 44px; padding: 0 var(--s-4); }

/* ---------- try it on ---------- */
.stepper { display: flex; gap: var(--s-2); list-style: none; padding: 0; margin: 0 0 var(--s-5); counter-reset: s; overflow-x: auto; }
.stepper li { counter-increment: s; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding-bottom: 10px; border-bottom: 2px solid var(--kes-line); }
.stepper li::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; }
.stepper li.current { color: var(--kes-espresso); border-color: var(--accent); }
.stepper li.done { color: var(--accent-strong); border-color: var(--accent); }
.stepper li.done::before { content: "\2713"; background: var(--accent); color: #fff; border-color: var(--accent); }
.h-step { font-size: var(--fs-xl); outline: none; }
.plain-list { padding-left: 1.1em; margin: 0 0 var(--s-5); }
.plain-list li { margin-bottom: 6px; }
.step .check { margin-bottom: var(--s-3); }
.step-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-4); }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.form-error { color: #9B2C1F; font-size: var(--fs-sm); margin: var(--s-3) 0 0; }
.file-btn { position: relative; cursor: pointer; }
.file-btn svg { width: 20px; height: 20px; }
.selfie-grid { display: grid; gap: var(--s-5); }
@media (min-width: 800px) { .selfie-grid { grid-template-columns: 320px 1fr; } }
.selfie-drop { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 1.5px dashed var(--kes-terracotta); background: var(--kes-cream); max-width: 320px; width: 100%; margin: 0 auto; }
.selfie-drop img { width: 100%; height: 100%; object-fit: cover; }
.selfie-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: var(--s-5); color: var(--text-muted); font-size: var(--fs-sm); }
.ph-mark { display: block; width: 28px; height: 42px; margin: 0 auto var(--s-3); background: url("/assets/img/logo/kes-mark-blush.png") center / contain no-repeat; opacity: .7; }
.guide b { color: var(--kes-espresso); }
.inspo { display: grid; gap: var(--s-4); margin: var(--s-4) 0 var(--s-5); }
@media (min-width: 900px) { .inspo { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.inspo-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.inspo-row .input { flex: 1 1 220px; }
.pick-tabs { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
@media (min-width: 720px) { .pick-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1100px) { .pick-grid { grid-template-columns: repeat(6, 1fr); } }
.pick-item { position: relative; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: var(--fs-xs); color: var(--text); }
.pick-item .tile-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5 !important; background: var(--kes-cream-deep); outline: 3px solid transparent; outline-offset: 2px; transition: outline-color var(--dur) var(--ease); }
.pick-item .tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-item .ph { border-radius: var(--radius-sm); padding: 8px; }
.pick-item .ph-label { font-size: 9px; }
.pick-item .ph::before { top: 8px; left: 8px; width: 12px; height: 18px; }
.pick-item[aria-pressed="true"] .tile-media { outline-color: var(--accent); }
.pick-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,252,250,.92); border: 1.5px solid var(--kes-line); }
.pick-item[aria-pressed="true"] .pick-check { background: var(--accent); border-color: var(--accent); }
.pick-item[aria-pressed="true"] .pick-check::after { content: "\2713"; color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; height: 100%; }
.pick-title { display: block; margin-top: 6px; font-weight: 500; line-height: 1.3; }
.grey-box { margin-top: var(--s-5); max-width: 520px; }
.grey-box input[type=range] { width: 100%; accent-color: var(--kes-terracotta); }
.grey-labels { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.preview-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: var(--s-5); }
.preview { margin: 0; }
.preview-media { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--kes-cream-deep); }
.preview-media > img, .preview-loading img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview figcaption { margin-top: 8px; font-weight: 500; }
.preview-loading img { filter: blur(6px) saturate(.6); transform: scale(1.05); opacity: .7; }
.shimmer { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(247,241,236,.7) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.loading-msg { position: absolute; left: 0; right: 0; bottom: var(--s-4); text-align: center; font-family: var(--font-heading); font-style: italic; color: var(--kes-espresso); margin: 0; }
.preview-waiting { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s-4); text-align: center; font-size: var(--fs-sm); color: var(--text-muted); border: 1.5px dashed var(--kes-line); border-radius: var(--radius); }
.demo-badge { position: absolute; top: 10px; left: 10px; background: var(--kes-espresso); color: var(--kes-cream); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.email-gate { max-width: 560px; margin-bottom: var(--s-5); }
.photo-issue { grid-column: 1 / -1; max-width: 560px; }

/* ---------- Look Card ---------- */
.card-page { padding-top: var(--s-6); }
.shared-banner { max-width: 480px; margin: 0 auto var(--s-4); font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }
.look-card { max-width: 480px; margin: 0 auto; background: var(--kes-cream); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--s-5) var(--s-5) var(--s-4); border: 1px solid var(--kes-line); }
.lc-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.lc-logo { height: 20px; width: auto; }
.lc-title .eyebrow { margin-bottom: 4px; }
.lc-title h1 { font-size: var(--fs-2xl); margin: 0; }
.lc-date { font-size: var(--fs-xs); color: var(--text-muted); margin: 4px 0 0; letter-spacing: .06em; text-transform: uppercase; }
.lc-previews { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.lc-previews.n1 { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; }
.lc-previews.n2 { grid-template-columns: 1fr 1fr; }
.lc-previews.n3 { grid-template-columns: 1fr 1fr 1fr; }
.lc-preview { margin: 0; }
.lc-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--kes-cream-deep); }
.lc-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lc-img .tile-media { position: absolute; inset: 0; aspect-ratio: auto !important; }
.lc-img .ph { border-radius: var(--radius-sm); padding: 8px; }
.lc-img .ph-label { font-size: 8px; }
.lc-img .ph::before { top: 8px; left: 8px; width: 12px; height: 18px; }
.lc-preview figcaption { font-size: var(--fs-xs); font-weight: 600; margin-top: 6px; text-align: center; line-height: 1.3; }
.lc-summary { font-family: var(--font-heading); font-size: var(--fs-lg); line-height: 1.45; color: var(--kes-espresso); text-align: center; margin-bottom: var(--s-3); }
.lc-face { font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }
.lc-section { border-top: 1px solid var(--kes-line); padding-top: var(--s-4); margin-top: var(--s-4); }
.lc-h { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent-strong); margin: 0 0 var(--s-3); }
.lc-dir { font-size: var(--fs-sm); }
.lc-section .swatches { gap: var(--s-2); justify-content: space-between; }
.lc-section .swatch { width: 64px; font-size: 11px; text-align: center; }
.lc-section .swatch i { width: 56px; height: 56px; margin: 0 auto; }
.lc-note { font-size: var(--fs-sm); color: var(--text-muted); font-style: italic; }
.lc-list { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); }
.lc-list li { margin-bottom: 4px; }
.look-card .services { padding: 0 var(--s-3); }
.look-card .service-row .name { font-size: var(--fs-sm); }
.lc-stylists { display: grid; gap: var(--s-2); border-radius: var(--radius); transition: box-shadow 400ms var(--ease); }
.lc-stylists.pulse { box-shadow: 0 0 0 4px rgba(174,99,63,.35); }
.lc-stylist { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s-3); align-items: center; background: var(--surface); border-radius: var(--radius); padding: var(--s-2) var(--s-3); }
.lc-stylist .avatar { width: 44px; height: 44px; font-size: var(--fs-sm); }
.lc-st-body { font-size: var(--fs-sm); line-height: 1.35; }
.lc-st-body .tier { font-size: 9px; padding: 2px 8px; vertical-align: 2px; }
.lc-st-spec { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.lc-stylist .junior-note { display: block; font-size: var(--fs-xs); }
.lc-book { min-height: 38px; padding: 0 var(--s-4); }
.look-card .consult-line { margin: var(--s-5) 0 var(--s-3); font-size: var(--fs-sm); }
.lc-offer { background: var(--kes-espresso); color: var(--kes-cream); border-radius: var(--radius-sm); padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); text-align: center; }
.lc-cta { margin-top: var(--s-4); }
.lc-foot { margin-top: var(--s-4); text-align: center; font-size: 11px; letter-spacing: .06em; color: var(--text-muted); }
.card-actions { max-width: 480px; margin: var(--s-5) auto 0; display: grid; gap: var(--s-2); }
@media (min-width: 560px) { .card-actions { grid-template-columns: 1fr 1fr; } .card-actions #dl { grid-column: 1 / -1; } }

@media (max-width: 480px) {
  .stepper { gap: 6px; }
  .stepper li { font-size: 10px; letter-spacing: .04em; gap: 5px; }
  .stepper li::before { width: 18px; height: 18px; font-size: 10px; flex: 0 0 auto; }
}

/* ---------- try-on: pick bar (replaces floating button) ---------- */
.pick-bar { position: fixed; z-index: 44; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--kes-line); box-shadow: 0 -6px 20px rgba(43,31,30,.06); padding: 10px var(--gutter); }
.pick-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 0; }
.pick-bar-count { font-size: var(--fs-sm); font-weight: 600; color: var(--kes-espresso); }
.pick-bar .btn { flex: 0 1 auto; }
@media (min-width: 720px) { .pick-bar { bottom: 0; padding: 12px var(--gutter); } }
body.has-pick-bar { padding-bottom: 150px; }
@media (min-width: 720px) { body.has-pick-bar { padding-bottom: 80px; } }

/* swipe labels */
.swipe-labels span { width: 96px; }
.swipe-controls { gap: var(--s-7); }
.swipe-labels { gap: calc(var(--s-7) - 28px); }

body.has-pick-bar .toast { bottom: 150px; }
@media (min-width: 720px) { body.has-pick-bar .toast { bottom: 96px; } }

/* ---------- privacy / text pages ---------- */
.prose { max-width: 760px; }
.prose section { border-top: 1px solid var(--kes-line); padding: var(--s-5) 0; }
.prose h2 { font-size: var(--fs-xl); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s-2); }

/* ---------- campaign terms ---------- */
.campaign-banner button { background: none; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; padding: 0 0 0 6px; }
.campaign-terms { max-width: 720px; margin: 8px auto 0; font-size: var(--fs-xs); opacity: .9; }
.lc-terms { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 6px; }

/* ---------- stylist levels + booking sheet (Ovatu pricing) ---------- */
.levels { display: grid; gap: var(--s-3); margin-bottom: var(--s-2); }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level p { margin: var(--s-2) 0 0; font-size: var(--fs-sm); }
.level .level-eg { font-family: var(--font-heading); color: var(--kes-espresso); }
.levels-note { font-size: var(--fs-xs); margin-bottom: var(--s-5); }
.tier-note { font-size: var(--fs-sm); color: var(--kes-text); margin: 6px 0 0; line-height: 1.45; }
.price-note { font-size: var(--fs-xs); color: var(--text-muted); margin: -8px 0 var(--s-4); }
.book-head { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); align-items: center; margin-bottom: var(--s-4); }
.book-head .avatar { width: 64px; height: 64px; }
.book-head h2 { margin: 0 0 6px; }
.book-head .eyebrow { margin-bottom: 4px; }
.book-total { font-family: var(--font-heading); font-size: var(--fs-lg); color: var(--kes-espresso); text-align: right; margin: -6px 0 var(--s-4); }
.book-note { font-size: var(--fs-sm); color: var(--text-muted); }
.lc-st-price { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--kes-espresso); margin-top: 2px; }
.lc-st-note { display: block; font-size: var(--fs-xs); color: var(--accent-strong); font-style: italic; }

/* Look Card stylist rows: give the text room on phones */
@media (max-width: 480px) {
  .lc-stylist { grid-template-columns: 44px 1fr; row-gap: var(--s-2); align-items: start; padding: var(--s-3); }
  .lc-stylist .avatar { margin-top: 2px; }
  .lc-book { grid-column: 2; justify-self: start; min-height: 36px; }
}

/* ---------- admin (stylist on/off) ---------- */
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.admin-wrap { padding-block: var(--s-6) var(--s-8); max-width: 960px; }
.admin-login { max-width: 440px; margin: var(--s-6) auto 0; display: grid; gap: var(--s-3); }
.admin-login-h { margin: 0; font-size: var(--fs-xl); }
.admin-login .field { gap: var(--s-3); }
.admin-count { font-weight: 600; color: var(--heading); margin: 0 0 var(--s-4); }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.admin-row { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-4); }
.admin-row .avatar { width: 56px; height: 56px; font-size: var(--fs-base); }
.admin-row.is-off .avatar { filter: grayscale(1); opacity: 0.6; }
.admin-who { min-width: 0; }
.admin-name { font-size: var(--fs-base); margin: 0 0 4px; line-height: 1.25; overflow-wrap: anywhere; }
.admin-state { font-size: var(--fs-xs); color: var(--text-muted); margin: 6px 0 0; }
.admin-row.is-off .admin-state { color: var(--accent-strong); font-weight: 600; }
.switch { display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: var(--s-2); min-width: 64px; min-height: 48px; cursor: pointer; color: var(--text); font: inherit; border-radius: var(--radius-sm); }
.switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch[disabled] { opacity: 0.55; cursor: progress; }
.switch-track { position: relative; width: 52px; height: 30px; border-radius: var(--radius-pill); background: var(--kes-sand); transition: background var(--dur) var(--ease); }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease); }
.switch[aria-checked="true"] .switch-track { background: var(--kes-espresso); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(22px); }
.switch-text { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.admin-log { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); }
.admin-log summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.admin-log ul { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.admin-log li { margin: 0; font-size: var(--fs-sm); padding: 6px 0; border-top: 1px solid var(--kes-line); }

/* ---------- test version: strip, "Suggest a change" tab and form ---------- */
.test-strip { background: var(--kes-sand); color: var(--kes-text); font-size: var(--fs-xs); }
.test-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: 6px; }
.test-strip p { margin: 0; line-height: 1.35; }
.test-strip-btn { flex: none; background: var(--kes-espresso); color: var(--kes-cream); border: 0; border-radius: var(--radius-pill); padding: 8px 14px; min-height: 36px; font: inherit; font-weight: 600; cursor: pointer; }
.test-strip-btn:hover { background: var(--kes-text); }
.test-strip-btn:focus-visible, .feedback-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.feedback-tab { position: fixed; z-index: 65; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; box-shadow: var(--shadow); font: inherit; font-size: var(--fs-sm); font-weight: 600; transition: background var(--dur) var(--ease), bottom var(--dur) var(--ease); }
.feedback-tab svg { width: 22px; height: 22px; }
.feedback-tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.feedback-tab:hover { background: var(--accent-strong); }
body.has-pick-bar .feedback-tab { bottom: calc(150px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) {
  .feedback-tab { right: 16px; bottom: 16px; width: auto; height: 44px; padding: 0 18px 0 14px; border-radius: var(--radius-pill); display: flex; gap: 8px; }
  .feedback-tab span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  body.has-pick-bar .feedback-tab { bottom: 88px; }
}
.fb-dialog { width: min(520px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: var(--radius-lg); padding: 0; background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.fb-dialog::backdrop { background: rgba(43, 31, 30, 0.55); }
.fb-form { display: grid; gap: var(--s-4); padding: var(--s-5); }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.fb-head h2 { margin: 0; font-size: var(--fs-xl); }
.fb-screen { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.fb-text { min-height: 120px; padding: var(--s-3) var(--s-4); resize: vertical; line-height: 1.45; }
.fb-note { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }
.fb-form .form-error { margin: 0; }

/* ---------- accounts: sign in, My Looks ---------- */
.si-step { display: grid; gap: var(--s-4); }
.si-lede { margin: 0; color: var(--text); }
.si-code { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; font-weight: 600; }
.si-ts:empty { display: none; }
.si-links { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin: 0; }
.btn-danger { background: #9B2C1F; color: #fff; }
.btn-danger:hover { background: #7E2318; }
.danger-link { color: #9B2C1F; }
.confirm-dialog h2 { margin: 0; font-size: var(--fs-xl); }
.confirm-dialog p { margin: 0; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.confirm-actions .btn { flex: 1 1 160px; }

.acct-card { display: grid; gap: var(--s-3); justify-items: start; margin-bottom: var(--s-6); background: var(--kes-cream-deep); box-shadow: none; }
.acct-card h2 { margin: 0; font-size: var(--fs-xl); }
.acct-card p { margin: 0; max-width: 60ch; }
.acct-line { margin: 0 0 var(--s-5); font-size: var(--fs-sm); color: var(--text-muted); }
.ml-section { margin-bottom: var(--s-7); }
.ml-h { font-size: var(--fs-xl); margin: 0 0 var(--s-4); }
.ml-empty { padding-block: var(--s-5); }
.ml-empty h3 { margin-top: 0; }
.ml-empty-line { margin: var(--s-3) 0 0; }

.keep-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-4); }
.keep-title { margin: 0; font-weight: 600; }
.keep-sub { margin: 4px 0 0; font-size: var(--fs-sm); }
.tryon-list { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .tryon-list { grid-template-columns: 1fr 1fr; } }
.tryon-entry { display: grid; gap: var(--s-4); padding: var(--s-4) var(--s-5) var(--s-5); }
.te-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.te-head h3 { margin: 0; font-size: var(--fs-base); font-family: var(--font-body); font-weight: 600; }
.te-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.te-fig { margin: 0; }
.te-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--kes-cream-deep); }
.te-img > img, .te-img > .ph, .te-img > picture, .te-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.te-ph { display: grid; place-items: center; height: 100%; font-size: var(--fs-xs); color: var(--text-muted); }
.te-fig figcaption { font-size: var(--fs-xs); margin-top: 6px; color: var(--text-muted); line-height: 1.3; }
.te-img .demo-badge { top: auto; bottom: 6px; left: 6px; }
.te-del { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 252, 250, 0.92); color: var(--kes-espresso); cursor: pointer; box-shadow: var(--shadow-sm); }
.te-del:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.te-open { justify-self: start; }

.profile-form { display: grid; gap: var(--s-4); }
.profile-form > p { margin: 0; }
.profile-grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
.profile-form .btn { justify-self: start; }
select.input { appearance: auto; padding-right: var(--s-3); }
.settings-card { display: grid; gap: var(--s-4); }
.settings-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }

.keep-card { margin-top: var(--s-4); }
.keep-card h3 { margin-top: 0; }

.ml-section .next-steps { margin-top: var(--s-5); }

/* ---------- admin: try-on spending ---------- */
.spend-card { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); padding: var(--s-5); }
.spend-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.spend-top h2 { margin: 0; font-size: var(--fs-lg); }
.spend-status { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.spend-status.is-on { background: var(--kes-cream-deep); color: var(--kes-espresso); }
.spend-status.is-paused { background: #9B2C1F; color: #fff; }
.spend-amount { margin: 0; font-family: var(--font-heading); font-size: var(--fs-2xl); color: var(--heading); line-height: 1.1; }
.spend-amount .muted { font-family: var(--font-body); font-size: var(--fs-sm); }
.spend-bar { position: relative; height: 14px; border-radius: var(--radius-pill); background: var(--kes-cream-deep); overflow: visible; }
.spend-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: var(--radius-pill); background: var(--kes-espresso); transition: width var(--dur) var(--ease); }
.spend-fill.is-high { background: var(--accent); }
.spend-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--accent-strong); transform: translateX(-1px); }
.spend-scale { position: relative; display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-muted); min-height: 1.4em; }
#scale-alert { position: absolute; top: 0; transform: translateX(calc(-100% - 6px)); white-space: nowrap; }
#scale-alert.is-low { top: 1.4em; left: auto !important; right: 0; transform: none; }
.spend-scale.has-low { min-height: 2.8em; }
.spend-note { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.spend-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.spend-status.is-over { background: var(--accent); color: #fff; }
.spend-fill.is-over { background: #9B2C1F; }
.spend-alerts summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.spend-alerts ul { list-style: none; padding: 0; margin: var(--s-2) 0 0; }
.spend-alerts li { font-size: var(--fs-sm); padding: 6px 0; border-top: 1px solid var(--kes-line); }
.admin-h2 { font-size: var(--fs-xl); margin: 0 0 var(--s-2); }
.admin-sub { margin: 0 0 var(--s-4); }

/* ---------- web app polish (Oct 6 QA): easy taps, small phones, installed app ---------- */
/* Comfortable tap areas (44px) for links and small buttons on touch screens */
@media (pointer: coarse) {
  .site-footer a, .brand, .linklike, .test-strip-btn, [aria-controls="campaign-terms"] { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer a { padding-inline: 2px; }
  label.check { min-height: 44px; padding-block: 10px; }
  .chip { min-height: 44px; }
  .btn { min-height: 44px; }
  .icon-btn { min-width: 44px; min-height: 44px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Bottom menu labels stay on one line on small phones (320px wide) */
.tabbar a { white-space: nowrap; }
@media (max-width: 359px) { .tabbar a { font-size: 10px; letter-spacing: 0.02em; padding-inline: 2px; } }
/* Installed app: keep clear of the notch and rounded corners */
.toast { margin-bottom: env(safe-area-inset-bottom); }

/* ---------- optional "About you" (age range, gender) ---------- */
.about-set { border: 0; margin: 0 0 var(--s-4); padding: 0; min-width: 0; }
.about-set legend { font-weight: 600; margin-bottom: var(--s-2); padding: 0; }
.pill-opts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill-opt { position: relative; }
.pill-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--radius-pill); border: 1px solid var(--kes-line); background: var(--surface); font-size: var(--fs-sm); }
.pill-opt input:checked + span { background: var(--kes-espresso); border-color: var(--kes-espresso); color: var(--kes-cream); }
.pill-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.about-dialog .fb-form { gap: var(--s-3); }

/* ---------- admin: tabs and Activity dashboard ---------- */
.admin-tabs { display: flex; gap: var(--s-1); margin: 0 0 var(--s-5); padding: 4px; background: var(--kes-cream-deep); border-radius: var(--radius-pill); width: fit-content; max-width: 100%; }
.admin-tabs [role=tab] { min-height: 44px; padding: 0 var(--s-5); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.admin-tabs [role=tab][aria-selected=true] { background: var(--surface); color: var(--kes-espresso); box-shadow: 0 1px 3px rgba(43,31,30,.12); }
.admin-tabs [role=tab]:focus-visible, .seg button:focus-visible, .vbar:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[role=tabpanel]:focus-visible { outline: none; }
.act-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.seg { display: inline-flex; border: 1px solid var(--kes-line); border-radius: var(--radius-pill); overflow: hidden; background: var(--surface); }
.seg button { min-height: 44px; padding: 0 var(--s-4); border: 0; background: transparent; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--text); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--kes-line); }
.seg button[aria-pressed=true] { background: var(--kes-espresso); color: var(--kes-cream); }
.act-testers { margin: 0; min-height: 44px; align-items: center; }
.act-live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 var(--s-4); font-size: var(--fs-sm); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3A7D44; box-shadow: 0 0 0 3px rgba(58,125,68,.18); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpis-2 { margin: 0; }
.kpi { padding: var(--s-4); margin: 0; min-width: 0; }
.kpi p { margin: 0; }
.kpi-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.kpi-num { font-family: var(--font-heading); font-size: var(--fs-2xl); line-height: 1.15; color: var(--heading); margin-top: 4px !important; }
.kpi-num.kpi-wait { font-family: var(--font-body); font-size: var(--fs-lg); color: var(--text-muted); }
.kpi-sub { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px !important; }
.act-card { padding: var(--s-5); margin-bottom: var(--s-4); min-width: 0; }
.act-card h3 { margin: 0 0 var(--s-3); font-size: var(--fs-lg); }
.act-h-sub { margin: var(--s-4) 0 var(--s-2); font-size: var(--fs-sm); font-family: var(--font-body); font-weight: 600; }
.act-note { margin: 0 0 var(--s-3); font-size: var(--fs-sm); color: var(--text-muted); }
.act-grid { display: grid; gap: 0 var(--s-4); }
@media (min-width: 720px) { .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.act-grid-2 { gap: 0 var(--s-5); }
.act-grid-2 .act-h-sub { margin-top: 0; }
/* time chart: one series, one colour; hover or tap a bar for its number */
.vbars { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding-top: 28px; border-bottom: 1px solid var(--kes-line); }
.vbar { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 4px; cursor: default; }
.vbar-fill { display: block; width: 100%; background: var(--kes-espresso); border-radius: 4px 4px 0 0; }
.vbar:hover .vbar-fill, .vbar:focus .vbar-fill { background: var(--accent); }
.vbar::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--kes-espresso); color: var(--kes-cream); font-size: var(--fs-xs); padding: 3px 8px; border-radius: var(--radius-sm); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); z-index: 2; }
.vbar:first-child::after { left: 0; transform: none; }
.vbar:last-child::after { left: auto; right: 0; transform: none; }
.vbar:hover::after, .vbar:focus::after { opacity: 1; }
.vbars-x { display: flex; gap: 2px; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-muted); }
.vbars-x span { flex: 1 1 0; min-width: 4px; white-space: nowrap; overflow: visible; }
/* ranked lists: label, bar, number */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label num" "bar bar"; gap: 4px var(--s-3); align-items: baseline; font-size: var(--fs-sm); }
.hb-label { grid-area: label; overflow-wrap: anywhere; }
.hb-num { grid-area: num; font-weight: 600; font-variant-numeric: tabular-nums; }
.hb-pct { font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.hb-track { grid-area: bar; height: 8px; border-radius: var(--radius-pill); background: var(--kes-cream-deep); overflow: hidden; }
.hb-fill { display: block; height: 100%; background: var(--kes-espresso); border-radius: var(--radius-pill); }
.hbars .hb-empty { display: block; color: var(--text-muted); }
@media (max-width: 480px) {
  .admin-tabs { width: 100%; }
  .admin-tabs [role=tab] { flex: 1 1 0; padding: 0 var(--s-2); }
  .seg { width: 100%; }
  .seg button { flex: 1 1 0; padding: 0 var(--s-2); }
}
/* activity spacing (phone) */
.act-live #act-updated { flex-basis: 100%; font-size: var(--fs-xs); padding-left: 15px; }
@media (min-width: 720px) { .act-live #act-updated { flex-basis: auto; padding-left: var(--s-2); } }
.act-card .act-h-sub { margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-sm); font-family: var(--font-body); font-weight: 600; }
.act-grid-2 > div:first-child .act-h-sub { margin-top: 0; }
@media (min-width: 720px) { .act-grid-2 .act-h-sub { margin-top: 0; } }
.kpis.kpis-2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .kpis.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpis-2 .kpi { padding: var(--s-3) 0; }

/* ---------- installable app ---------- */
.footer-install { margin-top: var(--s-2); color: var(--accent-strong); font-weight: 600; }
.install-card { display: flex; gap: var(--s-4); align-items: flex-start; margin-bottom: var(--s-5); padding: var(--s-5); }
.install-card img { flex: none; border-radius: 14px; box-shadow: 0 1px 4px rgba(43,31,30,.15); }
.install-card h2 { margin: 0 0 4px; font-size: var(--fs-lg); }
.install-card p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.install-steps li { display: flex; gap: var(--s-3); align-items: flex-start; }
.install-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--kes-cream-deep); color: var(--kes-espresso); }
.install-num { font-weight: 700; font-size: var(--fs-sm); }
.offline-page { padding-block: 96px; }
.offline-page h1 { font-size: var(--fs-2xl); }
.offline-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); }
@media (display-mode: standalone) { [data-install] { display: none !important; } }
