:root {
  --ms-blue: #0067b8;
  --ms-blue-dark: #005a9e;
  --ms-blue-light: #e5f1fb;
  --ms-green: #107c10;
  --ms-green-light: #e6f4e6;
  --ms-red: #a4262c;
  --ms-red-light: #fde7e9;
  --ms-yellow: #8a6d00;
  --ms-yellow-light: #fff4ce;
  --ink: #242424;
  --ink-soft: #424242;
  --muted: #616161;
  --faint: #8a8886;
  --line: #e5e5e5;
  --line-strong: #d1d1d1;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-blue: #f3f9fd;
  --page: #f3f2f1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  background: var(--page);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--ms-blue);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ms-blue);
  outline-offset: 2px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--ms-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  background: #ebebeb;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-primary {
  background: var(--ms-blue);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 103, 184, 0.28);
}

.btn-primary:hover {
  background: var(--ms-blue-dark);
}

.btn-outline {
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn-outline:hover {
  border-color: var(--ms-blue);
  background: var(--ms-blue-light);
  color: var(--ms-blue-dark);
}

.btn-danger {
  border-color: #e6b8bb;
  background: #ffffff;
  color: var(--ms-red);
}

.btn-danger:hover {
  border-color: var(--ms-red);
  background: var(--ms-red-light);
}

.btn-success {
  border-color: #b7ddb7;
  background: #ffffff;
  color: var(--ms-green);
}

.btn-success:hover {
  border-color: var(--ms-green);
  background: var(--ms-green-light);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ms-blue);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  border-left-color: var(--ms-red);
}

.toast.is-success {
  border-left-color: var(--ms-green);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 1px;
}

.brand-mark span:nth-child(1) {
  background: #f25022;
}

.brand-mark span:nth-child(2) {
  background: #7fba00;
}

.brand-mark span:nth-child(3) {
  background: #00a4ef;
}

.brand-mark span:nth-child(4) {
  background: #ffb900;
}

.topbar-note {
  color: var(--muted);
  font-size: 13px;
}

.booking-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 103, 184, 0.07), transparent 32rem),
    linear-gradient(180deg, #fafafa 0%, var(--page) 100%);
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 40px auto 64px;
  align-items: start;
}

.host-card {
  position: sticky;
  top: 88px;
  padding: 26px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(0, 103, 184, 0.08), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.host-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0a7bc2, #004e8c);
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 89, 158, 0.24);
}

.host-name {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.host-title {
  color: var(--muted);
  font-size: 14px;
}

.host-email {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.host-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}

.meeting-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.meeting-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.meeting-meta {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--ms-blue-light);
  color: var(--ms-blue);
}

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

.scheduler-card {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.scheduler-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 20px;
  border-bottom: 1px solid var(--line);
}

.scheduler-head h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ms-blue);
}

.dot.is-busy {
  background: #c8c6c4;
}

.date-strip {
  display: flex;
  gap: 10px;
  padding: 20px 30px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.date-button {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 72px;
  padding: 11px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.date-button:hover {
  border-color: #9bc8e8;
  background: var(--surface-blue);
  transform: translateY(-1px);
}

.date-button .date-weekday {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.date-button .date-day {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.date-button .date-month {
  color: var(--muted);
  font-size: 11px;
}

.date-button.is-active {
  border-color: var(--ms-blue);
  background: var(--ms-blue);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 103, 184, 0.25);
}

.date-button.is-active .date-weekday,
.date-button.is-active .date-month {
  color: rgba(255, 255, 255, 0.82);
}

.time-section {
  padding: 24px 30px 28px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h3 {
  font-size: 16px;
  font-weight: 600;
}

.section-heading p {
  color: var(--muted);
  font-size: 12px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 9px;
  min-height: 94px;
}

.slot-button {
  min-height: 44px;
  padding: 10px 8px;
  border: 1px solid #9bc8e8;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ms-blue-dark);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.slot-button:hover:not(:disabled) {
  border-color: var(--ms-blue);
  background: var(--ms-blue-light);
  transform: translateY(-1px);
}

.slot-button.is-selected {
  border-color: var(--ms-blue);
  background: var(--ms-blue);
  color: #ffffff;
}

.slot-button:disabled {
  border-color: var(--line);
  background: var(--surface-soft);
  color: #a19f9d;
  cursor: not-allowed;
  text-decoration: line-through;
}

.slot-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.scheduler-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  background: #fbfbfb;
}

.selection-summary {
  color: var(--muted);
  font-size: 13px;
}

.selection-summary strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(32, 31, 30, 0.48);
  backdrop-filter: blur(3px);
  animation: fade-in 140ms ease;
}

.modal {
  width: min(560px, 100%);
  max-height: min(86vh, 820px);
  overflow-y: auto;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: pop-in 160ms ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-head h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

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

.modal-slot {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid #cfe6f5;
  border-radius: 10px;
  background: var(--surface-blue);
}

.modal-slot-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 9px;
  background: #ffffff;
  color: var(--ms-blue);
  box-shadow: var(--shadow-sm);
}

.modal-slot-icon svg {
  width: 18px;
  height: 18px;
}

.modal-slot strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

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

.field {
  display: block;
  margin-bottom: 15px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.field > span em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8b8b8;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9a9a;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ms-blue);
  box-shadow: 0 0 0 1px var(--ms-blue);
  outline: none;
}

.field small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.turnstile-wrap {
  min-height: 72px;
  margin: 18px 0 8px;
}

.turnstile-fallback {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.form-error {
  margin: 4px 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--ms-red);
  border-radius: 4px;
  background: var(--ms-red-light);
  color: #7a1b20;
  font-size: 13px;
}

.fine-print {
  margin-top: 14px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.verify-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #cfe6f5;
  border-radius: 10px;
  background: var(--surface-blue);
}

.verify-status strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.verify-status p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  border: 2px solid #b9dcf3;
  border-top-color: var(--ms-blue);
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}

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

.iframe-frame {
  overflow: hidden;
  height: min(62vh, 560px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.iframe-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.success-view {
  padding: 8px 4px 4px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 6px auto 18px;
  border-radius: 50%;
  background: var(--ms-green-light);
  color: var(--ms-green);
}

.success-icon svg {
  width: 30px;
  height: 30px;
}

.success-view h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.success-view > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.success-details {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  text-align: left;
}

.success-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.success-detail-row strong {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: right;
}

.login-body {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 15%, rgba(0, 103, 184, 0.12), transparent 30rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

.login-card {
  width: min(440px, 100%);
  padding: 38px 38px 30px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(15, 35, 55, 0.13);
}

.login-logo {
  display: grid;
  grid-template-columns: repeat(2, 12px);
  grid-template-rows: repeat(2, 12px);
  gap: 2px;
  width: max-content;
  margin-bottom: 24px;
}

.login-logo span:nth-child(1) {
  background: #f25022;
}

.login-logo span:nth-child(2) {
  background: #7fba00;
}

.login-logo span:nth-child(3) {
  background: #00a4ef;
}

.login-logo span:nth-child(4) {
  background: #ffb900;
}

.login-card h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.login-subtitle {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.login-form {
  margin-top: 28px;
}

.login-form .field input {
  height: 44px;
}

.login-form .btn {
  min-height: 44px;
  margin-top: 6px;
}

.login-error {
  margin-top: 14px;
}

.shield-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.shield-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 1px;
  color: var(--ms-green);
}

.admin-body {
  min-height: 100vh;
  background: #f5f6f8;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 34px auto 64px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-header h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.admin-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ms-blue);
}

.stat-dot.is-confirmed {
  background: var(--ms-green);
}

.stat-dot.is-cancelled {
  background: var(--ms-red);
}

.stat-value {
  margin-top: 8px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

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

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

.panel-head h2 {
  font-size: 16px;
  font-weight: 600;
}

.panel-head p {
  color: var(--muted);
  font-size: 12px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

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

tbody tr:hover {
  background: #fbfcfe;
}

.cell-primary {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.cell-secondary {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.cell-email {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  white-space: nowrap;
}

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

.status-pending {
  background: var(--ms-yellow-light);
  color: var(--ms-yellow);
}

.status-confirmed {
  background: var(--ms-green-light);
  color: var(--ms-green);
}

.status-cancelled {
  background: var(--ms-red-light);
  color: var(--ms-red);
}

.status-deleted {
  background: #f0f0f0;
  color: var(--muted);
}

.actions-col {
  text-align: right;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.empty-state {
  padding: 56px 24px;
  text-align: center;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
}

.empty-state p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.loading-row td {
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

.admin-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--ms-red);
  border-radius: 6px;
  background: var(--ms-red-light);
  color: #7a1b20;
  font-size: 13px;
}

.admin-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ms-blue);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.is-success {
  border-left-color: var(--ms-green);
}

.admin-toast.is-error {
  border-left-color: var(--ms-red);
}

@media (max-width: 900px) {
  .booking-shell {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .host-card {
    position: static;
  }

  .scheduler-head {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 18px;
  }

  .topbar-note {
    display: none;
  }

  .booking-shell {
    width: calc(100% - 24px);
    margin: 16px auto 40px;
  }

  .host-card,
  .scheduler-head,
  .time-section,
  .scheduler-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .date-strip {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .scheduler-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .scheduler-footer .btn {
    width: 100%;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal {
    padding: 20px;
  }

  .iframe-frame {
    height: 58vh;
    min-height: 360px;
  }

  .login-card {
    padding: 28px 22px 24px;
  }

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

  .admin-actions {
    width: 100%;
  }

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

  .admin-shell {
    width: calc(100% - 24px);
    margin-top: 22px;
  }

  .row-actions {
    justify-content: flex-start;
  }
}
