:root {
  --bg: #f7f6f4;
  --paper: #ffffff;
  --ink: #262423;
  --muted: #746b66;
  --line: #e7dfdb;
  --rose: #bd6170;
  --rose-soft: #fff4f5;
  --green: #667f67;
  --gold: #c7a46f;
  --dark: #202223;
  --shadow: 0 24px 70px rgba(47, 38, 34, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

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

body.modal-open {
  overflow: hidden;
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(231, 223, 219, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--dark);
  border-radius: var(--radius);
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 20px;
}

.main-nav,
.admin-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--rose);
}

.nav-schedule-button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.nav-schedule-button:hover {
  color: var(--rose);
}

.nav-action,
.button,
.quick-link,
.card-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-action,
.button.primary,
.card-actions a:first-child {
  padding: 0 18px;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 16px 36px rgba(189, 97, 112, 0.22);
}

.button.secondary,
.card-actions a:last-child {
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.nav-action:hover,
.button:hover,
.quick-link:hover,
.card-actions a:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero-section {
  position: relative;
  display: grid;
  min-height: calc(100vh - 72px);
  align-items: center;
  overflow: hidden;
  padding: 7vw 5vw;
  color: #fff;
  background: var(--dark);
}

.hero-section > img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-section > img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(22, 23, 23, 0.88), rgba(22, 23, 23, 0.42), rgba(22, 23, 23, 0.1)),
    linear-gradient(0deg, rgba(22, 23, 23, 0.34), rgba(22, 23, 23, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.hero-content h1 {
  margin: 0;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(42px, 5.6vw, 86px);
  font-weight: 600;
  line-height: 1.08;
}

.hero-content p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-status {
  position: absolute;
  right: 5vw;
  bottom: 5vw;
  z-index: 1;
  min-width: 180px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.hero-status strong {
  display: block;
  font-size: 46px;
  line-height: 1;
}

.hero-status span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--dark);
}

.quick-link {
  min-height: 108px;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  border-radius: 0;
  background: #262829;
}

.quick-link span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.quick-link.line {
  background: #2f5f4b;
}

.quick-link.telegram {
  background: #415b70;
}

.quick-link.booking {
  background: #7d5961;
}

.section {
  padding: 92px 5vw;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading span {
  display: block;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2,
.experience-section h2 {
  margin: 6px 0 0;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(32px, 3.4vw, 54px);
  font-weight: 600;
  line-height: 1.16;
}

.section-heading p,
.experience-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.profiles-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

.profiles-head .section-heading {
  margin-bottom: 0;
}

.front-schedule-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(255, 247, 248, 0.72), rgba(255, 255, 255, 0.96) 58%),
    #fff;
  border: 1px solid rgba(216, 203, 198, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 16px 46px rgba(47, 38, 34, 0.06);
}

.front-schedule-card > div:first-child {
  display: grid;
  gap: 4px;
  border-bottom: 0;
  padding-bottom: 0;
}

.front-schedule-card span {
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.front-schedule-card h2 {
  margin: 0;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(30px, 2.9vw, 46px);
  font-weight: 600;
  line-height: 1.12;
}

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

.front-schedule-list button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff7f8;
  border: 1px solid #efd0d5;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
}

.front-schedule-list button:hover {
  border-color: var(--rose);
  box-shadow: 0 12px 28px rgba(189, 97, 112, 0.13);
}

.front-schedule-list strong {
  color: var(--ink);
  font-size: 15px;
}

.front-schedule-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.front-schedule-card > .front-schedule-list {
  display: none;
}

.front-schedule-open {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 142px;
  padding: 13px 22px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(189, 97, 112, 0.28);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(189, 97, 112, 0.1);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.front-schedule-open span {
  color: var(--rose);
  font-size: 16px;
}

.front-schedule-open::after {
  content: "→";
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.front-schedule-open:hover {
  transform: translateY(-1px);
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 18px 36px rgba(189, 97, 112, 0.22);
}

.front-schedule-open:hover span {
  color: #fff;
}

.front-schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px;
}

.front-schedule-modal.is-open {
  display: grid;
}

.front-schedule-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 23, 22, 0.62);
  backdrop-filter: blur(8px);
}

.front-schedule-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(720px, 100%);
  max-height: min(780px, calc(100vh - 56px));
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(216, 203, 198, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.front-schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.front-schedule-head span {
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
}

.front-schedule-head h2 {
  margin: 3px 0 0;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
}

.front-schedule-close {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.front-schedule-list-modal {
  max-height: 100%;
  overflow-y: auto;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #fff8f9);
}

.schedule-board {
  display: grid;
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.schedule-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(360px, 1.15fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  padding: 26px 28px;
  background:
    linear-gradient(135deg, rgba(255, 244, 245, 0.82), rgba(255, 255, 255, 0.96) 42%, rgba(255, 255, 255, 1)),
    #fff;
  border: 1px solid rgba(216, 203, 198, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(47, 38, 34, 0.09);
}

.schedule-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(189, 97, 112, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent 42%);
}

.schedule-summary::after {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: var(--rose);
  border-radius: 0 999px 999px 0;
}

.schedule-summary > * {
  position: relative;
  z-index: 1;
}

.schedule-summary-main span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: var(--rose);
  background: rgba(189, 97, 112, 0.1);
  border: 1px solid rgba(189, 97, 112, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.schedule-summary-main strong {
  display: inline-block;
  margin-top: 10px;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(54px, 5vw, 74px);
  font-weight: 600;
  line-height: 0.95;
}

.schedule-summary-main em {
  margin-left: 8px;
  color: var(--ink);
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(28px, 2.7vw, 44px);
  font-style: normal;
  font-weight: 600;
}

.schedule-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 203, 198, 0.86);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
}

.schedule-summary-stats p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 18px 22px;
  text-align: center;
  border-right: 1px solid rgba(216, 203, 198, 0.78);
}

.schedule-summary-stats p:last-child {
  border-right: 0;
}

.schedule-summary-stats strong {
  color: var(--ink);
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.schedule-summary-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.schedule-open {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  min-height: 50px;
  gap: 10px;
  padding-inline: 22px;
}

.schedule-open::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.18s ease;
}

.schedule-open:hover::after {
  transform: translate(3px, -1px);
}

.schedule-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.schedule-row.is-hidden {
  display: none !important;
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row:hover,
.schedule-row:focus-visible {
  background: var(--rose-soft);
  box-shadow: inset 4px 0 0 var(--rose);
  outline: none;
}

.schedule-row:active {
  transform: scale(0.995);
}

.schedule-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  object-fit: cover;
}

.schedule-row h3 {
  margin: 0;
  font-size: 18px;
}

.schedule-row h3 span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
}

.schedule-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: #3c7d4a;
  background: #edf8ef;
  border: 1px solid #cae8cf;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.status.resting {
  color: #9a6a1f;
  background: #fff7e7;
  border-color: #ead5a9;
}

.status.offline {
  color: #777;
  background: #f2f2f2;
  border-color: #dedede;
}

.profile-search {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  margin: -14px 0 28px;
}

.profile-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.profile-search-box {
  position: relative;
}

.profile-search input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 800;
  outline: none;
  box-shadow: 0 16px 42px rgba(47, 38, 34, 0.07);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-search input:focus {
  border-color: rgba(189, 97, 112, 0.68);
  box-shadow: 0 0 0 4px rgba(189, 97, 112, 0.12), 0 18px 46px rgba(47, 38, 34, 0.09);
}

.profile-search-box button {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #f7f2f0;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
}

.profile-search-box button[hidden] {
  display: none;
}

.profile-search-results {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% + 8px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-search-results button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(231, 223, 219, 0.78);
  cursor: pointer;
  text-align: left;
}

.profile-search-results button:last-child {
  border-bottom: 0;
}

.profile-search-results button:hover,
.profile-search-results button:focus-visible {
  background: var(--rose-soft);
}

.profile-search-results strong {
  font-size: 15px;
  font-weight: 900;
}

.profile-search-results span,
.profile-search-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-search-empty {
  margin: 0;
  padding: 14px 16px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.staff-card {
  scroll-margin-top: 96px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(47, 38, 34, 0.07);
}

.staff-card.is-highlighted {
  border-color: rgba(189, 97, 112, 0.78);
  box-shadow: 0 0 0 4px rgba(189, 97, 112, 0.14), 0 22px 58px rgba(47, 38, 34, 0.14);
}

.staff-photo {
  aspect-ratio: 1.02;
  overflow: hidden;
  background: #efe9e4;
}

.gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
}

.staff-photo img,
.staff-photo .portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-trigger:hover img,
.gallery-trigger:hover .portrait {
  transform: scale(1.035);
}

.photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: rgba(32, 34, 35, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.portrait {
  display: block;
  background-image: url("staff-sheet.png");
  background-size: 200% 200%;
}

.portrait-a {
  background-position: left top;
}

.portrait-b {
  background-position: right top;
}

.portrait-c {
  background-position: left bottom;
}

.portrait-d {
  background-position: right bottom;
}

.staff-body {
  padding: 14px;
}

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

.staff-title h3 {
  margin: 0;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 22px;
  line-height: 1.15;
}

.staff-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.price {
  display: block;
  margin-top: 10px;
  color: var(--rose);
  font-size: 18px;
}

.note {
  min-height: 42px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.today-line {
  margin-top: 10px;
  padding: 10px;
  background: var(--rose-soft);
  border-radius: var(--radius);
  color: #5d4e4c;
  font-size: 13px;
  font-weight: 800;
}

.today-line span {
  margin-right: 8px;
  color: var(--rose);
}

.week-line {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
}

.week-line p {
  display: grid;
  gap: 2px;
  margin: 0;
  text-align: center;
}

.week-line strong,
.week-line span {
  font-size: 10px;
}

.week-line strong {
  color: var(--muted);
}

.week-line span {
  color: var(--ink);
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.experience-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 5vw;
  align-items: center;
  padding: 90px 5vw;
  color: #fff;
  background: var(--dark);
}

.experience-section p {
  color: rgba(255, 255, 255, 0.68);
}

.experience-section ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  list-style: none;
}

.experience-section li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 92px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.experience-section strong {
  color: var(--gold);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: 24px;
}

.schedule-modal.is-open {
  display: grid;
  place-items: center;
}

.schedule-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 16, 0.62);
  backdrop-filter: blur(10px);
}

.schedule-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(980px, 100%);
  height: min(760px, calc(100vh - 48px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
}

.schedule-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.schedule-dialog-head span {
  display: block;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.schedule-dialog-head h2 {
  margin: 2px 0 0;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.16;
}

.schedule-close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.schedule-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 20px;
  background: #fbfaf9;
  border-bottom: 1px solid var(--line);
}

.schedule-filters button {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.schedule-filters button.is-active {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 12px 28px rgba(189, 97, 112, 0.2);
}

.schedule-filters span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  color: inherit;
  background: rgba(116, 107, 102, 0.12);
  border-radius: 999px;
  font-size: 12px;
}

.schedule-filters button.is-active span {
  background: rgba(255, 255, 255, 0.2);
}

.schedule-dialog .schedule-board {
  max-width: none;
  min-height: 0;
  margin: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 24px;
}

.gallery-modal.is-open {
  display: grid;
  place-items: center;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 16, 0.82);
  backdrop-filter: blur(12px);
}

.gallery-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1120px, 100%);
  height: min(840px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #141515;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.gallery-close,
.gallery-arrow {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.gallery-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  font-size: 26px;
}

.gallery-stage {
  position: relative;
  display: grid;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.gallery-image {
  display: flex;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: #101111;
  touch-action: pan-y;
  transition: transform 0.18s ease, opacity 0.18s ease;
  will-change: transform, opacity;
}

.gallery-image.is-leaving-left {
  opacity: 0;
  transform: translateX(-34px);
}

.gallery-image.is-leaving-right {
  opacity: 0;
  transform: translateX(34px);
}

.gallery-image.is-entering-left {
  opacity: 0;
  transform: translateX(-34px);
}

.gallery-image.is-entering-right {
  opacity: 0;
  transform: translateX(34px);
}

.gallery-image.is-settling {
  opacity: 1;
  transform: translateX(0);
}

.gallery-image img,
.gallery-image .portrait {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
}

.gallery-image .portrait {
  width: min(560px, 82vw);
  aspect-ratio: 0.86;
  height: auto;
  border-radius: var(--radius);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 56px;
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
}

.gallery-arrow.prev {
  left: 14px;
}

.gallery-arrow.next {
  right: 14px;
}

.gallery-info {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  color: #fff;
  background: #1c1d1d;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-info h2 {
  margin: 0;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 24px;
  line-height: 1.2;
}

.gallery-info p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 900;
}

.gallery-info .gallery-note {
  display: -webkit-box;
  max-width: 360px;
  margin-top: 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gallery-thumbs button {
  flex: 0 0 auto;
  width: 66px;
  height: 72px;
  overflow: hidden;
  padding: 0;
  background: #2a2b2b;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-thumbs button.is-active {
  border-color: var(--rose);
}

.gallery-thumbs img,
.gallery-thumbs .portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-body {
  background: #f3f3f1;
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(440px, 100%);
}

.login-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 14px 0 0;
  font-size: 30px;
}

.login-card p {
  margin: 0;
  color: var(--muted);
}

.login-card label {
  display: grid;
  gap: 7px;
  color: #4d4744;
  font-size: 13px;
  font-weight: 900;
}

.login-card input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #ddd4cf;
  border-radius: var(--radius);
}

.form-alert {
  padding: 12px;
  color: #9d2639;
  background: #fff0f2;
  border: 1px solid #f1c3cb;
  border-radius: var(--radius);
  font-weight: 900;
}

.form-success {
  padding: 12px;
  color: #2f6f42;
  background: #eff9f1;
  border: 1px solid #cbe8d1;
  border-radius: var(--radius);
  font-weight: 900;
}

.admin-shell {
  display: grid;
  grid-template-columns: 190px minmax(320px, 0.76fr) minmax(480px, 1fr) minmax(300px, 0.68fr);
  gap: 16px;
  padding: 18px;
}

.edit-shell {
  grid-template-columns: 190px minmax(560px, 920px);
}

.schedule-shell {
  grid-template-columns: 190px minmax(760px, 1fr);
}

.admin-sidebar,
.admin-list,
.admin-editor,
.admin-preview {
  min-width: 0;
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(47, 38, 34, 0.06);
}

.admin-list-wide {
  grid-column: span 2;
}

.admin-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: var(--dark);
  border-color: var(--dark);
}

.admin-sidebar a {
  min-height: 42px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
}

.admin-sidebar a.is-active,
.admin-sidebar a:hover {
  color: #fff;
  background: var(--rose);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h1,
.panel-head h2,
.admin-preview h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.filter-row input,
.filter-row select,
.editor-form input,
.editor-form select,
.editor-form textarea,
.week-editor input,
.slot-row input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ddd4cf;
  border-radius: var(--radius);
  outline: none;
}

.editor-form textarea {
  min-height: 90px;
  padding: 12px;
  resize: vertical;
}

.staff-list,
.editor-form {
  max-height: calc(100vh - 204px);
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-search {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-search label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.admin-search input {
  width: min(560px, 100%);
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ddd4cf;
  border-radius: var(--radius);
  outline: none;
  font-size: 16px;
  font-weight: 800;
}

.admin-search input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(189, 97, 112, 0.12);
}

.admin-search-empty {
  margin: 0;
  padding: 28px 18px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
  text-align: center;
}

.staff-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 10px 14px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.admin-data-row {
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.danger-button {
  color: #a43143;
}

.staff-row.is-active,
.staff-row:hover {
  background: var(--rose-soft);
}

.row-photo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  object-fit: cover;
}

.staff-row strong,
.staff-row small {
  display: block;
}

.staff-row small {
  color: var(--muted);
}

.editor-form {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.edit-panel .editor-form {
  max-height: none;
}

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

.editor-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #4d4744;
  font-size: 13px;
  font-weight: 900;
}

.editor-block {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.editor-block h3 {
  margin: 0;
}

.schedule-admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.schedule-paste-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(47, 38, 34, 0.06);
}

.schedule-paste-panel h2 {
  margin: 0;
  font-size: 22px;
}

.schedule-paste-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.schedule-paste-panel textarea {
  min-height: 210px;
  white-space: pre;
  resize: vertical;
}

.schedule-paste-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-paste-status {
  padding: 10px 12px;
  color: #7f4b17;
  background: #fff7e8;
  border: 1px solid #edd4a3;
  border-radius: var(--radius);
}

.schedule-admin-list {
  display: grid;
  gap: 10px;
}

.editor-form .schedule-admin-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.52fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fbfaf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-form .schedule-admin-row.is-paste-matched {
  background: var(--rose-soft);
  border-color: rgba(189, 97, 112, 0.4);
  box-shadow: 0 10px 24px rgba(189, 97, 112, 0.12);
}

.schedule-admin-row strong,
.schedule-admin-row small {
  display: block;
}

.schedule-admin-row small {
  color: var(--muted);
}

.schedule-copy-panel {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(47, 38, 34, 0.07);
}

.schedule-copy-panel h2 {
  margin: 0;
  font-size: 22px;
}

.schedule-copy-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.schedule-copy-panel textarea {
  min-height: 360px;
  white-space: pre;
  resize: vertical;
}

.site-image-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  background: #fbfaf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-image-editor div {
  display: grid;
  align-content: center;
  gap: 6px;
}

.site-image-editor span {
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.site-image-editor strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.site-image-editor p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-image-editor img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
}

.inline-choice {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  width: fit-content;
  cursor: pointer;
}

.inline-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--rose);
}

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

.block-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.slot-list {
  display: grid;
  gap: 8px;
}

.slot-row {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 8px;
}

.icon-button {
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.icon-button.danger {
  color: #aa3346;
}

.week-editor {
  display: grid;
  grid-template-columns: repeat(7, minmax(64px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.week-editor label {
  text-align: center;
}

.week-editor input {
  padding-inline: 6px;
  text-align: center;
}

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

.photo-thumb,
.upload-card {
  position: relative;
  display: grid;
  min-height: 118px;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #fbfaf9;
  border: 1px dashed #d8cbc6;
  border-radius: var(--radius);
  font-weight: 900;
}

.photo-thumb {
  cursor: grab;
  display: block;
}

.photo-thumb:active {
  cursor: grabbing;
}

.photo-thumb img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.photo-order-hint {
  position: absolute;
  padding: 3px 7px;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
}

.photo-order-hint {
  left: 8px;
  top: 8px;
  background: rgba(32, 34, 35, 0.74);
}

.photo-tools {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}

.photo-move {
  min-height: 28px;
  padding: 0 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.editor-form .photo-delete-choice {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  min-width: 0;
  color: inherit;
  cursor: pointer;
}

.editor-form .photo-delete-choice input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  flex: 0 0 auto;
  accent-color: var(--rose);
}

.editor-form .photo-delete-choice span {
  padding: 4px 8px;
  color: #fff;
  background: var(--rose);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(32, 34, 35, 0.18);
}

.photo-thumb.is-dragging {
  opacity: 0.48;
  transform: scale(0.98);
}

.photo-thumb.is-drop-before,
.photo-thumb.is-drop-after,
.photo-thumb.is-reordered {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(189, 97, 112, 0.18);
}

.photo-thumb.is-delete-selected {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(189, 97, 112, 0.2), 0 16px 36px rgba(47, 38, 34, 0.14);
}

.photo-thumb.is-delete-selected::after {
  content: "待刪除";
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(157, 38, 57, 0.92);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.upload-card {
  min-height: 96px;
  gap: 6px;
  padding: 18px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #fff7f8);
  border: 2px dashed rgba(189, 97, 112, 0.48);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.upload-card:hover,
.upload-card.has-files {
  border-color: var(--rose);
  box-shadow: 0 18px 38px rgba(189, 97, 112, 0.13);
}

.upload-card:hover {
  transform: translateY(-1px);
}

.upload-card strong {
  color: var(--rose);
  font-size: 18px;
}

.upload-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.upload-card input {
  display: none;
}

.upload-status {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px 14px;
  color: #7d3c47;
  background: #fff4f5;
  border: 1px solid #efc5cc;
  border-radius: var(--radius);
  font-weight: 900;
}

.upload-status[hidden] {
  display: none;
}

.delete-status {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px 14px;
  color: #9d2639;
  background: #fff0f2;
  border: 1px solid #f1c3cb;
  border-radius: var(--radius);
  font-weight: 900;
}

.delete-status[hidden] {
  display: none;
}

.delete-status span {
  color: var(--muted);
  font-size: 13px;
}

.upload-status span {
  color: var(--muted);
  font-size: 13px;
}

.upload-status.is-uploading {
  color: #2f6f42;
  background: #eff9f1;
  border-color: #cbe8d1;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.analytics-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

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

.analytics-cards article,
.analytics-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.analytics-cards article {
  display: grid;
  gap: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 244, 245, 0.92), rgba(255, 255, 255, 1) 56%),
    #fff;
}

.analytics-cards span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.analytics-cards strong {
  color: var(--ink);
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.analytics-block {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.analytics-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  min-height: 210px;
  align-items: end;
}

.analytics-bar {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.bar-track {
  position: relative;
  display: flex;
  min-height: 130px;
  align-items: flex-end;
  overflow: hidden;
  background: #f7f2ef;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bar-track span {
  display: block;
  width: 100%;
  min-height: 8px;
  background: linear-gradient(180deg, #d97888, var(--rose));
  border-radius: var(--radius) var(--radius) 0 0;
}

.analytics-bar strong {
  font-size: 16px;
  line-height: 1;
}

.analytics-bar small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-preview {
  position: sticky;
  top: 90px;
  padding: 16px;
}

.admin-preview h2 {
  margin-bottom: 14px;
}

.preview-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  max-width: 920px;
  box-shadow: none;
}

.preview-card .staff-photo {
  aspect-ratio: 0.88;
}

@media (max-width: 1500px) {
  .profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .admin-shell {
    grid-template-columns: 180px minmax(320px, 0.78fr) minmax(560px, 1.22fr);
  }

  .edit-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .schedule-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .admin-preview {
    position: static;
    grid-column: 2 / -1;
  }
}

@media (max-width: 920px) {
  .site-header,
  .admin-header {
    min-height: 68px;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 5vw;
    display: none;
    width: min(280px, 90vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .nav-schedule-button {
    justify-content: flex-start;
    min-height: 0;
    padding: 12px;
    text-align: left;
  }

  .menu-button {
    display: block;
  }

  .nav-action {
    display: none;
  }

  .hero-section {
    min-height: 680px;
  }

  .profile-search {
    width: 100%;
    margin-top: -8px;
  }

  .profiles-head,
  .front-schedule-list,
  .schedule-admin-grid,
  .editor-form .schedule-admin-row {
    grid-template-columns: 1fr;
  }

  .front-schedule-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .front-schedule-open {
    width: 100%;
  }

  .schedule-copy-panel {
    position: static;
  }

  .quick-links,
  .experience-section,
  .admin-shell,
  .analytics-cards,
  .schedule-summary {
    grid-template-columns: 1fr;
  }

  .schedule-summary {
    align-items: stretch;
    gap: 14px;
    padding: 22px;
  }

  .schedule-open {
    width: 100%;
  }

  .admin-list-wide {
    grid-column: auto;
  }

  .admin-sidebar,
  .admin-preview {
    position: static;
  }

  .admin-preview {
    grid-column: auto;
  }

  .staff-list,
  .editor-form {
    max-height: none;
  }

  .gallery-dialog {
    max-height: calc(100vh - 28px);
  }

  .gallery-info {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .admin-header,
  .admin-actions,
  .panel-head,
  .block-title,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions,
  .admin-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .admin-data-row {
    grid-template-columns: 54px 1fr;
  }

  .row-actions {
    grid-column: 1 / -1;
    align-items: stretch;
    flex-direction: column;
  }

  .row-actions .button,
  .row-actions form,
  .row-actions button,
  .form-actions .button {
    width: 100%;
  }

  .preview-card {
    display: block;
  }

  .section {
    padding: 68px 5vw;
  }

  .profile-grid,
  .filter-row,
  .form-grid,
  .site-image-editor,
  .analytics-chart,
  .week-editor,
  .photo-editor {
    grid-template-columns: 1fr;
  }

  .analytics-chart {
    min-height: 0;
  }

  .analytics-bar {
    grid-template-columns: 68px 1fr 48px;
    grid-template-rows: auto;
    align-items: center;
    text-align: left;
  }

  .bar-track {
    min-height: 16px;
    height: 16px;
  }

  .bar-track span {
    height: 100% !important;
    width: var(--bar-width, 100%);
    border-radius: var(--radius);
  }

  .schedule-row,
  .staff-row {
    grid-template-columns: 54px 1fr;
  }

  .schedule-row .status,
  .staff-row .status {
    grid-column: 2;
    width: fit-content;
  }

  .gallery-modal {
    padding: 10px;
  }

  .schedule-modal {
    padding: 10px;
  }

  .schedule-dialog {
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }

  .schedule-dialog-head h2 {
    font-size: 28px;
  }

  .schedule-summary-stats {
    grid-template-columns: 1fr;
  }

  .schedule-summary-stats p {
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .schedule-summary-stats p:last-child {
    border-bottom: 0;
  }

  .gallery-image {
    min-height: 0;
    height: calc(100vh - 230px);
    box-sizing: border-box;
  }

  .gallery-arrow {
    top: auto;
    bottom: 12px;
    width: 42px;
    height: 42px;
    transform: none;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 30px;
  }

  .gallery-arrow.prev {
    left: 18px;
  }

  .gallery-arrow.next {
    right: 18px;
  }

  .gallery-info .gallery-note {
    max-width: none;
    -webkit-line-clamp: 2;
  }

  .gallery-thumbs button {
    width: 58px;
    height: 64px;
  }
}
