/* Haaratelier Salon-Konsole — tablet-first. Tokens come from tokens.css (shared brand file). */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-variant-numeric: lining-nums;
  display: flex; flex-direction: column; height: 100dvh; overflow: hidden;
  background: var(--ha-ink); color: var(--ha-text); font-family: var(--ha-font-body); font-size: 18px;
  -webkit-font-smoothing: antialiased; user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; touch-action: manipulation; }
input { font: inherit; user-select: text; }

/* Chrome */
.top {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 28px; background: var(--ha-ink); border-bottom: 1px solid var(--ha-line-dark);
}
.logo { height: 34px; width: auto; display: block; }
.lang { display: flex; gap: 4px; }
.lang button {
  min-width: 52px; height: 44px; padding: 0 12px; text-align: center; letter-spacing: .14em; font-size: 14px; font-weight: 500;
  color: var(--ha-muted-light); border: 1px solid transparent;
}
.lang button.on { color: var(--ha-gold); border-color: var(--ha-line-dark); }

#app { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--ha-paper); }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 22px 28px 24px; gap: 18px; overflow-y: auto; overflow-x: hidden; }

.head { flex: none; display: flex; align-items: center; gap: 20px; min-height: 52px; }
h1 { overflow-wrap: anywhere; min-width: 0; font-family: var(--ha-font-display); font-weight: 500; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; color: var(--ha-ink); letter-spacing: .01em; }
.head h1 { flex: 1; }
.back { height: 48px; padding: 0 18px 0 12px; border: 1px solid var(--ha-border); color: var(--ha-gold-deep); font-weight: 500; letter-spacing: .06em; white-space: nowrap; }
.back:active { background: var(--ha-paper-2); }
.chip { flex: none; display: flex; align-items: center; gap: 10px; height: 48px; padding-right: 18px; background: var(--ha-ink); color: var(--ha-gold); font-family: var(--ha-font-display); font-size: 24px; font-weight: 500; }
.chip img { height: 48px; width: 48px; object-fit: cover; object-position: center 18%; }

/* 1 · Barber */
.barbers { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.barber { position: relative; overflow: hidden; background: var(--ha-ink); min-height: 0; border: 1px solid var(--ha-line-dark); }
.barber img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .25s; }
.barber::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,17,13,0) 45%, rgba(21,17,13,.92) 100%); }
.barber-name { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px 20px 20px; font-family: var(--ha-font-display); font-size: clamp(32px, 4vw, 46px); font-weight: 500; color: #fff; border-bottom: 3px solid var(--ha-gold); }
.barber:active { outline: 3px solid var(--ha-gold); outline-offset: -3px; }
.barber:active img { transform: scale(1.03); }

/* 2 · Customer type */
.types { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 0; padding: 18px 12px; background: var(--ha-ink-2); border: 1px solid var(--ha-line-dark); }
.type img { flex: 1; min-height: 0; width: 100%; max-width: 100%; object-fit: contain; }
.type-name { font-family: var(--ha-font-display); font-size: clamp(28px, 3.3vw, 38px); font-weight: 500; color: var(--ha-ivory); text-align: center; line-height: 1.1; }
.type-sub { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ha-muted-light); text-align: center; }
.type:active { border-color: var(--ha-gold); background: var(--ha-ink-3); }

/* 3 · Services */
.services { padding-bottom: 18px; }
.booking-banner { flex: none; margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--ha-gold-deep); }
.booking-banner strong { display: block; }
.booking-banner p { margin: 6px 0 0; line-height: 1.4; }
.service-swap { margin: 14px 0; color: var(--ha-gold-deep); overflow-wrap: anywhere; }
.fam-strip { flex: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fam { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 8px 12px; background: var(--ha-ink-2); border: 1px solid var(--ha-line-dark); color: var(--ha-ivory); font-weight: 500; letter-spacing: .04em; line-height: 1.15; overflow-wrap: anywhere; }
.fam[aria-pressed="true"] { border-color: var(--ha-gold); color: var(--ha-gold); background: var(--ha-ink-3); }
.fam:active { background: var(--ha-ink-3); }
@media (max-width: 640px) { .fam { flex: 1 1 calc(50% - 4px); } }
.combos { flex: 1 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.combos:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
.services.open .combos { flex: none; height: auto; gap: 10px; }
.combo { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow: hidden; padding: 22px 24px 20px; background: var(--ha-ink); border: 2px solid var(--ha-line-dark); color: var(--ha-ivory); }
.combo-tier { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ha-gold); }
.combo-name { font-family: var(--ha-font-display); font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; line-height: 1.05; color: #fff; padding-right: 48px; overflow-wrap: anywhere; }
.combo-desc { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; font-weight: 300; color: var(--ha-muted-light); }
.combo-statt { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.3; color: var(--ha-gold); }
.combo-meta { margin-top: auto; display: flex; align-items: baseline; gap: 16px; }
.combo-meta b { font-family: var(--ha-font-display); font-weight: 600; font-size: clamp(34px, 3.6vw, 52px); color: var(--ha-gold); line-height: 1; }
.combo.on { border-color: var(--ha-gold); background: var(--ha-ink-3); }
.combos:has(> :nth-child(3)) .combo { padding: 20px 20px 18px; }
.combos:has(> :nth-child(3)) .combo-name { font-size: clamp(26px, 2.5vw, 36px); }

/* Expanded more-panel: combos shrink to one compact row each (tick · name · price) to leave room for the list */
.services.open .combo { flex-direction: row; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; }
.services.open .combo-tier, .services.open .combo-desc, .services.open .combo-statt { display: none; }
.services.open .combo-name { flex: 1; padding-right: 0; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.1; }
.services.open .combo-meta { margin: 0; gap: 10px; flex: none; }
.services.open .combo-meta b { font-size: 26px; }
.services.open .combo .tick { position: static; flex: none; order: -1; width: 30px; height: 30px; }
.services.open .combo .tick svg { width: 20px; height: 20px; }

.tick { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--ha-line-dark); color: transparent; }
.tick svg { width: 22px; height: 22px; }
.on > .tick { background: var(--ha-gold); border-color: var(--ha-gold); color: var(--ha-ink); }

/* Quiet "Weitere Leistungen" toggle — deliberately low contrast */
.more { flex: none; align-self: center; padding: 12px 22px; font-size: 15px; letter-spacing: .08em; color: var(--ha-text-muted); opacity: .75; text-decoration: underline; text-decoration-color: var(--ha-border); text-underline-offset: 5px; }
.more .caret { font-size: 12px; margin-left: 4px; }
.more-panel { flex: 1; min-height: 160px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-content: start; }
.more-panel h3 { grid-column: 1 / -1; margin: 10px 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ha-gold-deep); }
.rows { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 14px 8px 62px; background: var(--ha-paper-2); border: 1px solid var(--ha-border); }
.row .tick { top: 50%; left: 14px; right: auto; width: 30px; height: 30px; transform: translateY(-50%); border-color: var(--ha-border); }
.row[disabled] { opacity: .55; cursor: not-allowed; }
.locked-hint { margin: 10px 0 0; font-size: 14px; color: var(--ha-muted, #6b6558); }
.row-name { flex: 1; min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
.row-price { min-width: 52px; text-align: right; font-weight: 500; color: var(--ha-gold-deep); }
.row.on { border-color: var(--ha-gold-deep); background: var(--ha-paper); box-shadow: inset 0 0 0 1px var(--ha-gold-deep); }
.row.on .tick { background: var(--ha-gold-deep); border-color: var(--ha-gold-deep); color: #fff; }

/* Bottom bar */
.bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; padding: 12px 28px calc(12px + env(safe-area-inset-bottom)); background: var(--ha-ink); border-top: 1px solid var(--ha-line-dark); }
.bar-info { min-width: 0; white-space: nowrap; display: flex; align-items: baseline; gap: 22px; color: var(--ha-muted-light); }
.bar-info strong { font-family: var(--ha-font-display); font-weight: 600; font-size: 38px; color: var(--ha-gold); line-height: 1; }
.cta { min-width: 220px; height: 60px; padding: 0 36px; text-align: center; background: var(--ha-gold); color: var(--ha-ink); font-weight: 500; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; }
.cta:active:not(:disabled) { background: var(--ha-gold-hover); }
.cta:disabled { background: transparent; color: var(--ha-muted-light); border: 1px solid var(--ha-line-dark); opacity: .6; cursor: default; }
.bar .cta { margin-left: auto; }
.cta.big { height: 72px; min-width: 280px; font-size: 20px; }

/* 4 · Client */
.form { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 26px; width: 100%; max-width: 720px; margin: 0 auto; padding-top: 10px; }
.form label { display: flex; flex-direction: column; gap: 10px; }
.form label span { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ha-gold-deep); font-weight: 500; }
.form label em { font-style: normal; letter-spacing: .04em; text-transform: none; color: var(--ha-text-muted); font-weight: 400; margin-left: 8px; font-size: 16px; }
.form input { height: 72px; padding: 0 22px; font-size: 28px; color: var(--ha-ink); background: #fff; border: 1px solid var(--ha-border); border-bottom: 2px solid var(--ha-gold-deep); border-radius: 0; outline: none; }
.form input:focus { border-color: var(--ha-gold-deep); box-shadow: 0 0 0 3px rgba(217, 177, 128, .45); }

/* 5 · Summary */
.ticket { flex: 1; min-height: 0; width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ha-border); border-top: 3px solid var(--ha-gold); padding: 22px 30px 18px; overflow-y: auto; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ha-border); }
.ticket-meta span { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ha-gold-deep); margin-bottom: 6px; }
.ticket-meta strong { display: flex; align-items: center; gap: 12px; font-family: var(--ha-font-display); font-size: 30px; font-weight: 500; color: var(--ha-ink); }
.ticket-meta img { width: 40px; height: 40px; object-fit: cover; object-position: center 18%; }
.ticket-meta small { color: var(--ha-text-muted); font-size: 16px; }
.lines { list-style: none; flex: 1; padding: 6px 0; }
.lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ha-border); font-size: 20px; }
.lines b { font-weight: 500; }
.saved { padding-top: 12px; text-align: right; font-size: 18px; color: var(--ha-gold-deep); }
.sum { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; }
.sum span { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--ha-gold-deep); }
.sum strong { font-family: var(--ha-font-display); font-weight: 600; font-size: 52px; color: var(--ha-ink); line-height: 1; }
.err { margin-top: 12px; padding: 12px 16px; color: var(--ha-ink); background: var(--ha-paper-2); border-left: 3px solid var(--ha-gold-deep); }

/* 6 · Done */
.done { align-items: center; justify-content: center; text-align: center; gap: 14px; }
.done-mark { width: 104px; height: 104px; display: grid; place-items: center; background: var(--ha-ink); color: var(--ha-gold); border: 1px solid var(--ha-gold); }
.done-mark svg { width: 60px; height: 60px; }
.done p { font-size: 22px; color: var(--ha-text-muted); }
.done-total { font-family: var(--ha-font-display); font-size: 56px !important; font-weight: 600; color: var(--ha-gold-deep) !important; line-height: 1.1; }
.done .cta { margin-top: 14px; flex: none; }

/* Narrow / portrait tablets & phones */
@media (max-width: 900px) {
  .barbers, .types { grid-template-columns: 1fr 1fr; }
  .combos, .combos:has(> :nth-child(3)) { grid-template-columns: 1fr; }
  .rows, .more-panel { grid-template-columns: 1fr; }
  .combo, .combos:has(> :nth-child(3)) .combo { padding: 16px 20px; }
  .combo-name, .combos:has(> :nth-child(3)) .combo-name { font-size: clamp(28px, 6vw, 40px); }
  .combo-desc { font-size: 15px; }
  .top { padding: 0 16px; height: 64px; }
  .logo { height: 28px; }
  .screen { padding: 16px; gap: 14px; }
  .bar { padding-left: 16px; padding-right: 16px; }
  .head { gap: 12px; }
  .ticket-meta { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 480px) {
  .top { height: 56px; }
  .logo { height: 24px; }
  .lang button { min-width: 44px; padding: 0 6px; }
  .screen { padding: 12px 14px; gap: 12px; }
  .head { min-height: 44px; gap: 10px; }
  h1 { font-size: clamp(25px, 7.4vw, 32px); }
  .back { height: 44px; padding: 0 12px 0 8px; font-size: 16px; letter-spacing: .03em; }
  .chip { height: 44px; padding-right: 0; gap: 0; }
  .chip img { height: 44px; width: 44px; }
  .chip-name { display: none; }

  /* collapsed combos: tier + name left, price right, description below */
  .combos { gap: 10px; }
  .combo { display: grid; grid-template-columns: 1fr auto; align-content: center; column-gap: 12px; row-gap: 4px; padding: 12px 14px; }
  .combo-tier { grid-column: 1; font-size: 12px; padding-right: 40px; }
  .combo-name, .combos:has(> :nth-child(3)) .combo-name { grid-column: 1; font-size: clamp(23px, 6.4vw, 28px); padding-right: 0; }
  .combo-desc { grid-column: 1 / -1; font-size: 14px; line-height: 1.35; }
  .combo-statt { grid-column: 1 / -1; font-size: 14px; }
  .combo-meta { grid-column: 2; grid-row: 2; margin: 0; flex-direction: column; align-items: flex-end; gap: 2px; }
  .combo-meta b { font-size: 30px; }
    .tick { top: 10px; right: 10px; width: 30px; height: 30px; }
  .tick svg { width: 20px; height: 20px; }

  /* expanded: compact single-row combos */
  .services.open .combos { gap: 6px; }
  .services.open .combo { display: flex; min-height: 48px; padding: 6px 12px; gap: 10px; }
  .services.open .combo-name, .services.open .combos:has(> :nth-child(3)) .combo-name { font-size: clamp(18px, 5.2vw, 22px); }
  .services.open .combo-meta { flex-direction: row; align-items: baseline; }
  .services.open .combo-meta b { font-size: 22px; }
  .services.open   .services.open .combo .tick { top: auto; right: auto; width: 26px; height: 26px; }
  .services.open .more { padding: 8px 22px; min-height: 44px; }

  .more-panel h3 { margin: 8px 0 4px; }
  .rows { gap: 6px; }
  .row { min-height: 52px; padding: 6px 12px 6px 52px; gap: 10px; font-size: 16px; }
  .row .tick { left: 12px; width: 26px; height: 26px; }
    .row-price { min-width: 44px; }

  .bar { min-height: 68px; gap: 12px; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .bar-info { gap: 10px; font-size: 15px; align-items: baseline; }
  .bar-info strong { font-size: 30px; }
  .cta { flex: 1 1 auto; min-width: 0; max-width: 240px; height: 52px; padding: 0 16px; font-size: 16px; letter-spacing: .1em; }
  .cta.big { flex: none; height: 60px; min-width: 0; width: 100%; max-width: 280px; font-size: 18px; }

  .form { gap: 18px; padding-top: 4px; }
  .form input { height: 56px; padding: 0 16px; font-size: 22px; }
  .form label span { font-size: 13px; }
  .form label em { display: block; margin: 2px 0 0; font-size: 14px; }

  .ticket { padding: 14px 16px 12px; }
  .ticket-meta { gap: 12px; padding-bottom: 12px; }
  .ticket-meta strong { font-size: 26px; overflow-wrap: anywhere; }
  .lines li { font-size: 17px; padding: 10px 0; }
  .lines li > span { min-width: 0; overflow-wrap: anywhere; }
  .sum strong { font-size: 42px; }

  .barber-name { padding: 12px 14px 14px; font-size: clamp(26px, 8vw, 34px); }
  .types, .barbers { gap: 12px; }
  .type { padding: 12px 8px; }
  .type-name { font-size: clamp(24px, 7vw, 30px); overflow-wrap: anywhere; }
  .type-sub { font-size: 12px; letter-spacing: .1em; overflow-wrap: anywhere; }

  .done-mark { width: 84px; height: 84px; }
  .done-total { font-size: 46px !important; }
}
@media (max-height: 640px) {
  .top { height: 56px; }
  .head { min-height: 44px; }
  .bar { min-height: 70px; }
  .cta { height: 52px; }
}

/* v2 · Login, Home, Heute, Kasse */
.login .form { justify-content: flex-start; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.label { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ha-gold-deep); font-weight: 500; }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.staff-btn { min-height: 60px; padding: 8px 16px; background: var(--ha-paper-2); border: 1px solid var(--ha-border); font-family: var(--ha-font-display); font-size: 26px; font-weight: 500; color: var(--ha-ink); overflow-wrap: anywhere; }
.staff-btn.on { background: var(--ha-ink); color: var(--ha-gold); border-color: var(--ha-gold); }
.form input[type=password] { letter-spacing: .4em; }
.role { flex: none; padding: 6px 12px; background: var(--ha-ink); color: var(--ha-gold); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.homes { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-tile svg { flex: 1; min-height: 0; width: 100%; max-width: 120px; color: var(--ha-gold); }
.muted { color: var(--ha-text-muted); padding: 8px 0; }

.daynav { flex: none; display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.daynav button { height: 52px; padding: 0 18px; font-size: 20px; font-weight: 500; color: var(--ha-text); background: transparent; border: 1px solid var(--ha-border); border-radius: 0; }
.daynav button.on { background: var(--ha-ink); color: var(--ha-gold); }
.daynav button:disabled { opacity: .35; }
.tools { flex: none; display: flex; gap: 14px; align-items: center; }
.seg { flex: none; display: flex; border: 1px solid var(--ha-border); }
.seg button { min-width: 88px; height: 52px; padding: 0 18px; text-align: center; font-weight: 500; letter-spacing: .06em; color: var(--ha-text-muted); }
.seg button.on { background: var(--ha-ink); color: var(--ha-gold); }
.search { flex: 1; min-width: 0; height: 52px; padding: 0 16px; font-size: 20px; color: var(--ha-ink); background: #fff; border: 1px solid var(--ha-border); border-bottom: 2px solid var(--ha-gold-deep); border-radius: 0; outline: none; }
.search:focus { box-shadow: 0 0 0 3px rgba(217, 177, 128, .45); }
.heute #list, .kasse-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.bks, .krs { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bk { display: flex; align-items: stretch; gap: 8px; background: #fff; border: 1px solid var(--ha-border); }
.bk-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 12px 16px; min-height: 68px; }
button.bk-main:active { background: var(--ha-paper-2); }
.bk.closed { opacity: .72; background: var(--ha-paper-2); }
.bk-time { flex: none; width: 64px; font-family: var(--ha-font-display); font-size: 30px; font-weight: 600; color: var(--ha-gold-deep); }
.bk-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-who b { font-weight: 500; font-size: 20px; overflow-wrap: anywhere; }
.bk-who small { font-size: 15px; color: var(--ha-text-muted); overflow-wrap: anywhere; }
.bk-barber { flex: none; font-size: 15px; letter-spacing: .08em; color: var(--ha-text-muted); }
.bk-ns { flex: none; align-self: center; margin-right: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--ha-border); font-size: 14px; letter-spacing: .04em; color: var(--ha-text-muted); text-align: center; }
.bk-ns.sure { background: var(--ha-ink); color: var(--ha-gold); border-color: var(--ha-ink); }
.pill { flex: none; align-self: center; margin-right: 14px; padding: 6px 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; background: var(--ha-paper-2); color: var(--ha-text-muted); border: 1px solid var(--ha-border); }
.pill.paid { background: var(--ha-ink); color: var(--ha-gold); border-color: var(--ha-ink); }
.pill.served { color: var(--ha-gold-deep); border-color: var(--ha-gold-deep); }

.kasse h3 { margin: 16px 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ha-gold-deep); }
.kasse h3:first-child { margin-top: 0; }
.kasse h3 em { font-style: normal; margin-left: 10px; letter-spacing: .04em; font-size: 16px; color: var(--ha-ink); }
.kr { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; min-height: 64px; background: #fff; border: 1px solid var(--ha-border); }
.kr-price { flex: none; font-weight: 500; font-size: 20px; color: var(--ha-gold-deep); }
.kr-btn { flex: none; height: 48px; padding: 0 20px; background: var(--ha-gold); color: var(--ha-ink); text-align: center; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 15px; }
.kr-btn:disabled { opacity: .5; }
.kr-del { flex: none; height: 48px; padding: 0 14px; border: 1px solid var(--ha-border); font-size: 14px; color: #8a2d1f; text-align: center; }
.totals { background: #fff; border: 1px solid var(--ha-border); }
.tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--ha-border); align-items: baseline; }
.tr:last-child { border-bottom: 0; }
.tr span:not(:first-child) { text-align: right; }
.tr.th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ha-text-muted); }

.bar.two { gap: 14px; }
.bar.two .cta { flex: 1; max-width: none; margin-left: 0; }
.cta.alt { background: transparent; color: var(--ha-gold); border: 1px solid var(--ha-gold); }
.cta.alt:active:not(:disabled) { background: var(--ha-ink-3); }
.cta.danger { background: #8a2d1f; color: #fff; }
.done-note { font-size: 17px !important; }
.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(21, 17, 13, .72); }
.dialog { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--ha-paper); border-top: 3px solid #8a2d1f; user-select: text; }
.dialog h2 { font-family: var(--ha-font-display); font-weight: 500; font-size: 32px; color: var(--ha-ink); }
.dialog input { height: 56px; padding: 0 16px; font-size: 22px; letter-spacing: .12em; background: #fff; border: 1px solid var(--ha-border); border-bottom: 2px solid var(--ha-gold-deep); border-radius: 0; outline: none; }
.dialog-btns { display: flex; gap: 10px; margin-top: 6px; }
.dialog-btns .cta { flex: 1; min-width: 0; padding: 0 10px; height: 52px; font-size: 14px; letter-spacing: .06em; }
.dialog-btns .cta.alt { color: var(--ha-gold-deep); border-color: var(--ha-border); }

@media (max-width: 900px) {
  .homes { grid-template-columns: 1fr; }
  .home-tile { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 4px 18px; padding: 14px 18px; }
  .home-tile svg { flex: none; width: 56px; height: 56px; }
  .home-tile .type-name, .home-tile .type-sub { text-align: left; }
  .home-tile .type-name { flex: 1 1 calc(100% - 80px); }
  .home-tile .type-sub { flex: 1 1 100%; padding-left: 74px; margin-top: -6px; }
}
@media (max-width: 480px) {
  .bk { flex-wrap: wrap; }
  .bk-main { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 10px 12px; min-height: 60px; }
  .bk-time { width: auto; font-size: 26px; grid-row: 1 / span 2; }
  .bk-who { grid-column: 2; }
  .bk-barber { grid-column: 2; font-size: 13px; }
  .bk-ns, .pill { margin: 0 12px 10px; flex: 1 1 100%; }
  .kr { flex-wrap: wrap; padding: 10px 12px; }
  .kr .bk-who { flex: 1 1 60%; }
  .kr-btn { flex: 1; }
  .tr { padding: 8px 10px; font-size: 15px; }
  .seg button { min-width: 64px; padding: 0 10px; }
  .staff { grid-template-columns: 1fr 1fr; }
  .staff-btn { font-size: 22px; min-height: 52px; }
  .role { display: none; }
  .head .back { flex: none; }
  .bar.two .cta { font-size: 13px; letter-spacing: .04em; padding: 0 8px; height: 52px; }
  .home-tile .type-name { font-size: 28px; }
}

/* v3 · lifecycle: active visits, handoff, drafts, uncertain outcomes */
.notice { flex: none; padding: 10px 14px; background: var(--ha-paper-2); border-left: 3px solid var(--ha-gold-deep); color: var(--ha-ink); }
.uncertain { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--ha-gold-deep); border-left-width: 4px; user-select: text; }
.uncertain p { line-height: 1.4; }
.uncertain .cta { align-self: flex-start; height: 48px; min-width: 0; font-size: 15px; }
.warn { margin: 10px 0; padding: 10px 14px; background: var(--ha-paper-2); border-left: 3px solid #8a2d1f; color: var(--ha-ink); line-height: 1.4; overflow-wrap: anywhere; }
.booking-banner.warn { border: 1px solid #8a2d1f; }
.price-review .cta { display: block; margin-top: 10px; height: 48px; min-width: 0; font-size: 15px; color: var(--ha-gold-deep); border-color: var(--ha-gold-deep); }
.quote-line { padding: 10px 0 0; color: var(--ha-gold-deep); font-weight: 500; }
.active-box { flex: none; padding: 12px 14px 14px; background: var(--ha-ink); border: 1px solid var(--ha-gold-deep); }
.active-box h3 { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ha-gold); }
.active-box h3 em { font-style: normal; margin-left: 8px; letter-spacing: .04em; text-transform: none; color: var(--ha-muted-light); }
.bk.live { border-color: var(--ha-gold-deep); }
.pill.live { background: var(--ha-gold); color: var(--ha-ink); border-color: var(--ha-gold); }
.pill.legacy { color: #8a2d1f; border-color: #8a2d1f; }
.list-h { margin: 14px 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ha-gold-deep); }
.bk-warn { flex: 1 1 100%; padding: 0 16px 10px; color: #8a2d1f; font-size: 14px; }
.bk { flex-wrap: wrap; }
.bk-main { flex: 1 1 0; }
.daypick { flex: 1; min-width: 0; height: 52px; padding: 0 12px; font-size: 18px; color: var(--ha-ink); background: #fff; border: 1px solid var(--ha-border); border-radius: 0; }
.editor-tools { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.draft-state { flex: 1; text-align: center; font-size: 14px; letter-spacing: .08em; color: var(--ha-text-muted); }
.pick .ticket { gap: 12px; }
.pick .staff { margin-top: 8px; }
.legacy-box { margin-top: 20px; padding: 4px 14px 14px; border: 1px dashed #8a2d1f; }
.tr.sum-row { background: var(--ha-paper-2); font-weight: 500; }
.screen .err { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .editor-tools .back { flex: 1 1 auto; text-align: center; }
  .draft-state { flex: 1 1 100%; order: 3; }
  .daynav { flex-wrap: wrap; }
  .daypick { flex: 1 1 100%; }
  .active-box { padding: 10px; }
}

/* v4 · finance (ART-246): explicit Cash/Card, own earnings, contract-pending markers. Same ink/cream/gold. */
.bar.three { gap: 10px; }
.bar.three .cta { flex: 1 1 0; max-width: none; margin-left: 0; min-width: 0; padding: 0 8px; font-size: 15px; letter-spacing: .06em; }
.pay-choice { display: flex; gap: 10px; width: 100%; max-width: 560px; }
.pay-choice .cta { flex: 1 1 0; min-width: 0; margin-top: 0; }
.kr-pay { flex: none; display: flex; gap: 8px; }
.kr-pay .kr-btn { padding: 0 14px; font-size: 14px; letter-spacing: .06em; }
.pay-line { font-size: 20px; color: var(--ha-ink); text-align: center; }
.homes.many { grid-auto-rows: minmax(120px, 1fr); }
a.home-tile { text-decoration: none; color: inherit; }
.pending-chip { margin: 8px 0; padding: 8px 12px; border: 1px dashed var(--ha-gold-deep); background: var(--ha-paper-2); color: var(--ha-text-muted); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; user-select: text; }
.pending-chip b { color: var(--ha-gold-deep); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin-right: 6px; }
.fin-card { flex: none; padding: 14px 16px; background: #fff; border: 1px solid var(--ha-border); border-top: 3px solid var(--ha-gold); display: flex; flex-direction: column; gap: 8px; user-select: text; }
.fin-card h3 { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ha-gold-deep); }
.fin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fin-card .pill { margin: 0; align-self: auto; }
.fin-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.fin-row b { font-family: var(--ha-font-display); font-size: 26px; font-weight: 600; color: var(--ha-ink); }
.fin-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.fin-form { display: flex; flex-direction: column; gap: 8px; }
.fin-form label span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ha-gold-deep); }
.fin-form textarea { width: 100%; padding: 12px; font: inherit; font-size: 18px; color: var(--ha-ink); background: #fff; border: 1px solid var(--ha-border); border-bottom: 2px solid var(--ha-gold-deep); border-radius: 0; resize: vertical; user-select: text; }
.earnings .dialog-btns .cta { height: 52px; }
@media (max-width: 480px) {
  .bar.three .cta { font-size: 12px; letter-spacing: .02em; height: 52px; }
  .kr-pay { flex: 1 1 100%; }
  .kr-pay .kr-btn { flex: 1; }
  .pay-choice { flex-direction: column; }
}
