:root {
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #f8f9f6;
  --ink: #1d2621;
  --muted: #737c76;
  --line: #e5e8e2;
  --green: #1f6b4b;
  --green-dark: #155239;
  --green-soft: #e9f3ed;
  --amber: #d48a28;
  --amber-soft: #fff4df;
  --blue: #4b78c3;
  --blue-soft: #edf3ff;
  --red: #b54b4b;
  --shadow: 0 14px 40px rgba(37, 55, 45, 0.07);
  font-family: 'Noto Sans TC', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(circle at 15% -5%, rgba(185, 215, 195, 0.35), transparent 28rem), var(--bg);
}

button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1d3529;
  animation: introFadeIn 0.45s ease both;
}
.intro-screen.is-hidden {
  pointer-events: none;
  animation: introFadeOut 0.5s ease forwards;
}
.intro-content {
  display: grid;
  justify-items: center;
  text-align: center;
  transform: translateY(8px);
  animation: introRise 0.8s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.intro-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  color: #1d3529;
  background: #f5f6f2;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}
.intro-mark svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}
.intro-eyebrow {
  margin: 26px 0 5px;
  color: #b8d5c3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.intro-content h1 {
  margin: 0;
  font-size: clamp(29px, 5vw, 44px);
  letter-spacing: 0.08em;
  font-weight: 700;
}
.intro-line {
  width: 0;
  height: 2px;
  margin-top: 22px;
  border-radius: 99px;
  background: #b8d5c3;
  animation: introLine 1s 0.55s ease forwards;
}
@keyframes introFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes introFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes introRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes introLine {
  from {
    width: 0;
  }
  to {
    width: 72px;
  }
}

.topbar {
  height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(219, 224, 216, 0.9);
  background: rgba(250, 251, 248, 0.88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 6px 16px rgba(31, 107, 75, 0.22);
}
.brand-mark svg {
  width: 19px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.current-time {
  color: var(--muted);
  font:
    600 12px 'Plus Jakarta Sans',
    'Noto Sans TC',
    sans-serif;
  white-space: nowrap;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.icon-btn {
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.primary-btn {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 12px;
  color: white;
  background: var(--green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 7px 18px rgba(31, 107, 75, 0.18);
}
.primary-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.primary-btn svg {
  width: 18px;
}
.secondary-btn {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 12px;
  background: #f0f2ee;
  font-weight: 600;
}
.secondary-btn:hover {
  background: #e5e8e2;
}
.danger-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--red);
  background: #faeeee;
  font-weight: 600;
}
.danger-btn:hover {
  background: #f5dddd;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ecefe9;
}
.icon-btn:hover {
  background: #e0e5de;
}

.workspace {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.sidebar {
  min-width: 0;
  padding: 30px 28px 24px clamp(24px, 4vw, 52px);
  border-right: 1px solid var(--line);
  overflow-x: hidden;
}
.calendar-card {
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(40, 55, 45, 0.045);
}
.calendar-head {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  margin-bottom: 14px;
}
.calendar-nav {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
}
.calendar-nav:hover {
  background: var(--surface-soft);
}
.calendar-nav svg {
  width: 17px;
}
.month-title {
  border: 0;
  background: transparent;
  cursor: pointer;
  font:
    700 15px 'Plus Jakarta Sans',
    'Noto Sans TC',
    sans-serif;
}
.weekdays,
.calendar-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
}
.weekdays {
  margin-bottom: 5px;
}
.weekdays span {
  text-align: center;
  color: #959d97;
  font-size: 11px;
  font-weight: 600;
}
.calendar-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font:
    600 13px 'Plus Jakarta Sans',
    sans-serif;
  cursor: pointer;
}
.calendar-day:hover {
  background: var(--green-soft);
}
.calendar-day.outside {
  color: #c5cac6;
}
.calendar-day.today {
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.calendar-day.selected {
  color: #fff;
  background: var(--green);
  box-shadow: 0 5px 13px rgba(31, 107, 75, 0.22);
}
.calendar-day.has-booking::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--amber);
}
.calendar-day.selected::after {
  background: #fff;
}

.room-filter {
  margin-top: 28px;
}
.booking-search {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.booking-search-form {
  display: grid;
  gap: 7px;
}
.booking-search-form input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
  outline: none;
}
.booking-search-form input:focus {
  border-color: #9bc1a9;
  box-shadow: 0 0 0 3px rgba(31, 107, 75, 0.09);
}
.booking-search-form .secondary-btn {
  min-height: 35px;
  font-size: 12px;
}
.booking-search-results {
  display: grid;
  gap: 6px;
  max-height: 250px;
  margin-top: 10px;
  overflow-y: auto;
}
.search-dialog {
  height: min(620px, calc(100vh - 36px));
}
.search-dialog-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 24px 12px;
}
.search-dialog .booking-search-results {
  max-height: none;
  margin-top: 0;
}
.search-count,
.search-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.booking-search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.booking-search-result:hover {
  border-color: #b9d5c3;
  background: var(--green-soft);
}
.booking-search-result strong {
  font:
    700 11px 'Plus Jakarta Sans',
    'Noto Sans TC',
    sans-serif;
}
.booking-search-result span,
.booking-search-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-search-result span {
  color: var(--ink);
  font-size: 11px;
}
.booking-search-result small {
  color: var(--muted);
  font-size: 10px;
}
.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-label-row h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #69716c;
}
.text-btn {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}
.room-filter-list {
  display: grid;
  gap: 5px;
}
.room-filter-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}
.room-filter-item:hover,
.room-filter-item.active {
  background: rgba(255, 255, 255, 0.72);
}
.room-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.room-filter-item span:nth-child(2) {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.room-filter-item small {
  grid-column: 2;
  color: #959d97;
  font-size: 10px;
}
.room-filter-item:not(.active) {
  opacity: 0.55;
}
.room-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.room-status.available {
  color: var(--green);
  background: var(--green-soft);
}
.room-status.partial {
  color: #9a681d;
  background: var(--amber-soft);
}
.room-status.ongoing {
  color: var(--red);
  background: #faeeee;
}
.room-status.full {
  color: var(--red);
  background: #faeeee;
}
.legend {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 11px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.legend-dot.available {
  background: #a9c2b3;
}
.legend-dot.booked {
  background: var(--amber);
}
.legend-dot.ongoing {
  background: var(--red);
}

.content {
  padding: 31px clamp(20px, 3vw, 48px) 50px 32px;
  min-width: 0;
}
.content-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}
.eyebrow {
  margin: 0 0 3px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.content-heading h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.summary {
  display: flex;
  gap: 9px;
}
.summary-chip {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 11px;
}
.summary-chip strong {
  color: var(--ink);
  font:
    700 16px 'Plus Jakarta Sans',
    sans-serif;
}

.schedule-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.mobile-schedule {
  display: none;
}
.schedule-scroll {
  overflow-x: auto;
}
.schedule {
  min-width: 830px;
}
.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: 178px repeat(14, minmax(52px, 1fr));
}
.schedule-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafbf8;
  border-bottom: 1px solid var(--line);
}
.schedule-head > div {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8d958f;
  font:
    600 11px 'Plus Jakarta Sans',
    sans-serif;
}
.schedule-head .room-col-head {
  justify-content: flex-start;
  padding-left: 20px;
  font-family: 'Noto Sans TC', sans-serif;
  letter-spacing: 0.08em;
}
.schedule-row:not(:last-child) {
  border-bottom: 1px solid var(--line);
}
.room-cell {
  min-height: 116px;
  padding: 18px 16px 14px 20px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: white;
  border-right: 1px solid var(--line);
}
.room-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.room-name .room-dot {
  width: 8px;
  height: 8px;
}
.room-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.room-availability {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
}
.room-availability::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.time-cell {
  min-height: 116px;
  position: relative;
  border-right: 1px solid #f0f2ee;
  background: linear-gradient(to bottom, transparent 50%, rgba(245, 247, 243, 0.55) 50%);
  cursor: pointer;
}
.time-cell:hover {
  background: var(--green-soft);
}
.time-cell.past {
  background: #fafaf8;
  cursor: not-allowed;
}
.time-cell.past::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 7px,
    rgba(220, 224, 218, 0.25) 7px,
    rgba(220, 224, 218, 0.25) 8px
  );
}
.time-cell.booked-base {
  cursor: default;
}
.booking-block {
  align-self: center;
  min-height: 86px;
  margin: 14px 5px;
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  z-index: 1;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.booking-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(50, 60, 54, 0.12);
}
.booking-block.booked {
  color: #835918;
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
}
.booking-block.ongoing {
  color: var(--red);
  background: #faeeee;
  border-left: 3px solid var(--red);
}
.booking-block.finished {
  color: #747b76;
  background: #f0f2ee;
  border-left: 3px solid #adb4ae;
}
.booking-time {
  display: block;
  margin-bottom: 5px;
  font:
    700 10px 'Plus Jakarta Sans',
    sans-serif;
  letter-spacing: 0.01em;
}
.booking-purpose {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.booking-user {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 8px;
  font-size: 10px;
}
.booking-status {
  display: inline-block;
  margin-top: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.booking-block.compact {
  padding: 8px 8px;
}
.booking-block.compact .booking-purpose {
  font-size: 10px;
  white-space: nowrap;
  -webkit-line-clamp: 1;
}
.booking-block.compact .booking-user {
  display: none;
}
.booking-block.compact.ongoing .booking-user {
  display: block;
  margin-top: 5px;
  font-size: 8px;
}
.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}

.booking-dialog {
  width: min(520px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(25, 38, 30, 0.24);
}
.booking-dialog[open] {
  display: flex;
}
.booking-dialog::backdrop {
  background: rgba(21, 31, 25, 0.42);
  backdrop-filter: blur(4px);
}
.booking-dialog form {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px 8px;
}
.dialog-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.dialog-head h2 {
  margin: 3px 0 0;
  font-size: 23px;
  letter-spacing: -0.03em;
}
.dialog-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.dialog-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f2f3f0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dialog-close svg {
  width: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 12px;
}
.field {
  display: grid;
  gap: 7px;
}
.field-full {
  grid-column: 1 / -1;
}
.field span {
  color: #646c66;
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  height: 44px;
  border: 1px solid #dfe3dd;
  border-radius: 11px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  outline: none;
}
.field input:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 107, 75, 0.1);
}
.time-slot-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.time-slot-option {
  min-height: 40px;
  padding: 0 6px;
  border: 1px solid #dfe3dd;
  border-radius: 9px;
  color: #58625c;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.time-slot-option:hover:not(:disabled) {
  border-color: #a9c8b5;
  background: var(--green-soft);
}
.time-slot-option.selected {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}
.time-slot-option:disabled {
  color: #b7bdb8;
  background: #f2f3f0;
  cursor: not-allowed;
  text-decoration: line-through;
}
.field-hint {
  color: var(--muted);
  font-size: 10px;
}
.booking-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-soft);
}
.detail-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
}
.detail-row span {
  color: var(--muted);
}
.detail-row strong {
  font-weight: 600;
}
.permission-hint {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.form-error {
  min-height: 18px;
  margin: 11px 0 0;
  color: var(--red);
  font-size: 12px;
}
.admin-dialog form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.admin-login-body {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 15px;
  overflow-y: auto;
  padding: 20px 24px 8px;
}
.admin-login-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.dialog-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 0;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.action-spacer {
  flex: 1;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  color: white;
  background: #243129;
  padding: 11px 17px;
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(20, 30, 24, 0.22);
  font-size: 13px;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: minmax(250px, 310px) 1fr;
    gap: 22px;
    padding: 22px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .room-filter {
    margin-top: 2px;
  }
  .legend {
    grid-column: 1 / -1;
    margin-top: -4px;
  }
  .content {
    padding: 25px 24px 40px;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .current-time {
    display: none;
  }
  .icon-btn {
    display: none;
  }
  .primary-btn {
    min-height: 40px;
    padding: 0 13px;
  }
  .workspace {
    min-height: calc(100vh - 64px);
  }
  .sidebar {
    display: block;
    padding: 18px 16px;
  }
  .calendar-card {
    padding: 13px;
  }
  .room-filter {
    margin-top: 20px;
  }
  .booking-search {
    margin-top: 20px;
  }
  .room-filter-list {
    grid-template-columns: 1fr 1fr;
  }
  .room-filter-item {
    padding: 8px 7px;
  }
  .room-filter-item small {
    display: none;
  }
  .legend {
    margin-top: 17px;
  }
  .content {
    padding: 21px 16px 34px;
  }
  .content-heading {
    display: block;
  }
  .summary {
    margin-top: 14px;
  }
  .summary-chip {
    flex: 1;
    justify-content: center;
  }
  .schedule-wrap {
    overflow: hidden;
  }
  .schedule-scroll {
    display: none;
  }
  .mobile-schedule {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: var(--surface-soft);
  }
  .mobile-room-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }
  .mobile-room-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 13px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-room-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .mobile-room-title strong {
    font-size: 13px;
    white-space: nowrap;
  }
  .mobile-room-title > span {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
  }
  .mobile-room-head .room-status {
    flex: 0 0 auto;
  }
  .mobile-room-body {
    padding: 8px 13px 12px;
  }
  .mobile-current-user {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
  }
  .mobile-booking-list {
    display: grid;
    gap: 6px;
  }
  .mobile-booking {
    width: 100%;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid #eef0ec;
    text-align: left;
    background: transparent;
    cursor: pointer;
  }
  .mobile-booking:last-child {
    border-bottom: 0;
  }
  .mobile-booking-time {
    color: var(--ink);
    font:
      700 11px 'Plus Jakarta Sans',
      sans-serif;
  }
  .mobile-booking-time small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font:
      500 10px 'Plus Jakarta Sans',
      sans-serif;
  }
  .mobile-booking-info {
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  .mobile-booking-info strong,
  .mobile-booking-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-booking-info strong {
    font-size: 12px;
  }
  .mobile-booking-info span {
    color: var(--muted);
    font-size: 10px;
  }
  .mobile-booking-status {
    padding: 4px 6px;
    border-radius: 6px;
    color: #9a681d;
    background: var(--amber-soft);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-booking.ongoing .mobile-booking-status {
    color: var(--red);
    background: #faeeee;
  }
  .mobile-empty {
    margin: 3px 0 8px;
    color: var(--muted);
    font-size: 11px;
  }
  .mobile-available-slots {
    padding-top: 8px;
    border-top: 1px solid #eef0ec;
  }
  .mobile-slots-label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 10px;
  }
  .mobile-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .mobile-slot {
    min-height: 31px;
    padding: 0 9px;
    border: 1px solid #cfe2d6;
    border-radius: 8px;
    color: var(--green);
    background: var(--green-soft);
    font:
      600 10px 'Plus Jakarta Sans',
      sans-serif;
    cursor: pointer;
  }
  .mobile-slot:active {
    background: #d5e9dc;
  }
  .booking-time {
    margin-bottom: 4px;
    font-size: 8px;
  }
  .booking-dialog {
    height: min(700px, calc(100vh - 28px));
  }
  .booking-dialog form {
    padding: 18px 17px 7px;
  }
  .admin-dialog form {
    padding: 0;
  }
  .admin-login-body {
    padding: 18px 17px 7px;
  }
  .dialog-head {
    padding: 20px 17px 16px;
  }
  .dialog-actions {
    padding: 12px 17px 16px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .danger-btn {
    order: 3;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-screen,
  .intro-content,
  .intro-line {
    animation: none;
  }
  .intro-line {
    width: 72px;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
