:root {
  --ink: #1f2428;
  --muted: #667085;
  --line: #d9dee7;
  --panel: #ffffff;
  --page: #f4f6f8;
  --blue: #6f94d4;
  --blue-dark: #4167a8;
  --teal: #076b5d;
  --green: #2f6b0c;
  --red: #df6f72;
  --amber: #f2c14e;
  --shadow: 0 12px 32px rgba(31, 36, 40, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

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

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

button {
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - clamp(16px, 4vw, 32px)));
  margin: 0 auto;
  padding: clamp(16px, 4vw, 28px) 0 clamp(32px, 6vw, 54px);
}

.site-header {
  min-height: 58px;
  padding: clamp(10px, 2.4vw, 14px) clamp(14px, 3vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #202420;
  color: white;
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav-links form {
  margin: 0;
}

.link-button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
}

.flash-stack {
  position: fixed;
  top: 72px;
  right: 20px;
  left: auto;
  z-index: 40;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.flash {
  max-width: 360px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  color: white;
  box-shadow: var(--shadow);
  transition: opacity .3s ease, transform .3s ease;
}

.flash.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.flash-success {
  background: var(--teal);
}

.flash-error {
  background: #b42318;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.portal {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 36px;
}

.portal-copy h1,
.auth-panel h1,
.section-heading h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.portal-copy p:not(.eyebrow),
.auth-panel p {
  color: var(--muted);
  line-height: 1.8;
}

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

.portal-tile {
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.portal-tile.customer {
  background: var(--teal);
}

.portal-tile.staff {
  background: #3f348f;
}

.portal-tile span {
  font-size: 14px;
  opacity: 0.86;
}

.portal-tile strong {
  font-size: 24px;
}

.portal-tile small {
  color: rgba(255, 255, 255, 0.78);
}

.flow-band {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  overflow-x: auto;
}

.flow-item {
  flex: 0 0 auto;
  min-width: 128px;
  padding: 14px 16px;
  border-radius: 7px;
  color: white;
  text-align: center;
  font-weight: 700;
  background: var(--teal);
}

.flow-item.central {
  background: #40388b;
}

.flow-item.database {
  background: var(--green);
}

.flow-item.line {
  background: #276b0b;
}

.flow-arrow {
  color: #7b8088;
  font-size: 22px;
}

.site-home {
  display: grid;
  gap: 22px;
}

.home-hero-section {
  min-height: 380px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.home-hero-copy {
  display: grid;
  gap: 16px;
}

.home-hero-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

.home-hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-action-button {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-hero-media {
  aspect-ratio: 4 / 3;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f3;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

.home-menu-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}

.home-menu-card:hover {
  border-color: #9db2d5;
  transform: translateY(-2px);
}

.home-menu-card strong {
  font-size: 20px;
}

.home-menu-card small {
  color: var(--muted);
  line-height: 1.7;
}

.home-menu-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.home-menu-card:nth-child(2) .home-menu-icon {
  background: #06c755;
}

.home-menu-card:nth-child(3) .home-menu-icon {
  background: var(--blue-dark);
}

.salon-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

.salon-intro,
.course-section,
.reservation-guide {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.salon-intro {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.salon-intro h2,
.reservation-guide h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.salon-intro p:not(.eyebrow),
.reservation-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.course-section {
  display: grid;
  gap: 18px;
}

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

.salon-course-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  background: #fff;
}

.salon-course-card h3 {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 21px;
}

.salon-course-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.85;
}

.salon-course-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.salon-course-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.salon-course-card dt {
  color: var(--muted);
  font-size: 14px;
}

.salon-course-card dd {
  margin: 0;
  font-weight: 800;
}

.reservation-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.complete-shell {
  min-height: min(640px, calc(100vh - 120px));
  display: grid;
  place-items: center;
}

.complete-panel {
  width: min(100%, 680px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  gap: 16px;
  background: #fff;
  text-align: center;
}

.complete-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  font-size: 42px;
  font-weight: 800;
}

.complete-panel h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.complete-lead {
  margin: 0;
  color: var(--muted);
}

.complete-details {
  width: 100%;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.complete-details div {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--line);
}

.complete-details div:last-child {
  border-bottom: 0;
}

.complete-details dt,
.complete-details dd {
  margin: 0;
  padding: 14px 16px;
}

.complete-details dt {
  color: #344054;
  background: #f5f7fa;
  font-weight: 800;
}

.complete-details dd {
  color: var(--ink);
}

.complete-actions {
  justify-content: center;
}

.complete-mark-cancel {
  background: var(--red);
}

.reservations-shell {
  width: min(880px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.reservations-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.reservations-heading {
  margin: 0 0 14px;
  font-size: 18px;
}

.reservation-period {
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 15px !important;
}

.reservation-card-past {
  opacity: 0.7;
}

.reservation-list-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
}

.auth-panel,
.booking-form-panel,
.reservation-list,
.menu-palette,
.schedule-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-panel {
  min-height: 340px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.admin-login-shell {
  min-height: min(560px, calc(100vh - 120px));
  display: grid;
  place-items: center;
}

.admin-login-panel {
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-login-form {
  display: grid;
  gap: 16px;
}

.line-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 6px;
  color: white;
  background: #06c755;
  font-weight: 700;
  white-space: nowrap;
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.booking-form-panel,
.reservation-list {
  padding: 24px;
}

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

.section-heading.compact {
  display: block;
}

.section-heading span {
  color: var(--muted);
  font-size: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.booking-form {
  display: grid;
  gap: 16px;
}

.booking-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.booking-steps span {
  min-height: 44px;
  padding: 8px 6px;
  display: grid;
  place-items: center;
  color: #667085;
  background: #f5f7fa;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  border-right: 1px solid var(--line);
}

.booking-steps span:last-child {
  border-right: 0;
}

.booking-steps span.active {
  color: #fff;
  background: #202420;
}

.booking-step-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  background: #fff;
}

.booking-step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.booking-step-head > span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
}

.booking-step-head h2 {
  margin: 0;
  font-size: 19px;
}

.booking-step-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.course-card-list,
.staff-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.course-card,
.staff-choice-card {
  width: 100%;
  min-height: 118px;
  border: 1px solid #d5dbe4;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.course-card:hover,
.staff-choice-card:not(:disabled):hover {
  border-color: #9db2d5;
}

.course-card.selected,
.staff-choice-card.selected {
  border-color: var(--teal);
  background: #e9f6f3;
  box-shadow: inset 0 0 0 1px var(--teal);
}

.course-card strong,
.staff-choice-card strong {
  font-size: 18px;
}

.course-card span,
.staff-choice-card small {
  color: var(--muted);
  line-height: 1.5;
}

.date-quick-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.date-chip {
  min-height: 58px;
  border: 1px solid #d5dbe4;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--ink);
  background: #fff;
}

.date-chip.selected {
  border-color: var(--teal);
  background: #fffdd1;
}

.date-chip strong {
  font-size: 15px;
}

.date-chip span {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
}

.staff-choice-card {
  position: relative;
  padding-left: 58px;
}

.staff-choice-card:disabled {
  cursor: not-allowed;
  background: #f0f0f0;
  opacity: .78;
}

.availability-mark {
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.availability-mark.open {
  color: #d00000;
}

.availability-mark.closed {
  color: #777;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd6e1;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
}

textarea {
  resize: vertical;
}

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

.slot-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.slot-panel-head {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eef3fb;
  color: #2f4f7f;
}

.slot-panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.slot-list {
  min-height: 126px;
  max-height: 260px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  overflow-y: auto;
}

.slot-button {
  min-height: 48px;
  border: 1px solid #cfd6e1;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  text-align: left;
  padding: 8px 10px;
}

.slot-button.selected {
  border-color: var(--teal);
  background: #e9f6f3;
}

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

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

.primary-button,
.secondary-button,
.icon-button {
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

.primary-button {
  min-height: 46px;
  padding: 0 18px;
  color: white;
  background: var(--teal);
}

.primary-button:disabled {
  background: #aab5c1;
  cursor: not-allowed;
}

.secondary-button {
  min-height: 36px;
  padding: 0 14px;
  color: #2f4f7f;
  background: #dfe9f8;
}

.toolbar-link-button,
.form-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-back-button {
  min-height: 44px;
}

.secondary-button.active {
  background: #5b82c5;
  color: white;
}

.secondary-button.danger {
  color: white;
  background: var(--red);
}

.reservation-cards {
  display: grid;
  gap: 12px;
}

.reservation-card {
  border: 1px solid var(--line);
  border-left: 7px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 5px;
  background: white;
}

.reservation-card span,
.empty-text {
  color: var(--muted);
  font-size: 14px;
}

.reservation-card form {
  margin-top: 8px;
}

.admin-shell {
  width: min(1460px, calc(100vw - 24px));
  margin: 0 auto;
}

.admin-shell main,
body:has(.admin-shell) main {
  width: min(1460px, calc(100vw - 24px));
}

.admin-toolbar,
.staff-controls {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-buttons,
.day-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-button {
  width: 42px;
  height: 36px;
  color: white;
  background: #86a6dc;
  font-size: 24px;
  line-height: 1;
}

.admin-top {
  display: grid;
  grid-template-columns: minmax(600px, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.mini-calendars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-calendar {
  border: 1px solid var(--line);
  background: white;
}

.mini-calendar h3 {
  margin: 0;
  padding: 7px;
  text-align: center;
  color: #344054;
  background: #eef3fb;
  font-size: 14px;
}

.mini-calendar table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mini-calendar th,
.mini-calendar td {
  border: 1px solid #e1e6ee;
  height: 25px;
  text-align: center;
  font-size: 12px;
  color: #344054;
}

.mini-calendar th:first-child,
.mini-calendar td:first-child {
  color: #b42318;
  background: #fff0f0;
}

.mini-calendar th:last-child,
.mini-calendar td:last-child {
  color: #2f4f7f;
  background: #eff5ff;
}

.mini-calendar button {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
}

.mini-calendar button.active-day {
  background: #bee6c2;
  font-weight: 800;
}

.selected-date-title {
  margin: 12px 0 0;
  color: #3c9a91;
  font-size: 24px;
}

.menu-palette {
  padding: 12px;
}

.palette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.palette-head h2 {
  margin: 0;
  color: #2f4f7f;
  font-size: 18px;
}

.palette-head span {
  padding: 7px 12px;
  border-radius: 3px;
  color: white;
  background: #79c3c3;
  font-size: 13px;
  font-weight: 700;
}

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

.service-chip {
  min-height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 8px;
  color: #233;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
}

.service-chip[draggable="true"] {
  cursor: grab;
}

.service-chip.dragging {
  opacity: 0.55;
}

.staff-controls {
  margin-top: 12px;
  border-top: 2px solid #76bdb6;
  padding-top: 10px;
  justify-content: flex-start;
}

.delete-drop-zone {
  margin-left: auto;
  min-width: 150px;
  min-height: 36px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--red);
  font-weight: 800;
}

.delete-drop-zone.over {
  outline: 3px solid #ffc9c9;
}

.schedule-panel {
  overflow: hidden;
}

.schedule-title {
  width: 140px;
  min-height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: #5179bf;
  font-weight: 800;
}

.schedule-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.schedule-board {
  --slot-width: 56px;
  min-width: calc(140px + (var(--slot-width) * 26));
}

.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: 140px 1fr;
}

.schedule-head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f8fafc;
}

.staff-header-cell,
.staff-name-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.staff-header-cell {
  height: 42px;
  background: #b6cbef;
  color: #23436f;
}

.time-header,
.timeline {
  display: grid;
  grid-template-columns: repeat(26, var(--slot-width));
}

.time-slot-label {
  height: 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 10px;
  color: #344054;
  font-size: 13px;
  text-align: center;
  background: #f8fafc;
}

.time-slot-label.half {
  color: transparent;
}

.schedule-row {
  min-height: 58px;
}

.staff-name-cell {
  min-height: 58px;
  padding: 0 8px;
  background: white;
  font-size: 14px;
}

.timeline {
  position: relative;
  min-height: 58px;
  background: white;
}

.slot-cell {
  min-height: 58px;
  border-right: 1px solid #d5dbe4;
  border-bottom: 1px solid #d5dbe4;
  background: linear-gradient(to bottom, #ffffff, #ffffff 49%, #f2f4f7 50%, #ffffff 51%);
}

.slot-cell:nth-child(2n) {
  border-right-color: #ecf0f4;
}

.slot-cell.drop-over {
  background: #a6dcd0;
  box-shadow: inset 0 0 0 2px var(--teal);
}

.reservation-block {
  position: absolute;
  top: 12px;
  height: 34px;
  border-radius: 14px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  color: #5d2b00;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  cursor: grab;
}

.reservation-block.selected {
  outline: 3px solid rgba(7, 107, 93, 0.35);
}

.reservation-block.dragging {
  pointer-events: none;
  opacity: 0.55;
}

.reservation-block small {
  color: rgba(80, 38, 0, 0.8);
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.48);
}

.modal.open {
  display: flex;
}

.modal-dialog {
  width: min(480px, 100%);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.modal-dialog form {
  padding: 20px;
  display: grid;
  gap: 14px;
}

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

.modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.modal-summary {
  padding: 12px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #344054;
  font-size: 14px;
}

.home-app-page {
  background: #ececec;
}

.home-app-page main {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.mobile-app-frame {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 34px rgba(0, 0, 0, .16);
  overflow: hidden;
}

.phone-status {
  height: 46px;
  padding: 0 28px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #090909;
  background: #fff;
  font-size: 22px;
  font-weight: 800;
}

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

.status-icons span {
  display: block;
  width: 18px;
  height: 12px;
  border: 3px solid #111;
  border-top-width: 6px;
  border-radius: 3px;
}

.status-icons span:first-child {
  width: 22px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(to top, #111 0 55%, transparent 55%) 0 0 / 5px 100% no-repeat,
    linear-gradient(to top, #111 0 72%, transparent 72%) 8px 0 / 5px 100% no-repeat,
    linear-gradient(to top, #111 0 100%, transparent 100%) 16px 0 / 5px 100% no-repeat;
}

.status-icons span:nth-child(2) {
  width: 24px;
  height: 16px;
  border: 0;
  border-top: 5px solid #111;
  border-radius: 50% 50% 0 0;
}

.app-view {
  display: none;
  min-height: calc(100vh - 46px);
  background: #fff;
}

.app-view.is-active {
  display: block;
}

.app-header {
  height: 56px;
  display: grid;
  grid-template-columns: 86px 1fr 86px;
  align-items: center;
  border-bottom: 1px solid #c9c9c9;
  background: #fff;
}

.app-title {
  color: #cdbab0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
}

.app-icon-button {
  width: 56px;
  height: 48px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  color: #2c2c2c;
  position: relative;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  position: absolute;
  left: 11px;
  width: 36px;
  height: 7px;
  border-radius: 2px;
  background: #2e2e2e;
  content: "";
}

.menu-button span {
  top: 20px;
}

.menu-button::before {
  top: 9px;
}

.menu-button::after {
  top: 31px;
}

.gear-button span {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 8px, transparent 9px),
    conic-gradient(from 0deg, #2e2e2e 0 18deg, transparent 18deg 30deg, #2e2e2e 30deg 48deg, transparent 48deg 60deg, #2e2e2e 60deg 78deg, transparent 78deg 90deg, #2e2e2e 90deg 108deg, transparent 108deg 120deg, #2e2e2e 120deg 138deg, transparent 138deg 150deg, #2e2e2e 150deg 168deg, transparent 168deg 180deg, #2e2e2e 180deg 198deg, transparent 198deg 210deg, #2e2e2e 210deg 228deg, transparent 228deg 240deg, #2e2e2e 240deg 258deg, transparent 258deg 270deg, #2e2e2e 270deg 288deg, transparent 288deg 300deg, #2e2e2e 300deg 318deg, transparent 318deg 330deg, #2e2e2e 330deg 348deg, transparent 348deg 360deg);
}

.close-button span,
.close-button::after {
  position: absolute;
  left: 13px;
  top: 20px;
  width: 34px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  content: "";
  z-index: 2;
}

.close-button::before {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #2f2f2f;
  content: "";
}

.close-button span {
  transform: rotate(45deg);
}

.close-button::after {
  transform: rotate(-45deg);
}

.app-header-spacer {
  display: block;
}

.home-hero {
  height: min(43vh, 320px);
  min-height: 245px;
  border-bottom: 1px solid #d8d8d8;
  background: #edf3f3;
  overflow: hidden;
}

.home-hero img,
.reserve-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.carousel-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4d4d4;
}

.carousel-dots span.active {
  background: #333;
}

.home-grid {
  padding: 0 12px 126px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.home-card {
  min-height: 124px;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  padding: 12px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #333;
  background: #fff;
  text-align: center;
  box-shadow: inset 0 0 0 1px #efefef;
}

button.home-card {
  width: 100%;
}

.home-card-large {
  grid-column: span 3;
  min-height: 150px;
}

.home-card:not(.home-card-large) {
  grid-column: span 2;
}

.home-card svg {
  width: 62px;
  height: 62px;
  fill: currentColor;
  flex: 0 0 auto;
}

.home-card-large svg {
  width: 80px;
  height: 80px;
}

.home-card span {
  width: 100%;
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.25;
}

.home-card-large span {
  font-size: 18px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(#191919, #2a2a2a);
  border-top: 1px solid #101010;
}

.bottom-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: #bababa;
}

.bottom-nav a.active {
  margin: 7px 8px;
  background: #f8f8f8;
  color: #2c2c2c;
}

.bottom-nav svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.bottom-nav .badge span {
  position: absolute;
  top: 8px;
  right: 23px;
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ef4444;
  border: 2px solid #fff;
  font-size: 17px;
  line-height: 1;
}

.reserve-hero {
  height: 303px;
  background: #a9a9a9;
  overflow: hidden;
}

.reserve-menu-list {
  padding: 38px 9px 130px;
  display: grid;
  gap: 18px;
  background: #fff;
}

.reserve-menu-list a {
  min-height: 104px;
  border: 1px solid #424242;
  border-radius: 7px;
  padding: 0 14px 0 25px;
  display: grid;
  grid-template-columns: 50px 1fr 28px;
  align-items: center;
  gap: 20px;
  color: #303030;
  background: linear-gradient(#f9f9f9, #a9a9a9);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .28);
}

.reserve-menu-list svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.reserve-menu-list span {
  min-width: 0;
  font-size: 24px;
  line-height: 1.2;
}

.reserve-menu-list b {
  color: #8a8a8a;
  font-size: 58px;
  font-weight: 300;
  line-height: 1;
}

@media (max-width: 920px) {
  main,
  .admin-shell,
  body:has(.admin-shell) main {
    width: min(100% - 20px, 1180px);
  }

  .portal,
  .booking-shell,
  .home-hero-section,
  .salon-intro,
  .admin-top {
    grid-template-columns: 1fr;
  }

  .home-menu-grid,
  .salon-course-grid,
  .mini-calendars,
  .service-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-section {
    padding: 24px;
  }

  .home-hero-media {
    min-height: 220px;
  }

  .auth-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 15px;
  }

  .flash-stack {
    top: auto;
    bottom: 16px;
    left: 12px;
    right: 12px;
    justify-items: stretch;
  }

  .flash {
    max-width: none;
  }

  .portal-actions,
  .home-menu-grid,
  .salon-course-grid,
  .mini-calendars,
  .service-palette,
  .course-card-list,
  .staff-card-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .booking-steps {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
    overflow-x: auto;
  }

  .booking-steps span {
    min-width: 58px;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .salon-intro,
  .course-section,
  .reservation-guide {
    padding: 20px;
  }

  .reservation-guide {
    align-items: stretch;
    flex-direction: column;
  }

  .home-action-button {
    width: 100%;
  }

  .complete-details div {
    grid-template-columns: 1fr;
  }

  .complete-details dt {
    padding-bottom: 4px;
  }

  .complete-details dd {
    padding-top: 6px;
  }

  .home-hero-section {
    padding: 20px;
  }

  .home-hero-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .booking-form-panel,
  .reservation-list {
    padding: 18px;
  }

  .auth-panel {
    padding: 22px;
  }

  .section-heading {
    flex-direction: column;
    gap: 4px;
  }

  .staff-controls,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .delete-drop-zone {
    margin-left: 0;
  }

  .toolbar-buttons,
  .day-nav {
    justify-content: flex-start;
  }

  .secondary-button {
    min-height: 44px;
    padding: 0 16px;
  }

  .icon-button {
    width: 48px;
    height: 44px;
  }

  .primary-button {
    min-height: 48px;
    width: 100%;
  }

  .line-login-button {
    width: 100%;
  }

  .slot-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    max-height: none;
  }

  .slot-button {
    min-height: 52px;
  }

  .modal {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-dialog {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }
}

@media (max-width: 430px) {
  .mobile-app-frame {
    width: 100%;
    box-shadow: none;
  }

  .home-card span {
    font-size: 15px;
  }

  .home-card-large span {
    font-size: 17px;
  }

  .reserve-menu-list span {
    font-size: 22px;
  }

  .brand {
    font-size: 16px;
  }

  .section-heading h1,
  .portal-copy h1,
  .auth-panel h1 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .selected-date-title {
    font-size: 20px;
  }
}
