:root {
  color-scheme: light;
  --bg: #f4fafe;
  --surface: #ffffff;
  --text: #121352;
  --muted: #64748b;
  --border: #e8e6f0;
  --accent: #028fca;
  --accent-end: #229dd1;
  --accent-soft: #d6edf6;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(79, 70, 229, 0.06);
  --font-sans:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
    "Noto Sans", sans-serif;
  --font-size-base: 15px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-width: 350px;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  font-size: 1rem;
  line-height: inherit;
  background-color: var(--bg);
  background-image: radial-gradient(
    ellipse 140% 90% at 50% -25%,
    rgba(139, 92, 246, 0.09),
    transparent 52%
  );
  color: var(--text);
}

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

.app {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: max(520px, 100vh);
  max-height: 600px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: inherit;
}

.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  object-position: left center;
}

.topbar-trail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  flex-shrink: 0;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.lang-trigger:hover {
  border-color: #028fca;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.18);
  transform: scale(1.03);
}

.lang-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

.lang-trigger-flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 50;
}

.lang-menu.hidden {
  display: none !important;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: start;
}

.lang-option:hover {
  background: var(--accent-soft);
}

.lang-option img {
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, #1e9cd1, #28a0d3);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.icon-btn:hover {
  background: var(--accent-soft);
  border-color: #c4b5fd;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.45) var(--bg);
}

.main::-webkit-scrollbar {
  width: 10px;
}

.main::-webkit-scrollbar-track,
.main::-webkit-scrollbar-track-piece {
  background: var(--bg);
}

.main::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.38);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

.main::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.55);
}

.main::-webkit-scrollbar-corner {
  background: var(--bg);
}

.main::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 10px 16px 12px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.footer-row .truncate {
  flex: 1;
  min-width: 0;
}

.view.hidden {
  display: none;
}

.view-title {
  font-size: 18px;
}

.view-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.view-title-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.back {
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}

.field.inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.field.inline span {
  min-width: 52px;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: #028fca;
  box-shadow: 0 0 0 3px rgba(199, 230, 243, 0.2);
}

textarea {
  width: 100%;
  resize: vertical;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
}

code {
  font-size: 12px;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 6px;
}

.btn {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
  background: #fff;
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-end) 100%);
  color: #fff;
  border: none;
}

.btn.primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 10px rgba(15, 23, 42, 0.05);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn.danger {
  color: var(--danger);
  border-color: #fecaca;
}

.btn.danger.ghost {
  background: #fff5f5;
}

.btn.full {
  width: 100%;
}

.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

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

.section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b4b9c5;
  margin: 0 0 10px 4px;
}

.section-eyebrow--spaced {
  margin-top: 22px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.stat-card {
  --stat-bg: #f8fafc;
  --stat-kicker-color: #475569;
  --stat-value-color: #0f172a;
  --stat-sub-color: #64748b;
  --stat-icon-bg: linear-gradient(145deg, #64748b, #334155);

  position: relative;
  /* background: var(--stat-bg); */
  background: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.65) inset,
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 10px 15px -6px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.stat-card--total {
  --stat-bg: #ecfeff;
  --stat-kicker-color: #0e7490;
  --stat-value-color: #155e75;
  --stat-sub-color: #0891b2;
  --stat-icon-bg: linear-gradient(145deg, #22d3ee, #0ea5e9);
}

.stat-card--pending {
  --stat-bg: #fff1f2;
  --stat-kicker-color: #9f1239;
  --stat-value-color: #881337;
  --stat-sub-color: #be123c;
  --stat-icon-bg: linear-gradient(145deg, #fb7185, #e11d48);
}

.stat-card--capacity {
  --stat-bg: #ecfdf5;
  --stat-kicker-color: #047857;
  --stat-value-color: #065f46;
  --stat-sub-color: #059669;
  --stat-icon-bg: linear-gradient(145deg, #34d399, #059669);
}

.stat-card--slots {
  --stat-bg: #fffbeb;
  --stat-kicker-color: #b45309;
  --stat-value-color: #92400e;
  --stat-sub-color: #d97706;
  --stat-icon-bg: linear-gradient(145deg, #fbbf24, #ea580c);
}

.stat-card-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 55px;
}

.stat-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.stat-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--stat-kicker-color);
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--stat-value-color);
}

/* Full stat card shimmer (kicker + value + icon) while overview loads */
.stat-card-skeleton {
  display: none;
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 10px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  z-index: 1;
}

.stat-card-skeleton__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.stat-card-skeleton__kicker {
  display: block;
  width: 58%;
  max-width: 112px;
  height: 10px;
  border-radius: 5px;
}

.stat-card-skeleton__value {
  display: block;
  width: 42%;
  max-width: 72px;
  height: 22px;
  border-radius: 8px;
}

.stat-card-skeleton__icon {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
}

.stats--loading .stat-card .stat-card-layout {
  visibility: hidden;
}

.stats--loading .stat-card .stat-card-skeleton {
  display: flex;
}

.stat-card:nth-child(1) .stat-card-skeleton__kicker {
  width: 52%;
}

.stat-card:nth-child(1) .stat-card-skeleton__value {
  width: 38%;
}

.stat-card:nth-child(2) .stat-card-skeleton__kicker {
  width: 68%;
}

.stat-card:nth-child(2) .stat-card-skeleton__value {
  width: 28%;
}

.stat-card:nth-child(3) .stat-card-skeleton__kicker {
  width: 62%;
}

.stat-card:nth-child(3) .stat-card-skeleton__value {
  width: 36%;
}

.stat-card:nth-child(4) .stat-card-skeleton__kicker {
  width: 56%;
}

.stat-card:nth-child(4) .stat-card-skeleton__value {
  width: 32%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.stat-card-skeleton__kicker,
.stat-card-skeleton__value,
.stat-card-skeleton__icon,
.activity-panel-skeleton__title,
.activity-panel-skeleton__link,
.activity-skeleton-line {
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.22) 0%,
    rgba(148, 163, 184, 0.42) 45%,
    rgba(148, 163, 184, 0.22) 90%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .stat-card-skeleton__kicker,
  .stat-card-skeleton__value,
  .stat-card-skeleton__icon,
  .activity-panel-skeleton__title,
  .activity-panel-skeleton__link,
  .activity-skeleton-line {
    animation: none;
    background: rgba(148, 163, 184, 0.28);
  }
}

/* Today’s activity: skeleton replaces content in normal flow so the panel grows with all rows */
#activityPanel.activity-panel {
  position: relative;
}

.activity-panel-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.activity-panel-skeleton {
  display: none;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  pointer-events: none;
}

.activity-panel-skeleton__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.activity-panel-skeleton__title {
  display: block;
  width: 46%;
  max-width: 150px;
  height: 13px;
  border-radius: 6px;
}

.activity-panel-skeleton__link {
  display: block;
  width: 48px;
  height: 12px;
  border-radius: 6px;
}

.activity-panel--loading .activity-panel-content {
  display: none !important;
}

.activity-panel--loading .activity-panel-skeleton {
  display: flex;
}

.activity-panel-skeleton .activity-list--skeleton {
  flex-shrink: 0;
}

.activity-list--skeleton li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.activity-skeleton-line {
  display: block;
  border-radius: 5px;
}

.activity-skeleton-line--title {
  width: 78%;
  height: 13px;
}

.activity-skeleton-line--meta {
  width: 52%;
  height: 11px;
  margin-top: 7px;
}

.activity-list--skeleton li:nth-child(2) .activity-skeleton-line--title {
  width: 64%;
}

.activity-list--skeleton li:nth-child(2) .activity-skeleton-line--meta {
  width: 70%;
}

.activity-list--skeleton li:nth-child(3) .activity-skeleton-line--title {
  width: 88%;
}

.activity-list--skeleton li:nth-child(3) .activity-skeleton-line--meta {
  width: 44%;
}

.activity-list--skeleton li:nth-child(4) .activity-skeleton-line--title {
  width: 58%;
}

.activity-list--skeleton li:nth-child(4) .activity-skeleton-line--meta {
  width: 62%;
}

.activity-list--skeleton li:nth-child(5) .activity-skeleton-line--title {
  width: 72%;
}

.activity-list--skeleton li:nth-child(5) .activity-skeleton-line--meta {
  width: 48%;
}

.stat-sub {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--stat-sub-color);
  opacity: 0.88;
  margin-top: 1px;
}

.stat-card-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stat-icon-bg);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06) inset,
    0 4px 14px rgba(15, 23, 42, 0.12);
}

.stat-card-icon-circle .stat-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.stat-card-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint-banner {
  font-size: 12px;
  color: var(--muted);
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0 0 12px;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.qa {
  color: var(--text);
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 10px;
  padding: 15px 10px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -6px rgba(15, 23, 42, 0.08);
  transition:
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.qa:hover {
  background: #ffffff;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.06),
    0 14px 32px -8px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.qa:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 6px 16px -6px rgba(15, 23, 42, 0.08);
}

.qa:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.28),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -6px rgba(15, 23, 42, 0.08);
}

.qa-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: justify;
}

.qa-meta {
  flex-shrink: 0;
  max-width: 46%;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #94a3b8;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qa-leading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-align: justify;
}

.qa-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-icon-ring svg {
  display: block;
}

.qa-icon-ring--rose {
  /* background: #ffe4e6; */
  color: #eb3d5f;
}

.qa-icon-ring--mint {
  /* background: #d1fae5; */
  color: #11a575;
}

.qa-icon-ring--amber {
  /* background: #fef3c7; */
  color: #ef7312;
}

.qa-icon-ring--violet {
  /* background: #ede9fe; */
  color: #028fca;
}

.panel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 14px 16px 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.panel-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
}

.linkish {
  border: none;
  background: none;
  color: #028fca;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-list li {
  display: block;
  font-size: 13px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.activity-list__left {
  width: 100%;
  min-width: 0;
}

.activity-list__title {
  display: block;
  font-weight: 600;
  color: var(--text, #0f172a);
}

.activity-list__meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
}

.activity-list__meta-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-list__meta-text--email {
  flex: 0 1 auto;
  max-width: 58%;
}

.activity-list__meta-text--phone {
  flex: 1 1 auto;
  min-width: 0;
}

.activity-list__meta-sep {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  opacity: 0.55;
  color: inherit;
}

.activity-list li:last-child {
  border-bottom: none;
}

.status-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  white-space: nowrap;
}

.status-pill.confirmed,
.status-pill--approved {
  background: #dcfce7;
  color: #166534;
}

.status-pill--pending,
.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-pill--declined {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill--neutral {
  background: #e2e8f0;
  color: #475569;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cards.tight {
  gap: 8px;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(232, 230, 240, 0.95);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.card-title {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 14px;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.approvals-empty {
  padding: 10px;
  border: 1px solid #64748b;
  border-radius: 5px;
  background-color: #edf4f9;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* Pending approvals — responsive card grid (uses pane width via container query) */
.approvals-cards-wrap {
  margin-top: 8px;
  border: none;
  background: transparent;
  overflow: visible;
  container-type: inline-size;
  container-name: approvals;
}

.approvals-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

/* ~2+ columns: denser cards; stack label above value inside each card */
@container approvals (min-width: 520px) {
  .approvals-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-card__row {
    grid-template-columns: 1fr;
    gap: 2px 0;
    margin-top: 8px;
  }

  .approval-card__label {
    padding-top: 0;
  }
}

/* ~3 columns on large panes / wide Outlook */
@container approvals (min-width: 780px) {
  .approvals-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ~4 columns on very wide hosts */
@container approvals (min-width: 1040px) {
  .approvals-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.approval-card {
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.approval-card__top {
  margin-bottom: 2px;
}

.approval-card .approval-customer__name {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.approval-card .approval-customer__email {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

.approval-card__row {
  display: grid;
  grid-template-columns: minmax(88px, 34%) 1fr;
  gap: 6px 12px;
  align-items: start;
  margin-top: 10px;
}

.approval-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  padding-top: 2px;
}

.approval-card__value {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  word-break: break-word;
}

.approval-card__value--services {
  color: var(--muted);
}

.approval-card__services-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.approval-card__service-primary {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  min-width: 0;
  word-break: break-word;
}

.approval-card__service-more-chip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #64748b;
  background: #fbfaff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 2px 4px;
  flex-shrink: 0;
}

.approval-card__value--when {
  font-size: 12px;
}

.approval-card__actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.approval-card__actions .approval-options {
  justify-content: flex-end;
  width: 100%;
}

.approvals-table-wrap {
  margin-top: 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.45) var(--surface);
}

.approvals-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.approvals-table-wrap::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 0 0 14px 14px;
}

.approvals-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
  border-radius: 4px;
}

.approvals-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 13px;
}

.approvals-table thead th {
  text-align: start;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.approvals-table__th-options {
  text-align: end;
  width: 1%;
  white-space: nowrap;
}

.approvals-table tbody tr.approval-row {
  border-bottom: 1px solid #eef2f7;
}

.approval-cell {
  padding: 12px 12px;
  vertical-align: middle;
  color: var(--text);
}

.approval-cell--customer {
  min-width: 168px;
}

.approval-cell--services {
  min-width: 72px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}

.approval-cell--options {
  /* text-align: end; */
  min-width: 148px;
}

.approval-cell--status {
  min-width: 88px;
  white-space: nowrap;
}

.list-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
  padding: 6px 0 10px;
}

.list-pagination.hidden {
  display: none;
}

.list-pagination__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.list-pagination__icon-btn {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #f0f0f1;
  border-radius: 10px;
  background: #f0f0f1;
  color: #413e4e;
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.list-pagination__icon-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: rgba(2, 143, 202, 0.35);
  color: var(--accent);
}

.list-pagination__icon-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(2, 143, 202, 0.45);
}

.list-pagination__icon-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.list-pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 100%;
}

.list-pagination__page-btn {
  box-sizing: border-box;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #f0f0f1;
  border-radius: 10px;
  background: #f0f0f1;
  color: #413e4e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.list-pagination__page-btn:hover:not(.list-pagination__page-btn--active) {
  background: var(--accent-soft);
  border-color: rgba(2, 143, 202, 0.35);
  color: var(--accent);
}

.list-pagination__page-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(2, 143, 202, 0.45);
}

.list-pagination__page-btn--active {
  background: #e0f2fe;
  color: var(--accent);
  border-color: #e0f2fe;
  cursor: default;
}

.list-pagination__page-btn--active:hover {
  background: #e0f2fe;
  color: var(--accent);
  border-color: rgba(2, 143, 202, 0.35);
}

.approval-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.approval-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1e40af;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.approval-customer__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.approval-customer__name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.approval-customer__email {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.approval-cell--when {
  min-width: 150px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.approval-options {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.approval-opt {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  line-height: 0;
}

.approval-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.approval-opt__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  transition:
    background 0.15s ease,
    transform 0.12s ease;
}

.approval-opt--view .approval-opt__ring {
  color: #b45309;
  background: #fffbeb;
}

.approval-opt--approve .approval-opt__ring {
  color: #15803d;
  background: #ecfdf5;
}

.approval-opt--decline .approval-opt__ring {
  color: #b91c1c;
  background: #fef2f2;
}

.approval-opt--suggest .approval-opt__ring {
  color: #0369a1;
  background: #e0f2fe;
}

.approval-opt:not(:disabled):hover .approval-opt__ring {
  filter: brightness(0.97);
  transform: scale(1.04);
}

.approval-expand-row td {
  padding: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fafbfc;
}

.approval-expand__cell {
  padding: 0 !important;
}

.approval-expand {
  padding: 14px 16px 16px;
}

.approval-expand__title {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.approval-expand__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.approval-expand__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.approval-expand__input {
  min-width: 140px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--text);
}

.approval-suggest__panel {
  width: min(100%, 340px);
}

.approval-suggest__customer {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.holidays-toolbar {
  margin: 0 0 12px;
  display: flex;
  justify-content: flex-end;
}

/* Holidays list — responsive cards */
.holidays-cards-wrap {
  margin-top: 0;
  border: none;
  background: transparent;
  overflow: visible;
  container-type: inline-size;
  container-name: holidays;
}

.holidays-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

@container holidays (min-width: 520px) {
  .holidays-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holiday-card__row {
    grid-template-columns: 1fr;
    gap: 2px 0;
    margin-top: 8px;
  }

  .holiday-card__label {
    padding-top: 0;
  }
}

@container holidays (min-width: 780px) {
  .holidays-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container holidays (min-width: 1040px) {
  .holidays-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.holiday-card {
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.holiday-card__row {
  display: grid;
  grid-template-columns: minmax(88px, 34%) 1fr;
  gap: 6px 12px;
  align-items: start;
  margin-top: 8px;
}

.holiday-card__row:first-child {
  margin-top: 0;
}

.holiday-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  padding-top: 2px;
}

.holiday-card__value {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  word-break: break-word;
}

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

.holiday-card__actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.holiday-card__actions .approval-options {
  justify-content: flex-end;
  width: 100%;
}

.holiday-form__field--full {
  grid-column: 1 / -1;
}

/* Holiday add/edit drawer: grid overrides .approval-suggest__fields flex; narrow = 1 col, wide = start row, end row, full-width type */
.approval-suggest__fields.holiday-form__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 12px;
  align-items: start;
  margin-bottom: 12px;
}

.approval-suggest__fields.holiday-form__fields .approval-suggest__field {
  flex: unset;
  min-width: 0;
}

@container holiday-drawer (min-width: 380px) {
  .approval-suggest__fields.holiday-form__fields {
    grid-template-columns: 1fr 1fr;
  }
}

.approval-suggest__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.approval-suggest__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 120px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.approval-suggest__input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--text);
}

.approval-suggest__feedback {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
}

.approval-suggest__feedback--success {
  color: #15803d;
}

.approval-suggest__feedback--error {
  color: #b91c1c;
}

.approval-suggest__footer {
  margin-top: 4px;
  padding-top: 12px;
}

.callout {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(232, 230, 240, 0.95);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.details-json {
  margin: 10px 0;
  font-size: 13px;
}

.details-json summary {
  cursor: pointer;
  color: var(--accent);
}

.row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avail-alert {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.45;
}

.avail-alert__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avail-alert__glyph {
  flex-shrink: 0;
  display: flex;
  margin-top: 1px;
}

.avail-alert__glyph--error {
  color: #dc2626;
}

.avail-alert__glyph--warn {
  color: #d97706;
}

.avail-alert__glyph--success {
  color: #16a34a;
}

.avail-alert__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.avail-alert--error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.avail-alert--warn {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.avail-alert--success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.avail-alert--with-dismiss {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.avail-alert--with-dismiss .avail-alert__row {
  flex: 1;
  min-width: 0;
}

.avail-alert__dismiss {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #166534;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition:
    background 0.15s ease,
    opacity 0.15s ease;
}

.avail-alert__dismiss:hover {
  background: rgba(22, 101, 52, 0.1);
  opacity: 1;
}

.avail-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.avail-day {
  background: var(--surface);
  /* border: 1px solid var(--border); */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.avail-day.is-off .avail-day-body {
  display: none;
}

.avail-day-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 52px;
}

.avail-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.avail-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.avail-switch-ui {
  position: relative;
  display: block;
  width: 40px;
  height: 20px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.avail-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  inset-inline-start: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.avail-switch input:checked + .avail-switch-ui {
  background: #1e9cd1;
}

.avail-switch input:checked + .avail-switch-ui::after {
  transform: translateX(20px);
}

[dir="rtl"] .avail-switch input:checked + .avail-switch-ui::after {
  transform: translateX(-20px);
}

.avail-day-expand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-align: start;
}

.avail-day-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.avail-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.avail-day.is-expanded .avail-chevron {
  transform: rotate(180deg);
}

.avail-day-body {
  display: none;
  padding: 0 14px 14px;
}

.avail-day.is-expanded .avail-day-body {
  display: block;
}

.avail-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}

.avail-slot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avail-time {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

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

.avail-time::-webkit-calendar-picker-indicator {
  opacity: 0.55;
}

.avail-to {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.avail-icon-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    filter 0.15s ease;
}

.avail-icon-btn:hover {
  transform: scale(1.06);
}

.avail-icon-btn:active {
  transform: scale(0.98);
}

.avail-icon-btn--add {
  background: #e0f2fe;
  color: #0284c7;
}

.avail-icon-btn--add:hover {
  background: #bae6fd;
}

.avail-icon-btn--remove {
  background: #fee2e2;
  color: #dc2626;
}

.avail-icon-btn--remove:hover {
  background: #fecaca;
}

.avail-icon-btn svg {
  display: block;
}

.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
}

.hidden {
  display: none !important;
}

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-dialog.hidden {
  display: none !important;
}

.confirm-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.confirm-dialog__panel {
  position: relative;
  width: min(100%, 320px);
  padding: 20px 18px 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.confirm-dialog__title {
  margin: 0 0 0px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  text-align: center;
}

.confirm-dialog__message {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.confirm-dialog__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.confirm-dialog__actions .btn {
  min-width: 96px;
  padding: 5px 10px;
  font-size: 13px;
}

.approval-details--drawer.confirm-dialog {
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
}

.approval-details--drawer .confirm-dialog__backdrop {
  background: rgba(15, 23, 42, 0.4);
}

.approval-details--drawer .confirm-dialog__panel.approval-details__panel,
.approval-details--drawer .confirm-dialog__panel.approval-suggest__panel {
  width: 100%;
  max-width: none;
  max-height: min(92vh, 720px);
  margin: 0;
  border-radius: 16px 16px 0 0;
  padding: 0 16px max(14px, env(safe-area-inset-bottom, 0px));
  padding-top: 8px;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.approval-details--drawer .drawer-handle {
  
  margin: 0 auto 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.approval-details--drawer .approval-details__head {
  flex-shrink: 0;
}

.approval-details--drawer .approval-details__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  margin-right: -2px;
}

.approval-details--drawer .holiday-form-drawer__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  margin-right: -2px;
  container-type: inline-size;
  container-name: holiday-drawer;
}

.approval-details--drawer .confirm-dialog__actions {
  flex-shrink: 0;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  background: var(--surface);
}

.approval-details__panel {
  width: min(100%, 360px);
  max-height: min(85vh, 520px);
  display: flex;
  flex-direction: column;
  padding-top: 16px;
}

.approval-details__head {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.approval-details__head-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.approval-details__head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.approval-details__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.approval-details__subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
  word-break: break-word;
}

.approval-details__status {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
}

.approval-details__list {
  margin: 0 0 14px;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.approval-details__list dt {
  margin: 10px 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

.approval-details__list dt:first-child {
  margin-top: 0;
}

.approval-details__list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  word-break: break-word;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: auto;
}

.app-loader.hidden {
  display: none !important;
}

.app-loader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(244, 250, 254, 0.82);
  backdrop-filter: blur(2px);
}

.app-loader__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  border-radius: 16px;
  /* background: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1); */
  max-width: 260px;
  text-align: center;
}

.app-loader__spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: app-loader-spin 0.75s linear infinite;
}

.app-loader__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

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

.truncate {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.view-head .center[data-back] {
  cursor: pointer;
  user-select: none;
  align-self: flex-start;
  padding: 4px 6px 4px 2px;
  margin: -4px 0 -4px -2px;
  border-radius: 8px;
}

.view-head .center[data-back]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
