/* src/styles.css */
:root {
  color-scheme: light;
  --ink: #24312d;
  --muted: #65736d;
  --paper: #faf8f2;
  --soft: #f2eadf;
  --sage: #8ea391;
  --sage-deep: #47675a;
  --clay: #c98965;
  --blush: #e7c7bd;
  --line: rgba(36, 49, 45, 0.14);
  --shadow: 0 24px 70px rgba(48, 58, 54, 0.16);
  font-family:
    "Noto Serif TC",
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    system-ui,
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(
      180deg,
      rgba(250, 248, 242, 0.92),
      rgba(247, 241, 232, 0.94)),
    var(--paper);
}
button,
input,
select {
  font: inherit;
  font-size: 16px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.entrance {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  background: #f8f4ec;
}
.entrance__image {
  min-height: 100vh;
  background:
    linear-gradient(
      90deg,
      rgba(26, 34, 31, 0.04),
      rgba(26, 34, 31, 0.26)),
    url(/assets/entrance-wellness.jpg) center / cover;
}
.entrance__content {
  align-self: center;
  padding: clamp(32px, 7vw, 88px);
}
.entrance__brand {
  margin: 0 0 10px;
  color: var(--sage-deep);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--sage-deep);
  font-size: 0.92rem;
  font-weight: 700;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5.4vw, 5.8rem);
  line-height: 1.08;
  margin-bottom: 24px;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.24;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p {
  color: var(--muted);
  line-height: 1.9;
}
.entrance__content p:not(.eyebrow) {
  max-width: 560px;
  font-size: 1.05rem;
}
.primary-action,
.text-action,
.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}
.primary-action {
  margin-top: 12px;
  background: var(--sage-deep);
  color: #fffaf2;
  box-shadow: 0 12px 28px rgba(71, 103, 90, 0.24);
}
.primary-action:hover,
.text-action:hover {
  transform: translateY(-1px);
}
.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}
.text-action {
  margin-top: 8px;
  background: transparent;
  color: var(--sage-deep);
  border-color: var(--line);
}
.danger-action {
  margin-top: 8px;
  background: #fff7f2;
  color: #9a4f3f;
  border-color: rgba(154, 79, 63, 0.2);
}
.danger-action:disabled,
.text-action:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}
.site-shell {
  overflow: hidden;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(250, 248, 242, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800;
  color: var(--ink);
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}
.topbar nav a,
.topbar nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
.topbar nav button {
  border: 1px solid var(--line);
  background: #fffaf3;
  color: var(--sage-deep);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
}
.top-button {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(18px, 4vw, 38px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 74px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(71, 103, 90, 0.2);
  border-radius: 8px;
  background: var(--sage-deep);
  color: #fffaf2;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(48, 58, 54, 0.2);
}
.top-button:hover {
  transform: translateY(-1px);
}
.site-footer {
  background: #2a4235;
  color: #9fcab4;
  padding: 56px 20px 40px;
  text-align: center;
}
.site-footer__inner {
  max-width: 520px;
  margin: 0 auto;
}
.site-footer__brand {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
}
.site-footer__tagline {
  color: #6daa88;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin: 0 0 28px;
}
.site-footer__meta {
  color: #7a9080;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.site-footer__disclaimer {
  color: #586f61;
  font-size: 0.72rem;
  line-height: 1.7;
  margin: 0;
}
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(30px, 6vw, 82px);
  padding: clamp(22px, 5vw, 70px);
}
.hero img {
  width: 100%;
  height: min(72vh, 720px);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero__copy {
  max-width: 640px;
}
.article-flow {
  width: min(780px, calc(100% - 40px));
  margin: 70px auto;
}
.article-flow p {
  font-size: 1.06rem;
}
.split-band,
.ritual-section,
.notice-band {
  width: min(1180px, calc(100% - 40px));
  margin: 92px auto;
}
.split-band,
.ritual-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.split-band img,
.ritual-section img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.sense-section {
  padding: 88px clamp(20px, 5vw, 64px);
  background: #eef1e8;
}
.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}
.sense-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.sense-item {
  min-height: 220px;
  padding: 22px;
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid rgba(71, 103, 90, 0.12);
  border-radius: 8px;
}
.sense-item svg {
  color: var(--clay);
  margin-bottom: 22px;
}
.ritual-section {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.9fr);
}
.ritual-section img {
  order: 2;
}
.ritual-list {
  order: 1;
}
.ritual-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.notice-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 54px);
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.notice-band > div {
  max-width: 760px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(30, 42, 38, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.booking-modal {
  position: relative;
  width: min(940px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fffaf3;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}
.success-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(30, 42, 38, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.success-popup {
  width: min(520px, 100%);
  transform: translateY(5vh);
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(
      180deg,
      #fffdf8 0%,
      #f3f0e7 100%);
  border: 1px solid rgba(71, 103, 90, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(48, 58, 54, 0.18);
  text-align: left;
}
.success-popup__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e6efe4;
  color: var(--sage-deep);
}
.success-popup h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: 12px;
}
.success-popup p:not(.eyebrow) {
  margin-bottom: 0;
}
.success-popup__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}
.success-popup__actions--solo {
  justify-content: center;
}
.success-popup__actions--solo .countdown-note {
  margin-left: 0;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.booking-intro {
  max-width: 640px;
  margin-bottom: 24px;
  padding-right: 44px;
}
.booking-intro h2 {
  margin-bottom: 10px;
}
.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
}
label span,
.slot-panel__header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-deep);
  font-weight: 800;
}
input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus,
select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(142, 163, 145, 0.2);
}
.slot-panel,
.booking-identity,
.booking-submit,
.form-message {
  grid-column: 1 / -1;
}
.booking-identity {
  padding: 18px;
  border: 1px solid rgba(71, 103, 90, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      #eef4eb,
      #fff7ee);
}
.booking-identity span {
  display: block;
  margin-bottom: 6px;
  color: var(--sage-deep);
  font-weight: 800;
}
.booking-identity strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
}
.booking-identity p,
.slot-note {
  margin-bottom: 0;
}
.booking-history {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(71, 103, 90, 0.16);
}
.latest-booking-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
}
.latest-booking-tools p {
  margin: 0;
}
.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-actions .text-action,
.inline-actions .danger-action {
  margin-top: 0;
}
.booking-history b {
  display: block;
  margin-bottom: 8px;
  color: var(--sage-deep);
}
.booking-history ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.history-more {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sage-deep);
  font-weight: 800;
}
.slot-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbf6ed;
}
.slot-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.slot-note {
  margin-top: -4px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.slot {
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
}
.slot small {
  color: var(--muted);
}
.slot:disabled {
  cursor: not-allowed;
  color: #8d9893;
  background: #eee9e0;
}
.slot[aria-disabled=true] {
  cursor: not-allowed;
  color: #8d9893;
  background: #eee9e0;
}
.slot--selected {
  border-color: var(--sage-deep);
  background: #e9f0e8;
  box-shadow: inset 0 0 0 1px var(--sage-deep);
}
.slot--selected small {
  color: var(--sage-deep);
  font-weight: 800;
}
.slot--original,
.slot--original[aria-disabled=true] {
  border-color: rgba(201, 137, 101, 0.58);
  background: #fff2e8;
  color: #6f4d3f;
  box-shadow: inset 0 0 0 1px rgba(201, 137, 101, 0.46);
}
.slot--original small,
.slot--original[aria-disabled=true] small {
  color: #9a5d3f;
  font-weight: 800;
}
.form-message {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f6e8e2;
  color: #8a4b39;
}
.form-message--success {
  background: #e9f2e8;
  color: var(--sage-deep);
}
.countdown-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.booking-submit {
  width: 100%;
}
.inline-note {
  margin: 0;
}
.admin-page {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 70px);
  background: #f8f4ec;
}
.admin-hero {
  width: min(820px, 100%);
  margin: 0 auto 32px;
}
.admin-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-logout-button {
  margin-top: 0;
}
.admin-hero h1 {
  margin-top: 36px;
}
.pin-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 24px;
}
.pin-form .primary-action {
  margin-top: 0;
  min-height: 48px;
}
.admin-tabs {
  width: min(1080px, 100%);
  margin: 0 auto 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
}
.admin-tab {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
.admin-tab:hover {
  color: var(--sage-deep);
  background: #fffdf9;
}
.admin-tab--active {
  color: #fffaf2;
  background: var(--sage-deep);
  box-shadow: 0 10px 22px rgba(71, 103, 90, 0.18);
}
.admin-panel,
.booking-list {
  width: min(1080px, 100%);
  margin: 0 auto;
}
.admin-panel {
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  margin-bottom: 22px;
}
.admin-panel h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}
.user-contact-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.user-contact-summary > div {
  padding: 14px 16px;
  border: 1px solid rgba(36, 49, 45, 0.08);
  border-radius: 8px;
  background: #fff;
}
.user-contact-summary b {
  display: block;
  margin-bottom: 6px;
  color: var(--sage-deep);
}
.user-contact-summary p {
  margin-bottom: 0;
}
.availability-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 22px;
}
.block-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.block-calendar-toolbar .text-action {
  margin-top: 0;
}
.block-calendar {
  display: grid;
  grid-template-columns: 74px repeat(7, minmax(92px, 1fr));
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  -webkit-user-select: none;
  user-select: none;
}
.block-calendar__corner,
.block-calendar__day,
.block-calendar__time {
  min-height: 44px;
  padding: 10px;
  background: #eef1e8;
  color: var(--sage-deep);
  font-weight: 800;
}
.block-calendar__day {
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(36, 49, 45, 0.08);
  text-align: center;
}
.block-calendar__row {
  display: contents;
}
.block-calendar__time {
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(36, 49, 45, 0.08);
}
.block-cell {
  min-width: 92px;
  min-height: 44px;
  border: 0;
  border-left: 1px solid rgba(36, 49, 45, 0.08);
  border-top: 1px solid rgba(36, 49, 45, 0.08);
  background: #fffdf9;
  color: var(--muted);
}
.block-cell:hover {
  background: #f7f2e9;
}
.block-cell--selected {
  background: #e8f0e5;
  color: var(--sage-deep);
  box-shadow: inset 0 0 0 2px rgba(71, 103, 90, 0.34);
}
.block-cell--saved {
  background: #f7e4dc;
  color: #9a4f3f;
}
.block-cell--saved.block-cell--selected {
  background: #efd8cd;
}
.block-cell span {
  font-size: 0.78rem;
  font-weight: 800;
}
.block-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}
.block-form .primary-action {
  margin-top: 0;
  min-height: 48px;
}
.weekday-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  grid-column: 1 / -1;
  gap: 8px;
}
.smtp-form,
.line-form,
.user-form,
.password-form,
.studio-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-top: 22px;
}
.availability-form .primary-action {
  margin-top: 0;
  min-height: 48px;
}
.smtp-form .primary-action,
.smtp-form .text-action,
.line-form .primary-action,
.line-form .text-action,
.studio-form .primary-action,
.user-form .primary-action,
.password-form .primary-action {
  margin-top: 0;
  min-height: 48px;
}
.studio-form {
  grid-template-columns: minmax(260px, 1fr) auto;
}
.admin-account-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.admin-account-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(36, 49, 45, 0.08);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
.admin-account-item strong {
  color: var(--sage-deep);
}
.admin-account-item span {
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-account-item--active {
  border-color: rgba(71, 103, 90, 0.24);
  background: #f7fbf6;
}
.studio-list {
  display: grid;
  gap: 10px;
}
.studio-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(36, 49, 45, 0.08);
  border-radius: 8px;
  background: #fff;
}
.studio-item--active {
  border-color: rgba(71, 103, 90, 0.24);
  background: #f7fbf6;
}
.studio-item__main {
  display: grid;
  gap: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}
.studio-item__main strong {
  color: var(--sage-deep);
}
.studio-item__main span {
  color: var(--muted);
}
.checkbox-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.checkbox-field input {
  width: auto;
  min-height: auto;
  margin: 0;
}
.checkbox-field span {
  color: var(--sage-deep);
}
.availability-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.availability-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, auto) 44px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(36, 49, 45, 0.08);
  border-radius: 8px;
}
.availability-item span {
  color: var(--muted);
}
.availability-item strong {
  color: var(--sage-deep);
}
.blocked-window-item {
  grid-template-columns: minmax(150px, 1fr) minmax(120px, auto) minmax(120px, 1fr) 44px;
}
.empty-state,
.day-group {
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.day-group {
  margin-bottom: 16px;
}
.day-group h2 {
  font-size: 1.45rem;
}
.booking-table {
  display: grid;
  gap: 8px;
}
.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(36, 49, 45, 0.08);
  overflow-wrap: anywhere;
}
.booking-row--button {
  width: 100%;
  text-align: left;
}
.booking-row--button:hover {
  border-color: rgba(71, 103, 90, 0.28);
  background: #fffaf3;
}
.booking-row--selected {
  border-color: rgba(71, 103, 90, 0.28);
  background: #f7fbf6;
}
.booking-row--head {
  background: #e9f0e8;
  color: var(--sage-deep);
  font-weight: 800;
}
.user-row {
  grid-template-columns: minmax(120px, 0.9fr) minmax(80px, 0.45fr) minmax(220px, 1.35fr) 44px;
  align-items: center;
}
.user-name-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sage-deep);
  font-weight: 800;
  text-align: left;
}
.user-name-button:hover {
  text-decoration: underline;
}
.admin-customer-history {
  margin-top: 18px;
}
@media (max-width: 1024px) {
  .admin-page {
    padding: 22px;
  }
  .hero,
  .split-band,
  .ritual-section {
    gap: 28px;
  }
  .pin-form,
  .booking-form,
  .availability-form,
  .block-form,
  .smtp-form,
  .line-form,
  .studio-form,
  .user-form,
  .password-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pin-form .primary-action,
  .availability-form .primary-action,
  .block-form .primary-action,
  .smtp-form .primary-action,
  .smtp-form .text-action,
  .line-form .primary-action,
  .line-form .text-action,
  .studio-form .primary-action,
  .user-form .primary-action,
  .password-form .primary-action {
    width: 100%;
  }
  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .slot-panel__header,
  .success-popup__actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .countdown-note {
    margin-left: 0;
  }
}
@media (max-width: 900px) {
  .entrance,
  .hero,
  .split-band,
  .ritual-section {
    grid-template-columns: 1fr;
  }
  .entrance__image {
    min-height: 50vh;
  }
  .entrance__content {
    padding-top: 34px;
  }
  .hero {
    min-height: auto;
    padding-top: 34px;
  }
  .hero img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .sense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ritual-section img,
  .ritual-list {
    order: initial;
  }
  .notice-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .notice-band .primary-action {
    width: 100%;
  }
  .booking-row--head {
    display: none;
  }
  .booking-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }
  .booking-row:not(.booking-row--head) > span {
    display: grid;
    gap: 4px;
  }
  .booking-row:not(.booking-row--head) > span::before {
    content: attr(data-label);
    color: var(--sage-deep);
    font-size: 0.8rem;
    font-weight: 800;
  }
}
@media (max-width: 640px) {
  .topbar {
    padding: 10px 14px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 0.88rem;
  }
  .topbar nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 6px;
  }
  .topbar nav::-webkit-scrollbar {
    display: none;
  }
  .topbar nav a,
  .topbar nav button {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 38px;
    padding: 7px 12px;
  }
  .hero,
  .split-band,
  .ritual-section,
  .notice-band,
  .article-flow {
    width: calc(100% - 28px);
    margin-top: 56px;
    margin-bottom: 56px;
  }
  .sense-section {
    padding: 58px 14px;
  }
  .sense-grid,
  .pin-form,
  .availability-form,
  .block-form,
  .smtp-form,
  .line-form,
  .studio-form,
  .user-form,
  .password-form {
    grid-template-columns: 1fr;
  }
  .block-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .block-calendar-toolbar strong {
    text-align: center;
    padding: 4px 0;
  }
  .weekday-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-booking-tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-page {
    padding: 16px;
  }
  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-tabs::-webkit-scrollbar {
    display: none;
  }
  .admin-tab {
    flex: 0 0 auto;
  }
  .availability-item {
    grid-template-columns: 1fr auto;
  }
  .blocked-window-item {
    grid-template-columns: 1fr auto;
  }
  .availability-item strong {
    grid-column: 1 / 2;
  }
  .blocked-window-item span:nth-of-type(2) {
    grid-column: 1 / 2;
  }
  .availability-item .icon-button {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }
  .user-contact-summary,
  .booking-form {
    grid-template-columns: 1fr;
  }
  .slot {
    min-height: 64px;
  }
  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modal-backdrop {
    place-items: end center;
    padding: 0;
  }
  .booking-modal {
    width: 100%;
    max-height: 96vh;
    border-radius: 18px 18px 0 0;
    padding: 18px;
  }
  .booking-intro {
    padding-right: 40px;
  }
  .slot-panel,
  .booking-identity,
  .latest-booking-tools {
    padding: 14px;
  }
  .success-popup-backdrop {
    padding: 16px;
  }
  .success-popup {
    transform: none;
  }
  .success-popup__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .success-popup__actions .primary-action {
    width: 100%;
    margin-top: 0;
  }
  .modal-close {
    top: 12px;
    right: 12px;
  }
}
@media (max-width: 480px) {
  .booking-modal {
    padding: 14px;
    max-height: 98vh;
  }
  .booking-intro {
    padding-right: 36px;
  }
  .admin-tab {
    padding: 7px 10px;
    font-size: 0.85rem;
  }
  .weekday-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero,
  .split-band,
  .ritual-section,
  .notice-band,
  .article-flow {
    width: calc(100% - 20px);
  }
  .day-group,
  .empty-state {
    padding: 16px;
  }
  .admin-panel {
    padding: clamp(14px, 4vw, 22px);
  }
  .success-popup {
    padding: 20px;
  }
}
.line-link {
  display: inline-block;
  padding: 4px 14px;
  background: #ffffff;
  color: #06c755;
  border: 1px solid #06c755;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.line-link:hover {
  background: #06c755;
  color: #ffffff;
}
.posts-section {
  width: min(1180px, calc(100% - 40px));
  margin: 92px auto;
}
.posts-section:empty {
  display: none;
}
.posts-section .section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.posts-section__list {
  display: grid;
  gap: 32px;
}
.posts-section__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.post-article {
  padding: clamp(22px, 4vw, 34px);
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.post-article h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: #2d3a2e;
  margin-bottom: 6px;
  line-height: 1.4;
}
.post-subtitle {
  font-size: 1rem;
  color: #7a9b7c;
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.5;
}
.post-article p {
  font-size: 1rem;
  line-height: 1.85;
  color: #4a5a4b;
}
.post-image-wrap {
  margin: 0 0 20px;
}
.post-image-wrap img {
  width: 100%;
  height: min(72vh, 720px);
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: var(--shadow);
}
.post-image-wrap figcaption {
  font-size: 0.82rem;
  color: #7a8a7b;
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}
@media (max-width: 600px) {
  .posts-section {
    width: calc(100% - 20px);
  }
  .post-article {
    padding: 20px;
  }
  .post-image-wrap img {
    height: min(48vh, 420px);
  }
}
.post-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.post-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7faf7;
  border: 1px solid #dde8dd;
  border-radius: 10px;
  padding: 12px 16px;
  gap: 12px;
}
.post-admin-item__title {
  font-weight: 600;
  color: #2d3a2e;
  flex: 1;
}
.post-admin-item__meta {
  font-size: 0.82rem;
  color: #7a8a7b;
}
.post-image-preview {
  max-width: 120px;
  border-radius: 8px;
  margin-top: 8px;
  display: block;
}
