:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #222a21;
  --muted: #566051;
  --line: #dddfd5;
  --green: #394f3c;
  --serif: "Georgia", "Times New Roman", serif;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #66816b; outline-offset: 4px; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 1192px;
  min-height: 75px;
  padding: 12px 28px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; font: 600 23px var(--serif); color: inherit; text-decoration: none; }
.account-details { display: flex; align-items: center; gap: 12px; text-align: right; overflow-wrap: anywhere; }
.account-label { display: block; color: var(--muted); font-size: 11px; }
#signed-in-name { font-size: 14px; }
.account-role { display: inline-block; padding: 3px 6px; margin-left: 6px; border-radius: 5px; background: #e3eadf; color: var(--green); font-size: 11px; font-weight: 650; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  color: #faf9f4;
  font: 21px var(--serif);
}
.owner-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #cfd5c9;
  border-radius: 8px;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}
.owner-button:hover { background: #e9ede4; }
main { max-width: 872px; padding: 0 24px 36px; margin: auto; }
.intro { padding: 45px 0 34px; text-align: center; }
.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
  margin: 0;
}
.intro .eyebrow {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 12px;
  background: #e8ede3;
  border-radius: 100px;
}
h1 {
  font: 400 clamp(44px, 7vw, 72px)/.99 var(--serif);
  letter-spacing: -.056em;
  margin: 17px 0 15px;
}
h1 em { color: var(--green); font-weight: inherit; }
.intro-copy, #manager-note, #pin-instructions { color: var(--muted); line-height: 1.5; margin: 0; }
.roster-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
h2 { margin: 0; font: 400 26px var(--serif); letter-spacing: -.025em; }
#roster-detail { color: var(--muted); font-size: 13px; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.salon-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); max-width: 1440px; min-height: calc(100dvh - 76px); margin: 0 auto; }
.salon-content { min-width: 0; }
.salon-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; min-height: 100%; }
.salon-sidebar { padding: 25px 15px; border-right: 1px solid var(--line); background: #f0f1e9; }
.salon-nav { display: grid; gap: 5px; }
.salon-nav a { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 9px; border-radius: 8px; color: var(--green); text-decoration: none; font-size: 14px; font-weight: 650; }
.salon-nav a:hover, .salon-nav a[aria-current="page"] { background: #e3eadf; }
.salon-nav a:focus-visible, .brand:focus-visible { outline: 3px solid #66816b; outline-offset: 3px; }
.salon-nav svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.salon-nav a:last-child circle { fill: #f0f1e9; }
.salon-main { width: 100%; max-width: unset; margin: 0; padding: 34px 25px; }
.salon-main h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); overflow-wrap: anywhere; }
.salon-main .roster-heading { margin-bottom: 9px; }
.salon-main .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.salon-main .tile-name { font-size: clamp(15px, 2vw, 24px); }
.salon-main .salon-instructions { margin: 16px 0; }
.salon-today { padding: 33px 19px; border-left: 1px solid var(--line); }
.salon-today h2 { margin-bottom: 12px; font-size: 23px; }
.salon-today .intro-copy { font-size: 14px; }
.today-transactions { list-style: none; margin: 0; padding: 0; }
.today-transactions li { border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.today-transactions time { white-space: nowrap; color: var(--muted); font-size: 13px; }
@media (max-width: 925px) {
  .salon-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .salon-layout { grid-template-columns: minmax(0, 1fr); }
  .salon-today { padding: 20px 25px; border-left: 0; border-top: 1px solid var(--line); }
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 13px;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefa;
  color: var(--ink);
  transition: border-color .16s, background-color .16s;
}
.tile:hover { border-color: #7e937d; background: #f2f5ed; }
.tile-initials {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(39px, 8vw, 65px);
  aspect-ratio: 1;
  border-radius: 50%;
  font: 400 clamp(15px, 3vw, 25px) var(--serif);
  background: var(--avatar, #e7ede0);
}
.tiles li:nth-child(4n+2) { --avatar: #efe1dc; }
.tiles li:nth-child(4n+3) { --avatar: #f1e9d8; }
.tiles li:nth-child(4n+4) { --avatar: #e9e5ef; }
.tile-name { max-width: 100%; overflow-wrap: anywhere; font: 400 clamp(15px, 3vw, 25px)/1.1 var(--serif); }
.empty { margin: 0; padding: 28px 18px; border: 1px dashed #b7c2b4; border-radius: 12px; color: var(--muted); text-align: center; }
.remove {
  background: transparent;
  border: 0;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 7px 0;
  flex: none;
}
dialog { width: min(480px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 25px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 70px #131b1740; }
dialog::backdrop { background: #1b231968; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.dialog-heading h2 { margin-top: 5px; font-size: 32px; }
.close { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fffefa; color: var(--green); font-size: 23px; }
label { display: block; font-size: 14px; font-weight: 650; margin: 16px 0 7px; }
input { width: 100%; min-width: 0; padding: 10px 12px; min-height: 42px; border: 1px solid #afb9ac; border-radius: 8px; background: #fffefa; color: var(--ink); }
.input-row { display: flex; gap: 8px; }
.primary { padding: 10px 14px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: white; font-weight: 650; flex: none; }
.primary:hover { background: #2e4031; }
.primary:disabled { opacity: .65; cursor: wait; }
#pin-submit { margin-top: 12px; }
.message { margin: 8px 0 0; font-size: 14px; color: var(--green); }
.message:empty { margin: 0; }
.message.error { color: #8c362c; }
.owner-roster { list-style: none; margin: 15px 0 0; padding: 0; }
.owner-roster:empty { margin: 0; }
.owner-roster li { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.employee-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.employee-days { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 6px 0 2px; padding: 0; border: 0; }
.employee-days legend { margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.employee-days label { display: flex; align-items: center; gap: 4px; margin: 0; padding: 7px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.employee-days input { width: 15px; min-height: 0; height: 15px; margin: 0; padding: 0; accent-color: var(--green); }
.owner-main h1 { font-size: clamp(29px, 3.8vw, 44px); }
#manager-note { margin-top: 8px; }
.owner-roster-empty { margin-top: 16px; }
.owner-table-scroll { overflow-x: auto; }
.owner-table-scroll:focus-visible { outline: 3px solid #66816b; outline-offset: 3px; }
.owner-search { max-width: 460px; }
.owner-search label { margin-top: 16px; }
.owner-records-table { width: 100%; min-width: 290px; border-collapse: collapse; font-size: 14px; text-align: left; }
.owner-customers-table { min-width: 550px; }
.owner-records-table th, .owner-records-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.owner-records-table th { color: var(--green); background: #eef2e8; white-space: nowrap; }
.owner-customers-table td:nth-child(n+3) { white-space: nowrap; }
.owner-records-table tbody tr:last-child td { border-bottom: 0; }
.service-main.appointment-main { max-width: 100%; }
.appointment-main h1 { font-size: clamp(29px, 3.8vw, 44px); }
.appointment-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 18px; }
.appointment-empty { margin-top: 18px; }
.appointment-table-scroll { margin-top: 20px; max-height: min(68vh, 680px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; }
.appointment-table-scroll:focus-visible { outline: 3px solid #66816b; outline-offset: 3px; }
.appointment-table { --slot-height: 34px; width: 100%; border-spacing: 0; text-align: left; font-size: 12px; }
.appointment-table th, .appointment-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.appointment-table thead th { position: sticky; top: 0; z-index: 4; min-width: 118px; height: 35px; padding: 6px 8px; color: var(--ink); background: hsl(var(--tech-hue, 145) 40% 86%); }
.appointment-table th:first-child { position: sticky; left: 0; z-index: 3; min-width: 76px; width: 76px; white-space: nowrap; background: #eef2e8; }
.appointment-table thead th:first-child { z-index: 5; }
.appointment-table tbody th, .appointment-table td { height: var(--slot-height); }
.appointment-table tbody th { padding: 0 10px; font-weight: 600; }
.appointment-table td { position: relative; padding: 0; background: hsl(var(--tech-hue) 47% 96%); }
.appointment-table .appointment-closing td { background: hsl(var(--tech-hue) 31% 92%); }
.appointment-card {
  position: absolute; z-index: 1; top: 2px; left: 3px; width: calc(100% - 6px); height: calc(var(--appointment-slots) * var(--slot-height) - 4px);
  display: grid; align-content: start; gap: 1px; overflow: hidden; padding: 1px 5px 3px; text-align: left;
  border: 1px solid hsl(var(--tech-hue) 24% 62%); border-radius: 5px; background: hsl(var(--tech-hue) 45% 89%); color: var(--ink); touch-action: none;
}
.appointment-card strong, .appointment-card span:not(.appointment-resize) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.05; }
.appointment-card strong { font-size: 11px; }
.appointment-card span:not(.appointment-resize) { color: var(--muted); font-size: 10px; }
.appointment-card[aria-disabled="true"] { cursor: default; }
.appointment-card:not([aria-disabled="true"]) { cursor: grab; }
.appointment-card.dragging { z-index: 2; box-shadow: 0 3px 10px #28382936; cursor: grabbing; }
.appointment-card.invalid-slot { background: #f6e1dc; border-color: #aa5142; }
.appointment-resize { position: absolute; right: 0; bottom: 0; left: 0; height: 7px; cursor: ns-resize; }
.appointment-resize::after { display: block; width: 20px; height: 2px; margin: 4px auto 0; border-radius: 2px; background: #536e58; content: ''; }
#appointment-dialog select, #duplicate-appointment-dialog select { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #afb9ac; border-radius: 8px; background: #fffefa; color: var(--ink); font: inherit; }
.back-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #cfd5c9;
  border-radius: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.back-link:hover { background: #e3eadf; }
.back-link:focus-visible { outline: 3px solid #66816b; outline-offset: 4px; }
.service-technician { margin: 0 0 7px; overflow-wrap: anywhere; }
.service-main { width: 100%; max-width: 875px; margin: 0; padding: 46px 40px 42px; }
.service-main h1 { margin: 0 0 10px; }
.customer-section { margin-top: 27px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fffefa; }
.customer-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; }
#customer-count { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.customer-heading .primary span { margin-right: 4px; }
.checkin-tools { display: flex; flex-wrap: wrap; gap: 8px; }
#manage-checkins[aria-pressed="true"] { background: #e8efe3; border-color: #7e937d; }
.checkin-instructions { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.remove-checkin { padding: 10px 14px; border: 1px solid #853e34; border-radius: 8px; background: #853e34; color: #fff; font-weight: 650; }
.remove-checkin:hover:not(:disabled) { background: #71332a; }
.remove-checkin:disabled { border-color: var(--line); background: #ecebe5; color: var(--muted); cursor: default; }
.customer-list { display: grid; gap: 8px; margin: 17px 0 0; padding: 0; list-style: none; }
.customer-list:empty { margin: 0; }
.customer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
  color: var(--ink);
  text-align: left;
}
.customer-row:hover, .customer-row[aria-pressed="true"] { background: #e8efe3; border-color: #7e937d; }
.customer-indicator { width: 17px; height: 17px; border: 1px solid #828e7e; border-radius: 50%; }
.customer-row[aria-pressed="true"] .customer-indicator { background: var(--green); border: 4px solid #e8efe3; outline: 1px solid var(--green); }
.customer-row-name { font-weight: 650; overflow-wrap: anywhere; }
.customer-badge { padding: 4px 8px; border-radius: 20px; background: #f1e9d8; color: #5e5034; font-size: 12px; }
.customer-empty { display: grid; justify-items: center; gap: 5px; margin-top: 17px; padding: 25px 12px; border: 1px dashed #cfd5c9; border-radius: 8px; text-align: center; }
.customer-empty span { color: var(--green); font-size: 21px; }
.customer-empty p { margin: 0; }
.customer-empty p:last-child { color: var(--muted); font-size: 14px; }
.customer-selection { margin: 13px 0 0; color: var(--green); font-weight: 650; overflow-wrap: anywhere; }
.customer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.customer-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
input[readonly] { background: #eeefe8; color: var(--muted); }
.transaction-category { border: 1px solid var(--line); border-radius: 15px; background: #fffefa; }
.transaction-category + .transaction-category { margin-top: 12px; }
.transaction-category summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-radius: inherit;
  cursor: pointer;
}
.transaction-category summary::-webkit-details-marker { display: none; }
.transaction-category summary:hover { background: #f0f3eb; }
.transaction-category summary:focus-visible { outline: 3px solid #66816b; outline-offset: 3px; }
.transaction-category summary::after {
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translate(-1px, -1px);
  content: '';
}
.transaction-category[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.category-content { padding: 0 22px 20px; }
.category-content > .customer-list:first-child { margin-top: 0; }
.menu-note { margin: 0; color: var(--muted); font-size: 14px; }
.gel-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 4px 0 3px 17px;
  padding: 9px 12px;
  min-height: 44px;
  border-left: 2px solid #7e937d;
  background: #f0f3eb;
  cursor: pointer;
}
.gel-option input { width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; accent-color: var(--green); }
#transaction-page { max-width: 1120px; margin-inline: auto; }
#transaction-back { display: inline-flex; margin-bottom: 16px; }
.transaction-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); gap: 18px; align-items: start; margin-top: 27px; }
.transaction-summary { position: sticky; top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fffefa; }
.transaction-summary .intro-copy { margin-top: 7px; font-size: 14px; }
.selected-services { width: 100%; margin: 13px 0 0; border-collapse: collapse; font-size: 14px; text-align: left; }
.selected-services th, .selected-services td { padding: 8px 5px; vertical-align: top; }
.selected-services th:first-child, .selected-services td:first-child { padding-left: 0; }
.selected-services th:last-child, .selected-services td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.selected-services td { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.selected-services td:last-child { font-weight: 650; }
.selected-services input { width: 52px; min-height: 34px; padding: 4px; }
.selected-services small { display: block; margin-top: 3px; color: var(--muted); }
.transaction-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 650; }
.transaction-customer-details { display: grid; gap: 4px; color: var(--muted); overflow-wrap: anywhere; }
.transaction-customer-details p { margin: 0; }
.transaction-customer-details strong { color: var(--ink); }
#complete-checkout { width: 100%; min-height: 44px; }
#complete-checkout:disabled { cursor: default; }
.payment-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 0; margin: 0; border-bottom: 1px solid var(--line); color: var(--green); }
.payment-amount strong { font-size: 22px; }
.payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.payment-options button { justify-content: center; min-height: 46px; }
.card-icon { flex: none; width: 21px; height: 15px; border: 2px solid currentColor; border-radius: 3px; background: linear-gradient(transparent 30%, currentColor 30% 45%, transparent 45%); }
.cash-icon { display: grid; flex: none; place-items: center; width: 19px; height: 19px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; line-height: 1; }
.card-scan-panel { display: grid; justify-items: center; gap: 8px; padding: 22px 12px; margin-top: 14px; border: 1px dashed #a8b4a4; border-radius: 12px; text-align: center; }
.card-scan-panel h3, .card-scan-panel p { margin: 0; }
.card-scan-panel p { color: var(--muted); font-size: 14px; }
.card-scan-panel .card-icon { width: 42px; height: 28px; border-radius: 5px; color: var(--green); }
.cash-change { margin-top: 8px; }
@media (max-width: 740px) {
  .transaction-grid { grid-template-columns: 1fr; }
  .transaction-summary { position: static; }
}
@media (max-width: 620px) {
  .salon-shell { grid-template-columns: 1fr; min-height: 0; }
  .salon-sidebar { padding: 11px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .salon-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .salon-main { padding: 24px 16px; }
  .salon-main .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .salon-today { padding: 20px 16px; }
  .account-details { gap: 5px; }
  .topbar-inner { padding: 12px 17px; min-height: 62px; }
  main { padding-inline: 17px; }
  .intro { padding-top: 36px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { gap: 8px; }
  .back-link { display: inline-flex; }
  .service-main { padding: 26px 17px; }
  .customer-section { padding: 15px; }
  .transaction-category summary { padding: 14px 15px; }
  .category-content { padding: 0 15px 15px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 38%, #e3ebdf, var(--paper) 65%); }
.login-card { width: min(100%, 390px); padding: clamp(26px, 6vw, 42px); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 55px #23312714; }
.login-card .brand-mark { margin: 0 auto; }
.login-card h1 { margin: 14px 0 26px; text-align: center; }
.login-card .primary { width: 100%; margin-top: 12px; }
#site-master-login { justify-content: center; width: 100%; margin-top: 9px; min-height: 44px; }
.text-button { display: block; margin: 8px auto 0; padding: 6px; border: 0; background: transparent; color: var(--green); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.employee-add-fields, .employee-options { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.employee-add-fields div { flex: 1 1 155px; }
.employee-options { align-items: center; justify-content: end; }
.employee-options label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; }
.employee-options select { padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.employee-options details { position: relative; }
.employee-options summary { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.employee-menu { position: absolute; z-index: 2; inset-inline-end: 0; top: calc(100% + 4px); display: grid; min-width: 145px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px #2331271c; }
.employee-menu button { padding: 7px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.employee-menu button:hover, .employee-menu button:focus-visible { background: #edf1e9; }
.employee-setup { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }

.appointment-field-message:empty { display: none; }
.service-duration-form { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.service-duration-form input { min-width: 4.7rem; width: 4.7rem; min-height: 34px; padding: 5px 7px; }
.service-duration-form .owner-button { min-height: 34px; padding: 5px 9px; }

.customer-record { cursor: pointer; }
.customer-record:hover, .customer-record:focus-within { background: #f0f3ec; }
.customer-record-button { display: inline-block; padding: 2px 0; border: 0; background: transparent; color: var(--green); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.customer-history-dialog { width: min(760px, calc(100% - 28px)); }
.customer-profile { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 22px; padding: 14px; border-radius: 8px; background: #eef2e8; }
.customer-profile dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.customer-profile dd { margin: 4px 0 0; }
.customer-history-dialog h3 { margin: 0 0 12px; }
.customer-visit-table { min-width: 490px; }
.customer-visit-table td:first-child, .customer-visit-table td:last-child { white-space: nowrap; }
.customer-visit-table td { vertical-align: top; }
.customer-visit-table ul { margin: 0; padding-inline-start: 16px; }

.appointment-date-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.appointment-date-controls input { width: auto; }
.duplicate-date-options { margin: 12px 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.duplicate-date-options legend { padding: 0 4px; font-weight: 700; }
.duplicate-date-line { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.duplicate-date-line label { display: flex; align-items: center; gap: 8px; margin: 0; }
.duplicate-date-line input[type="radio"] { width: 16px; min-height: 0; height: 16px; margin: 0; accent-color: var(--green); }
#duplicate-appointment-weeks { width: 78px; }
#duplicate-appointment-date { width: min(100%, 220px); }

.appointment-open-slot { cursor: pointer; }
.appointment-open-slot:hover { background: hsl(var(--tech-hue) 49% 89%); }
.today-transactions li { display: block; padding: 0; }
.today-transaction { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; width: 100%; padding: 10px 4px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.today-transaction:hover, .today-transaction:focus-visible { background: #edf1e9; }
.today-transaction strong { color: var(--green); }
.today-transaction .transaction-amount { font-weight: 700; text-align: right; }
.today-transaction .transaction-tech, .today-transaction .transaction-method { color: var(--muted); font-size: 12px; }
.today-transaction .transaction-method { text-align: right; }

.salon-main { position: relative; isolation: isolate; }
.salon-wallpaper { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.salon-main:has(.salon-wallpaper:not([hidden]))::before { position: absolute; z-index: -1; inset: 0; background: #f8f7f3b8; content: ''; }
.salon-identity { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.salon-identity img { width: auto; max-width: min(230px, 100%); max-height: 82px; object-fit: contain; }
.salon-identity p { margin: 0 0 4px; white-space: pre-line; overflow-wrap: anywhere; }
.salon-identity a { color: var(--green); }
#today-summary-button { margin: 0 0 12px; }
#transaction-summary-dialog .transaction-summary { display: grid; gap: 0; margin: 0; }
#transaction-summary-dialog .transaction-summary div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
#transaction-summary-dialog .transaction-summary dd { margin: 0; font-size: 1.2rem; font-weight: 700; }
.store-settings { display: grid; gap: 16px; }
.store-settings > .message:empty { display: none; }
.store-settings > .customer-section { margin-top: 0; }
.store-settings h2 { margin-bottom: 12px; }
.store-settings h3 { margin: 0; font-size: 18px; }
.store-hours-row, .store-form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.store-hours-row { grid-template-columns: minmax(97px, 1fr) repeat(2, minmax(88px, 1fr)); align-items: center; margin-bottom: 7px; }
.store-hours-head { font-size: 13px; font-weight: 700; color: var(--muted); }
.store-hours-row label { display: flex; align-items: center; gap: 7px; margin: 0; }
.store-hours-row input[type="checkbox"] { width: 16px; min-height: 0; height: 16px; padding: 0; accent-color: var(--green); }
.store-settings textarea { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.store-holiday-list { list-style: none; padding: 0; margin-bottom: 0; }
.store-holiday-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0; }
.store-branding-forms { display: grid; gap: 12px; }
.store-branding-forms form + form { border-top: 1px solid var(--line); padding-top: 12px; }
.store-branding-preview { display: block; max-width: 100%; max-height: 140px; margin: 0 0 8px; object-fit: contain; }
.store-device-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 10px 0; }
.store-device-row .message { flex-basis: 100%; margin: 0; }
@media (max-width: 540px) { .store-form-row { grid-template-columns: 1fr; } }
@media print {
  body.printing-transaction > :not(#today-transaction-dialog) { display: none !important; }
  body.printing-transaction #today-transaction-dialog { display: block; position: static; width: 100%; max-width: none; max-height: none; margin: 0; padding: 10px; border: 0; box-shadow: none; }
  body.printing-transaction #today-transaction-dialog form, body.printing-transaction #print-transaction-receipt { display: none; }
  body.printing-transaction #today-transaction-dialog::backdrop { display: none; }
}

.appointment-card-heading { display: flex; align-items: center; gap: 4px; min-width: 0; }
.appointment-card-heading strong { min-width: 0; }
.appointment-card .appointment-source:not(.appointment-resize) { flex: none; margin-inline-start: auto; padding: 1px 4px; border-radius: 5px; background: #f8f7f2; color: #40483e; font-size: 9px; font-weight: 700; }
.appointment-card .appointment-source[data-source="online"]:not(.appointment-resize) { background: #e2edf9; color: #193e69; }

.sms-check { display: flex; align-items: center; gap: 8px; }
.sms-check input[type="checkbox"] { width: 16px; min-height: 0; height: 16px; margin: 0; padding: 0; flex: none; accent-color: var(--green); }
.employee-phone-form, .sms-consent-row { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin: 7px 0; }
.employee-phone-form label { margin: 0; }
.employee-phone-form .sms-check { align-self: end; min-height: 42px; }
.employee-phone-form input[type="tel"] { width: min(100%, 220px); display: block; margin-top: 4px; }
#new-employee-alerts { margin-top: 5px; }
#bulk-sms-open { margin-inline-start: 4px; }
#appointment-sms-dialog textarea, #bulk-sms-dialog textarea { width: 100%; padding: 9px; border-radius: 8px; border: 1px solid var(--line); font: inherit; }
.customer-sms-consent { margin-bottom: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
#checkin-sms-status:empty { display: none; }

:root {
  --paper: #f8f4ed;
  --ink: #29241f;
  --muted: #685f54;
  --line: #e4d9c9;
  --green: #384438;
  --champagne: #e9cf9d;
}
.topbar { background: #fffaf1; box-shadow: 0 4px 20px #3724100a; }
.topbar-inner { max-width: 1440px; }
.brand-logo { width: 49px; height: 49px; flex: none; object-fit: contain; }
.brand-name { font: 600 25px/.98 var(--serif); letter-spacing: -.03em; }
.brand-name small { display: block; margin-top: 5px; color: #685640; font: 650 10px/1.2 "Segoe UI", Arial, sans-serif; text-transform: uppercase; letter-spacing: .15em; }
.salon-sidebar { background: #f2eadf; }
.salon-nav a { color: #504438; }
.salon-nav a:hover, .salon-nav a[aria-current="page"] { background: #e8dbc8; color: #33271c; }
.salon-nav a[aria-current="page"] { box-shadow: inset 3px 0 #8a6747; }
.account-role { background: #ebdfcf; color: #4f3d29; }
.login-screen { width: 100%; max-width: none; min-height: 100dvh; margin: 0; justify-items: start; padding: clamp(23px, 6vh, 75px) clamp(23px, 8vw, 125px); background: linear-gradient(90deg, #211710a3 0%, #23181040 52%, #2318100d 100%), #433024 var(--salon-wallpaper, url('/salon-wallpaper.jpg')) center 55% / cover no-repeat; }
.login-card { width: min(100%, 420px); padding: clamp(25px, 4.5vw, 49px); background: #fffbf3; border: 1px solid #efe0c6; border-radius: 23px; box-shadow: 0 28px 90px #180f0a70; }
.login-logo { display: block; width: 92px; height: 92px; margin: 0 auto 15px; object-fit: contain; }
.login-card h1 { font-size: clamp(35px, 5vw, 50px); letter-spacing: -.05em; margin: 0; }
.login-card h1 span { display: block; font: 700 13px/1.2 "Segoe UI", Arial, sans-serif; text-transform: uppercase; letter-spacing: .2em; margin: 10px 0 21px; color: #70583c; }
.login-purpose { text-align: center; margin: 0 0 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.login-card .primary { min-height: 47px; border-radius: 9px; background: #3b493b; }
.salon-layout { gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(240px, 310px); align-content: start; padding: clamp(15px, 2.6vw, 32px); }
.salon-banner { position: relative; isolation: isolate; display: flex; min-height: 164px; align-items: end; justify-content: space-between; gap: 16px; overflow: hidden; border-radius: 16px; padding: clamp(19px, 3.2vw, 40px); color: #fff9ea; background: #4f3928 var(--salon-wallpaper, url('/salon-wallpaper.jpg')) center 58% / cover no-repeat; }
.salon-banner::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #1f160ff2 0%, #291e16cb 36%, #291e1666 72%, #291e1642); content: ''; }
.salon-banner .salon-wallpaper { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.checkout-banner { grid-column: 1 / -1; }
.salon-banner h1 { margin: 0 0 9px; color: inherit; font: 400 clamp(35px, 5vw, 59px)/1.03 var(--serif); letter-spacing: -.05em; }
.salon-banner p { margin: 0; color: #fff2db; font-size: 14px; }
.salon-layout .salon-main, .salon-layout .salon-today { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf1; box-shadow: 0 8px 25px #52391c09; }
.salon-layout .roster-heading { flex-wrap: wrap; align-items: center; gap: 7px; border-bottom: 0; padding-bottom: 2px; }
.salon-layout .roster-heading h2 { font-size: clamp(25px, 3vw, 35px); }
.salon-layout #roster-detail { border-radius: 999px; padding: 4px 9px; background: #efe4d3; color: #5d4732; font-weight: 650; }
.salon-layout .salon-instructions { margin: 8px 0 20px; }
.salon-layout .tile { background: #fff9ee; border-color: #dfd1bd; box-shadow: 0 3px 10px #5e3a1b0b; }
.salon-layout .tile:hover { border-color: #a38159; background: #f4ead9; }
.salon-layout .tile-initials { background: #ebdfca; color: #624b32; }
.salon-layout .salon-today h2 { color: #3d3126; margin-bottom: 17px; font-size: 25px; }
.service-main.appointment-main { padding: clamp(15px, 2.6vw, 32px); }
.appointment-heading { min-height: 145px; align-items: end; }
.appointment-heading .primary { align-self: end; background: #ead5ae; color: #322718; border: 1px solid #f1dfbe; box-shadow: 0 2px 10px #160e0752; }
.appointment-heading .primary:hover { background: #f5e5c7; }
.appointment-day-info { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; }
#appointment-store-hours:not(:empty) { border: 1px solid #f0debc6b; padding: 3px 8px; background: #25191055; border-radius: 999px; }
.appointment-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; padding: 12px 14px; background: #fffaf1; }
.appointment-toolbar .appointment-date-controls, .appointment-toolbar .owner-search { margin: 0; }
.appointment-toolbar .owner-search { width: min(100%, 260px); }
.appointment-main .appointment-table-scroll { margin-top: 14px; box-shadow: 0 8px 25px #52391c0b; }
@media (max-width: 970px) {
  .salon-layout { grid-template-columns: minmax(0, 1fr); }
  .salon-layout .salon-today { border: 1px solid var(--line); }
}
@media (max-width: 580px) {
  .topbar-inner { padding-inline: 14px; }
  .brand-name { font-size: 20px; }
  .brand-logo { width: 38px; height: 38px; }
  .account-details { gap: 5px; }
  .account-details .owner-button { padding: 7px; }
  .login-screen { justify-items: center; background-position: 62% center; }
  .login-card { padding: 25px 23px; }
  .salon-banner { min-height: 130px; }
  .salon-layout .salon-main, .salon-layout .salon-today { padding: 15px; }
}

#transaction-page { padding-top: clamp(17px, 3.2vw, 32px); }
.transaction-heading { padding: 20px clamp(16px, 3vw, 28px); border: 1px solid #ddc9ac; border-radius: 14px; background: linear-gradient(115deg, #f7ead9, #fffaf1 70%); }
#transaction-title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.transaction-heading .transaction-customer-details { display: flex; flex-wrap: wrap; gap: 7px 20px; }
.transaction-heading #checkin-sms-status { order: 1; flex-basis: 100%; margin-top: 4px; }
.transaction-grid { margin-top: 18px; }
.transaction-grid .transaction-summary { background: #fff9ee; border-color: #ddc9ac; box-shadow: 0 8px 25px #52391c0b; }
.transaction-category summary:hover { background: #f3e9da; }

:root {
  --surface: #fffaf2;
  --sidebar: #f1e9dd;
  --tint: #eee1ce;
  --accent: #765536;
  --banner-shade: #291b12;
}
:root[data-theme="sage"] {
  --paper: #edf2ec; --surface: #fcfdf9; --sidebar: #dfe9df; --tint: #e1ecdf;
  --ink: #242f27; --muted: #526157; --line: #ccd8cd; --green: #315841; --accent: #48644d; --banner-shade: #182a20;
}
:root[data-theme="rose"] {
  --paper: #f7eff1; --surface: #fffafb; --sidebar: #f0e2e8; --tint: #f1e0e6;
  --ink: #35272d; --muted: #6c545f; --line: #e3cfd9; --green: #75435c; --accent: #7d415a; --banner-shade: #321b29;
}
:root[data-theme="slate"] {
  --paper: #edf1f6; --surface: #fafdff; --sidebar: #e0e8f1; --tint: #e0eaf5;
  --ink: #243143; --muted: #4b5e73; --line: #cdd9e7; --green: #355779; --accent: #345677; --banner-shade: #152338;
}
.topbar, .login-card, .salon-layout .salon-main, .salon-layout .salon-today,
.service-main .customer-section, .appointment-toolbar, .appointment-table-scroll,
.transaction-category, .transaction-grid .transaction-summary, dialog { background: var(--surface); border-color: var(--line); }
.login-card .primary, .primary { background: var(--green); }
.login-card .primary:hover, .primary:hover { background: var(--accent); }
#complete-checkout:not(:disabled) { background: #2f6248; }
.login-card h1 span, .brand-name small { color: var(--accent); }
[data-salon-name] { font-weight: inherit; overflow-wrap: anywhere; }
.brand-name { max-width: min(54vw, 475px); }
#store-name-form { margin-block: 8px 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.login-card { box-shadow: 0 28px 85px #1c110952; }
.salon-banner::before { background: linear-gradient(90deg, var(--banner-shade), color-mix(in srgb, var(--banner-shade) 65%, transparent) 57%, #251b1536); }
.salon-banner { background-color: var(--banner-shade); }
.account-role, .salon-layout #roster-detail, .employee-role { background: var(--tint); color: var(--accent); }
.owner-button { border-color: var(--line); }
.owner-button:hover, .customer-profile, .customer-record:hover, .customer-record:focus-within,
.transaction-category summary:hover, .employee-menu button:hover, .employee-menu button:focus-visible { background: var(--tint); }
.transaction-heading { background: linear-gradient(115deg, var(--tint), var(--surface) 72%); border-color: var(--line); }
select, input:not([type="checkbox"]):not([type="radio"]), textarea { color: var(--ink); background-color: var(--surface); border-color: var(--line); }
select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#login-employee, .sales-filters select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
#login-employee { margin-bottom: 11px; }

.topbar-inner { max-width: 1600px; min-height: 64px; padding-block: 6px; }
.salon-shell { max-width: 1600px; grid-template-columns: 222px minmax(0, 1fr); min-height: calc(100dvh - 65px); }
.salon-sidebar { padding: 17px 12px; background: var(--sidebar); }
.salon-nav { gap: 15px; }
.nav-group { display: grid; gap: 3px; }
.nav-group + .nav-group { border-top: 1px solid var(--line); padding-top: 12px; }
.nav-label { margin: 0 0 3px 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.salon-nav a { color: var(--ink); line-height: 1.2; }
.salon-nav svg { color: var(--accent); }
.salon-nav a:last-child circle { fill: none; }
.salon-nav a:hover, .salon-nav a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.salon-nav a[aria-current="page"] { box-shadow: inset 3px 0 var(--accent); }
.sidebar-contact { margin-top: 19px; padding: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sidebar-contact summary { color: var(--ink); cursor: pointer; font-weight: 650; }
.sidebar-contact .salon-identity { margin: 8px 0 0; align-items: start; gap: 8px; }
.sidebar-contact img { width: 40px; height: 40px; object-fit: contain; }
.sidebar-contact a { color: var(--accent); overflow-wrap: anywhere; }
.salon-layout { grid-template-columns: minmax(0, 1fr) minmax(245px, 31%); gap: clamp(12px, 1.5vw, 20px); min-height: 0; align-items: start; padding: clamp(12px, 2vw, 24px); }
.salon-banner { min-height: 124px; padding: 17px clamp(17px, 2.4vw, 29px); align-items: center; }
.salon-banner h1 { margin: 0 0 6px; font-size: clamp(34px, 4.3vw, 53px); }
#checkout-time { display: block; margin-top: 3px; color: #fff9eb; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.salon-layout .salon-main, .salon-layout .salon-today { padding: clamp(13px, 1.6vw, 20px); }
.salon-layout .salon-instructions { margin: 5px 0 13px; }
.salon-main .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 108px), 1fr)); gap: 10px; }
.salon-layout .tile { background: var(--surface); border-color: var(--line); gap: 7px; padding: 9px; min-height: 0; }
.salon-main .tile-name { font-size: clamp(15px, 1.5vw, 20px); }
.salon-layout .tile:hover { background: var(--tint); border-color: var(--accent); }
.salon-layout .tile-initials { width: clamp(34px, 4vw, 43px); background: var(--tint); color: var(--accent); }
.today-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; }
.salon-layout .salon-today h2 { margin: 0; color: var(--ink); font-size: clamp(20px, 1.7vw, 23px); }
#today-summary-button { padding: 7px 9px; min-height: 34px; }

.store-settings, .service-groups { display: grid; gap: 8px; }
.settings-group { padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.settings-group > summary { padding: 11px 0; min-height: 42px; cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 650; }
.settings-group > summary::marker { color: var(--accent); }
.settings-group[open] { padding-bottom: 13px; }
.settings-group[open] > summary { margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.settings-group > .owner-table-scroll { margin: 0; }
#owner-roster li:has(> .settings-group) { border: 0; padding: 0; margin-bottom: 7px; }
#owner-roster .settings-group > summary > div { display: inline-block; vertical-align: middle; margin-inline: 4px 9px; }
.employee-role { display: inline-block; padding: 3px 7px; border-radius: 100px; font-size: 12px; }
#owner-roster .employee-line { justify-content: flex-start; }
#store-settings-message:empty,
#roster-message:empty, #owner-services-status:empty, #sales-status:empty { display: none; }
.sales-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.sales-filters > div { flex: 1 1 145px; max-width: 230px; }
.sales-filters button { min-height: 42px; }
.sales-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(119px, 1fr)); gap: 8px; margin: 8px 0 0; }
.sales-metrics > div { background: var(--tint); border-radius: 8px; padding: 10px; }
.sales-metrics dt { color: var(--muted); font-size: 13px; }
.sales-metrics dd { margin: 4px 0 0; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
#sales-range { margin: 14px 0 0; font-size: 15px; }
#owner-sales-reports { margin-bottom: 10px; }

.appointment-heading { min-height: 108px; }
.appointment-table thead th:not(:first-child) { text-align: center; }
.appointment-table-scroll { overscroll-behavior: contain; touch-action: pan-x pan-y; }
.appointment-card, .appointment-resize { touch-action: none; -webkit-user-select: none; user-select: none; }
@media (any-pointer: coarse) {
  .appointment-resize { inset-inline-start: auto; width: 32px; height: 18px; }
  .appointment-resize::after { position: absolute; bottom: 3px; right: 4px; width: 17px; height: 4px; margin: 0; }
  .appointment-card .appointment-source:not(.appointment-resize) { margin-inline-end: 22px; }
}
@media (max-width: 870px) {
  .salon-shell { grid-template-columns: 170px minmax(0, 1fr); }
  .salon-sidebar { padding-inline: 8px; }
  .salon-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .salon-shell { grid-template-columns: 1fr; min-height: 0; }
  .salon-sidebar { padding: 8px 10px; }
  .salon-nav { display: flex; flex-wrap: wrap; gap: 3px 8px; }
  .salon-nav .nav-group { display: flex; flex-wrap: wrap; gap: 3px; padding: 0; border: 0; }
  .nav-label { display: none; }
  .salon-nav a { padding-inline: 7px; font-size: 12px; min-height: 38px; }
  .salon-nav svg { width: 15px; height: 15px; }
  .sidebar-contact { margin-top: 5px; padding: 6px 7px 2px; }
}

/* Staff management */
.management-heading, .management-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.management-heading { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.management-heading .intro-copy { margin-top: 3px; }
#employee-report { margin-bottom: 10px; }
#employee-report-output { margin-top: 14px; }
#employee-report-output h2, .employee-print h2 { margin-bottom: 5px; }
#employee-report-output h3 { margin: 0 0 8px; }
#owner-roster { display: grid; grid-template-columns: 1fr; gap: 8px; }
#owner-roster li:has(> .employee-card) { margin: 0; }
.employee-card { box-shadow: 0 4px 14px #4634250b; }
#owner-roster .employee-card > summary { display: flex; gap: 11px; align-items: center; min-height: 62px; list-style: none; }
.employee-card > summary::-webkit-details-marker { display: none; }
.employee-card > summary::after { content: '›'; color: var(--accent); font-size: 21px; line-height: 1; }
.employee-card[open] > summary::after { transform: rotate(90deg); }
#owner-roster .employee-card .employee-identity { display: block; margin: 0; flex: 1; min-width: 0; }
.employee-meta { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.employee-avatar { display: grid; width: 41px; height: 41px; flex: none; place-items: center; background: var(--tint); object-fit: cover; border-radius: 50%; color: var(--accent); font: 600 16px var(--serif); }
.employee-schedule, .employee-photo-form { display: grid; align-items: start; gap: 8px; border-top: 1px solid var(--line); margin-top: 9px; padding-top: 9px; }
.employee-schedule .owner-button, .employee-photo-form .owner-button { justify-self: start; }
.employee-schedule .customer-fields { max-width: 365px; }
.employee-photo-form input { display: block; margin-top: 4px; }
#employee-editor, #catalog-editor, #appointment-dialog, #duplicate-appointment-dialog, #appointment-sms-dialog {
  width: min(620px, calc(100vw - 22px));
  max-height: calc(100dvh - 20px);
  overscroll-behavior: contain;
  padding: clamp(13px, 3vw, 23px);
}
#employee-editor select, #catalog-editor select { width: 100%; min-height: 42px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
#employee-editor .intro-copy { margin-block: 4px; font-size: 13px; }
#appointment-dialog .customer-actions, #duplicate-appointment-dialog .customer-actions, #appointment-sms-dialog .customer-actions,
#employee-editor .customer-actions, #catalog-editor .customer-actions {
  flex-wrap: wrap; position: sticky; bottom: 0; z-index: 1; background: var(--surface); padding: 9px 0 max(4px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); margin-top: 12px;
}
#appointment-dialog .customer-actions button, #duplicate-appointment-dialog .customer-actions button { min-height: 42px; }
.appointment-table td.appointment-off-shift { background: color-mix(in srgb, var(--line) 48%, var(--paper)); }

.sidebar-contact h2 { margin: 0; color: var(--ink); font: 700 13px/1.2 "Segoe UI", sans-serif; }
.sidebar-contact .salon-identity { display: flex; flex-wrap: nowrap; padding: 8px; border-color: var(--line); background: var(--surface); }
.sidebar-contact .salon-identity > div { min-width: 0; overflow-wrap: anywhere; }
.sidebar-contact strong { color: var(--ink); display: block; line-height: 1.25; }
.sidebar-contact img { flex: none; width: 34px; height: 34px; }
#owner-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
#store-settings-message, #owner-settings > details[open] { grid-column: 1 / -1; }
#owner-settings > details { box-shadow: 0 4px 14px #4634250b; }
#owner-settings > details > summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; list-style: none; min-height: 65px; }
#owner-settings > details > summary::-webkit-details-marker { display: none; }
#owner-settings > details > summary::after { content: '›'; margin-inline-start: auto; color: var(--accent); font-size: 20px; }
#owner-settings > details[open] > summary::after { transform: rotate(90deg); }
.settings-icon { display: grid; place-items: center; flex: none; height: 35px; width: 35px; border-radius: 8px; background: var(--tint); color: var(--accent); font-size: 20px; }
.settings-label > small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.employee-print { display: none; }
@media (max-width: 680px) {
  #owner-settings { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  #appointment-dialog .customer-actions > button { flex: 1 1 42%; justify-content: center; }
}
@media print {
  body.printing-employee > :not(.employee-print) { display: none !important; }
  body.printing-employee .employee-print { display: block; padding: 8px; color: #222; }
  .employee-print .owner-table-scroll { overflow: visible; }
  .employee-print th, .employee-print td { border-bottom: 1px solid #aaa; }
  .employee-print tr { break-inside: avoid; }
}

.device-screen { display: grid; place-items: center; width: 100%; max-width: none; min-height: 100dvh; padding: 22px; background: linear-gradient(90deg, #24190f9e, #2c1e1633), #54412d url('/salon-wallpaper.jpg') center / cover; }
.device-card { width: min(100%, 560px); padding: clamp(18px, 4.4vw, 32px); }
.device-card .login-logo { width: 62px; height: 62px; margin-bottom: 9px; }
.device-card h1 { font-size: clamp(35px, 5vw, 48px); }
.device-card .login-purpose { margin: 8px 0 12px; padding-top: 7px; }
.device-card .intro-copy { margin-block: 8px; }
.device-card textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
.device-awaiting { overflow-wrap: anywhere; }
.device-awaiting h2 { margin-bottom: 7px; }
.device-awaiting p { margin-block: 7px; }
.device-awaiting a { width: fit-content; text-decoration: none; }
#device-retry { margin-top: 8px; }
#device-code { font: 700 16px ui-monospace, monospace; letter-spacing: .08em; }
@media (max-width: 450px) {
  .device-screen { padding: 12px; }
}

#site-master-login.site-master-entry { position: absolute; z-index: 6; inset: 10px 12px auto auto; margin: 0; width: auto; min-height: 32px; padding: 4px 8px; border: 0; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: .7rem; font-weight: 500; }
#site-master-login.site-master-entry:hover { color: var(--text); text-decoration: underline; }
#site-master-login.site-master-entry:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#device-activation-page { width: min(100%, 1260px); max-width: none; padding: clamp(14px, 3.3vw, 38px); }
.activation-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.activation-heading h1 { font-size: clamp(42px, 5.5vw, 69px); margin: 5px 0 9px; }
.activation-heading a, #device-review-header { text-decoration: none; }
.activation-tools { margin-top: 13px; }
#device-edit-dialog textarea { display: block; width: 100%; min-height: 66px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
#device-edit-summary { overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .device-screen, .login-screen { padding-top: max(65px, env(safe-area-inset-top)); }
}

.site-master-switch { align-self: center; text-decoration: none; }
#site-master-account-dialog .customer-actions { flex-wrap: wrap; }
#site-master-current-account { overflow-wrap: anywhere; }

.retail-section { margin-top: 12px; }
.topbar-brand { display: flex; align-items: center; min-width: 0; gap: 8px; }
.topbar-brand .brand { min-width: 0; }
#toggle-sidebar { flex: 0 0 auto; padding: 7px; align-self: center; }
#toggle-sidebar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.salon-shell.sidebar-collapsed { grid-template-columns: 48px minmax(0, 1fr); max-width: none; }
.sidebar-collapsed .salon-sidebar { padding-inline: 5px; }
#toggle-sidebar { width: 100%; justify-content: flex-start; margin-bottom: 8px; }
.sidebar-collapsed #toggle-sidebar { justify-content: center; }
@media (max-width: 620px) {
  .salon-shell.sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar-collapsed #toggle-sidebar { width: max-content; margin-bottom: 0; }
}
.appointment-day-info { display: grid; gap: 3px; }
#appointment-time { font-variant-numeric: tabular-nums; }
.appointment-table tbody .appointment-past > th, .appointment-table tbody .appointment-past > td { background: #e8e7e3; color: #53534d; }
.appointment-paid { border-radius: 4px; padding: 1px 4px; background: #305c43; color: #fff; white-space: nowrap; font-size: .72rem; }
.danger-button { color: #87362c; }
#individual-transactions { margin-top: 12px; }
.appointment-table { table-layout: fixed; min-width: calc(74px + var(--tech-count, 1) * 82px); }
.appointment-table thead th:not(:first-child) { min-width: 0; overflow-wrap: anywhere; padding-inline: 4px; }
.appointment-table th:first-child { width: 74px; min-width: 74px; }
.activation-pos-link { width: max-content; margin: 10px auto 0; text-decoration: none; }
.activation-tools, #device-view-options { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.activation-tools { justify-content: space-between; }
#device-view-options button[aria-pressed="true"] { background: var(--green); color: #fff; }
.site-master-settings form { max-width: 630px; }
.store-shop-link { width: fit-content; text-decoration: none; }
.team-overview { position: relative; isolation: isolate; min-height: 150px; padding: 18px clamp(12px, 3vw, 26px); border-radius: 14px; overflow: hidden; color: #fff9ee; background: #3b2d24; align-content: end; }
.team-overview img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; }
.team-overview::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #221812eb, #22181272 68%, #22181255); }
.team-overview h2, .team-overview .intro-copy { color: inherit; margin: 0; }
.team-overview #manager-note { color: #fff0dc; }
.customer-database-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.customer-alphabet { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0; }
.customer-alphabet button { min-width: 31px; min-height: 33px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.customer-alphabet button[aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
#owner-customers-status:empty, #database-registration-status:empty { display: none; }
.brand-name { min-width: 0; overflow-wrap: anywhere; align-self: center; }
.topbar-inner > .brand { min-width: 0; }
.topbar-inner .brand-name { line-height: 1.08; }
#owner-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#owner-roster > li:has(.employee-card[open]) { grid-column: 1 / -1; }
#owner-roster .employee-card > summary .employee-avatar { width: 48px; height: 48px; flex: 0 0 48px; }
@media (max-width: 860px) { #owner-roster { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .team-overview { min-height: 136px; gap: 9px; }
  .customer-alphabet button { min-width: 34px; min-height: 36px; }
}
.retail-list { list-style: none; margin: 10px 0 0; padding: 0; }
.retail-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; border-top: 1px solid var(--line); padding-block: 8px; }
.retail-list small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.retail-scan { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
.retail-scan label { margin: 0; }
.retail-scan input { margin-top: 3px; }
#retail-editor textarea, #retail-editor select { display: block; width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.workspace-banner { margin: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px) 0; }
.topbar .brand-logo { width: clamp(53px, 6vw, 76px); height: clamp(53px, 6vw, 76px); }
.login-logo { width: 120px; height: 120px; }
.sidebar-contact img { width: 52px; height: 52px; }
.appointment-heading { min-height: 0; align-items: center; gap: 12px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.appointment-heading h2 { margin: 0 0 5px; }
.appointment-heading .primary { align-self: center; background: var(--green); color: white; box-shadow: none; }
.appointment-heading .primary:hover { background: var(--green); filter: brightness(.93); }
.appointment-day-info { display: flex; gap: 5px 9px; }
.appointment-day-info p { margin: 0; }
#appointment-store-hours:not(:empty) { background: var(--tint); color: var(--accent); border-color: var(--line); font-weight: 650; }
.reminder-button { min-height: 42px; padding: 8px 13px; color: var(--ink); background: var(--tint); border: 1px solid var(--accent); border-radius: 8px; font-weight: 700; }
.reminder-button span { margin-inline-end: 4px; }
.reminder-button:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.turn-actions { white-space: nowrap; }
.turn-actions button { margin: 2px 5px 2px 0; min-height: 36px; }
.store-hours-row:not(.store-hours-head) { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.store-hours-row:has(input[type="checkbox"]:checked) { background: var(--tint); }
.site-master-settings { margin-top: 24px; position: relative; }
.site-master-settings::before { position: absolute; inset: -13px 0 auto; border-top: 1px solid var(--line); content: ''; }
.owner-search-mount .owner-search { margin-top: 12px; }
.customer-directory-filters { padding: 0 12px 8px; margin-block: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.customer-directory-filters .owner-search label { margin-top: 0; }
.turn-reorder-row { cursor: grab; }
.turn-reorder-row:active { cursor: grabbing; }
.employee-calendar-link { text-decoration: none; }
.employee-calendar-site #salon-shell { display: block; }
.employee-calendar-site #salon-sidebar, .employee-calendar-site .employee-calendar-link { display: none; }
.employee-calendar-site .appointment-heading > .management-actions { display: none; }
.report-intro { margin-bottom: 16px; }
.report-intro p { margin-bottom: 0; color: var(--muted); }
.report-actions { margin-top: 16px; gap: 8px; flex-wrap: wrap; }
.report-actions a { text-decoration: none; }
.transaction-heading { display: flex; flex-direction: column; gap: 12px; }
.transaction-heading h2 { margin: 0; }
.transaction-heading .transaction-customer-details { gap: 7px 12px; }
.transaction-customer-details > p:not(.message) { padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.transaction-menu { min-width: 0; padding: clamp(12px, 2vw, 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.transaction-menu > h2 { margin: 0 0 14px; }
.transaction-grid .transaction-summary { padding: clamp(14px, 2vw, 24px); border-top: 4px solid var(--accent); }
.transaction-grid .transaction-summary h2 { margin-top: 0; }
.activation-heading { min-height: 220px; padding: clamp(19px, 4vw, 40px); color: #fff9eb; border-radius: 18px; background: linear-gradient(115deg, #281b15, #59402e 72%, #745a41); }
.activation-heading h1, .activation-heading .eyebrow { color: inherit; }
.activation-heading #activation-signed-in { margin: 0; }
.retail-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.activation-heading .management-actions .owner-button { background: #fff9ee; color: #33271d; border: 1px solid #ffe3bf; font-size: .96rem; font-weight: 700; padding: 10px 14px; }
.activation-heading .management-actions .owner-button:hover { background: #f1dfc1; }
.appointment-contact-fields { column-gap: 13px; }
.appointment-service-fields { margin: 12px 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.appointment-service-fields legend { padding: 0 6px; font-weight: 650; }
.appointment-selected-services { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.appointment-selected-services .owner-button { min-height: 34px; }
.appointment-checkin-button { color: var(--green); border-color: var(--green); font-weight: 700; }
.checkout-retail { margin-top: 16px; }
.checkout-product { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.checkout-product strong { flex: 1 1 130px; }
.checkout-product input { width: 80px; }
.turn-drag-handle { display: inline-flex; color: var(--accent); cursor: grab; padding: 7px; margin-inline-end: 5px; }
.turn-drag-handle:active { cursor: grabbing; }
#pos-gift-codes { overflow-wrap: anywhere; }
#retail-image-preview { display: block; width: 112px; height: 112px; margin: 8px 0; }
.salon-print-sheet { display: none; }
@media print {
  body.printing-salon-summary > :not(.salon-print-sheet) { display: none !important; }
  body.printing-salon-summary .salon-print-sheet { display: block; margin: 0; color: #181818; white-space: pre-wrap; overflow-wrap: anywhere; font: 12pt/1.45 "Segoe UI", sans-serif; }
  body.printing-salon-summary .salon-print-receipt { max-width: 68mm; font: 10pt/1.35 monospace; }
}
@media (max-width: 560px) {
  .appointment-heading .management-actions { width: 100%; }
  .appointment-heading .management-actions button { flex: 1; }
  .activation-heading { min-height: 205px; }
}
.activation-tools { margin-top: 18px; gap: 8px 16px; }
.activation-tools h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
#device-review-list { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.activation-table { width: 100%; min-width: 835px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .91rem; }
.activation-table th, .activation-table td { padding: 10px 12px; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.activation-table thead th { background: var(--tint); color: var(--text); font-weight: 720; }
.activation-table thead th:nth-child(1) { width: 23%; }
.activation-table thead th:nth-child(2) { width: 15%; }
.activation-table thead th:nth-child(3) { width: 17%; }
.activation-table thead th:nth-child(4) { width: 12%; }
.activation-table thead th:nth-child(5) { width: 16%; }
.activation-table thead th:nth-child(6) { width: 17%; }
.activation-table tbody tr > * { border-top: 1px solid var(--line); }
.activation-table tbody + tbody tr:first-child > * { border-top-width: 2px; }
.activation-table th[scope="rowgroup"] { vertical-align: top; background: var(--paper); color: var(--text); }
.activation-device-row td { cursor: pointer; }
.activation-device-row:hover td, .activation-device-row:focus-within td { background: var(--tint); }
.activation-table small { display: block; margin-top: 3px; color: var(--muted); }
.activation-table .activation-expired { color: #9b341e; font-weight: 700; }
.activation-salon-name { font-size: 1rem; }
button.activation-salon-name { border: 0; padding: 0; background: transparent; color: var(--accent); font-family: inherit; font-weight: 750; text-align: start; text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.deleted-salons-section { margin-top: 22px; }
.deleted-salons-section > summary span:not(:empty) { margin-inline-start: 6px; padding: 3px 8px; background: var(--tint); border-radius: 999px; font-size: .78rem; }
.deleted-salons-list { list-style: none; padding: 0; margin: 0; }
.deleted-salons-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 10px 0; gap: 8px 14px; }
.deleted-salons-list li + li { border-top: 1px solid var(--line); }
.deleted-salons-list small { display: block; margin-top: 3px; color: var(--muted); }
.activation-table .activation-salon-address { margin-top: 6px; line-height: 1.4; }
.activation-table .activation-name-match { color: var(--accent); font-weight: 700; margin-top: 6px; }
.activation-device-link { border: 0; padding: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 700; text-align: start; text-decoration: underline; text-underline-offset: .16em; }
.activation-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.activation-row-actions .owner-button { padding: 5px 8px; min-height: 33px; font-size: .82rem; }
#device-review-list[data-view="cards"] { background: transparent; border-color: transparent; }
#device-review-list[data-view="cards"] .activation-table { border-spacing: 0 7px; }
#device-review-list[data-view="cards"] .activation-table tbody td { background: var(--surface); }
#device-review-list[data-view="cards"] .activation-device-row:hover td { background: var(--tint); }
.device-screen .device-card { width: min(100%, 680px); }
#device-gate { padding: clamp(16px, 4vw, 52px); background: radial-gradient(ellipse at 0% 0%, #fff8ed, #e8dccc 74%); }
.device-approval-layout { display: grid; grid-template-columns: minmax(235px, .76fr) minmax(0, 1.5fr); width: min(100%, 1080px); min-width: 0; border-radius: 24px; background: #fffbf2; box-shadow: 0 24px 74px #56392c30; overflow: hidden; }
.device-approval-intro { min-height: 340px; min-width: 0; padding: clamp(22px, 4.4vw, 48px); color: #fff7e8; background: radial-gradient(ellipse at 6% 12%, #7b5b40, transparent 56%), linear-gradient(155deg, #533e2d, #291810 78%); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.device-approval-intro h1 { color: inherit; font-size: clamp(38px, 5.3vw, 62px); margin: 0 0 8px; overflow-wrap: anywhere; }
.device-approval-intro p { font-weight: 650; margin: 0; }
.device-approval-layout .device-card { width: 100%; margin: 0; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.device-approval-layout .login-purpose { margin-top: 0; padding-top: 0; border: 0; text-align: left; color: var(--ink); font-size: 1.18rem; font-weight: 730; }
.device-request-choices legend, .device-request-fields legend { font-weight: 700; }
#device-type { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
#device-type-status:empty { display: none; }
#device-request-form > .primary { margin-top: 12px; }
.device-request-choices, .device-request-fields { margin: 12px 0; padding: 8px 12px 12px; border: 1px solid var(--line); border-radius: 8px; }
.device-address-fields { display: grid; grid-template-columns: minmax(90px,1fr) minmax(0,2fr) minmax(105px,1fr); gap: 8px 12px; }
.device-request-fields .sms-check { margin-top: 12px; }
#device-salon-code, .salon-device-code { font-family: ui-monospace, monospace; letter-spacing: .06em; }
.salon-device-code { display: block; width: fit-content; max-width: 100%; padding: 10px 12px; margin-top: 10px; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; font-weight: 700; user-select: all; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .device-address-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .device-request-fields { padding-inline: 9px; }
}
@media (max-width: 720px) {
  #device-gate { padding-top: 52px; }
  .device-approval-layout { grid-template-columns: minmax(0, 1fr); border-radius: 17px; }
  .device-approval-intro { min-height: 158px; padding: 15px 22px; }
  .device-approval-intro h1 { font-size: clamp(31px, 7.8vw, 49px); }
}
@media (max-width: 400px) {
}

.address-lookup { margin-block: 10px; }
.address-lookup-hint, .address-lookup-status { color: var(--muted); font-size: .82rem; margin: 4px 0; }
.address-lookup-status:empty { display: none; }
.deleted-salon-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 16px; }
.deleted-salon-details dt { color: var(--muted); }
.deleted-salon-details dd { margin: 0; overflow-wrap: anywhere; }
.salon-legal { padding: 12px clamp(16px, 4vw, 38px); text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.salon-legal p { margin: 4px 0; }

.device-approval-layout .device-request-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.device-request-choices button { min-height: 45px; padding: 8px 12px; line-height: 1.25; }
.device-request-choices button[aria-pressed="true"] { background: var(--tint); border-color: var(--accent); color: var(--accent); font-weight: 750; }
.address-search-fields { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; }
.address-lookup .owner-button { margin-top: 5px; }
.address-matches { list-style: none; padding: 0; margin: 6px 0 0; }
.address-matches button { width: 100%; text-align: left; }
@media (max-width: 480px) {
  .device-approval-layout .device-request-choices, .address-search-fields { grid-template-columns: 1fr; }
}

#device-gate, #activation-entry { background: radial-gradient(ellipse at 20% 15%, #80664e, transparent 60%), #35261c; }

.turns-setup, .turns-board { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.turns-setup { padding: clamp(14px, 3vw, 22px); border-top: 3px solid var(--accent); }
.turns-setup-heading, .turns-setup-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.turns-setup-heading h3, .turns-board-title h3 { margin: 0; color: var(--ink); font-size: 1.1rem; }
.turns-setup-heading p { margin: 4px 0 0; color: var(--muted); }
.turns-setup-heading .turns-progress { padding: 6px 10px; border-radius: 999px; color: var(--green); background: var(--tint); font-size: .82rem; font-weight: 700; }
.turns-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr)); gap: 8px; margin-block: 14px; }
.turns-pick { min-height: 48px; display: flex; gap: 9px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); text-align: left; font-weight: 650; overflow-wrap: anywhere; }
.turns-pick:hover, .turns-pick[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); }
.turns-pick-rank, .turns-position { min-width: 24px; min-height: 24px; display: inline-grid; place-items: center; padding: 2px 4px; border-radius: 7px; font-size: .78rem; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--green); background: var(--tint); }
.turns-pick-rank:empty { background: transparent; border: 1px dashed var(--line); }
.turns-pick[aria-pressed="true"] .turns-pick-rank { background: var(--green); color: white; }
.turns-setup-actions { justify-content: flex-end; }
.turns-setup-actions button, #turns-set-again { min-height: 44px; }
.turns-board-title { margin: 18px 0 8px; }
.turns-board .owner-records-table { width: 100%; }
.turns-board td:first-child { width: 1%; }
.turns-board .turn-count { font-weight: 750; font-variant-numeric: tabular-nums; }
.turns-board .turn-actions { white-space: normal; }
.turns-control-group { display: flex; gap: 4px; }
.turns-board .turn-actions button { min-height: 44px; min-width: 44px; margin: 0; padding: 6px; font-weight: 700; }
.turns-board .turn-add { background: var(--tint); color: var(--green); }
.turns-board .turn-actions button:disabled { opacity: .45; }
.turns-board .turn-reorder-row.turn-drop-target { box-shadow: inset 0 2px var(--accent); background: var(--tint); }
@media (max-width: 560px) {
  .turns-board .owner-records-table th, .turns-board .owner-records-table td { padding-inline: 5px; }
  .turns-board .turn-drag-handle { padding-inline: 1px; margin-inline-end: 2px; }
}
@media (max-width: 420px) {
  .turns-control-group { flex-direction: column; }
}

.turns-board-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.turns-board .turn-tech-name { color: var(--ink); font-size: clamp(.94rem, 2vw, 1.14rem); font-weight: 750; line-height: 1.35; }
.turns-board .turn-number { text-align: center; }
.turns-board .turns-control-group { justify-content: center; }
@media (max-width: 650px) {
  .turns-board .turn-adjust-group { display: grid; grid-template-columns: repeat(2, max-content); }
}

.owner-main:has(.management-strip) { padding-block-start: clamp(9px, 1.8vw, 16px); }
.management-strip { min-height: 0; padding: 12px 14px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.management-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.management-identity h2, .management-strip .intro-copy { margin: 0; }
.management-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; background: var(--tint); color: var(--accent); }
.catalog-category, .management-summary { display: flex; align-items: center; gap: 9px; }
.catalog-category svg, .management-summary svg { flex: none; color: var(--accent); }
.catalog-category small { margin-inline-start: auto; font-weight: 500; color: var(--muted); }
#owner-services-status:empty, #roster-message:empty, #retail-message:empty { display: none; }
#owner-services .owner-search-mount .owner-search { margin-block: 4px 10px; }
#owner-roster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
#owner-roster .employee-card { margin: 0; }
#owner-roster .employee-card > summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(86px, auto) 12px; align-items: center; gap: 8px 12px; }
#owner-roster .employee-identity strong { display: block; margin: 0 0 2px; color: var(--ink); font-size: 1.02rem; overflow-wrap: anywhere; }
.employee-status { text-align: end; }
.employee-notices { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px 5px; }
.employee-notices .employee-setup { white-space: normal; margin: 3px 0 0; }
.retail-placeholder { display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.retail-placeholder svg { width: 24px; height: 24px; }
.icon-label { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
#device-review-title { display: flex; align-items: center; gap: 12px; }
#device-review-title svg { flex: none; width: clamp(25px, 5vw, 42px); height: auto; }
.activation-table .device-icon-button, .activation-table .activation-icon-action { display: inline-grid; place-items: center; min-width: 41px; min-height: 38px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); background: var(--tint); }
.activation-table .device-icon-button:hover, .activation-table .activation-icon-action:hover { border-color: var(--accent); }
.activation-table .activation-icon-action.danger-button { color: #8e3331; background: var(--surface); }
.activation-table .activation-label { display: inline-flex; gap: 5px; align-items: center; }
.activation-table .activation-label svg { width: 15px; height: 15px; }
.activation-table .activation-row-actions { gap: 4px; }
.activation-table .activation-code { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; margin-top: 4px; padding: 4px 6px; color: var(--accent); font: 650 .73rem ui-monospace, monospace; }
.activation-table .activation-code svg { width: 14px; height: 14px; }
@media (max-width: 550px) {
  #owner-roster .employee-card > summary { grid-template-columns: 40px minmax(0, 1fr) 80px 10px; gap: 6px; }
  #owner-roster .employee-card > summary .employee-avatar { width: 40px; height: 40px; }
  .employee-notices { justify-content: flex-end; }
}

.salon-nav { gap: 8px; }
.salon-nav a { min-height: 38px; gap: 7px; padding: 5px 7px; font-size: .83rem; }
.salon-nav svg, #toggle-sidebar svg { width: 15px; height: 15px; }
.sidebar-collapsed .salon-sidebar .nav-label, .sidebar-collapsed .sidebar-contact { display: none; }
.sidebar-collapsed .salon-nav { gap: 8px; }
.sidebar-collapsed .salon-nav .nav-group { display: grid; gap: 3px; }
.sidebar-collapsed .salon-nav .nav-group[hidden] { display: none; }
.sidebar-collapsed .salon-nav a { justify-content: center; width: 36px; min-height: 35px; padding: 0; }
.sidebar-collapsed .nav-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 620px) {
  .sidebar-collapsed .salon-nav { display: inline-flex; gap: 3px; }
  .sidebar-collapsed .salon-nav .nav-group { display: flex; }
  .sidebar-collapsed #toggle-sidebar { display: inline-flex; vertical-align: top; }
}
button.activation-salon-name { text-decoration: none; }
button.activation-salon-name:hover { color: var(--ink); }
.activation-table th, .activation-table td { padding: 5px 8px; line-height: 1.23; }
.activation-salon-identity { display: flex; align-items: center; gap: 7px; min-width: 0; }
.activation-salon-logo { position: relative; display: inline-grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; overflow: hidden; border-radius: 6px; background: var(--tint); color: var(--accent); font-size: .67rem; font-weight: 750; }
.activation-salon-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.activation-table small.activation-contact-line { display: inline; margin-inline-end: 6px; }
.activation-table small.activation-salon-address { margin-top: 2px; line-height: 1.2; }
.activation-table .activation-code { min-height: 24px; margin-top: 2px; padding: 1px 4px; }
.activation-table .device-icon-button, .activation-table .activation-icon-action { min-height: 32px; min-width: 33px; padding: 4px; }
.activation-table .activation-icon-action svg, .activation-table .device-icon-button svg { width: 16px; height: 16px; }
.booking-link-action { display: flex; align-items: center; gap: 8px; margin-block: 10px; color: var(--muted); font-size: .88rem; }
@media (any-pointer: coarse) { .activation-table .activation-icon-action, .activation-table .device-icon-button, .sidebar-collapsed .salon-nav a { min-height: 40px; } }

.report-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.report-presets button { min-height: 36px; }
.report-comparison { display: inline-block; padding: 7px 10px; margin: 4px 0; border-radius: 8px; color: var(--green); background: var(--tint); font-size: .9rem; }

.salon-welcome { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 18px; background: #223a33ef; transition: opacity .3s; }
.salon-welcome-card { color: #fffaec; background: #29483c; border: 1px solid #d4bc84; border-radius: 24px; padding: clamp(22px, 6vw, 55px); max-width: 580px; text-align: center; box-shadow: 0 25px 55px #182e25b3; }
.salon-welcome h1 { color: inherit; margin: 5px 0 16px; }
.salon-welcome .eyebrow { color: #ecd4a3; }
.salon-welcome p { margin-block: 5px; }
.salon-welcome .owner-button { margin-top: 14px; }
.salon-welcome.welcome-fade { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .salon-welcome { transition: none; } }
#salon-turns .turns-board, #owner-customers .customer-directory-filters, #owner-customers-table-region,
#device-activation-page .activation-tools, #device-activation-page #device-review-list { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
#device-activation-page .activation-tools { padding: 9px 13px; margin-bottom: 7px; }
#device-activation-page #device-review-list { overflow: auto; }
#owner-customers-table-region { overflow: auto; }
#activation-salon-dialog { max-width: min(720px, calc(100% - 24px)); width: 100%; padding: clamp(14px, 3vw, 24px); }
.activation-editor-header { justify-content: flex-start; align-items: center; }
.activation-editor-header h2, .activation-editor-header p { margin: 0; }
.activation-editor-header p { color: var(--muted); margin-top: 3px; }
.activation-editor-header .activation-salon-logo { width: 47px; height: 47px; }
#activation-salon-form .device-request-fields { margin: 8px 0 12px; padding: 10px; background: var(--paper); }
#activation-salon-form .customer-fields, #activation-salon-form .device-address-fields { gap: 8px 12px; }
#activation-salon-form .customer-actions { border-top: 1px solid var(--line); padding-top: 10px; }
.activation-heading .activation-back { background: #fffaed; color: #3d2e1f; border-radius: 9px; }
.activation-heading .activation-signout { background: #4f3828; color: white; border-color: #edc791; border-radius: 9px; }
.activation-heading .activation-signout:hover { color: #302318; }
.settings-group:not(.employee-card) > summary { position: relative; padding-inline-end: 5.4rem; }
.settings-group:not(.employee-card) > summary::after { content: 'Expand ›'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--accent); font: 650 .76rem/1.2 "Segoe UI", sans-serif; }
.settings-group[open]:not(.employee-card) > summary::after { content: 'Collapse −'; }
.settings-group[open]:not(.employee-card) > summary { background: var(--tint); border-radius: 7px; }
#owner-roster .employee-card[open] > summary::after { content: '−'; transform: none; }
.owner-button:focus-visible, .settings-group > summary:focus-visible { outline-offset: 2px; }

.calendar-policy-fields { margin: 10px 0; }
.calendar-policy-fields .intro-copy { margin: 4px 0; font-size: .84rem; }
.appointment-access-label { border-radius: 999px; background: var(--tint); color: var(--accent); padding: 3px 8px; font-size: .82rem; }

.deploy-links { margin: 10px 0; display: grid; gap: 6px; }
.deploy-links > div { display: flex; gap: 8px; flex-wrap: wrap; }
.deploy-links a { text-decoration: none; }
#deploy-websites-dialog { width: min(575px, calc(100% - 24px)); }

.website-host { margin: 3px 0; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.calendar-access-switch { display: grid; grid-template-columns: 44px 1fr; gap: 9px; align-items: center; position: relative; cursor: pointer; }
.calendar-access-switch input[type="checkbox"] { position: absolute; width: 44px; height: 25px; opacity: 0; margin: 0; }
.calendar-switch-track { position: relative; width: 44px; height: 24px; border: 1px solid var(--line); border-radius: 999px; background: #d8ddd7; }
.calendar-switch-track::before { content: ''; width: 18px; height: 18px; background: white; border-radius: 50%; position: absolute; inset: 2px auto auto 2px; box-shadow: 0 1px 2px #18332b44; }
.calendar-access-switch input:checked + .calendar-switch-track { background: var(--green); }
.calendar-access-switch input:checked + .calendar-switch-track::before { left: 22px; }
.calendar-access-switch input:focus-visible + .calendar-switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
