:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #657069;
  --line: #dfe6e1;
  --panel: #ffffff;
  --soft: #f4f7f4;
  --mint: #d9f4e3;
  --green: #2f8f58;
  --deep: #1f5f49;
  --bg: #f5f7f4;
  --bg-alt: #edf3ef;
  --coral: #e67a66;
  --gold: #d8a538;
  --blue: #3f78b5;
  --shadow: 0 16px 40px rgba(27, 48, 39, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 143, 88, 0.24);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, #f7f9f7 100%);
}

.main,
.content,
.sidebar {
  min-width: 0;
}

.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(217, 244, 227, 0.9), transparent 34%),
    linear-gradient(135deg, #f7f8f5 0%, #edf5ee 100%);
}

.login-card {
  width: min(680px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 18px 0 10px;
  max-width: 620px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: 0;
}

.notice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbf8f1;
}

.salon-lp {
  min-height: 100vh;
  background: #fbfaf6;
}

.salon-lp-nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.salon-lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.salon-lp-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #111816;
  color: #fff;
  font-weight: 900;
}

.salon-lp-brand strong {
  font-size: 24px;
}

.salon-lp-nav nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.salon-lp-nav a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.salon-lp-hero {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  padding: 64px max(24px, calc((100vw - 1160px) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(38, 18, 16, 0.92) 0%, rgba(52, 24, 21, 0.72) 38%, rgba(52, 24, 21, 0.18) 72%),
    url("./images/salon-reserve-hero-actress-style.png");
  background-size: cover;
  background-position: center;
}

.salon-lp-copy {
  max-width: 760px;
}

.salon-lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffd9ae;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.salon-lp-kicker::before {
  content: "";
  width: 54px;
  height: 3px;
  background: #31e0b5;
}

.salon-lp h1 {
  margin: 24px 0 22px;
  max-width: 740px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.08;
  letter-spacing: 0;
}

.salon-lp h2 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.18;
}

.salon-lp p {
  color: inherit;
  font-size: 20px;
  line-height: 1.9;
}

.salon-lp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.salon-lp-actions .btn,
.salon-lp-price .btn {
  min-height: 56px;
  padding: 16px 24px;
  font-size: 17px;
}

.salon-lp-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px;
}

.salon-lp-section > p,
.salon-lp-section p {
  color: var(--muted);
}

.salon-lp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.salon-lp-grid article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.salon-lp-grid strong,
.salon-lp-grid span {
  display: block;
}

.salon-lp-grid strong {
  font-size: 20px;
  margin-bottom: 10px;
}

.salon-lp-grid span {
  color: var(--muted);
  line-height: 1.7;
}

.salon-lp-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.salon-lp-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.salon-lp-flow span {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #17201c;
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.sidebar {
  background: #16231d;
  color: #fff;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--deep);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 16px;
}

.brand span {
  color: #a8bbb1;
  font-size: 12px;
}

.tenant-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 9px;
  margin-bottom: 10px;
}

.tenant-card label,
.field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.tenant-card label {
  color: #a8bbb1;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.danger-field {
  border-color: #d9534f;
  color: #8d201d;
  background: #fff4f2;
}

.tenant-card select {
  background: #20332a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.fixed-field .fixed-tenant-name,
.tenant-card .fixed-tenant-name,
.tenant-card .fixed-role-name {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #20332a;
  color: #fff;
  font-weight: 800;
  padding: 8px 10px;
  font-size: 14px;
}

.fixed-field .fixed-tenant-name {
  border-color: var(--line);
  background: #f7fbf8;
  color: var(--ink);
}

.fixed-tenant-note {
  color: #a8bbb1;
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 4px;
}

.nav-heading {
  color: #8fa99b;
  font-size: 11px;
  font-weight: 900;
  margin: 16px 8px 6px;
  letter-spacing: 0;
}

.fixed-field .fixed-tenant-note {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  color: #c9d8d0;
  padding: 9px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.nav-link {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  color: #c9d8d0;
  padding: 9px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: #284437;
  border-color: #3a604b;
  color: #fff;
}

.nav-link span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(217, 244, 227, 0.25);
  border-radius: 5px;
  color: #b9d2c4;
  font-size: 14px;
}

.nav-link.active span {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--deep);
}

.nav button:hover,
.nav button:focus-visible {
  background: #20382c;
  border-color: rgba(217, 244, 227, 0.18);
  color: #fff;
}

.nav button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(217, 244, 227, 0.25);
  border-radius: 5px;
  color: #b9d2c4;
  font-size: 14px;
}

.nav button.active {
  background: #284437;
  border-color: #3a604b;
  color: #fff;
}

.nav button.active span {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--deep);
}

.main {
  min-width: 0;
}

.network-banner {
  position: sticky;
  top: 0;
  z-index: 7;
  padding: 8px 28px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.network-banner.online {
  background: #e8f6ed;
  color: #246d47;
}

.network-banner.offline {
  background: #fff2db;
  color: #966210;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 34px;
  z-index: 5;
  border-bottom: 1px solid var(--line);
}

.calendar-only-main .topbar {
  top: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}

.calendar-only-main .topbar p {
  display: none;
}

.calendar-only-main .content {
  padding-top: 16px;
}

.topbar h1 {
  font-size: 24px;
  margin: 0 0 4px;
  letter-spacing: 0;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn.primary {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.btn.warn {
  background: #fff4ed;
  border-color: #ffd7bd;
  color: #964315;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
}

.content {
  padding: 26px 28px 44px;
}

.grid {
  display: grid;
  gap: 16px;
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(20, 30, 25, 0.03);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: #cfe3d6;
  box-shadow: 0 8px 20px rgba(27, 48, 39, 0.05);
}

.card h2,
.card h3 {
  margin: 0 0 12px;
  letter-spacing: 0;
}

.card h2 {
  font-size: 18px;
}

.card h3 {
  font-size: 15px;
}

.cloud-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cloud-strip strong,
.cloud-strip span {
  display: block;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-command-center {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.dashboard-footer-summary {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.dashboard-footer-meta,
.dashboard-footer-shifts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-footer-meta strong,
.dashboard-footer-shifts b {
  color: var(--deep);
}

.dashboard-footer-shifts span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.dashboard-footer-shifts em {
  font-style: normal;
  font-weight: 800;
}

.slots-available {
  color: var(--green);
}

.slots-full {
  color: #a64d32;
}

.dashboard-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dashboard-section-heading h2 {
  margin: 2px 0 0;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-tile {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  border: 0;
  border-radius: 10px;
  padding: 18px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.dashboard-tile:hover,
.dashboard-tile:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.dashboard-tile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.dashboard-tile-icon svg {
  width: 30px;
  height: 30px;
}

.dashboard-tile strong,
.dashboard-tile small {
  display: block;
}

.dashboard-tile > span:nth-child(2) {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.dashboard-tile strong {
  font-size: 23px;
  line-height: 1.1;
}

.dashboard-tile small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.dashboard-tile-arrow {
  font-size: 28px;
  font-weight: 300;
}

.dashboard-tile.is-disabled {
  cursor: not-allowed;
  opacity: 0.86;
  filter: saturate(0.65);
}

.dashboard-tile.is-disabled:hover,
.dashboard-tile.is-disabled:focus-visible {
  transform: none;
  filter: saturate(0.65);
}


.tile-unavailable {
  margin-top: 6px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.96);
}

.reception-board {
  margin-bottom: 16px;
}

.reception-board-only {
  min-height: 360px;
}

.reception-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.reception-list-panel {
  min-width: 0;
}

.reception-detail-hint {
  align-self: start;
  display: grid;
  gap: 10px;
  min-height: 220px;
  background: #f7faf7;
}

.reception-detail-hint h2,
.reception-detail-hint p {
  margin: 0;
}

.reception-detail-hint .dashboard-tile-icon {
  background: #278d9b;
  color: #fff;
}

.chart-entry-card {
  border-color: #9fc9b3;
  background: #fbfefc;
}

.chart-entry-card h3 {
  color: var(--deep);
}

.chart-entry-modal {
  width: min(900px, 100%);
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #eef1e8;
  border: 2px solid #7e8e80;
  border-radius: 2px;
  box-shadow: 8px 8px 0 rgba(42, 48, 41, 0.42);
}

.chart-entry-modal .panel-heading {
  padding: 6px 10px 8px;
  border-bottom: 3px double #7e8e80;
}

.chart-entry-modal .panel-heading h2 {
  margin: 2px 0;
  font-size: 20px;
}

.chart-entry-modal .panel-heading .eyebrow::after {
  content: "　施術記録入力";
  color: #45564a;
  font-size: 15px;
}

.chart-entry-modal .panel-heading .muted,
.chart-entry-modal .patient-banner {
  display: none;
}

.chart-entry-modal .form-grid {
  gap: 0;
  padding: 0;
  border: 1px solid #aeb9ac;
  background: #f8f9f1;
}

.chart-entry-modal > .form-grid {
  border-bottom: 1px solid #cfc7b8;
  padding-bottom: 14px;
}

.chart-entry-modal .field {
  min-width: 0;
  padding: 5px 7px;
  background: transparent;
  border-bottom: 1px solid #d0d7ca;
}

.chart-entry-modal .field label {
  margin-bottom: 2px;
  color: #45564a;
  font-size: 11px;
}

.chart-entry-modal input,
.chart-entry-modal select,
.chart-entry-modal textarea {
  border: 1px solid #aab7aa;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 1px 1px 0 rgba(62, 74, 65, 0.08);
  font-size: 14px;
}

.chart-entry-modal input,
.chart-entry-modal select {
  min-height: 34px;
  padding: 6px 8px;
}

.chart-entry-modal textarea {
  min-height: 90px;
  padding: 7px 8px;
}

.chart-first-row {
  padding: 14px 0;
  border-bottom: 1px solid #cfc7b8;
}

.chart-first-row .field:nth-child(2) {
  grid-column: span 2;
}

.chart-picker-button {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #aab7aa;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.chart-picker-button::after {
  content: "候補を表示";
  float: right;
  color: var(--muted);
  font-size: 12px;
}

.chart-procedure-field {
  position: relative;
}

.chart-procedure-popup {
  position: absolute;
  z-index: 5;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #c5d7cb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(32, 57, 44, 0.16);
}

.chart-procedure-popup[hidden] {
  display: none;
}

.chart-procedure-popup button {
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: #f1f7f3;
  color: var(--deep);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.chart-procedure-popup button:hover,
.chart-procedure-popup button:focus-visible {
  background: #dceee3;
}

.chart-candidate-field {
  position: relative;
}

.chart-candidate-popup {
  position: absolute;
  z-index: 6;
  top: calc(100% - 2px);
  left: 7px;
  right: 7px;
  display: grid;
  gap: 2px;
  max-height: 180px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #8e9f90;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(42, 48, 41, 0.24);
}

.chart-candidate-popup[hidden] {
  display: none;
}

.chart-candidate-popup button {
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid #d5ddd1;
  background: #f4f7f0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.chart-candidate-popup button:hover,
.chart-candidate-popup button:focus-visible {
  background: #dceee3;
}

.chart-entry-modal .field-help {
  margin-top: 4px;
}

.chart-entry-modal .patient-banner {
  background: #f0f7f3;
  border-color: #b9d9c5;
  display: none;
}

.patient-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.patient-banner span {
  color: var(--muted);
  font-size: 12px;
}

.chart-history {
  margin-top: 10px;
  border: 1px solid #aeb9ac;
  padding: 10px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  background: #f8f9f1;
}

.chart-history h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.chart-history div {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 13px;
}

.chart-history div:first-of-type {
  border-top: 0;
}

.chart-history strong {
  color: var(--deep);
  font-size: 12px;
}

.chart-history span {
  color: var(--muted);
  line-height: 1.6;
}

.chart-entry-actions {
  justify-content: flex-end;
  margin-top: 0;
  padding: 8px 10px;
  border: 1px solid #aeb9ac;
  background: #dfe6da;
}

.chart-entry-actions .btn {
  min-width: 110px;
  border: 1px solid #7e8e80;
  border-radius: 2px;
  background: #f8f9f1;
}

.ys-code-guide {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.ys-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-top: 8px;
}

.ys-code-list span {
  color: var(--muted);
  font-size: 12px;
}

.ys-code-list b {
  color: var(--deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.reception-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.reception-board-heading h2 {
  margin: 2px 0 0;
}

.reception-list {
  display: grid;
  gap: 6px;
}

.today-reception-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.today-reception-head,
.today-reception-row {
  display: grid;
  grid-template-columns: 54px 100px minmax(140px, 1.2fr) minmax(110px, 1fr) minmax(140px, 1.2fr) 150px;
  align-items: center;
  gap: 10px;
  min-width: 640px;
  padding: 10px 12px;
}

.today-reception-head {
  background: #eef3ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.today-reception-row {
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.today-reception-row:first-of-type {
  border-top: 0;
}

.today-reception-row > span:not(.pill) {
  color: var(--muted);
  font-size: 13px;
}

.reservation-select {
  display: flex;
  justify-content: center;
}

.reservation-select input {
  width: 18px;
  height: 18px;
}

.reservation-status-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reception-row {
  display: grid;
  grid-template-columns: 80px minmax(100px, 0.8fr) minmax(140px, 1fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #f7faf7;
}

.reception-row > span:not(.pill) {
  color: var(--muted);
  font-size: 13px;
}

.tile-blue { background: linear-gradient(155deg, #3f8eb8 0%, #2f6f93 100%); }
.tile-purple { background: linear-gradient(155deg, #6a7fa4 0%, #4f6489 100%); }
.tile-cyan { background: linear-gradient(155deg, #34969d 0%, #2a7d83 100%); }
.tile-green { background: linear-gradient(155deg, #4c9661 0%, #3b764c 100%); }
.tile-pink { background: linear-gradient(155deg, #c2738f 0%, #9d566f 100%); }
.tile-gray { background: linear-gradient(155deg, #788188 0%, #5f686f 100%); }
.tile-amber { background: linear-gradient(155deg, #a98352 0%, #876741 100%); }

.function-key-bar {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 12px 0 16px;
  padding: 6px;
  border: 1px solid #b9c5bd;
  background: #e9eeea;
  overflow-x: auto;
}

.settings-entry-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.settings-entry-card h2 {
  margin: 0 0 4px;
}

.settings-entry-card .dashboard-tile-icon {
  background: #65706c;
  color: #fff;
}

.document-hub-card {
  display: grid;
  gap: 14px;
}

.document-links,
.document-status-list {
  display: grid;
  gap: 8px;
}

.document-link,
.document-status-list div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #f7faf7;
}

.document-link {
  grid-template-columns: 1fr auto;
}

.document-link span,
.document-status-list span {
  color: var(--muted);
  font-size: 12px;
}

.document-link b {
  grid-row: span 2;
  align-self: center;
  color: var(--green);
  font-size: 12px;
}

.document-notice {
  margin-top: 16px;
}

.customer-name-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--deep);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.inline-chart-action {
  margin-top: 6px;
}

.function-key-bar button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  border: 1px solid #c7d0ca;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.function-key-bar a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  border: 1px solid #c7d0ca;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.function-key-label {
  align-self: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 0 6px;
  white-space: nowrap;
}

kbd {
  border: 1px solid #a9b5ad;
  border-radius: 3px;
  background: #eef2ef;
  color: var(--deep);
  font-size: 10px;
  padding: 2px 5px;
}

.metric .value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
}

.metric small,
.muted {
  color: var(--muted);
}

.pill {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  background: var(--soft);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill.ok {
  background: #e1f6e9;
  color: #237748;
}

.pill.alert {
  background: #fff2db;
  color: #966210;
}

.pill.danger {
  background: #ffe9e6;
  color: #a64336;
}

.bar {
  height: 8px;
.slot-open-btn:hover,
.slot-open-btn:focus-visible {
  border-color: #2f8f58;
  background: #e9f6ef;
}
  border-radius: 999px;
  background: #e9eee9;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.photo-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--soft);
  display: grid;
  gap: 5px;
  min-width: 0;
}

.photo-tile img,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: #e8eee9;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.photo-tile strong,
.photo-tile span,
.photo-tile small {
  overflow-wrap: anywhere;
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 190px;
  padding-top: 12px;
}

.chart div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.chart span {
  width: 100%;
  min-height: 22px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #3f9e6a, #98d4aa);
}

.compact-chart {
  height: 150px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
}

.list {
  display: grid;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--soft);
  border-radius: 8px;
}

.list-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.settings-group {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.settings-group h3 {
  margin: 0;
  font-size: 16px;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0 12px;
}

.weekday-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.weekday-option {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.weekday-option input {
  appearance: auto;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--green);
}

.weekday-option {
  cursor: pointer;
  user-select: none;
}

.weekday-checkbox:checked + span {
  color: var(--deep);
  font-weight: 800;
}

.three-month-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.booking-rules-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.booking-rules-summary {
  display: grid;
  gap: 12px;
}

.settings-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.settings-summary-list div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f7faf7;
}

.settings-summary-list span {
  color: var(--muted);
  font-size: 13px;
}

.three-month-calendar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.holiday-month {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.holiday-month h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.holiday-weekdays,
.holiday-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.holiday-weekdays {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.holiday-day {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f7faf7;
  color: var(--ink);
  cursor: pointer;
}

.holiday-day.selected {
  background: #fff0ed;
  border-color: #f0b5ae;
  color: #a3332a;
  font-weight: 800;
}

.holiday-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}

.holiday-legend-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid #f0b5ae;
  border-radius: 4px;
  background: #fff0ed;
}

.holiday-day.empty {
  background: transparent;
  cursor: default;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.calendar {
  display: grid;
  grid-template-columns: 82px repeat(var(--calendar-columns, 5), minmax(160px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  background: #fff;
}

.calendar-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.calendar-toolbar .tabs {
  margin-bottom: 0;
}

.calendar-size-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-config {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-config strong,
.calendar-config span {
  display: block;
}

.calendar-date-head {
  width: 100%;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 10px;
}

.calendar-date-head:hover,
.calendar-date-head:focus-visible {
  background: var(--mint);
  color: var(--deep);
}

.calendar-date-head.selected {
  background: var(--green);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--deep);
}

.calendar-selection-status {
  color: var(--deep);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.calendar-date-modal {
  max-width: 680px;
}

.monthly-detail-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}

.monthly-detail-metrics div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.monthly-detail-metrics strong,
.monthly-detail-metrics span {
  display: block;
}

.monthly-detail-metrics span {
  color: var(--deep);
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
}

.calendar-day-bookings {
  border-top: 1px solid var(--line);
  margin: 16px 0;
  padding-top: 14px;
}

.month-calendar {
  overflow-x: auto;
}

.month-weekdays,
.month-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  min-width: 840px;
}

.month-weekdays span {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  text-align: center;
}

.month-day {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 12px;
  text-align: left;
}

.month-day:hover,
.month-day:focus-visible,
.month-day.selected {
  background: var(--mint);
  border-color: var(--green);
}

.month-day strong {
  font-size: 18px;
}

.month-day span,
.month-day small {
  color: var(--muted);
  font-size: 12px;
}

.month-day.empty {
  background: var(--soft);
}

.calendar-assigned-list {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

.assigned-staff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.assigned-staff-chip {
  align-items: center;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  display: inline-flex;
  gap: 6px;
  padding: 6px 8px 6px 12px;
}

.assigned-staff-chip button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  padding: 2px;
}

.calendar-column-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-column-controls input {
  max-width: 88px;
  text-align: center;
}

.calendar.calendar-wide {
  grid-template-columns: 96px repeat(var(--calendar-columns, 5), minmax(240px, 1fr));
}

.calendar.calendar-large {
  grid-template-columns: 108px repeat(var(--calendar-columns, 5), minmax(320px, 1fr));
}

.cell,
.headcell,
.timecell {
  min-height: 76px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px;
}

.headcell,
.timecell {
  background: #f3f6f3;
  color: var(--muted);
  font-size: 12px;
  min-height: auto;
}

.calendar-wide .cell,
.calendar-wide .timecell {
  min-height: 112px;
}

.calendar-large .cell,
.calendar-large .timecell {
  min-height: 148px;
}

.booking {
  border-left: 4px solid var(--green);
  background: #edf8f1;
  border-radius: 8px;
  padding: 8px;
  min-height: 58px;
  font-size: 12px;
}

.booking-button {
  appearance: none;
  border-bottom: 0;
  border-right: 0;
  color: var(--ink);
  cursor: pointer;
  display: block;
  line-height: 1.5;
  text-align: left;
  width: 100%;
}

.booking-button:hover,
.booking-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 142, 89, 0.16);
  outline: none;
}

.booking strong {
  display: block;
  font-size: 13px;
}

.mini-action {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 6px 10px;
}

.mini-action.danger {
  background: #fff4f2;
  border-color: #f0b5ae;
  color: #a3332a;
}

[data-delete-staff] {
  justify-self: start;
  min-width: 0;
  width: max-content;
  padding: 4px 16px;
}

.mini-action-inline {
  color: var(--green);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 6px;
}

.reservation-edit-actions {
  justify-content: space-between;
  margin-top: 14px;
}

.btn.danger {
  background: #fff4f2;
  border-color: #f0b5ae;
  color: #a3332a;
}

.booking .mini-action {
  margin-top: 8px;
}

.table-actions {
  white-space: nowrap;
}

.table-actions .mini-action + .mini-action {
  margin-left: 6px;
}

.compact-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-menu-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.panel-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-heading h3 {
  margin: 0 0 4px;
}

.owner-menu-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-menu-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.empty-state {
  background: #f7faf7;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  background: #f4f7f4;
}

tr:last-child td {
  border-bottom: 0;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
}

.tabs button.active {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.settings-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 11px 10px;
}

.settings-tab.active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.settings-tab-panel[hidden] {
  display: none;
}

.public-preview {
  overflow: hidden;
  padding: 0;
}

.hero {
  position: relative;
  min-height: 210px;
  background:
    linear-gradient(90deg, rgba(18, 32, 26, 0.88), rgba(18, 32, 26, 0.22)),
    url("./images/salon-reserve-hero-actress-style.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero h2 {
  font-size: 28px;
  max-width: 520px;
  margin: 0 0 8px;
  line-height: 1.18;
}

.hero p {
  max-width: 540px;
  margin: 0;
  color: #e7eee8;
  line-height: 1.65;
  font-size: 14px;
}

.hero-image-picker {
  cursor: pointer;
  outline: none;
}

.hero-image-picker:focus-visible {
  box-shadow: inset 0 0 0 4px rgba(207, 241, 223, 0.85);
}

.hero-image-action {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  border: 1px solid rgba(17, 61, 47, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(10, 24, 18, 0.16);
}

.preview-body {
  padding: 14px;
}

.booking-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.flow-step {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  font: inherit;
}

.flow-step.active {
  background: #eaf6ee;
  border-color: #bfe3cc;
  color: var(--deep);
}

.flow-step:focus-visible {
  outline: 3px solid rgba(33, 105, 78, 0.24);
  outline-offset: 2px;
}

.flow-step strong,
.flow-step span {
  display: block;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--soft);
  padding: 12px;
  border-radius: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
}

.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 26, 21, 0.42);
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(620px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.signature-modal {
  width: min(860px, 100%);
}

.signature-box {
  position: relative;
  margin-top: 14px;
  border: 1px dashed #9eb8a9;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.signature-box canvas {
  width: 100%;
  height: 220px;
  display: block;
  touch-action: none;
}

.signature-box span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #89958d;
  font-size: 12px;
  pointer-events: none;
}

.signature-thumb {
  width: 150px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
}

.drawer-backdrop {
  place-items: stretch end;
  padding: 0;
}

.drawer {
  width: min(520px, 100%);
  background: #fff;
  height: 100%;
  padding: 20px;
  overflow-y: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-search-inline {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.customer-search-inline .field {
  flex: 0 1 640px;
}

.customer-search-inline #runCustomerSearch {
  min-width: 84px;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1;
}

.field.full {
  grid-column: 1 / -1;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #17201c;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 40;
}

.global-loading {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(12, 20, 18, 0.38);
  backdrop-filter: blur(2px);
}

.loading-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: min(320px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  color: var(--deep);
  font-weight: 700;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(47, 143, 88, 0.15);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.column {
  background: #eef3ee;
  border-radius: 8px;
  padding: 12px;
  min-height: 250px;
}

.column h3 {
  margin: 0 0 10px;
}

.message {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.contract-lock-card {
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px;
}

.contract-lock-card span,
.contract-lock-card small {
  color: var(--muted);
}

.chat-thread {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.chat-bubble {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  max-width: 86%;
  padding: 10px 12px;
}

.chat-bubble.owner {
  justify-self: end;
  background: #e9f7ee;
}

.chat-bubble.operator {
  justify-self: start;
  background: #fff8ea;
}

.chat-bubble span,
.chat-bubble small {
  color: var(--muted);
}

.rule-stack {
  display: grid;
  gap: 10px;
}

.rule {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  padding: 12px;
}

.rule p {
  margin: 4px 0 0;
}

.simulator {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.timeline {
  position: relative;
  height: 54px;
  border-radius: 8px;
  background: #eef3ee;
  overflow: hidden;
}

.timeline span {
  position: absolute;
  top: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #cfeedd;
  color: #1f5f49;
  font-size: 12px;
  white-space: nowrap;
}

.timeline span.warn {
  background: #fff2db;
  color: #966210;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
}

.slot-chip {
  min-height: 54px;
  border: 1px solid #bee0cb;
  border-radius: 8px;
  background: #edf8f1;
  color: var(--deep);
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
}

.slot-chip small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.slot-chip.readonly {
  cursor: default;
}

.weekly-slot-preview {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 8px;
  margin-top: 12px;
  overflow-x: hidden;
  padding-bottom: 4px;
}

.weekly-slot-modal {
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.weekly-slot-modal .weekly-slot-preview {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekly-slot-modal .weekly-slot-day {
  min-width: 0;
}

.weekly-slot-modal .slot-chip {
  font-size: 13px;
  padding: 6px;
}

.weekly-slot-modal .slot-chip small {
  font-size: 10px;
  overflow-wrap: anywhere;
}

.slot-preview-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.slot-preview-summary strong,
.slot-preview-summary span {
  display: block;
}

.slot-preview-summary span {
  margin-top: 4px;
  font-size: 12px;
}

.weekly-slot-day {
  min-width: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.weekly-slot-day > strong {
  display: block;
  border-bottom: 1px solid var(--line);
  color: var(--deep);
  font-size: 13px;
  padding-bottom: 7px;
}

.weekly-slot-day.closed {
  background: #fff8f5;
  border-color: #f0b5ae;
}

.closed-day-label {
  color: #a3332a;
  font-weight: 800;
  padding: 8px 4px;
}

.weekly-slot-list {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.weekly-slot-list .slot-chip {
  min-height: 48px;
  padding: 7px 8px;
}

.merge-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.merge-card p {
  margin: 6px 0 12px;
}

.billing-timeline {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.billing-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.billing-step:last-child {
  border-bottom: 0;
}

.billing-step > span {
  color: var(--muted);
  font-size: 12px;
}

.billing-step.current {
  background: #fff8eb;
  box-shadow: inset 4px 0 0 var(--gold);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.policy-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  padding: 12px;
}

.footer-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 16px;
}

.customer-page {
  min-height: 100vh;
  background: var(--bg);
}

.customer-hero {
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(18, 32, 26, 0.9), rgba(18, 32, 26, 0.25)),
    url("./images/salon-reserve-hero-actress-style.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 48px max(24px, calc((100vw - 1160px) / 2));
}

.customer-hero > div {
  max-width: 720px;
}

.customer-hero h1 {
  font-size: 48px;
  margin: 16px 0 12px;
  letter-spacing: 0;
}

.customer-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 18px;
}

.customer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 18px;
  max-width: 1160px;
  margin: -42px auto 0;
  padding: 0 24px 48px;
  position: relative;
}

.tenant-guard {
  border-radius: 8px;
  font-weight: 700;
  margin-top: 12px;
  padding: 12px;
}

.tenant-guard.ok {
  background: #e2f8eb;
  color: #167343;
}

.tenant-guard.danger {
  background: #fde8e8;
  color: #b42318;
}

.legal-links,
.app-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.legal-links a,
.app-footer a {
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
}

.legal-links a:hover,
.app-footer a:hover {
  text-decoration: underline;
}

.app-footer {
  padding: 0 24px 28px;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding-bottom: 12px;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main {
    width: 100%;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    position: static;
  }

  .cols-4,
  .cols-3,
  .cols-2,
  .customer-content,
  .policy-grid,
  .booking-flow,
  .kanban {
    grid-template-columns: 1fr;
  }

  .salon-lp-nav {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .salon-lp-hero {
    min-height: 680px;
    padding: 48px 18px;
  }

  .salon-lp-grid,
  .salon-lp-flow {
    grid-template-columns: 1fr;
  }

  .salon-lp-price {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar {
    grid-template-columns: 72px repeat(var(--calendar-columns, 5), 180px);
    overflow-x: auto;
  }

  .calendar.calendar-wide {
    grid-template-columns: 82px repeat(var(--calendar-columns, 5), 240px);
  }

  .calendar.calendar-large {
    grid-template-columns: 90px repeat(var(--calendar-columns, 5), 300px);
  }

  .calendar-config {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-form {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .content,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-tile {
    grid-template-columns: 36px 1fr;
    min-height: 110px;
    padding: 12px;
  }

  .dashboard-tile-icon {
    width: 34px;
    height: 34px;
  }

  .dashboard-tile-icon svg {
    width: 21px;
    height: 21px;
  }

  .dashboard-tile strong {
    font-size: 14px;
  }

  .dashboard-tile-arrow {
    display: none;
  }

  .reception-board-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .reception-workspace {
    grid-template-columns: 1fr;
  }

  .reception-row {
    grid-template-columns: 1fr 1fr;
  }

  .reception-row .pill {
    justify-self: start;
  }

  .nav {
    grid-template-columns: 1fr 1fr;
  }

  .network-banner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .actions {
    width: 100%;
    justify-content: flex-start;
  }

  .btn,
  .icon-btn {
    min-height: 42px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .customer-search-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-search-inline .field {
    flex-basis: auto;
  }

  .weekday-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-month-calendar {
    grid-template-columns: 1fr;
  }

  .settings-summary-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 190px;
    padding: 18px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .customer-hero {
    min-height: 360px;
    padding: 32px 18px;
  }

  .customer-hero h1 {
    font-size: 34px;
  }

  .customer-content {
    padding: 0 14px 34px;
  }

  .salon-lp h1 {
    font-size: 46px;
  }

  .salon-lp p {
    font-size: 17px;
  }
}
