/* Salon booking website. Accent colour comes from the salon (--accent, --accent-soft set in the layout). */
:root {
  --ink: #2B2230;
  --ink-2: #5E5463;
  --muted: #6B6170;
  --faint: #8A7F8C;
  --bg: #FAF7F6;
  --surface: #FFFFFF;
  --line: #ECE4E7;
  --line-2: #DCD1D6;
  --field: #E0D6DB;
  --tint: #F1EAED;
  --tint-2: #F8F4F6;
  --ok: #2F7A55;
  --ok-ink: #24613F;
  --ok-bg: #E6F2EB;
  --danger: #A23A3A;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main.page { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
main.page-narrow { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; display: flex; flex-direction: column; gap: 24px; }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; overflow: hidden; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--serif); font-size: 22px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 320px; }
.main-nav a { height: 44px; padding: 0 14px; display: flex; align-items: center; font-size: 15px; font-weight: 600; border-radius: 999px; }
.main-nav a[aria-current="page"] { font-weight: 700; color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.icon-btn[aria-current="page"] { border: 1.5px solid var(--accent); color: var(--accent); }
.icon-btn .badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.avatar-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Buttons */
.btn { height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn-xs { height: 40px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline { background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-block { width: 100%; height: 54px; border-radius: 16px; font-size: 16px; }
.btn-dashed { height: 48px; padding: 0 20px; border-radius: 14px; border: 1.5px dashed var(--accent); color: var(--accent); background: transparent; font-weight: 700; display: inline-flex; align-items: center; align-self: flex-start; }
.link-btn { background: none; border: 0; padding: 0; height: 44px; color: var(--accent); font-weight: 700; font-size: 14px; }
.btn[disabled], .btn.is-disabled { background: #E6DEE2; color: var(--muted); border-color: transparent; }

/* Cards and sections */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.card-pad { padding: 24px; }
.section { padding-top: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.section-head a { font-size: 15px; font-weight: 700; color: var(--accent); }
.page-title { margin: 0 0 24px; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* Hero */
.hero { padding-top: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; }
.hero-lead { margin: 0; max-width: 34rem; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.status-chip { align-self: flex-start; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.status-dot.closed { background: var(--faint); }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { color: var(--accent); }
.hero-media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero-image { height: 460px; border-radius: 28px; background: #EFE6EA; color: var(--faint); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-offer { position: absolute; left: 24px; bottom: 24px; max-width: 280px; padding: 18px 20px; border-radius: 20px; background: var(--accent); color: #fff; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 14px 40px rgba(43,34,48,.22); }
.hero-offer .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; opacity: .85; }
.hero-offer .headline { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.hero-offer .meta { font-size: 13px; opacity: .9; }

/* Category and service cards */
.cat-card { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.cat-media { height: 180px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-card:nth-child(even) .cat-media { background: #F3ECEE; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.cat-name { font-size: 19px; font-weight: 700; }
.cat-list { font-size: 14px; color: var(--muted); }
.cat-from { font-size: 14px; font-weight: 700; }
.cat-more { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.svc-card { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.svc-media { height: 160px; background: var(--tint); color: var(--faint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.svc-body h3 { margin: 0; font-size: 18px; font-weight: 700; }
.svc-meta { font-size: 14px; color: var(--muted); }
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { font-size: 18px; font-weight: 700; }

/* Offers band and steps */
.dark-band { border-radius: 28px; background: var(--ink); color: #fff; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.dark-band h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.dark-band .band-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.dark-band .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; opacity: .75; }
.dark-band p { margin: 0; font-size: 15px; line-height: 1.6; opacity: .85; }
.band-offers { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.band-offer { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.35); display: flex; flex-direction: column; gap: 6px; }
.band-offer .big { font-family: var(--serif); font-size: 30px; }
.code-chip { align-self: flex-start; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps-grid li { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.steps-grid h3 { margin: 0; font-size: 18px; font-weight: 700; }
.steps-grid p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Visit */
.visit { border-radius: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-wrap: wrap; }
.visit-map { flex: 1 1 420px; min-height: 340px; background: #EDE6E9; color: var(--faint); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 600; }
.visit-body { flex: 1 1 380px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.visit-body h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; }
.hours { border-collapse: collapse; font-size: 14px; width: 100%; max-width: 360px; }
.hours caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.hours td { padding: 6px 0; }
.hours td:last-child { text-align: right; font-weight: 600; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .container { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer b { color: var(--ink); }

/* Flash messages */
.flash { max-width: 1200px; margin: 16px auto 0; padding: 0 24px; width: 100%; }
.flash div { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.flash .ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash .err { background: #F8E5E5; color: var(--danger); }

/* Services page */
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs b { color: var(--ink); }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 28px; }
.title-row h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 44px; }
.search { flex: 0 1 380px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); }
.three-col { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.side-col { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.side-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 4px 4px; }
.cat-tab { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cat-tab a { min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; }
.cat-tab a span { font-size: 12px; font-weight: 600; opacity: .8; white-space: nowrap; }
.cat-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.main-col { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.cat-banner { padding: 20px 24px; border-radius: 20px; background: var(--accent-soft); }
.cat-banner h2 { margin: 2px 0 0; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.cat-banner p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.svc-group { display: flex; flex-direction: column; gap: 12px; }
.group-head { margin: 0; font-size: inherit; font-weight: inherit; }
.group-toggle { width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; display: flex; align-items: center; gap: 12px; cursor: default; }
.group-thumb, .group-chevron { display: none; }
.group-title { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.group-title b { font-size: 20px; }
.group-title span { font-size: 13px; color: var(--muted); }
.group-added { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.m-home, .m-pagehead { display: none; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sub-card { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.sub-card.added { border-color: var(--accent); }
.sub-card .name { font-size: 16px; font-weight: 700; }
.sub-card .sub-path { font-size: 12px; color: var(--muted); }
.duration { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.sub-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.sub-foot b { font-size: 17px; }
.cart-col { flex: 1 1 280px; max-width: 340px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.cart-col h2 { margin: 0; font-size: 18px; font-weight: 700; }
.mini-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-lines li { display: flex; align-items: flex-start; gap: 10px; }
.mini-lines .info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-lines .info b { font-size: 14px; }
.mini-lines .info span { font-size: 12px; color: var(--muted); }
.divider { height: 1px; background: var(--line); }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row-total { font-size: 17px; font-weight: 700; }
.empty-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Booking steps */
.booking-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; align-items: center; gap: 12px; max-width: 560px; font-size: 14px; font-weight: 700; color: var(--muted); }
.booking-steps li { display: flex; align-items: center; gap: 8px; }
.booking-steps .num { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #CFC3C9; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.booking-steps .done, .booking-steps .current { color: var(--accent); }
.booking-steps .done .num, .booking-steps .current .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.booking-steps .bar { flex: 1; height: 2px; background: #E4DADF; }
.booking-steps .bar.done { background: var(--accent); }
.two-col { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.two-col > section { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.summary { flex: 1 1 300px; max-width: 400px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; font-size: 15px; position: sticky; top: 16px; }
.summary h2 { margin: 0; font-size: 18px; font-weight: 700; }
.when-box { padding: 14px; border-radius: 14px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 2px; }
.when-box b { font-size: 17px; }
.when-box span { font-size: 13px; color: var(--ink-2); }
.discount-row { color: var(--ok); font-weight: 600; }
.fine { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* Cart table */
.cart-table { overflow: hidden; }
.cart-head, .cart-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr) 56px; gap: 12px; align-items: center; padding: 14px 20px; }
.cart-head { background: var(--tint-2); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cart-row { padding: 16px 20px; border-top: 1px solid #F1EBEE; }
.cart-item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cart-thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--tint); color: var(--accent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-item .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item .info b { font-size: 16px; }
.cart-item .info span { font-size: 13px; color: var(--muted); }
.remove-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.upsell { padding: 18px 20px; border-radius: 18px; background: var(--accent-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.upsell div { flex: 1 1 240px; }

/* Schedule */
.picker-label { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.stylist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stylist { padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); display: flex; align-items: center; gap: 10px; text-align: left; }
.stylist .av { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.stylist b { display: block; font-size: 15px; }
.stylist span.role { font-size: 12px; color: var(--muted); }
.stylist[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.stylist[aria-current="true"] .av { background: var(--accent); color: #fff; }
.day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { height: 78px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.day .dow { font-size: 12px; font-weight: 600; opacity: .85; }
.day .num { font-size: 22px; font-weight: 700; line-height: 1.1; }
.day .mon { font-size: 11px; opacity: .8; }
.day[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.period h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; cursor: pointer; }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.slot input:disabled + span { background: #F4F0F1; color: #9A8F9C; text-decoration: line-through; cursor: not-allowed; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select { height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field); background: var(--surface); font-size: 15px; font-weight: 500; color: var(--ink); outline-color: var(--accent); }
.field textarea { height: auto; min-height: 50px; padding: 12px 14px; font-size: 14px; resize: vertical; }
.field input[readonly] { background: #F6F2F4; }
.field .hint-ok { font-weight: 600; color: var(--ok-ink); }
.field-error { font-size: 13px; font-weight: 600; color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
fieldset { min-width: 0; }
.pay-grid { clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.card-legend { float: left; width: 100%; padding: 0; margin: 0 0 16px; font-size: 18px; font-weight: 700; color: var(--ink); }
.type-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.home-address { clear: both; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.home-address[hidden], [data-new-address][hidden] { display: none; }
.home-address-title { margin: 0; font-size: 15px; font-weight: 700; }
.address-list { display: flex; flex-direction: column; gap: 8px; }
.address-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 14px; cursor: pointer; }
.address-option input { margin: 3px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.address-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-option { position: relative; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option span.box { min-height: 76px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.pay-option .ring { width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid #B9ADB3; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pay-option .ring::after { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.pay-option input:checked + span.box { border-color: var(--accent); background: var(--accent-soft); }
.pay-option input:checked + span.box .ring { border-color: var(--accent); }
.pay-option input:checked + span.box .ring::after { background: var(--accent); }
.pay-option input:focus-visible + span.box { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-option input:disabled + span.box { cursor: not-allowed; opacity: .6; }
.pay-option b { display: block; font-size: 15px; }
.pay-option small { font-size: 12px; color: var(--muted); }
.promo-form { max-width: 480px; display: flex; gap: 8px; }
.promo-form input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field); background: var(--surface); font-size: 15px; text-transform: uppercase; outline-color: var(--accent); }
.promo-on { max-width: 480px; min-height: 52px; padding: 0 8px 0 16px; border-radius: 12px; border: 1.5px dashed var(--accent); background: var(--accent-soft); display: flex; align-items: center; gap: 10px; }
.promo-on span { flex: 1; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }

/* Auth dialogs */
.auth-backdrop { flex: 1; background: rgba(43,34,48,.55); display: flex; justify-content: center; align-items: flex-start; padding: 80px 16px; }
.auth-card { width: 100%; max-width: 480px; padding: 32px; border-radius: 28px; background: var(--surface); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px rgba(43,34,48,.3); }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.auth-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.auth-top { display: flex; align-items: flex-start; gap: 12px; }
.auth-top > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; background: #F4EFF1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phone-row { display: flex; gap: 8px; }
.dial { height: 54px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field); background: var(--surface); font-size: 15px; font-weight: 700; display: flex; align-items: center; white-space: nowrap; }
.phone-row input { flex: 1; min-width: 0; height: 54px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--accent); background: var(--surface); font-size: 17px; font-weight: 600; letter-spacing: .04em; outline: 0; }
.otp-input { width: 100%; height: 64px; border-radius: 14px; border: 2px solid var(--accent); background: var(--surface); text-align: center; font-size: 28px; font-weight: 700; letter-spacing: .5em; padding-left: .5em; outline: 0; }
.soft-box { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; color: #4A3F4E; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.soft-box b { color: var(--accent); }
.verified-pill { min-height: 52px; padding: 0 16px; border-radius: 14px; background: var(--tint-2); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.verified-pill span:first-child { flex: 1; font-size: 15px; font-weight: 600; }
.ok-tag { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.dev-code { padding: 10px 14px; border-radius: 12px; background: #FFF4DC; border: 1px solid #F1D49A; color: #63420D; font-size: 13px; }

/* Confirmation */
.done-mark { width: 104px; height: 104px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.done-mark div { width: 70px; height: 70px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.ticket { border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ticket-head { padding: 16px 24px; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.ticket-body { padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.label-sm { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }

/* Offers */
.rewards { padding: 32px; border-radius: 28px; background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.rewards .points { font-family: var(--serif); font-size: 44px; line-height: 1; }
.rewards ul { flex: 1 1 320px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rewards li { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 4px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.offer { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; overflow: hidden; }
.offer-band { width: 112px; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 16px 6px; text-align: center; border-right: 2px dashed #fff; }
.offer:nth-child(3n+1) .offer-band { background: var(--accent); color: #fff; }
.offer-band .big { font-family: var(--serif); font-size: 32px; line-height: 1; }
.offer-band .small { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.offer-body { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.offer-body h2 { margin: 0; font-size: 18px; font-weight: 700; }
.offer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.offer-code { height: 36px; padding: 0 12px; border-radius: 8px; background: #F4EFF1; font-size: 14px; font-weight: 700; letter-spacing: .05em; display: flex; align-items: center; }

/* Profile */
.profile-head { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-bottom: 24px; }
.profile-id { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; }
.big-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; flex-shrink: 0; }
.stats { flex: 1 1 360px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats div { padding: 14px; border-radius: 14px; background: var(--tint-2); }
.stats b { display: block; font-size: 22px; }
.stats span { font-size: 13px; color: var(--muted); }
.account-nav { flex: 1 1 220px; max-width: 260px; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.account-nav a, .account-nav button { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 0; background: transparent; display: flex; align-items: center; font-size: 15px; font-weight: 700; text-align: left; width: 100%; }
.account-nav [aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.account-nav .logout { color: var(--danger); }
.booking-card { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.date-tile { width: 64px; height: 68px; border-radius: 14px; background: var(--accent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.date-tile span { font-size: 12px; font-weight: 700; opacity: .85; }
.date-tile b { font-size: 24px; line-height: 1; }
.booking-card .info { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag-ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag-muted { background: #EFE8EB; color: var(--muted); }
.tag-danger { background: #F8E5E5; color: var(--danger); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.data-table th { padding: 12px 20px; text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.data-table td { padding: 14px 20px; border-top: 1px solid #F1EBEE; }
.table-scroll { position: relative; overflow-x: auto; }

/* Phone navigation: bottom tabs on browsing pages, sticky action bar in the booking flow */
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-place { display: none; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; grid-template-columns: repeat(4, 1fr); height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--faint); }
.tabbar a[aria-current="page"] { color: var(--accent); }
.actionbar, .cartbar { display: none; position: fixed; left: 0; right: 0; z-index: 41; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(43,34,48,.06); }
.actionbar { bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.cartbar { bottom: calc(64px + env(safe-area-inset-bottom)); }
.actionbar-info { display: flex; flex-direction: column; min-width: 0; font-size: 12px; color: var(--muted); }
.actionbar-info b { font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar .btn, .cartbar .btn { height: 48px; padding: 0 20px; flex-shrink: 0; }
.actionbar .btn:disabled { opacity: .5; }

@media (max-width: 760px) {
  .container, main.page, main.page-narrow { padding-left: 16px; padding-right: 16px; }
  .site-header .container { gap: 10px 16px; }
  .main-nav, .hide-phone { display: none !important; }
  .site-header .container { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; font-size: 19px; }
  .brand-name { font-size: 19px; line-height: 1.15; }
  .brand-name, .brand-place { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-place { display: flex; }
  .header-actions { margin-left: auto; }
  body.has-tabs { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.has-actionbar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.has-tabs:has(.cartbar) { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; }
  .actionbar, .cartbar { display: flex; }
  .summary-cta, .cart-col { display: none !important; }
  main.page { padding-top: 20px; padding-bottom: 32px; }

  /* Services: categories become a chip row */
  .three-col { display: block; }
  .three-col > * { width: auto; }
  .three-col > .main-col { margin-top: 18px; }
  .sub-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .hero h1 { font-size: 34px; }
  .side-col { flex-direction: row; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .side-col::-webkit-scrollbar, .stylist-grid::-webkit-scrollbar, .day-grid::-webkit-scrollbar { display: none; }
  .side-label, .cat-tab a span { display: none !important; }
  .cat-tab { flex-shrink: 0; border-radius: 999px; }
  .cat-tab a { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
  .title-row { margin: 6px 0 18px; }
  .search { flex: 1 1 100%; }

  /* Date & time: stylists and dates scroll sideways, times in 3 columns */
  .stylist-grid, .day-grid { display: flex; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
  .stylist { flex: 0 0 auto; scroll-snap-align: start; padding: 10px 14px 10px 10px; }
  .stylist .av { width: 38px; height: 38px; }
  .day { flex: 0 0 60px; height: 72px; scroll-snap-align: start; }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pay-grid { grid-template-columns: 1fr; }
  .booking-steps { gap: 8px; font-size: 12px; margin-bottom: 16px; }
  .booking-steps .num { width: 24px; height: 24px; }
  .hero { padding-top: 28px; }
  .hero-image { height: 300px; }
  .section { padding-top: 48px; }
  .section-head h2, .dark-band h2 { font-size: 30px; }
  .dark-band, .rewards { padding: 24px; }
  .visit-body { padding: 24px; }
  .side-col, .cart-col, .summary, .account-nav { max-width: none; position: static; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: minmax(0, 1fr) auto 44px; }
  .cart-row .cart-dur { display: none; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-band { width: 88px; }
  .offer-band .big { font-size: 28px; }
  .offer-body { padding: 14px; }
  .offer-body h2 { font-size: 16px; }
  .auth-backdrop { padding: 24px 12px; }
  .auth-card { padding: 24px; }
  .page-title, .title-row h1 { font-size: 34px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phones: Home and Services follow the mobile artboards */
@media (max-width: 760px) {
  .d-home { display: none !important; }
  #visit { padding-top: 8px; }

  .m-home { display: flex; flex-direction: column; gap: 24px; padding: 18px 16px 8px; }
  .m-hello p { margin: 0; font-size: 13px; color: var(--muted); }
  .m-hello h1 { margin: 2px 0 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
  .m-search { flex: none; height: 46px; margin-top: -8px; }
  .m-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .m-carousel::-webkit-scrollbar, .m-offers::-webkit-scrollbar { display: none; }
  .m-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.5fr 1fr; min-height: 156px; border-radius: 20px; background: var(--accent); color: #fff; overflow: hidden; }
  .m-slide-copy { padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
  .m-chip { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
  .m-slide h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.08; }
  .m-slide p { margin: 0; font-size: 11px; opacity: .9; }
  .m-slide-btn { margin-top: 4px; height: 32px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
  .m-slide-media { background: rgba(255,255,255,.14); color: rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .m-slide-media img { width: 100%; height: 100%; object-fit: cover; }
  .m-dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
  .m-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .2s; }
  .m-dots span.on { width: 18px; background: var(--accent); }
  .m-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
  .m-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
  .m-head a { font-size: 12px; font-weight: 700; color: var(--accent); }
  .m-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .m-cat { padding: 14px 8px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
  .m-cat-icon { width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .m-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
  .m-cat b { font-size: 12px; line-height: 1.25; }
  .m-cat span { font-size: 10.5px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .m-offers { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
  .m-offer { flex: 0 0 68%; max-width: 250px; scroll-snap-align: start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--accent); display: flex; flex-direction: column; gap: 2px; }
  .m-offer-kicker { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-offer b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
  .m-offer > span:last-child { font-size: 12px; color: var(--muted); }
  .m-offer.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
  .m-offer.dark .m-offer-kicker, .m-offer.dark > span:last-child { color: rgba(255,255,255,.78); }
  .m-again { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-top: -8px; }
  .m-again-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .m-again > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .m-again b { font-size: 14px; }
  .m-again > div span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-again-btn { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
  .m-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m-svc { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
  .m-svc-media { height: 96px; background: var(--tint); color: var(--faint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .m-svc-media img { width: 100%; height: 100%; object-fit: cover; }
  .m-svc-body { flex: 1; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
  .m-svc-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-svc h3 { margin: 0; font-size: 14px; font-weight: 700; }
  .m-svc-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; }
  .m-svc-foot b { font-size: 14px; color: var(--accent); }
  .m-plus { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

  /* Services: own page header, collapsible services, options as rows */
  body.phone-pagehead .site-header, body.phone-pagehead .crumbs { display: none; }
  body.phone-pagehead .title-row h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.phone-pagehead main.page { padding-top: 14px; }
  .m-pagehead { display: flex; align-items: center; gap: 12px; }
  .m-pagehead-title { flex: 1; font-family: var(--serif); font-size: 26px; }
  .title-row { margin-top: 12px; }
  .main-col { gap: 12px; }
  .cat-banner { padding: 14px 16px; border-radius: 18px; }
  .cat-banner h2 { font-size: 22px; }
  .cat-banner p { font-size: 12px; }
  .svc-group { gap: 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
  .group-toggle { min-height: 76px; padding: 14px; cursor: pointer; }
  .group-thumb { display: flex; width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--faint); align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
  .group-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .group-title { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 2px; }
  .group-title b { font-size: 16px; }
  .group-title span { font-size: 12px; }
  .group-added { padding: 2px 9px; font-size: 11px; }
  .group-chevron { display: flex; width: 34px; height: 34px; border-radius: 50%; background: var(--tint-2); align-items: center; justify-content: center; flex-shrink: 0; }
  .group-chevron svg { transition: transform .2s; }
  .svc-group.open .group-chevron svg { transform: rotate(180deg); }
  .js .svc-group:not(.open) .sub-grid { display: none; }
  .sub-grid { display: block; }
  .svc-group .sub-grid { border-top: 1px solid #F1EBEE; }
  .main-col > .sub-grid { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
  .sub-card { display: grid; grid-template-columns: auto auto 1fr auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px 16px; border: 0; border-bottom: 1px solid #F1EBEE; border-radius: 0; background: transparent; }
  .sub-card.added { border-color: #F1EBEE; }
  .sub-card:last-child { border-bottom: 0; }
  .sub-card .name { grid-column: 1 / 4; grid-row: 1; font-size: 15px; }
  .sub-card .sub-path { grid-column: 1 / 4; grid-row: 2; }
  .sub-card .duration { grid-column: 1; grid-row: 3; }
  .sub-card .sub-foot { display: contents; }
  .sub-card .sub-foot b { grid-column: 2; grid-row: 3; font-size: 14px; }
  .sub-card .sub-foot form { grid-column: 4; grid-row: 1 / 4; }
  .sub-card .btn-xs { height: 38px; padding: 0 16px; }

  /* Floating dark cart bar above the tabs */
  .cartbar { left: 12px; right: 12px; bottom: calc(64px + 8px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 16px; border: 0; border-radius: 18px; background: var(--ink); box-shadow: 0 10px 30px rgba(43,34,48,.25); }
  .cartbar .actionbar-info { color: rgba(255,255,255,.7); }
  .cartbar .actionbar-info b { color: #fff; }
  .cartbar .btn { height: 40px; padding: 0 18px; font-size: 14px; }
}

/* Very small phones (320–360px): give the bottom bar's summary a little more room */
@media (max-width: 360px) {
  .actionbar .btn, .cartbar .btn { padding: 0 14px; font-size: 14px; }
  .actionbar-info b { font-size: 15px; }
}
