:root {
  color-scheme: light;
  --ink: #1f2428;
  --ink-soft: #4e565c;
  --muted: #737b81;
  --line: #dedfda;
  --line-strong: #c8cac5;
  --canvas: #f5f4f0;
  --surface: #ffffff;
  --surface-soft: #faf9f6;
  --sidebar: #171b1f;
  --sidebar-soft: #23282d;
  --primary: #1f655c;
  --primary-dark: #174c46;
  --primary-soft: #e7f2f0;
  --accent: #b9822d;
  --accent-soft: #fbf0de;
  --danger: #a13a3a;
  --danger-soft: #fbeaea;
  --warning: #8a611a;
  --warning-soft: #fff4d9;
  --info: #315f86;
  --info-soft: #eaf2f8;
  --success: #256849;
  --success-soft: #e7f3ec;
  --shadow-sm: 0 1px 2px rgb(21 25 28 / 6%), 0 5px 18px rgb(21 25 28 / 4%);
  --shadow-lg: 0 24px 70px rgb(14 18 20 / 22%);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --sidebar-width: 264px;
  --content-max: 1480px;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .58;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -.035em;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgb(185 130 45 / 38%);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-150%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
}

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

.brand-lockup > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-lockup strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.2;
}

.brand-lockup small {
  color: #aeb5ba;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .28em;
}

.brand-lockup--light {
  color: #f5f4ef;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  place-items: center;
  color: #f6d9a3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
}

.button,
.icon-button,
.text-button {
  appearance: none;
  border: 0;
  background: none;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .16s, background .16s, color .16s, transform .12s;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button--primary {
  color: #fff;
  background: var(--primary);
}

.button--primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.button--secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.button--secondary:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.button--danger {
  border-color: #e7bcbc;
  color: var(--danger);
  background: #fff;
}

.button--danger:hover:not(:disabled) {
  background: var(--danger-soft);
}

.button--small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}

.button--wide {
  width: 100%;
}

.button--sidebar {
  width: 100%;
  border-color: rgb(255 255 255 / 13%);
  color: #d9dddf;
  background: rgb(255 255 255 / 4%);
}

.button--sidebar:hover {
  border-color: rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 8%);
}

.text-button {
  min-height: 40px;
  padding: 7px 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 760;
}

.text-button:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 9px;
  place-items: center;
  color: var(--muted);
  font-size: 23px;
}

.icon-button:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.icon-button--dark {
  color: #f5f4ef;
}

.icon-button--dark:hover {
  color: #fff;
  background: rgb(255 255 255 / 10%);
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgb(255 255 255 / 38%);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .72s linear infinite;
}

.spinner--dark {
  display: inline-block;
  border-color: rgb(31 36 40 / 18%);
  border-top-color: var(--primary);
}

.is-loading .button__label {
  opacity: .7;
}

.is-loading .spinner {
  display: inline-block;
}

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

/* Login */

.login-page {
  min-height: 100vh;
  background: var(--surface);
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 46%) 1fr;
}

.login-brand {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 74px);
  color: #f1f1ed;
  background:
    radial-gradient(circle at 12% 90%, rgb(73 125 113 / 35%), transparent 34%),
    radial-gradient(circle at 90% 8%, rgb(185 130 45 / 22%), transparent 27%),
    linear-gradient(145deg, #14191c, #20272a 60%, #171b1f);
}

.login-brand::after {
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgb(255 255 255 / 2%),
    0 0 0 160px rgb(255 255 255 / 1.5%);
  content: "";
  pointer-events: none;
}

.login-brand__copy {
  position: relative;
  z-index: 1;
  max-width: 570px;
  padding: 70px 0;
}

.login-brand__copy h1 {
  max-width: 530px;
  margin-bottom: 24px;
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.14;
}

.login-brand__copy > p:last-child {
  max-width: 480px;
  margin-bottom: 0;
  color: #b8bec1;
  font-size: 16px;
  line-height: 1.8;
}

.login-brand__foot {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #858d92;
  font-size: 12px;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  padding: 36px;
  background: #fff;
  place-items: center;
}

.login-card {
  width: min(100%, 430px);
}

.login-card__head {
  margin-bottom: 32px;
}

.login-card__head h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.25;
}

.login-card__head > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.login-card .field {
  margin-bottom: 20px;
}

.login-help {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  min-height: 34px;
  transform: translateY(-50%);
}

.form-message {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #efc8c8;
  border-radius: 8px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 13px;
}

.noscript {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 9999;
  padding: 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--danger);
  text-align: center;
}

/* Admin shell */

.app-loader {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

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

.sidebar {
  position: fixed;
  z-index: 90;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 28px 20px 22px;
  color: #d6dadc;
  background:
    radial-gradient(circle at 10% 92%, rgb(54 99 89 / 20%), transparent 34%),
    var(--sidebar);
}

.sidebar__brand {
  margin: 2px 8px 36px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 0;
  border-radius: 9px;
  color: #aeb5b9;
  background: transparent;
  font-size: 14px;
  font-weight: 690;
  text-align: left;
  transition: color .15s, background .15s;
}

.nav-item:hover {
  color: #f6f5f1;
  background: rgb(255 255 255 / 6%);
}

.nav-item--external {
  text-decoration: none;
}

.nav-item.is-active {
  color: #fff;
  background: #293033;
  box-shadow: inset 3px 0 0 #d5aa62;
}

.nav-icon {
  display: grid;
  width: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: #d3aa67;
  font-size: 18px;
  line-height: 1;
}

.sidebar__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 9%);
}

.sidebar-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  color: #abb2b6;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.sidebar-link:hover {
  color: #fff;
}

.admin-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0 16px;
}

.admin-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  place-items: center;
  color: #e8c98f;
  background: #343b3e;
  font-family: Georgia, serif;
}

.admin-identity > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.admin-identity strong {
  overflow: hidden;
  color: #eef0ef;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-identity small {
  overflow: hidden;
  color: #858d92;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-header {
  display: none;
}

.nav-scrim {
  position: fixed;
  z-index: 80;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(10 13 15 / 50%);
  backdrop-filter: blur(2px);
}

.admin-main {
  grid-column: 2;
  width: min(100%, calc(var(--content-max) + 96px));
  min-width: 0;
  min-height: 100vh;
  padding: 45px 48px 72px;
}

.page-header {
  display: flex;
  min-height: 87px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.page-header h1 {
  margin-bottom: 6px;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 730;
  line-height: 1.22;
}

.page-header > div:first-child > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 17px;
}

.app-view {
  animation: view-in .18s ease;
}

@keyframes view-in {
  from { opacity: .25; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

/* Dashboard */

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

.stat-card {
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.stat-card__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-card__icon {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 14px;
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 29px;
  font-weight: 730;
  letter-spacing: -.04em;
  line-height: 1;
}

.stat-card small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel--wide {
  grid-row: span 2;
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.panel__head h2 {
  margin: 0;
  font-size: 18px;
}

.booking-preview-list,
.task-list,
.readiness-list {
  display: flex;
  flex-direction: column;
}

.booking-preview {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid #ecece8;
}

.booking-preview:first-child {
  padding-top: 4px;
  border-top: 0;
}

.booking-preview__date {
  display: flex;
  flex-direction: column;
  color: var(--ink-soft);
  font-size: 11px;
}

.booking-preview__date strong {
  color: var(--ink);
  font-size: 16px;
}

.booking-preview__body {
  min-width: 0;
}

.booking-preview__body strong {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-preview__body small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-item,
.readiness-item {
  display: flex;
  min-height: 51px;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid #ecece8;
}

.task-item:first-child,
.readiness-item:first-child {
  padding-top: 2px;
  border-top: 0;
}

.task-item__count {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 50%;
  place-items: center;
  color: var(--warning);
  background: var(--warning-soft);
  font-size: 12px;
  font-weight: 800;
}

.task-item button {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  text-align: left;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot--ok { background: var(--success); }
.status-dot--info { background: var(--info); }
.status-dot--warning { background: #d39832; }
.status-dot--error { background: var(--danger); }

.readiness-item > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  font-size: 13px;
}

.readiness-item small {
  color: var(--muted);
  font-size: 11px;
}

/* Toolbars and content states */

.toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}

.toolbar--wrap {
  flex-wrap: wrap;
}

.search-field {
  position: relative;
  display: flex;
  width: min(100%, 360px);
  align-items: center;
}

.search-field > span:not(.sr-only) {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.search-field input {
  padding-left: 42px;
}

.compact-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.compact-field > span:not(.sr-only) {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.compact-field select {
  width: auto;
  min-width: 130px;
}

.empty-state {
  padding: 44px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgb(255 255 255 / 44%);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 20px;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

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

.skeleton {
  overflow: hidden;
  border-radius: 7px;
  color: transparent !important;
  background: linear-gradient(100deg, #ecece8 30%, #f7f7f4 50%, #ecece8 70%);
  background-size: 300% 100%;
  animation: skeleton 1.25s ease-in-out infinite;
}

@keyframes skeleton {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.inline-error {
  padding: 14px;
  border: 1px solid #efc7c7;
  border-radius: 9px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 13px;
}

.pagination {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.pagination__summary {
  color: var(--muted);
  font-size: 12px;
}

.pagination__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination__controls label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 7px;
  color: var(--muted);
  font-size: 11px;
}

.pagination select {
  min-height: 36px;
  padding: 6px 28px 6px 9px;
  font-size: 12px;
}

.pagination button {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  background: #fff;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

/* Booking pages */

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

.page-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.page-card.is-archived {
  opacity: .72;
}

.page-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.page-card__head > div {
  min-width: 0;
}

.page-card__head h2 {
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-card__url {
  display: block;
  overflow: hidden;
  color: var(--primary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-card__status {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.page-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 16px;
}

.page-card__meta > div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.page-card__meta dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.page-card__meta dd {
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-card__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 16px;
  padding: 13px 0;
  border-top: 1px solid #ecece8;
  border-bottom: 1px solid #ecece8;
}

.mini-switch {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 690;
}

.page-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 13px;
}

.page-card__actions .button:first-child {
  margin-right: auto;
}

/* Badges */

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #eceeea;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
  white-space: nowrap;
}

.badge--success {
  color: var(--success);
  background: var(--success-soft);
}

.badge--warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.badge--danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.badge--info {
  color: var(--info);
  background: var(--info-soft);
}

.badge--muted {
  color: #686f74;
  background: #eceeea;
}

.badge--gold {
  color: #795418;
  background: var(--accent-soft);
}

/* Data table */

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e9eae6;
  vertical-align: middle;
  text-align: left;
}

.data-table th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .02em;
}

.data-table td {
  font-size: 12px;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fcfcfa;
}

.data-table th:nth-child(1) { width: 14%; }
.data-table th:nth-child(2) { width: 18%; }
.data-table th:nth-child(3) { width: 17%; }
.data-table th:nth-child(4) { width: 10%; }
.data-table th:nth-child(5) { width: 14%; }
.data-table th:nth-child(6) { width: 12%; }
.data-table th:nth-child(7) { width: 15%; }

.table-primary {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-secondary {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.menu-button {
  min-width: 36px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.action-menu {
  position: fixed;
  z-index: 120;
  display: flex;
  width: 190px;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 15px 45px rgb(18 21 23 / 18%);
}

.action-menu button {
  min-height: 39px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 12px;
  font-weight: 680;
  text-align: left;
}

.action-menu button:hover {
  background: var(--surface-soft);
}

.action-menu button[data-danger="true"] {
  color: var(--danger);
}

/* Availability */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.notice--info {
  border-color: #cbdfea;
  background: var(--info-soft);
}

.notice--warning {
  border-color: #ecd6a8;
  background: var(--warning-soft);
}

.notice--danger {
  border-color: #efc7c7;
  background: var(--danger-soft);
}

.notice--success {
  border-color: #c2dece;
  background: var(--success-soft);
}

.notice__icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 50%;
  place-items: center;
  color: var(--info);
  background: rgb(255 255 255 / 72%);
  font-family: Georgia, serif;
  font-weight: 700;
}

.notice strong {
  display: block;
  margin-bottom: 1px;
  font-size: 13px;
}

.notice p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

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

.profile-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-card__head h2 {
  margin-bottom: 3px;
  font-size: 17px;
}

.profile-card__head p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.weekly-summary {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.weekly-summary__row {
  display: grid;
  min-height: 35px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ecece8;
}

.weekly-summary__row:first-child {
  border-top: 0;
}

.weekly-summary__row strong {
  font-size: 11px;
}

.weekly-summary__row span {
  color: var(--ink-soft);
  font-size: 11px;
}

.weekly-summary__row.is-off span {
  color: #9a9fa2;
}

.profile-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #ecece8;
}

.profile-card__foot small {
  color: var(--muted);
  font-size: 10px;
}

.schedule-editor {
  margin-top: 26px;
}

.schedule-editor__head {
  margin-bottom: 10px;
}

.schedule-editor__head h3 {
  margin-bottom: 3px;
  font-size: 15px;
}

.schedule-editor__head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.schedule-day {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 38px;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #e8e9e5;
}

.schedule-day__label {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
}

.schedule-day__slots {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.schedule-slot {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) 16px minmax(105px, 1fr) 36px;
  align-items: center;
  gap: 6px;
}

.schedule-slot > span {
  color: var(--muted);
  text-align: center;
}

.schedule-slot input {
  min-width: 0;
}

.slot-remove,
.slot-add {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  background: #fff;
  font-size: 16px;
}

.slot-remove {
  color: var(--danger);
}

.slot-add {
  align-self: start;
  margin-top: 2px;
  color: var(--primary);
}

.schedule-day.is-off .schedule-day__slots {
  min-height: 40px;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
}

/* Integrations */

.integration-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.integration-toolbar h2,
.integration-section__head h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.integration-toolbar p,
.integration-section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.integration-toolbar__actions,
.integration-account__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

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

.integration-section {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.integration-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.integration-account-list {
  display: grid;
  gap: 10px;
}

.integration-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.integration-account__identity {
  min-width: 0;
}

.integration-account__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.integration-account__title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-account__identity p,
.integration-account__identity small {
  display: block;
  overflow-wrap: anywhere;
}

.integration-account__identity p {
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.integration-account__identity small {
  color: var(--muted);
  font-size: 10px;
}

.integration-empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  text-align: center;
}

.integration-card {
  display: grid;
  min-height: 148px;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.integration-card__icon {
  display: grid;
  width: 45px;
  height: 45px;
  border-radius: 11px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 18px;
  font-weight: 800;
}

.integration-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 7px;
}

.integration-card__head h2 {
  margin: 0;
  font-size: 16px;
}

.integration-card p {
  min-height: 35px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.integration-card small {
  color: var(--muted);
  font-size: 10px;
}

.mail-health-issues {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mail-health-issues > strong {
  font-size: 11px;
}

.mail-health-issue {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--surface-soft);
}

.mail-health-issue > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mail-health-issue span,
.mail-health-issue p {
  font-size: 10px;
}

.mail-health-issue p {
  margin: 0;
  color: var(--ink-soft);
}

.integration-flow-status {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 11px;
  line-height: 1.6;
}

.integration-flow-status.is-working {
  border-color: #a9c9c4;
  color: var(--primary);
  background: var(--primary-soft);
}

.integration-flow-status.is-success {
  border-color: #9fc6b2;
  color: #166044;
  background: #edf8f2;
}

.integration-flow-status.is-error {
  border-color: #e3b1ae;
  color: var(--danger);
  background: #fff3f2;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.copy-field .button {
  height: 38px;
}

/* Forms */

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field label,
.field legend {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 740;
}

.field legend {
  margin-bottom: 8px;
}

.field > small,
.input-help {
  color: var(--muted);
  font-size: 10px;
}

fieldset.field {
  padding: 0;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  line-height: 1.3;
  transition: border-color .14s, box-shadow .14s;
}

textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: #a3a8aa;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aeb2ae;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgb(31 101 92 / 12%);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  accent-color: var(--primary);
}

.input-prefix,
.input-suffix {
  display: flex;
  min-width: 0;
  align-items: stretch;
}

.input-prefix > span,
.input-suffix > span {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  white-space: nowrap;
}

.input-prefix > span {
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.input-prefix input {
  min-width: 0;
  border-radius: 0 8px 8px 0;
}

.input-suffix input {
  min-width: 0;
  border-radius: 8px 0 0 8px;
}

.input-suffix > span {
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

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

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

.form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field--span-2 {
  grid-column: span 2;
}

.field--span-all {
  grid-column: 1 / -1;
}

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

.calendar-check {
  display: flex;
  min-width: 0;
  min-height: 47px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.calendar-check:has(input:checked) {
  border-color: #8db9b2;
  background: var(--primary-soft);
}

.calendar-check input {
  flex: 0 0 18px;
}

.calendar-check > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.calendar-check strong,
.calendar-check small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-check strong {
  color: var(--ink);
  font-size: 11px;
}

.calendar-check small {
  color: var(--muted);
  font-size: 9px;
}

.calendar-check input:disabled + span strong::after {
  margin-left: 5px;
  color: var(--primary);
  content: "저장";
  font-size: 8px;
  font-weight: 800;
}

.calendar-empty {
  grid-column: 1 / -1;
  padding: 11px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
}

.questions-editor {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.questions-list {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.question-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.question-card__head {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px 7px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.question-card__head strong {
  font-size: 12px;
}

.question-card__actions {
  display: flex;
  gap: 4px;
}

.question-card__actions button {
  display: grid;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  place-items: center;
  font-size: 15px;
}

.question-card__actions button:hover:not(:disabled) {
  color: var(--ink);
  background: var(--surface-soft);
}

.question-card__actions [data-question-action="remove"] {
  color: var(--danger);
}

.question-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, .75fr);
  gap: 14px;
  padding: 14px;
}

.question-card__body .question-options-field {
  grid-column: 1 / -1;
}

.question-description-editor {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.question-options-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 740;
}

.question-options-editor {
  display: grid;
  gap: 8px;
}

.question-option-editor {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 5px 5px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.question-option-editor:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(31 101 92 / 12%);
}

.question-option-editor .question-option-editor__preview {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  opacity: 1;
  pointer-events: none;
}

.question-option-editor [data-question-option] {
  min-height: 36px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.question-option-editor [data-question-option]:focus {
  box-shadow: none;
}

.question-option-editor [data-question-option-action="remove"] {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  color: var(--danger);
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.question-option-editor [data-question-option-action="remove"]:hover {
  background: #fff1ef;
}

.question-option-add {
  align-self: flex-start;
}

.question-option-editor--other {
  grid-template-columns: 18px minmax(0, 1fr);
  padding-right: 12px;
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.question-option-editor--other small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 9px;
}

.question-other-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.question-other-toggle > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.question-other-toggle strong {
  color: var(--ink-soft);
  font-size: 11px;
}

.question-other-toggle small {
  color: var(--muted);
  font-size: 9px;
}

.question-required {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}

.questions-empty {
  width: 100%;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  text-align: center;
}

.form-section {
  padding: 25px 0;
  border-bottom: 1px solid #e8e9e5;
}

.form-section:first-child {
  padding-top: 2px;
}

.form-section--last {
  padding-bottom: 2px;
  border-bottom: 0;
}

.form-section__head {
  margin-bottom: 18px;
}

.form-section__head h3 {
  margin-bottom: 3px;
  font-size: 16px;
}

.form-section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.check-card {
  display: flex;
  min-height: 67px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.check-card:has(input:checked) {
  border-color: #8db9b2;
  background: var(--primary-soft);
}

.check-card > span {
  display: flex;
  flex-direction: column;
}

.check-card strong {
  font-size: 12px;
}

.check-card small {
  color: var(--muted);
  font-size: 9px;
}

.segmented {
  position: relative;
  display: inline-flex;
  margin: 0 0 18px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.segmented label {
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.segmented input:focus-visible + span {
  outline: 3px solid rgb(185 130 45 / 38%);
}

.segmented input:checked + span {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 5px rgb(20 24 26 / 10%);
}

.switch-list {
  display: flex;
  flex-direction: column;
}

.switch-row {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid #ecece8;
  cursor: pointer;
}

.switch-row:first-child {
  border-top: 0;
}

.switch-row > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.switch-row strong {
  font-size: 12px;
}

.switch-row small {
  color: var(--muted);
  font-size: 10px;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #bfc3c1;
  transition: background .18s;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 22%);
  content: "";
  transition: transform .18s;
}

.switch input:checked + span {
  background: var(--primary);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.switch input:focus-visible + span {
  outline: 3px solid rgb(185 130 45 / 38%);
  outline-offset: 2px;
}

/* Modals */

.modal {
  width: min(calc(100vw - 32px), 720px);
  max-width: none;
  max-height: min(90vh, 920px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.modal--large {
  width: min(calc(100vw - 40px), 940px);
}

.modal--medium {
  width: min(calc(100vw - 36px), 760px);
}

.modal--small {
  width: min(calc(100vw - 32px), 520px);
}

.modal::backdrop {
  background: rgb(11 15 17 / 57%);
  backdrop-filter: blur(2px);
}

.modal > form {
  display: flex;
  max-height: min(90vh, 920px);
  flex-direction: column;
}

.modal__head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.modal__head h2 {
  margin: 0;
  font-size: 21px;
}

.modal__body {
  min-height: 0;
  padding: 23px 26px;
  overflow: auto;
  overscroll-behavior: contain;
}

.modal__foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 15px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.booking-detail {
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--surface-soft);
}

.booking-detail dl {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}

.booking-detail dt {
  color: var(--muted);
  font-size: 11px;
}

.booking-detail dd {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
}

.booking-answers {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.booking-answers h3 {
  margin: 0 0 2px;
  font-size: 13px;
}

.booking-answer {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.booking-answer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.booking-answer p,
.booking-answers__empty {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.booking-answers__empty {
  color: var(--muted);
}

.booking-history {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.booking-history > h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.booking-history__state {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.booking-history__state .button {
  margin-top: 10px;
}

.booking-history__list {
  display: grid;
  gap: 12px;
}

.booking-history__item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.booking-history__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.booking-history__head strong {
  margin-right: auto;
  font-size: 12px;
}

.booking-history__item dl {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}

.booking-history__item dt {
  color: var(--muted);
  font-size: 10px;
}

.booking-history__item dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.action-form-fields {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 18px;
}

.admin-slots-status {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  line-height: 1.55;
}

.admin-slots-status--error {
  border-color: rgb(172 53 44 / 24%);
  color: #9d3029;
  background: #fff5f3;
}

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

.admin-slot-button {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  transition: border-color .14s, color .14s, background .14s, box-shadow .14s;
}

.admin-slot-button:hover {
  border-color: var(--ink);
}

.admin-slot-button:focus-visible {
  outline: 3px solid rgb(185 130 45 / 20%);
  outline-offset: 2px;
}

.admin-slot-button[aria-pressed="true"] {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 14px rgb(185 130 45 / 20%);
}

.operation-guidance {
  margin-bottom: 18px;
}

.operation-error-code {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .02em;
}

/* Toast */

.toast-region {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  display: flex;
  width: min(360px, calc(100vw - 32px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  color: #f7f7f4;
  background: #242a2d;
  box-shadow: 0 12px 35px rgb(15 18 20 / 24%);
  font-size: 12px;
  animation: toast-in .2s ease;
}

.toast--error {
  background: #7e3030;
}

.toast__icon {
  color: #e2bd7d;
  font-weight: 800;
}

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

/* Responsive */

@media (max-width: 1120px) {
  .admin-main {
    padding-right: 30px;
    padding-left: 30px;
  }

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

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .85fr);
  }

  .form-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: minmax(320px, 39%) 1fr;
  }

  .login-brand {
    padding: 36px;
  }

  .login-brand__copy h1 {
    font-size: 38px;
  }

  .admin-shell {
    display: block;
    padding-top: 64px;
  }

  .mobile-header {
    position: fixed;
    z-index: 75;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    background: var(--sidebar);
    box-shadow: 0 3px 14px rgb(17 21 23 / 15%);
  }

  .mobile-header .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 18px;
  }

  .mobile-header .brand-lockup strong {
    font-size: 11px;
  }

  .sidebar {
    z-index: 90;
    width: min(310px, calc(100vw - 54px));
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 18px 0 50px rgb(10 13 15 / 24%);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .admin-main {
    width: 100%;
    margin-left: 0;
    padding: 30px 24px 60px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .panel--wide {
    grid-row: auto;
  }

  .page-card-list,
  .profile-list,
  .integration-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .login-layout {
    display: block;
  }

  .login-brand {
    min-height: auto;
    padding: 27px 24px 30px;
  }

  .login-brand__copy {
    padding: 48px 0 15px;
  }

  .login-brand__copy h1 {
    margin-bottom: 15px;
    font-size: 34px;
  }

  .login-brand__copy > p:last-child {
    font-size: 14px;
  }

  .login-brand__foot {
    display: none;
  }

  .login-panel {
    min-height: auto;
    padding: 38px 24px 55px;
  }

  .login-card__head h2 {
    font-size: 27px;
  }

  .admin-main {
    padding: 25px 16px 55px;
  }

  .integration-toolbar,
  .integration-section__head,
  .integration-account {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-toolbar {
    display: flex;
  }

  .integration-section__head {
    display: flex;
  }

  .integration-account {
    display: flex;
  }

  .integration-toolbar__actions,
  .integration-account__actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .integration-toolbar__actions .button,
  .integration-account__actions .button {
    width: 100%;
  }

  .integration-toolbar__actions [data-integration-action="zoom-create"] {
    grid-column: 1 / -1;
  }

  .copy-field {
    grid-template-columns: 1fr;
  }

  .page-header {
    min-height: auto;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 23px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header__actions {
    width: 100%;
    justify-content: stretch;
    padding-top: 0;
  }

  .page-header__actions .button {
    flex: 1;
  }

  .stat-grid {
    gap: 9px;
  }

  .stat-card {
    padding: 15px;
  }

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

  .dashboard-grid {
    gap: 11px;
  }

  .panel {
    padding: 18px 16px;
  }

  .booking-preview {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 10px;
  }

  .booking-preview > .badge {
    display: none;
  }

  .toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .search-field {
    width: 100%;
  }

  .compact-field {
    min-width: calc(50% - 5px);
    flex: 1;
  }

  .compact-field select {
    width: 100%;
    min-width: 0;
  }

  .page-card {
    padding: 16px;
  }

  .page-card__head {
    flex-direction: column;
  }

  .page-card__status {
    justify-content: flex-start;
  }

  .page-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-card__controls {
    grid-template-columns: 1fr;
  }

  .page-card__actions .button {
    flex: 1;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .data-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .data-table tbody tr {
    overflow: hidden;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  .data-table td {
    display: grid;
    min-height: 42px;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #ecece8;
    text-align: right;
  }

  .data-table td::before {
    align-self: start;
    padding-top: 1px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 750;
    text-align: left;
  }

  .data-table tbody tr td:last-child {
    min-height: 48px;
    border-bottom: 0;
  }

  .table-primary,
  .table-secondary {
    text-align: right;
  }

  .table-actions {
    justify-content: flex-end;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination__controls {
    width: 100%;
    justify-content: flex-end;
  }

  .schedule-day {
    grid-template-columns: 70px minmax(0, 1fr) 36px;
    gap: 7px;
  }

  .schedule-slot {
    grid-template-columns: minmax(0, 1fr) 13px minmax(0, 1fr) 34px;
  }

  .schedule-slot input {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 12px;
  }

  .form-grid--2,
  .form-grid--3 {
    grid-template-columns: 1fr;
  }

  .field--span-2 {
    grid-column: auto;
  }

  .field--span-all {
    grid-column: auto;
  }

  .calendar-check-list {
    grid-template-columns: 1fr;
  }

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

  .question-card__body {
    grid-template-columns: 1fr;
  }

  .question-card__body .question-options-field {
    grid-column: auto;
  }

  .modal,
  .modal--large,
  .modal--medium,
  .modal--small {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .modal > form {
    max-height: calc(100dvh - 16px);
  }

  .modal__head {
    padding: 18px 17px 14px;
  }

  .modal__body {
    padding: 19px 17px;
  }

  .modal__foot {
    padding: 12px 17px;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .segmented {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .segmented span {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 10px;
  }

  .toast-region {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }
}

@media (max-width: 420px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .stat-card__top {
    grid-column: 1 / -1;
  }

  .stat-card small {
    text-align: right;
  }

  .schedule-day {
    grid-template-columns: 1fr 36px;
  }

  .schedule-day__label {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .schedule-day__slots {
    grid-column: 1;
  }

  .schedule-day > .slot-add {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .sidebar,
  .mobile-header,
  .page-header__actions,
  .toolbar,
  .pagination,
  .button,
  .text-button,
  .toast-region {
    display: none !important;
  }

  .admin-shell {
    display: block;
  }

  .admin-main {
    width: 100%;
    margin: 0;
    padding: 20px;
  }
}
.booking-request-badge {
  display: block;
  margin-top: 0.35rem;
}

.change-request-detail {
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid #e3d4ad;
  border-radius: 14px;
  background: #fffaf0;
}

.change-request-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.change-request-detail__head h3 {
  margin: 0.15rem 0 0;
}

.change-request-detail dl {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.4fr) 1fr;
  gap: 0.7rem 1rem;
  margin: 0;
}

.change-request-detail dt {
  color: #687076;
  font-size: 0.84rem;
}

.change-request-detail dd {
  margin: 0;
  color: #171b1f;
  overflow-wrap: anywhere;
}

.change-request-detail__reason {
  padding: 0.7rem 0.8rem;
  border-radius: 9px;
  background: #ffffff;
  font-weight: 650;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .change-request-detail__head {
    display: block;
  }

  .change-request-detail dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .change-request-detail dd {
    margin-bottom: 0.65rem;
  }
}
