:root {
  color-scheme: light;
  --ink: #17201f;
  --muted: #667270;
  --line: #dce4e2;
  --surface: #ffffff;
  --canvas: #f3f6f5;
  --primary: #17443d;
  --primary-strong: #0d332d;
  --primary-soft: #e7f0ee;
  --accent: #e95845;
  --accent-soft: #fff0ed;
  --blue: #2867c7;
  --yellow: #e8ad25;
  --danger: #bd3429;
  --success: #187347;
  --shadow: 0 12px 32px rgba(24, 48, 44, 0.1);
  --header-height: 74px;
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; letter-spacing: 0; }
body, button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { letter-spacing: 0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.site-header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-brand, .admin-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.site-brand strong, .admin-brand strong { display: block; font-size: 20px; line-height: 1.1; }
.site-brand small, .admin-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 800;
}
.desktop-nav { display: flex; align-items: center; align-self: stretch; margin-left: auto; }
.desktop-nav a { position: relative; display: grid; align-items: center; height: 100%; padding: 0 16px; color: #43504e; font-weight: 700; }
.desktop-nav a::after { position: absolute; right: 16px; bottom: 0; left: 16px; height: 3px; background: transparent; content: ""; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
.desktop-nav a.active::after { background: var(--accent); }
.header-user { margin-left: 4px; padding-left: 22px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.header-user span { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.guest-nav { display: flex; gap: 24px; margin-left: auto; color: #43504e; font-size: 14px; font-weight: 700; }
.guest-nav a:hover { color: var(--accent); }

.page-main { min-height: calc(100vh - var(--header-height) - 130px); }
.page-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.page-narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; font-size: 30px; line-height: 1.25; }
.page-heading p { margin: 7px 0 0; color: var(--muted); }
.page-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--accent); font-size: 12px; font-weight: 900; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.section-title h2 { margin: 0; font-size: 22px; }
.section-title a { color: var(--primary); font-size: 13px; font-weight: 800; }
.section-block { padding: 40px 0; }
.section-block + .section-block { border-top: 1px solid var(--line); }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.button-accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.button-outline { border-color: #b8c7c3; background: #fff; color: var(--primary); }
.button-danger { border-color: #efc0ba; background: var(--accent-soft); color: var(--danger); }
.button-small { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.button-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.text-link { border: 0; padding: 0; background: none; color: var(--blue); font-weight: 800; }

.flash {
  position: fixed;
  z-index: 80;
  top: 88px;
  left: 50%;
  width: min(560px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  transform: translateX(-50%);
  border: 1px solid #bdd3cd;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
  font-weight: 700;
}
.flash-success { border-left: 5px solid var(--success); }
.flash-error { border-left: 5px solid var(--danger); }
.flash-warning { border-left: 5px solid var(--yellow); }
.flash button { border: 0; background: transparent; color: var(--muted); font-size: 24px; }

.auth-page { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: minmax(340px, 1.1fr) minmax(420px, .9fr); background: #fff; }
.auth-visual { min-height: 640px; background: url('/images/salon-hero.webp') center center / cover no-repeat; }
.register-visual { background-position: 58% center; }
.setup-visual { background-position: 42% center; }
.auth-panel { align-self: center; width: min(470px, calc(100% - 64px)); margin: 48px auto; }
.auth-heading { margin-bottom: 30px; }
.auth-heading h1 { margin: 0; font-size: 38px; line-height: 1.2; }
.auth-heading p { margin: 10px 0 0; color: var(--muted); }
.auth-switch { margin: 22px 0 0; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--blue); font-weight: 800; }

.form-stack { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
label, .field-label { display: grid; gap: 7px; color: #35413f; font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #b9c7c4;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23,68,61,.12); }
.help-text { margin: -2px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-label { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.check-label input { width: 18px; min-height: 18px; margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-section { padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.form-section + .form-section { margin-top: 18px; }
.form-section h2 { margin: 0 0 20px; font-size: 19px; }

.home-hero { position: relative; min-height: 470px; display: grid; align-items: center; overflow: hidden; background: #102a26; color: #fff; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .66; }
.home-hero::after { position: absolute; inset: 0; background: rgba(6,25,22,.42); content: ""; }
.hero-inner { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0; }
.hero-copy { width: min(590px, 100%); text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hero-copy .eyebrow { color: #ffc64d; }
.hero-copy h1 { margin: 0; font-size: 48px; line-height: 1.18; }
.hero-copy p { margin: 16px 0 26px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; text-shadow: none; }
.upcoming-bar { position: relative; z-index: 2; width: min(1120px, calc(100% - 40px)); margin: -42px auto 0; padding: 20px 24px; border: 1px solid rgba(255,255,255,.6); border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.upcoming-bar h2 { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.upcoming-list { display: flex; flex-wrap: wrap; gap: 10px; }
.upcoming-item { flex: 1 1 260px; display: flex; align-items: center; gap: 14px; }
.date-block { display: grid; width: 52px; height: 52px; place-items: center; flex: 0 0 52px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 18px; font-weight: 900; }
.upcoming-item strong, .upcoming-item span { display: block; }
.upcoming-item span { color: var(--muted); font-size: 13px; }
.home-content { padding-top: 64px; }

.service-grid, .style-grid, .review-grid, .stats-grid, .quick-grid { display: grid; gap: 16px; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card, .review-card, .stat-card, .quick-card, .reservation-card, .info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.service-card { padding: 22px; }
.service-card .service-category { color: var(--accent); font-size: 11px; font-weight: 900; }
.service-card h3 { margin: 7px 0; font-size: 19px; }
.service-card p { min-height: 44px; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.service-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.service-meta strong { color: var(--primary); }
.service-meta span { color: var(--muted); font-size: 12px; }
.style-card { position: relative; overflow: hidden; border-radius: 8px; background: #dfe7e5; }
.style-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .25s ease; }
.style-card:hover img { transform: scale(1.025); }
.style-card-body { position: absolute; right: 0; bottom: 0; left: 0; padding: 32px 15px 14px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; }
.style-card-body strong, .style-card-body span { display: block; }
.style-card-body span { color: rgba(255,255,255,.8); font-size: 12px; }
.review-card { padding: 20px; }
.review-card .stars { color: var(--yellow); letter-spacing: 2px; }
.review-card p { margin: 12px 0; color: #394441; }
.review-card small { color: var(--muted); }
.stat-card { padding: 20px; }
.stat-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.stat-card strong { display: block; margin-top: 7px; font-size: 29px; line-height: 1.2; }
.stat-card.accent { border-top: 4px solid var(--accent); }
.stat-card.green { border-top: 4px solid var(--success); }
.stat-card.blue { border-top: 4px solid var(--blue); }
.stat-card.yellow { border-top: 4px solid var(--yellow); }
.quick-card { display: flex; min-height: 110px; flex-direction: column; justify-content: space-between; padding: 18px; }
.quick-card span { color: var(--muted); font-size: 12px; }
.quick-card strong { font-size: 17px; }
.quick-card:hover { border-color: var(--primary); background: var(--primary-soft); }

.category-filter { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 24px; }
.category-all, .category-tabs a { flex: 0 0 auto; padding: 9px 15px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 800; }
.category-all.active, .category-tabs a.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.category-filter-groups { display: grid; gap: 8px; min-width: 0; }
.category-filter-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; align-items: center; }
.category-filter-row > strong { color: var(--ink); font-size: 13px; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 2px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.style-section + .style-section { margin-top: 34px; }
.style-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.style-section-title h2 { margin: 0; padding: 0 0 9px; border-bottom: 3px solid var(--accent); font-size: 19px; }
.style-section-title span { color: var(--muted); font-size: 12px; }
.category-admin-list > h3 { margin: 8px 0 0; padding: 8px 2px 3px; color: var(--primary); font-size: 14px; }
.style-view { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 30px; align-items: start; }
.style-stage { position: relative; overflow: hidden; border-radius: 8px; background: #dde5e3; }
.style-stage img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.angle-control { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.angle-control button { width: 68px; height: 68px; flex: 0 0 68px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #fff; }
.angle-control button.active { border-color: var(--accent); }
.angle-control img { width: 100%; height: 100%; object-fit: cover; }
.style-info { position: sticky; top: 96px; padding: 25px; border-left: 4px solid var(--accent); background: #fff; }
.style-info h1 { margin: 7px 0 12px; font-size: 30px; }
.style-info p { color: var(--muted); white-space: pre-line; }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.booking-summary { position: sticky; top: 96px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.booking-summary h2 { margin: 0 0 18px; font-size: 18px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.summary-line span:first-child { color: var(--muted); }
.time-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.time-button { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 700; }
.time-button:hover, .time-button.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.time-empty { grid-column: 1 / -1; padding: 24px; color: var(--muted); text-align: center; background: var(--canvas); }

.reservation-list { display: grid; gap: 13px; }
.reservation-card { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px; }
.reservation-date { padding-right: 18px; border-right: 1px solid var(--line); text-align: center; }
.reservation-date strong, .reservation-date span { display: block; }
.reservation-date strong { font-size: 18px; color: var(--primary); }
.reservation-date span { color: var(--muted); }
.reservation-detail h3 { margin: 0 0 5px; font-size: 17px; }
.reservation-detail p { margin: 0; color: var(--muted); font-size: 13px; }
.reservation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.status-pending { background: #fff3cc; color: #805c00; }
.status-confirmed { background: #dce9ff; color: #174e9e; }
.status-completed, .status-paid { background: #ddefe6; color: #12613b; }
.status-cancelled, .status-refunded { background: #f3e2e0; color: #8e2a22; }
.status-unpaid { background: #ecefef; color: #53615f; }

.info-panel { padding: 24px; }
.info-list { display: grid; gap: 0; margin: 0; }
.info-list div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 700; }
.map-frame { min-height: 280px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #e6eeec; color: var(--muted); text-align: center; }

.empty-state { padding: 54px 20px; border: 1px dashed #bdc9c7; border-radius: 8px; background: #fff; text-align: center; }
.empty-state strong { display: block; font-size: 18px; }
.empty-state p { margin: 7px 0 20px; color: var(--muted); }
.empty-page { min-height: calc(100vh - 210px); display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; }
.error-code { color: var(--accent); font-size: 70px; font-weight: 900; line-height: 1; }
.empty-page h1 { margin: 14px 0 7px; }
.empty-page p { margin: 0 0 22px; color: var(--muted); }

.site-footer { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(20px, calc((100% - 1120px) / 2)); border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 7px 18px; }
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--primary); font-weight: 800; }
.mobile-bottom-nav { display: none; }

.admin-shell { padding-left: 244px; background: #f1f4f4; }
.admin-shell .page-main { min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 244px; display: flex; flex-direction: column; background: #122923; color: #fff; }
.admin-brand { min-height: 84px; padding: 16px 19px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand .brand-mark { background: var(--accent); }
.admin-brand small { color: rgba(255,255,255,.62); }
.admin-nav { flex: 1; overflow-y: auto; padding: 13px 10px; }
.admin-nav a { display: flex; min-height: 45px; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 6px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; }
.admin-nav a span { width: 22px; text-align: center; color: #8bbdb2; font-size: 17px; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a.active { background: #fff; color: var(--primary); }
.admin-nav a.active span { color: var(--accent); }
.admin-sidebar-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.68); font-size: 12px; }
.admin-sidebar-footer a { color: #fff; font-weight: 800; }
.admin-mobile-header { display: none; }
.admin-page { width: min(1380px, calc(100% - 52px)); margin: 0 auto; padding: 38px 0 70px; }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-page-heading h1 { margin: 0; font-size: 28px; }
.admin-page-heading p { margin: 5px 0 0; color: var(--muted); }
.admin-panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.admin-panel-header h2 { margin: 0; font-size: 17px; }
.admin-panel-body { padding: 20px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 16px; }
.filter-bar label { min-width: 150px; flex: 0 1 190px; }
.filter-bar .search-field { min-width: 230px; flex: 1; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 13px; }
.data-table th { background: #f4f7f6; color: #53615f; font-size: 11px; }
.data-table tbody tr:hover { background: #fbfcfc; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .number { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .actions { display: flex; justify-content: flex-end; gap: 6px; }
.data-table .wrap { min-width: 190px; white-space: normal; }
.inline-form { display: inline-flex; gap: 6px; }
.total-row { display: flex; justify-content: flex-end; gap: 20px; padding: 17px 20px; border-top: 2px solid var(--primary); font-weight: 900; }
.total-row strong { color: var(--primary); font-size: 20px; }
.two-panel-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 18px; align-items: start; }
.stack-list { display: grid; gap: 9px; }
.stack-item { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.stack-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack-item p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.image-thumb { width: 62px; height: 62px; overflow: hidden; border-radius: 6px; background: #e1e8e6; }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.style-admin-item { display: grid; grid-template-columns: 78px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.style-admin-item:last-child { border-bottom: 0; }
.style-admin-item .image-thumb { width: 78px; height: 88px; }
.style-admin-item h3 { margin: 0; font-size: 15px; }
.style-admin-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { display: block; color: #cbd1d0; font-size: 35px; cursor: pointer; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: var(--yellow); }
.sidebar-scrim { display: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .header-user { margin-left: auto; }
  .service-grid, .style-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid, .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .time-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .admin-shell { padding-left: 0; padding-top: 58px; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-mobile-header { position: fixed; z-index: 55; inset: 0 0 auto 0; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fff; font-weight: 900; }
  .icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 21px; }
  .sidebar-scrim.open { position: fixed; z-index: 50; inset: 0; display: block; background: rgba(0,0,0,.45); }
  .admin-page { width: min(100% - 28px, 980px); padding-top: 28px; }
}

@media (max-width: 680px) {
  :root { --header-height: 62px; }
  body.customer-shell { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-header-inner { width: calc(100% - 24px); }
  .site-brand .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .site-brand strong { font-size: 17px; }
  .site-brand small, .guest-nav, .header-user span { display: none; }
  .header-user { padding-left: 12px; font-size: 12px; }
  .guest-shell .site-header-inner { justify-content: space-between; }
  .page-wrap, .page-narrow { width: calc(100% - 28px); padding: 26px 0 48px; }
  .page-heading, .admin-page-heading { align-items: stretch; flex-direction: column; }
  .page-heading h1, .admin-page-heading h1 { font-size: 25px; }
  .page-heading-actions .button { flex: 1; }
  .auth-page { min-height: calc(100vh - var(--header-height)); display: block; padding: 34px 0; background: #fff; }
  .auth-visual { display: none; }
  .auth-panel { width: calc(100% - 36px); margin: 0 auto; }
  .auth-heading h1 { font-size: 31px; }
  .home-hero { min-height: 440px; }
  .home-hero > img { object-position: 62% center; }
  .hero-inner { width: calc(100% - 34px); padding: 48px 0 80px; align-self: end; }
  .hero-copy h1 { font-size: 35px; }
  .hero-copy p { font-size: 15px; }
  .hero-actions .button { flex: 1; }
  .upcoming-bar { width: calc(100% - 28px); margin-top: -50px; padding: 17px; }
  .home-content { padding-top: 44px; }
  .service-grid, .style-grid, .review-grid, .stats-grid, .quick-grid { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .style-card-body { padding: 28px 11px 11px; }
  .style-card-body strong { font-size: 13px; }
  .style-view { grid-template-columns: 1fr; }
  .style-info { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .form-section { padding: 18px; }
  .time-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .reservation-card { grid-template-columns: 74px minmax(0,1fr); gap: 13px; padding: 16px; }
  .reservation-date { padding-right: 11px; }
  .reservation-actions { grid-column: 1 / -1; justify-content: stretch; }
  .reservation-actions .button, .reservation-actions form { flex: 1; }
  .reservation-actions form .button { width: 100%; }
  .info-list div { grid-template-columns: 82px 1fr; gap: 10px; }
  .mobile-bottom-nav { position: fixed; z-index: 45; right: 0; bottom: 0; left: 0; height: calc(66px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px 7px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -8px 24px rgba(23,45,42,.08); }
  .mobile-bottom-nav a { display: grid; place-items: center; align-content: center; gap: 1px; color: #6c7775; font-size: 10px; font-weight: 800; }
  .mobile-bottom-nav a span { font-size: 20px; line-height: 1; }
  .mobile-bottom-nav a.active { color: var(--primary); }
  .mobile-bottom-nav .book-link span { width: 38px; height: 38px; display: grid; place-items: center; margin-top: -20px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 5px 15px rgba(233,88,69,.3); font-size: 28px; }
  .site-footer { min-height: 110px; align-items: flex-start; padding: 24px 18px; }
  .site-footer div { flex-direction: column; gap: 4px; }
  .admin-page { width: calc(100% - 22px); padding: 20px 0 44px; }
  .admin-page-heading .button { width: 100%; }
  .admin-panel-header { align-items: stretch; flex-direction: column; padding: 15px; }
  .admin-panel-body { padding: 15px; }
  .filter-bar label, .filter-bar .search-field { min-width: 0; flex: 1 1 100%; }
  .filter-bar .button { flex: 1; }
  .two-panel-grid { grid-template-columns: 1fr; }
  .style-admin-item { grid-template-columns: 64px minmax(0,1fr); }
  .style-admin-item .image-thumb { width: 64px; height: 72px; }
  .style-admin-item > form { grid-column: 1 / -1; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .flash { top: 70px; }
}

@media print {
  .site-header, .site-footer, .mobile-bottom-nav, .admin-sidebar, .admin-mobile-header, .flash, .button, .filter-bar, .sidebar-scrim { display: none !important; }
  body, .admin-shell { padding: 0; background: #fff; }
  .page-main, .admin-shell .page-main { min-height: 0; }
  .admin-page, .page-wrap, .page-narrow { width: 100%; padding: 0; }
  .admin-panel, .reservation-card, .info-panel { break-inside: avoid; box-shadow: none; }
  .table-scroll { overflow: visible; }
  .data-table { white-space: normal; }
}
