:root {
  --bg: #f4efe5;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #18382f;
  --ink-2: #294b40;
  --muted: #758079;
  --muted-2: #929b95;
  --line: #e5ddd0;
  --line-strong: #d6cdbf;
  --green: #1e6754;
  --green-dark: #174f41;
  --green-soft: #e5f1eb;
  --coral: #d86f45;
  --coral-soft: #f7e8df;
  --sand: #e8dfcd;
  --blue: #4e6e8b;
  --blue-soft: #e9eff4;
  --danger: #b64f46;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(42, 57, 49, 0.08);
  --shadow-soft: 0 10px 30px rgba(42, 57, 49, 0.06);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.page-glow-one {
  top: -220px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(221, 177, 137, 0.24) 0%, rgba(221, 177, 137, 0) 70%);
}

.page-glow-two {
  bottom: -260px;
  left: -200px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(61, 122, 99, 0.12) 0%, rgba(61, 122, 99, 0) 70%);
}

.site-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--green);
  border-radius: 13px;
  place-items: center;
  box-shadow: 0 8px 18px rgba(30, 103, 84, 0.2);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark.light {
  color: var(--green-dark);
  background: #f3ecdc;
  box-shadow: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.03em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: var(--ink-2);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(213, 204, 190, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: #5b9c7a;
  border-radius: 50%;
}

.live-dot::after {
  position: absolute;
  inset: -3px;
  content: "";
  border: 1px solid rgba(91, 156, 122, 0.5);
  border-radius: inherit;
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.75);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 60px;
  align-items: end;
  padding: 58px 18px 66px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow-line {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 20px 0 20px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 .hero-title-line {
  color: inherit;
}

.hero h1 .hero-title-highlight {
  position: relative;
  color: var(--green);
}

.hero h1 .hero-title-highlight::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  z-index: -1;
  height: 10px;
  content: "";
  background: rgba(216, 111, 69, 0.16);
  border-radius: 999px;
}

.hero-copy > p {
  max-width: 570px;
  margin: 0;
  color: #65736b;
  font-size: 16px;
  line-height: 1.9;
}

.hero-board {
  position: relative;
  overflow: hidden;
  padding: 24px 26px 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(102, 155, 128, 0.36), transparent 42%),
    var(--green-dark);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(23, 79, 65, 0.2);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-image-frame {
  overflow: hidden;
  min-height: 210px;
  background: #e8dfcf;
  border: 6px solid rgba(255, 253, 248, 0.92);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(42, 57, 49, 0.12);
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 198px;
  max-height: 310px;
  object-fit: cover;
}

.hero-board::after {
  position: absolute;
  right: -35px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(255, 255, 255, 0.025),
    0 0 0 44px rgba(255, 255, 255, 0.018);
}

.hero-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.sun-mark {
  display: block;
  width: 20px;
  height: 20px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 3px, transparent 3.5px),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.28) 0deg 5deg, transparent 5deg 45deg);
  border-radius: 50%;
}

.hero-time-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.hero-time-block strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-time-block span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.hero-divider {
  height: 1px;
  margin: 16px 0;
  background: rgba(255, 255, 255, 0.13);
}

.hero-board > p {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(350px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.panel {
  background: rgba(255, 253, 248, 0.93);
  border: 1px solid rgba(231, 223, 210, 0.84);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.schedule-panel {
  padding: 34px 36px 36px;
}

.form-panel {
  position: sticky;
  top: 18px;
  padding: 32px 30px 30px;
}

.panel-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.panel-heading.compact {
  padding-bottom: 22px;
}

.step-number {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.panel-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.field-block {
  margin-top: 29px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.field-label-row h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.field-label-row > span {
  color: var(--muted-2);
  font-size: 10px;
}

.date-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 7px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.date-item {
  position: relative;
  flex: 0 0 78px;
  padding: 10px 4px 9px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: 180ms ease;
}

.date-item span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.date-item strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.date-item small {
  font-size: 9px;
}

.date-item:hover {
  border-color: #b8c7bd;
  transform: translateY(-1px);
}

.date-item.active {
  color: rgba(255, 255, 255, 0.72);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 10px 22px rgba(30, 103, 84, 0.17);
}

.date-item.active strong {
  color: var(--white);
}

.date-skeleton {
  flex: 0 0 78px;
  height: 79px;
  background: linear-gradient(100deg, #eee8de 30%, #f7f3ea 50%, #eee8de 70%);
  background-size: 200% 100%;
  border-radius: 14px;
  animation: shimmer 1.6s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -50% 0;
  }
}

.teacher-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.teacher-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  transition: 180ms ease;
}

.teacher-card:hover {
  background: #faf7f0;
  border-color: #c8c1b5;
}

.teacher-avatar {
  display: grid;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 11px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  place-items: center;
}

.teacher-info {
  min-width: 0;
}

.teacher-info strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.teacher-card.active {
  background: #f2f7f4;
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.teacher-card.active .teacher-avatar {
  color: var(--white);
  background: var(--green);
}

.teacher-skeleton {
  height: 63px;
  background: linear-gradient(100deg, #eee8de 30%, #f7f3ea 50%, #eee8de 70%);
  background-size: 200% 100%;
  border-radius: 15px;
  animation: shimmer 1.6s infinite linear;
}

.slot-block {
  margin-top: 31px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  color: var(--green);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.text-button svg {
  width: 14px;
  height: 14px;
}

.text-button.loading svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.slot-button {
  position: relative;
  min-height: 52px;
  padding: 9px 8px;
  text-align: left;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  transition: 170ms ease;
}

.slot-button strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.slot-button span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
}

.slot-button:hover:not(:disabled) {
  border-color: var(--green);
  box-shadow: 0 6px 14px rgba(34, 80, 65, 0.08);
  transform: translateY(-1px);
}

.slot-button.selected {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 9px 20px rgba(216, 111, 69, 0.2);
}

.slot-button.selected strong {
  color: var(--white);
}

.slot-button.selected span {
  color: rgba(255, 255, 255, 0.7);
}

.slot-button.selected::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 3px;
  content: "";
  border-bottom: 1.5px solid var(--white);
  border-left: 1.5px solid var(--white);
  transform: rotate(-45deg);
}

.slot-button.booked,
.slot-button.past {
  background:
    repeating-linear-gradient(-45deg, rgba(218, 210, 198, 0.13) 0 4px, transparent 4px 8px),
    #f6f2eb;
  border-color: #ede6dc;
  cursor: not-allowed;
}

.slot-button.booked strong,
.slot-button.past strong {
  color: #a5aaa5;
}

.slot-button.booked span,
.slot-button.past span {
  color: #b7bab6;
}

.slot-loading {
  display: contents;
}

.slot-loading span {
  height: 52px;
  background: linear-gradient(100deg, #eee8de 30%, #f7f3ea 50%, #eee8de 70%);
  background-size: 200% 100%;
  border-radius: 13px;
  animation: shimmer 1.6s infinite linear;
}

.slot-empty {
  grid-column: 1 / -1;
  padding: 26px;
  color: var(--muted);
  text-align: center;
  background: #f8f5ee;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  font-size: 12px;
}

.slot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 15px;
  color: var(--muted-2);
  font-size: 9px;
}

.slot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.available {
  background: #6d9f85;
}

.legend-dot.selected {
  background: var(--coral);
}

.legend-dot.booked {
  background: #c7c4bf;
}

.selection-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px;
  background: var(--coral-soft);
  border: 1px solid #efd5c7;
  border-radius: 15px;
}

.selection-summary.empty {
  background: #f6f2ea;
  border-color: var(--line);
}

.summary-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--coral);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 10px;
  place-items: center;
}

.selection-summary.empty .summary-icon {
  color: #9d9b93;
}

.summary-icon svg {
  width: 19px;
  height: 19px;
}

.selection-summary > div:last-child {
  min-width: 0;
}

.selection-summary span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.selection-summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.booking-form,
#bookingForm {
  margin-top: 23px;
}

.form-field {
  margin-bottom: 17px;
}

.form-field label,
.login-form > label,
.qr-copy label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.form-field label em {
  color: var(--coral);
  font-style: normal;
}

.form-field input,
.form-field textarea,
.login-form input,
.copy-row input,
.filter-field select,
.filter-field input,
.search-box input,
.teacher-name-field input {
  width: 100%;
  color: var(--ink);
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  transition: 160ms ease;
}

.form-field input,
.login-form input {
  height: 43px;
  padding: 0 12px;
}

.form-field textarea {
  min-height: 108px;
  padding: 11px 12px;
  line-height: 1.7;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.login-form input::placeholder,
.search-box input::placeholder {
  color: #aaa9a3;
}

.form-field input:focus,
.form-field textarea:focus,
.login-form input:focus,
.copy-row input:focus,
.filter-field select:focus,
.filter-field input:focus,
.search-box input:focus,
.teacher-name-field input:focus {
  background: var(--white);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 103, 84, 0.08);
}

.form-field.invalid input,
.form-field.invalid textarea {
  border-color: var(--danger);
}

.label-with-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-with-count > span {
  color: var(--muted-2);
  font-size: 9px;
}

.label-with-count b {
  font-weight: 400;
}

.field-error {
  display: none;
  margin-top: 5px;
  color: var(--danger);
  font-size: 9px;
}

.field-error.visible {
  display: block;
}

.form-alert {
  margin: 10px 0 14px;
  padding: 10px 12px;
  color: #94483f;
  background: #fbebe8;
  border: 1px solid #f0d4ce;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.6;
}

.primary-button,
.secondary-button,
.danger-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 47px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: 180ms ease;
}

.primary-button {
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  box-shadow: 0 10px 22px rgba(30, 103, 84, 0.16);
}

.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.primary-button svg {
  width: 17px;
  height: 17px;
}

.primary-button.dark {
  background: var(--ink);
  border-color: var(--ink);
}

.secondary-button {
  color: var(--green);
  background: transparent;
  border: 1px solid #cbd8d0;
}

.secondary-button:hover {
  background: var(--green-soft);
}

.danger-button {
  color: var(--white);
  background: var(--danger);
  border: 1px solid var(--danger);
}

.danger-button:hover {
  background: #9f443c;
}

.form-footnote {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  text-align: center;
}

.success-view {
  position: relative;
  display: grid;
  min-height: 630px;
  margin: -20px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(101, 160, 132, 0.2), transparent 40%),
    var(--green-dark);
  border-radius: 30px;
  place-items: center;
}

.success-card {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100% - 42px));
  margin: 55px 0;
  padding: 42px 42px 33px;
  text-align: center;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(7, 42, 32, 0.28);
  animation: success-in 500ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes success-in {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-check {
  display: grid;
  width: 66px;
  height: 66px;
  margin: -76px auto 22px;
  color: var(--white);
  background: var(--coral);
  border: 7px solid var(--green-dark);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(216, 111, 69, 0.24);
  place-items: center;
}

.success-check svg {
  width: 34px;
  height: 34px;
}

.success-kicker {
  color: var(--coral);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.success-card h2 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
}

.success-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.confirmation-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 130px;
  margin: 27px 0 17px;
  text-align: left;
  background: #f5f0e7;
  border: 1px solid #e8dfd1;
  border-radius: 16px;
  overflow: hidden;
}

.ticket-main {
  padding: 18px 20px;
}

.ticket-main span,
.ticket-side span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.ticket-main strong {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.ticket-main small {
  color: var(--green);
  font-size: 10px;
}

.ticket-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.46);
  border-left: 1px dashed #d8cfc1;
}

.ticket-side b {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ticket-cut::before,
.ticket-cut::after {
  position: absolute;
  left: calc(100% - 139px);
  width: 16px;
  height: 16px;
  content: "";
  background: var(--surface);
  border: 1px solid #e8dfd1;
  border-radius: 50%;
}

.ticket-cut::before {
  top: -9px;
}

.ticket-cut::after {
  bottom: -9px;
}

.success-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.success-details div {
  padding: 10px 12px;
  background: #faf8f3;
  border-radius: 10px;
}

.success-details span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}

.success-details strong {
  font-size: 12px;
}

.success-note {
  margin-top: 12px !important;
  color: var(--muted-2) !important;
  font-size: 9px !important;
}

.success-orbit {
  position: absolute;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.success-orbit span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.success-orbit span:nth-child(1) {
  inset: 70px;
}

.success-orbit span:nth-child(2) {
  inset: 145px;
}

.success-orbit span:nth-child(3) {
  top: 95px;
  right: 92px;
  width: 12px;
  height: 12px;
  background: var(--coral);
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 4px 42px;
  color: var(--muted);
  font-size: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(370px, calc(100% - 36px));
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 11px;
  box-shadow: 0 12px 35px rgba(20, 42, 34, 0.25);
  font-size: 12px;
  animation: toast-in 220ms ease both;
}

.toast.error {
  background: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  padding: 30px;
  color: var(--white);
  text-align: center;
  background: var(--ink);
  place-items: center;
}

/* Admin */
.admin-body {
  min-height: 100vh;
  background: #f3f1ec;
}

.login-view {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(480px, 1.1fr);
  min-height: 100vh;
  background: #f6f2e9;
}

.login-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: 64px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 35%),
    var(--green-dark);
}

.login-art::before {
  position: absolute;
  top: 16%;
  left: 20%;
  width: 240px;
  height: 240px;
  content: "";
  background: radial-gradient(circle, rgba(217, 142, 98, 0.24), transparent 68%);
  border-radius: 50%;
  filter: blur(10px);
}

.login-art-copy {
  position: relative;
  z-index: 2;
}

.login-art-copy span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.27em;
}

.login-art-copy strong {
  display: block;
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.35;
}

.login-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.login-orbit-one {
  top: -24%;
  right: -27%;
  width: 630px;
  height: 630px;
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.018),
    0 0 0 160px rgba(255, 255, 255, 0.012);
}

.login-orbit-two {
  right: 15%;
  bottom: 13%;
  width: 82px;
  height: 82px;
  background: rgba(216, 111, 69, 0.08);
  border-color: rgba(216, 111, 69, 0.2);
}

.login-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(420px, calc(100% - 80px));
  margin: 0 auto;
}

.admin-brand {
  margin-bottom: 70px;
}

.login-copy .eyebrow-line {
  color: var(--coral);
}

.login-copy h1 {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
}

.login-copy p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 46px;
}

.password-wrap button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 44px;
  height: 43px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  place-items: center;
}

.password-wrap svg {
  width: 19px;
  height: 19px;
}

.login-form .primary-button {
  margin-top: 18px;
}

.back-to-booking {
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.back-to-booking:hover {
  color: var(--green);
}

.admin-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 20px 24px;
  color: rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(circle at 20% 8%, rgba(91, 150, 121, 0.16), transparent 25%),
    #163d32;
}

.sidebar-brand {
  padding: 0 7px;
}

.sidebar-brand .brand-copy strong {
  color: var(--white);
}

.sidebar-brand .brand-copy small {
  color: rgba(255, 255, 255, 0.42);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 52px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  transition: 160ms ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 3px 0 var(--coral);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer a,
.sidebar-footer button {
  width: fit-content;
  padding: 0;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
}

.sidebar-footer a:hover,
.sidebar-footer button:hover {
  color: var(--white);
}

.admin-main {
  min-width: 0;
  padding: 30px 38px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.admin-topbar p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
}

.admin-topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  gap: 9px;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #dfddd6;
  border-radius: 9px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.icon-text-button svg {
  width: 14px;
  height: 14px;
}

.icon-text-button:hover {
  border-color: #b9c9c0;
}

.icon-text-button.inverse {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.icon-text-button.loading svg {
  animation: spin 0.8s linear infinite;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  min-height: 126px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #e9e5dd;
  border-radius: 15px;
}

.stat-card > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.stat-card strong {
  display: block;
  margin: 11px 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
}

.stat-card small {
  color: #969b96;
  font-size: 9px;
}

.stat-card > i {
  position: absolute;
  top: -28px;
  right: -26px;
  width: 90px;
  height: 90px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.09;
  box-shadow:
    0 0 0 15px currentColor,
    0 0 0 30px currentColor;
}

.stat-card.warm {
  color: var(--coral);
  background: #fbefe6;
}

.stat-card.green {
  color: var(--green);
  background: #eaf2ed;
}

.stat-card.blue {
  color: var(--blue);
  background: #edf1f4;
}

.stat-card.cream {
  color: #897b63;
  background: #f3eee4;
}

.admin-card {
  background: var(--white);
  border: 1px solid #e7e4dd;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(32, 57, 48, 0.035);
}

.table-card {
  padding: 23px 24px 16px;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-kicker {
  color: var(--coral);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.admin-card-head h2 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.export-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 0 13px;
  color: var(--green);
  background: #f1f6f3;
  border: 1px solid #d8e5de;
  border-radius: 9px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.export-button svg {
  width: 15px;
  height: 15px;
}

.export-button:hover {
  background: var(--green-soft);
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 9px;
  margin-top: 21px;
  padding: 13px;
  background: #f8f7f3;
  border: 1px solid #efede7;
  border-radius: 12px;
}

.search-box {
  position: relative;
  flex: 1 1 210px;
  min-width: 150px;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 15px;
  height: 15px;
  color: #949d97;
  transform: translateY(-50%);
}

.search-box input {
  height: 35px;
  padding: 0 10px 0 34px;
  background: var(--white);
  border: 1px solid #e3e1db;
  border-radius: 8px;
  font-size: 10px;
  outline: none;
}

.filter-field {
  flex: 0 1 122px;
  min-width: 105px;
}

.filter-field > span {
  display: block;
  margin-bottom: 5px;
  color: #8b928d;
  font-size: 8px;
}

.filter-field select,
.filter-field input {
  height: 35px;
  padding: 0 8px;
  background: var(--white);
  border: 1px solid #e3e1db;
  border-radius: 8px;
  font-size: 9px;
  outline: none;
}

.clear-button {
  height: 35px;
  padding: 0 7px;
  color: #7e8781;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 9px;
}

.clear-button:hover {
  color: var(--coral);
}

.table-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 2px 7px;
  color: #939a95;
  font-size: 9px;
}

.table-summary b {
  color: var(--ink);
  font-weight: 700;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th {
  padding: 10px 12px;
  color: #89918c;
  text-align: left;
  background: #faf9f6;
  border-top: 1px solid #efede8;
  border-bottom: 1px solid #efede8;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

th:first-child {
  border-radius: 8px 0 0 8px;
}

th:last-child {
  border-radius: 0 8px 8px 0;
}

td {
  padding: 12px;
  color: var(--ink);
  border-bottom: 1px solid #f1efe9;
  font-size: 9px;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: #fdfbf7;
}

.date-cell strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
}

.date-cell span {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 9px;
}

.teacher-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.teacher-pill::before {
  width: 5px;
  height: 5px;
  content: "";
  background: #70a088;
  border-radius: 50%;
}

.student-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
}

.student-id {
  display: block;
  margin-top: 4px;
  color: #a0a5a1;
  font-size: 7px;
}

.issue-cell {
  width: 240px;
  max-width: 240px;
  color: #626c66;
  line-height: 1.65;
}

.issue-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.created-cell {
  color: #7d8580;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: #3d7b63;
  background: #edf5f0;
  border-radius: 999px;
  font-size: 8px;
  white-space: nowrap;
}

.status-badge.cancelled {
  color: #8d8581;
  background: #f2f0ed;
}

.status-badge::before {
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.action-cell {
  text-align: right;
}

.cancel-link {
  padding: 4px 0;
  color: #9d8177;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-size: 8px;
  white-space: nowrap;
}

.cancel-link:hover {
  color: var(--danger);
  border-bottom-color: currentColor;
}

.empty-state {
  padding: 54px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  color: #a3aaa5;
  background: #f4f2ed;
  border-radius: 15px;
  place-items: center;
}

.empty-state-icon svg {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 13px;
}

.empty-state p {
  margin: 0;
  font-size: 9px;
}

.admin-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr);
  gap: 18px;
  margin-top: 18px;
}

.share-card,
.settings-card {
  padding: 23px 24px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #6f7b74;
  background: #faf9f6;
  border: 1px solid #e9e6df;
  border-radius: 8px;
  cursor: pointer;
  place-items: center;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-button:hover {
  color: var(--green);
  border-color: #cbd8d0;
}

.qr-layout {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 23px;
  align-items: center;
  margin-top: 20px;
}

.qr-box {
  display: grid;
  width: 158px;
  height: 158px;
  padding: 10px;
  background: var(--white);
  border: 1px solid #e8e3da;
  border-radius: 13px;
  place-items: center;
}

.qr-box svg {
  width: 136px;
  height: 136px;
}

.qr-copy h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.qr-copy > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.qr-copy label {
  margin-bottom: 5px;
  font-size: 8px;
}

.copy-row {
  display: flex;
  gap: 6px;
}

.copy-row input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  background: #faf9f6;
  border: 1px solid #e5e1d8;
  border-radius: 8px;
  font-size: 9px;
  outline: none;
}

.copy-row button {
  flex: 0 0 45px;
  color: var(--green);
  background: #eff5f1;
  border: 1px solid #d9e5de;
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
}

.qr-copy > small {
  display: block;
  margin-top: 7px;
  color: #a0a39e;
  font-size: 8px;
  line-height: 1.5;
}

.setting-badge {
  padding: 4px 8px;
  color: #92775e;
  background: #f8efe6;
  border-radius: 999px;
  font-size: 8px;
}

.settings-intro {
  margin: 15px 0 14px;
  color: var(--muted);
  font-size: 9px;
}

.teacher-settings-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teacher-name-field {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 8px;
}

.teacher-name-field span {
  color: var(--muted);
  font-size: 9px;
}

.teacher-name-field input {
  height: 34px;
  padding: 0 10px;
  background: #faf9f6;
  border: 1px solid #e5e1d8;
  border-radius: 8px;
  font-size: 10px;
  outline: none;
}

.compact-button {
  height: 35px;
  margin-top: 4px;
  font-size: 9px;
}

.admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 2px 10px;
  color: #9b9f9b;
  font-size: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  padding: 20px;
  background: rgba(16, 40, 32, 0.56);
  backdrop-filter: blur(4px);
  place-items: center;
}

.modal {
  position: relative;
  width: min(390px, 100%);
  padding: 31px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(9, 30, 23, 0.28);
  animation: success-in 240ms ease both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 15px;
  width: 28px;
  height: 28px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 21px;
}

.modal-kicker {
  color: var(--coral);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.modal h2 {
  margin: 8px 0 9px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.modal > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 24px;
}

.modal-actions button {
  height: 41px;
  font-size: 10px;
}

.appearance-card {
  margin-top: 18px;
  padding: 23px 24px 25px;
}

.appearance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 26px;
  margin-top: 18px;
}

.branding-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.branding-section {
  padding-bottom: 18px;
  border-bottom: 1px solid #efede7;
}

.branding-section h3 {
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.branding-fields {
  display: grid;
  gap: 10px;
}

.branding-fields.two-columns {
  grid-template-columns: 1fr 1fr;
}

.branding-fields.three-columns {
  grid-template-columns: repeat(3, 1fr);
}

.branding-section .two-columns {
  margin-bottom: 10px;
}

.branding-form label > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #7c857f;
  font-size: 8px;
}

.branding-form input[type="text"],
.branding-form textarea {
  width: 100%;
  color: var(--ink);
  background: #faf9f6;
  border: 1px solid #e5e1d8;
  border-radius: 8px;
  outline: none;
  font-size: 10px;
}

.branding-form input[type="text"] {
  height: 36px;
  padding: 0 10px;
}

.branding-form textarea {
  min-height: 68px;
  padding: 9px 10px;
  line-height: 1.6;
  resize: vertical;
}

.branding-form label + label {
  display: block;
}

.branding-section > label + label {
  margin-top: 10px;
}

.branding-form input[type="text"]:focus,
.branding-form textarea:focus {
  background: #fff;
  border-color: #7ca48f;
  box-shadow: 0 0 0 3px rgba(30, 103, 84, 0.07);
}

.theme-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}

.theme-presets button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  color: #6f7872;
  background: #faf9f6;
  border: 1px solid #e7e3db;
  border-radius: 7px;
  cursor: pointer;
  font-size: 8px;
}

.theme-presets button:hover {
  color: var(--ink);
  border-color: #bfcfc6;
}

.theme-presets i {
  width: 8px;
  height: 8px;
  background: #1e6754;
  border-radius: 50%;
  box-shadow: 8px 0 #d86f45;
  margin-right: 8px;
}

.theme-presets [data-preset="warm"] i {
  background: #8b4a37;
  box-shadow: 8px 0 #c88a3f;
}

.theme-presets [data-preset="ocean"] i {
  background: #315f7b;
  box-shadow: 8px 0 #e07a5f;
}

.theme-presets [data-preset="plum"] i {
  background: #674c6e;
  box-shadow: 8px 0 #c58a4f;
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 39px;
  padding: 4px 9px 4px 5px;
  background: #faf9f6;
  border: 1px solid #e5e1d8;
  border-radius: 8px;
}

.color-input-wrap input[type="color"] {
  width: 29px;
  height: 29px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.color-input-wrap b {
  color: #7f8882;
  font-size: 8px;
  font-weight: 500;
}

.branding-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
}

.image-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.image-setting-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 10px;
  background: #faf9f6;
  border: 1px solid #e7e3db;
  border-radius: 10px;
}

.asset-preview {
  display: grid;
  width: 90px;
  overflow: hidden;
  color: #9b9d98;
  background:
    linear-gradient(135deg, #f0ece3 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(315deg, #f0ece3 25%, transparent 25%) 0 0 / 12px 12px,
    #faf8f3;
  border: 1px dashed #dcd5ca;
  border-radius: 8px;
  font-size: 7px;
  place-items: center;
}

.logo-preview {
  aspect-ratio: 1;
  height: 90px;
}

.hero-preview {
  height: 74px;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-setting-card > div:last-child strong {
  display: block;
  color: var(--ink);
  font-size: 9px;
}

.image-setting-card p {
  margin: 4px 0 8px;
  color: #8f9691;
  font-size: 7px;
  line-height: 1.5;
}

.asset-actions {
  display: flex;
  gap: 6px;
}

.file-button,
.remove-asset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  padding: 0 7px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 7px;
}

.file-button {
  color: var(--green);
  background: #ecf4ef;
  border: 1px solid #d9e5de;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.remove-asset-button {
  color: #937c73;
  background: #fff;
  border: 1px solid #e4ddd7;
}

.file-button.uploading {
  cursor: wait;
  opacity: 0.6;
}

.image-upload-status {
  min-height: 13px;
  margin: 7px 0 0;
  color: #7d8881;
  font-size: 7px;
}

.image-upload-status.error {
  color: var(--danger);
}

.branding-actions button {
  height: 38px;
  font-size: 9px;
}

.appearance-preview {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 16px;
  background: #f4f1e9;
  border: 1px solid #e5e0d6;
  border-radius: 13px;
}

.preview-label {
  display: block;
  margin: 0 0 9px 2px;
  color: #8c928e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.mini-booking {
  --mini-primary: #1e6754;
  --mini-accent: #d86f45;
  --mini-bg: #f4efe5;
  --mini-ink: #18382f;
  overflow: hidden;
  padding: 15px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--mini-accent) 16%, transparent), transparent 38%),
    var(--mini-bg);
  border: 1px solid #e1dbcf;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(33, 54, 45, 0.08);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mini-brand > i {
  display: grid;
  width: 26px;
  height: 26px;
  color: #fff;
  background: var(--mini-primary);
  border-radius: 8px;
  font-size: 12px;
  font-style: normal;
  place-items: center;
}

.mini-brand div {
  display: flex;
  flex-direction: column;
}

.mini-brand strong {
  color: var(--mini-ink);
  font-size: 9px;
}

.mini-brand small {
  margin-top: 2px;
  color: #89928c;
  font-size: 6px;
  letter-spacing: 0.08em;
}

.mini-hero {
  padding: 23px 3px 17px;
}

.mini-hero > span {
  color: var(--mini-accent);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mini-hero h3 {
  margin: 8px 0 7px;
  color: var(--mini-ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.mini-hero h3 b {
  font-weight: inherit;
}

.mini-hero h3 em {
  position: relative;
  color: var(--mini-primary);
  font-style: normal;
}

.mini-hero h3 em::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 4px;
  content: "";
  background: color-mix(in srgb, var(--mini-accent) 25%, transparent);
  border-radius: 5px;
}

.mini-hero p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #6d7871;
  font-size: 7px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mini-schedule {
  padding: 11px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 220, 209, 0.9);
  border-radius: 9px;
}

.mini-schedule > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--mini-ink);
  font-family: var(--serif);
  font-size: 9px;
}

.mini-schedule > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.mini-schedule span {
  padding: 6px 2px;
  color: var(--mini-primary);
  text-align: center;
  background: color-mix(in srgb, var(--mini-primary) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--mini-primary) 20%, #fff);
  border-radius: 5px;
  font-size: 6px;
}

.appearance-preview > p {
  margin: 10px 2px 0;
  color: #989d99;
  font-size: 7px;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr 315px;
    gap: 36px;
  }

  .booking-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  }

  .slot-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-panel {
    padding: 28px 24px;
  }

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

  .admin-main {
    padding: 26px;
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .search-box {
    flex-basis: 42%;
  }

  .admin-lower-grid {
    grid-template-columns: 1fr;
  }

  .appearance-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(720px, calc(100% - 30px));
  }

  .site-header {
    padding: 22px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 6px 42px;
  }

  .hero h1 {
    font-size: clamp(46px, 11vw, 66px);
  }

  .hero-board {
    width: 100%;
    padding: 20px 24px;
  }

  .hero-board-top {
    margin-bottom: 16px;
  }

  .hero-time-block strong {
    font-size: 21px;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .form-panel {
    position: static;
  }

  .teacher-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .slot-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .success-view {
    min-height: 590px;
  }

  .login-view {
    grid-template-columns: 1fr;
  }

  .login-art {
    display: none;
  }

  .login-form-wrap {
    min-height: 100vh;
    padding: 40px 0;
  }

  .admin-brand {
    margin-bottom: 60px;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding: 15px 20px;
  }

  .sidebar-brand {
    padding: 0;
  }

  .sidebar-brand .brand-mark {
    width: 35px;
    height: 35px;
  }

  .sidebar-nav {
    flex-direction: row;
    margin-top: 15px;
    overflow-x: auto;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    padding: 9px 11px;
  }

  .nav-item.active {
    box-shadow: inset 0 -2px var(--coral);
  }

  .sidebar-footer {
    display: none;
  }

  .admin-main {
    padding: 22px 19px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .appearance-layout {
    grid-template-columns: 1fr;
  }

  .appearance-preview {
    position: static;
  }
}

@media (max-width: 600px) {
  .site-shell {
    width: calc(100% - 24px);
  }

  .site-header {
    padding: 16px 2px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .live-status {
    padding: 7px 10px;
    font-size: 9px;
  }

  .hero {
    padding: 29px 0 30px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .hero h1 {
    margin: 15px 0 14px;
    font-size: 45px;
    letter-spacing: -0.06em;
  }

  .hero-copy > p {
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-board {
    margin-top: 2px;
    padding: 17px 19px;
    border-radius: 19px;
  }

  .hero-board-top {
    margin-bottom: 13px;
  }

  .hero-time-block strong {
    font-size: 19px;
  }

  .hero-divider {
    margin: 12px 0;
  }

  .hero-board > p {
    margin-top: 13px;
  }

  .booking-layout {
    gap: 14px;
  }

  .panel {
    border-radius: 20px;
  }

  .schedule-panel,
  .form-panel {
    padding: 24px 18px;
  }

  .panel-heading {
    gap: 11px;
    padding-bottom: 21px;
  }

  .panel-heading h2 {
    font-size: 21px;
  }

  .panel-heading p {
    font-size: 10px;
  }

  .field-block {
    margin-top: 24px;
  }

  .date-item,
  .date-skeleton {
    flex-basis: 72px;
  }

  .teacher-list {
    gap: 7px;
  }

  .teacher-card {
    flex-direction: column;
    gap: 7px;
    padding: 10px 5px;
    text-align: center;
  }

  .teacher-info {
    width: 100%;
  }

  .teacher-info strong {
    font-size: 10px;
  }

  .teacher-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .slot-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

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

  .selection-summary {
    margin-top: 19px;
  }

  .form-field input {
    height: 46px;
    font-size: 16px;
  }

  .form-field textarea {
    font-size: 16px;
  }

  .success-view {
    min-height: 570px;
    margin-top: -4px;
    border-radius: 22px;
  }

  .success-card {
    width: calc(100% - 24px);
    padding: 39px 17px 25px;
    border-radius: 20px;
  }

  .success-check {
    margin-top: -69px;
  }

  .confirmation-ticket {
    grid-template-columns: 1fr;
  }

  .ticket-main {
    padding: 16px;
  }

  .ticket-side {
    padding: 12px 16px;
    border-top: 1px dashed #d8cfc1;
    border-left: 0;
  }

  .ticket-cut {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 26px 4px 32px;
  }

  .login-form-wrap {
    width: calc(100% - 42px);
  }

  .login-copy h1 {
    font-size: 32px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .admin-topbar h1 {
    font-size: 25px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions > * {
    flex: 1;
    justify-content: center;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-card {
    min-height: 112px;
    padding: 15px;
  }

  .stat-card strong {
    font-size: 27px;
  }

  .table-card {
    padding: 19px 14px 12px;
  }

  .admin-card-head h2 {
    font-size: 19px;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .filter-field {
    min-width: 0;
  }

  .clear-button {
    justify-self: start;
  }

  .qr-layout {
    grid-template-columns: 1fr;
  }

  .qr-box {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 19px;
  }

  .qr-box svg {
    width: 100%;
    height: 100%;
  }

  .branding-fields.two-columns,
  .branding-fields.three-columns {
    grid-template-columns: 1fr;
  }

  .image-settings-grid {
    grid-template-columns: 1fr;
  }

  .appearance-card {
    padding: 19px 14px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .admin-sidebar,
  .admin-topbar,
  .stat-grid,
  .table-card,
  .settings-card,
  .admin-footer,
  .admin-card-head button,
  .toast {
    display: none !important;
  }

  .admin-shell,
  .admin-main {
    display: block;
    padding: 0;
  }

  .admin-lower-grid {
    display: block;
    margin: 0;
  }

  .share-card {
    border: 0;
    box-shadow: none;
  }

  .print-only {
    display: block;
  }
}
