@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Roboto:wght@700&family=Space+Grotesk:wght@400;600;700&family=Work+Sans:wght@400;600&display=swap');
@import url('/css/mini-card-preview.css');

:root {
  --bg: #222326;
  --panel: #2f3136;
  --panel-2: #3b3d44;
  --card: #f1eee7;
  --accent: #1e7ef7;
  --accent-2: #ff8a00;
  --accent-3: #63d76c;
  --text: #f5f5f5;
  --muted: #b7b7b7;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --app-bg: radial-gradient(circle at top, #3f4147 0%, #2f3136 55%, #26272b 100%);
  --input-bg: #2f3136;
  --input-border: #8c8f96;
  --button-border: #5d6068;
  --space-1: 6px;
  --space-2: 8px;
  --space-3: 10px;
  --space-4: 12px;
  --space-5: 14px;
  --space-6: 16px;
  --phone-width: 412px;
}

.theme-light {
  --bg: #f2f3f5;
  --panel: #ffffff;
  --panel-2: #f6f7f9;
  --text: #202124;
  --muted: #5f6368;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  --app-bg: radial-gradient(circle at top, #ffffff 0%, #f1f4f8 55%, #e9eef5 100%);
  --input-bg: #ffffff;
  --input-border: #c7c9cc;
  --button-border: #c7c9cc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Space Grotesk", sans-serif;
  background: var(--app-bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.is-hidden {
  display: none !important;
}


body[data-view="saved"] .views,
body[data-view="saved-select"] .views,
body[data-view="saved"] .view,
body[data-view="saved-select"] .view {
  background: transparent;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(26px, 4vw, 34px); }
h2 { font-size: clamp(20px, 3vw, 26px); }
h3 { font-size: clamp(16px, 2.5vw, 18px); }
h4 { font-size: clamp(14px, 2.3vw, 16px); }

p {
  margin: 0;
  line-height: 1.5;
}

button,
input {
  font-family: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.7;
  mix-blend-mode: screen;
}

.orb-one {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(30, 126, 247, 0.65), transparent 70%);
  top: -120px;
  left: -80px;
}

.orb-two {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.6), transparent 70%);
  bottom: -140px;
  right: 120px;
}

.orb-three {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(99, 215, 108, 0.5), transparent 70%);
  top: 40%;
  right: -120px;
}

.app-shell {
  position: relative;
  z-index: 1;
  padding: 32px 8vw 120px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}


.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-mark {
  font-size: 24px;
  letter-spacing: 6px;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  color: var(--text);
  background: var(--panel-2);
  font-weight: 600;
  line-height: 1;
}

button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 28px rgba(30, 126, 247, 0.35);
}

button.primary.is-disabled {
  background: #5c6068;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.65;
}

button.ghost.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.canvas-editor {
  display: grid;
  gap: 12px;
}

.canvas-editor.is-hidden {
  display: none;
}

.canvas-hero-grid {
  display: grid;
  gap: 10px;
}

.canvas-hero-top {
  margin-bottom: 6px;
  grid-template-columns: 1fr;
}

.canvas-hero-bottom {
  margin-top: 6px;
  grid-template-columns: 1fr;
}

.canvas-hero-slot {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  min-height: 140px;
  background: transparent;
  padding: 10px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.canvas-hero-preview {
  width: 100%;
  height: 100%;
  min-height: 140px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  color: var(--muted);
  border: none;
  background-color: transparent;
}

.canvas-hero-preview.has-image {
  color: transparent;
}

.canvas-hero-preview.is-hidden {
  display: none;
}

.canvas-hero-clear.is-hidden {
  display: none;
}

.canvas-public .canvas-hero-grid {
  grid-template-columns: 1fr;
}

.canvas-public .canvas-hero-preview {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.canvas-preview-title,
.canvas-public-title {
  font-weight: 600;
  font-size: 14px;
}

.canvas-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.canvas-book-now {
  margin-top: 8px;
}

@media (min-width: 520px) {
  .canvas-editor .canvas-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .canvas-editor .canvas-hero-top,
  .canvas-editor .canvas-hero-bottom {
    grid-template-columns: 1fr;
  }
}

.canvas-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.canvas-pages {
  display: grid;
  gap: 12px;
}

.canvas-preview {
  display: grid;
  gap: 12px;
}

.canvas-preview.is-hidden {
  display: none;
}

.canvas-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.canvas-preview-actions {
  display: grid;
  gap: 10px;
}

.canvas-page {
  background: var(--panel-2);
  border-radius: 16px;
  padding: 12px;
  min-height: 240px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.5;
}

.canvas-page-input {
  width: 100%;
  min-height: 200px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.canvas-public .canvas-page {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.canvas-link-button,
.booking-link-button {
  margin-top: 8px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}

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

button.chip {
  padding: 6px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button.full {
  width: 100%;
}

.phone button.full {
  padding: 12px;
  border-radius: 10px;
  font-size: clamp(12px, 3.5vw, 14px);
}

.phone button[data-action="next-tab"] {
  margin-top: 12px;
}

.phone .primary.full {
  background: #1e7ef7;
}

.phone .ghost.full {
  border-color: #8c8f96;
}

button.danger {
  background: #f04c4c;
  color: #ffffff;
}

.intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.lead {
  max-width: 540px;
  color: var(--muted);
  margin-top: 12px;
}

.intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.demo {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.view-toggle {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle {
  border-radius: 12px;
  background: var(--panel);
  padding: 10px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toggle.is-active {
  background: var(--accent-2);
  color: #1f1f1f;
}

.views {
  display: grid;
  gap: 28px;
  max-width: 752px;
  width: 100%;
  margin: 0 auto;
}

.view {
  display: none;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(0, var(--phone-width)));
  justify-content: center;
  align-items: start;
}

.view.is-active {
  display: grid;
}

.view > * {
  width: 100%;
  max-width: var(--phone-width);
  min-width: 0;
}

.panel {
  background: var(--panel);
  padding: 24px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.phone {
  background: var(--panel-2);
  border-radius: 15px;
  padding: 0 16px 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: clamp(8px, 2vw, 12px);
  align-content: start;
  width: 100%;
  max-width: 412px;
  min-height: 720px;
  position: relative;
  overflow: hidden;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  font-size: clamp(10px, 2.5vw, 11px);
  color: var(--muted);
  line-height: 1;
  align-items: center;
}

.phone-header .time,
.phone-header .status {
  display: none;
}

.login-banner {
  background: var(--card);
  color: #1b1c1f;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 6px;
}

.brand-logo {
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 18px;
}

.auth-banner .brand-logo {
  font-size: 20px;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: clamp(10px, 2.4vw, 11px);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: clamp(12px, 3vw, 13px);
  line-height: 1.2;
  height: 40px;
}

.link {
  color: inherit;
  font-size: 12px;
  text-decoration: none;
}

.divider {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

.home-card-block {
  display: grid;
  gap: 8px;
  align-content: start;
}

.mini-logo {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 10px;
}

.mini-card.dashed {
  outline: 2px dashed #c6c6c6;
  outline-offset: -2px;
  background: transparent;
  color: var(--muted);
  align-content: center;
  justify-items: center;
}

.mini-card.dashed span {
  font-size: 28px;
  line-height: 1;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.avatar.is-empty {
  display: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.avatar video,
.avatar .avatar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.avatar.small {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 12px;
  right: 12px;
}

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

.home-actions {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.view[data-view="public-book"] .home-actions {
  margin-top: 6px;
}


.tile {
  border-radius: 18px;
  padding: 0;
  color: white;
  text-align: center;
  font-weight: 600;
  display: grid;
  place-items: stretch;
  aspect-ratio: 166 / 100;
  width: 100%;
  min-width: 0;
  --tile-pad: clamp(14px, 4vw, 18px);
  --tile-icon-size: 42px;
  --tile-icon-gap: 8px;
  --tile-badge-gap: 6px;
  --tile-badge-height: 18px;
  --tile-label-line: 1.2em;
  min-height: calc((var(--tile-pad) * 2) + var(--tile-icon-size) + var(--tile-icon-gap) + var(--tile-label-line) + var(--tile-badge-gap) + var(--tile-badge-height));
}

.tile-content {
  display: grid;
  gap: var(--tile-icon-gap);
  justify-items: center;
  align-content: center;
  padding: var(--tile-pad);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

.tile-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.tile-label {
  display: block;
  text-align: center;
  line-height: 1.2;
  min-height: 2.4em;
}

.tile-label.has-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--tile-badge-gap);
}

.tile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.tile.sky {
  background: linear-gradient(135deg, #6a4cff, #b14bff);
}

.tile.coral {
  background: linear-gradient(135deg, #ff8a00, #ffc24d);
}

.tile.blue {
  background: linear-gradient(135deg, #ff5a6b, #ff4d9d);
}

.tile.green {
  background: linear-gradient(135deg, #10c4a2, #45f0b1);
}

.tile.purple {
  background: linear-gradient(135deg, #7a3bff, #b36bff);
}

.tile.teal {
  background: linear-gradient(135deg, #1f8a8a, #39c6b0);
}

.tile.aqua {
  background: linear-gradient(135deg, #1d5bff, #4aa8ff);
}

.tile.plum {
  background: linear-gradient(135deg, #7b5cff, #b284ff);
}

.tile-icon {
  width: var(--tile-icon-size);
  height: var(--tile-icon-size);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.tile-icon .icon-img {
  width: 22px;
  height: 22px;
}

.calendar-accordion {
  display: none;
  gap: var(--space-4);
}

body[data-view="calendar"] .calendar-accordion {
  display: grid;
}

body:not([data-view="calendar"]) .calendar-accordion {
  display: none !important;
}
.calendar-accordion-item {
  background: #2a2c31;
  border-radius: 18px;
  padding: var(--space-2);
  border: 1px solid #3a3d45;
}
.calendar-accordion-trigger {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c5c7cd;
}
.calendar-accordion-item.is-active .calendar-accordion-trigger {
  background: #1f2126;
  color: #ffffff;
}
.calendar-accordion-trigger .chevron {
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.calendar-accordion-item.is-active .chevron {
  transform: rotate(180deg);
}
.calendar-views {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.calendar-switch {
  background: #2a2c31;
  border-radius: 16px;
  padding: var(--space-4);
  display: grid;
  gap: var(--space-1);
  color: #f7f7f7;
  display: none;
}

.calendar-switch label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b9bcc4;
}

.calendar-switch select {
  height: 40px;
  border-radius: 12px;
  border: 1px solid #3a3d45;
  background: #1f2126;
  color: #f7f7f7;
  padding: 0 12px;
}

.calendar-tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #1e7ef7, #5aa7ff);
  box-shadow: 0 10px 20px rgba(30, 126, 247, 0.35);
}

.calendar-accordion .chip.is-active {
  background: #3b3f46;
  border: 1px solid #4a4f57;
  color: #f7f7f7;
}

.calendar-accordion .chip.is-active.ghost {
  background: #3b3f46;
  border-color: #4a4f57;
}

.calendar-panel {
  display: none;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-5) var(--space-4);
}

.calendar-accordion-item.is-active .calendar-panel {
  display: grid;
}

.calendar-panel > * {
  width: 100%;
}

.calendar-panel strong {
  font-size: 13px;
}

.calendar-card,
.calendar-card {
  background: #2a2c31;
  border-radius: 18px;
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
  color: #f7f7f7;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-today {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
}

.calendar-header .muted {
  color: #b9bcc4;
  font-size: 12px;
}

.calendar-header strong.is-sunday {
  color: inherit;
}

.calendar-header .calendar-weekday {
  color: inherit;
}

.calendar-header strong.is-sunday .calendar-weekday {
  color: #ff5a6b;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-1);
  width: 100%;
  justify-items: stretch;
  --calendar-cell-width: 85%;
}

.calendar-grid.is-daily {
  grid-template-columns: 1fr;
}
@media (min-width: 481px) {
  .calendar-grid.is-monthly {
    gap: var(--space-1);
  }

  .calendar-grid.is-weekly {
    gap: var(--space-1);
  }
}



.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 10px;
  background: #1f2126;
  color: #f7f7f7;
  font-size: 12px;
  font-weight: 600;
  border: 0;
  outline: none;
}

.calendar-grid.is-monthly .calendar-day {
  width: var(--calendar-cell-width);
  justify-self: center;
}

.calendar-day.muted {
  background: transparent;
  color: #9ca0a8;
  font-weight: 500;
}

.calendar-day.is-active {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.calendar-day.muted.is-sunday,
.calendar-day.is-sunday {
  color: #ff5a6b;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.calendar-day.has-slots {
  color: #ffffff;
}

.calendar-day.has-booked {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.calendar-grid.is-monthly .calendar-day.has-booked:not(.is-today) {
  box-shadow: none;
}

.calendar-grid.is-monthly .calendar-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.calendar-grid.is-weekly .calendar-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* Weekly layout (single source of truth, placed after .calendar-day). */
.calendar-grid.is-weekly .calendar-day.weekly-cell {
  display: grid;
  height: auto;
  min-height: 56px;
  padding: 2px 0 6px;
  grid-template-rows: auto 1fr;
  align-content: start;
  justify-items: stretch;
  width: calc(var(--calendar-cell-width) + 6px);
  justify-self: center;
  min-width: 0;
  background: #1f2126;
  border-radius: 10px;
  box-shadow: none;
}

.calendar-grid.is-weekly .calendar-day.weekly-cell.is-active,
.calendar-grid.is-weekly .calendar-day.weekly-cell.is-today {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.calendar-grid.is-weekly .calendar-day.weekly-cell .weekly-date {
  width: 100%;
  margin: 0 0 8px;
  border-radius: 10px;
  background: transparent;
  color: #f7f7f7;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  margin-top: -2px;
}

.calendar-grid.is-weekly .weekly-events {
  position: relative;
  width: 100%;
  min-height: 0;
  margin-top: 0;
  padding-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}

.calendar-grid.is-weekly .weekly-event {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 2px;
  justify-items: center;
}

.calendar-grid.is-weekly .weekly-event-time {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: #b9bcc4;
}

.calendar-grid.is-weekly .weekly-event-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.calendar-grid.is-weekly .weekly-event.pending .weekly-event-dot {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.7);
}

.calendar-grid.is-weekly .weekly-event.confirmed .weekly-event-dot,
.calendar-grid.is-weekly .weekly-event.booked .weekly-event-dot {
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.calendar-grid.is-weekly .weekly-event.completed .weekly-event-dot {
  border: 1px solid rgba(77, 212, 120, 0.9);
  background: rgba(77, 212, 120, 0.9);
}

.calendar-grid.is-weekly .weekly-event.not-taken .weekly-event-dot,
.calendar-grid.is-weekly .weekly-event.busy .weekly-event-dot {
  background: rgba(148, 153, 163, 0.9);
}

.calendar-grid.is-weekly .weekly-event.expired .weekly-event-dot {
  background: rgba(148, 153, 163, 0.9);
}

.calendar-slot-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}

.calendar-slot-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  opacity: 0.5;
}

.calendar-slot-dot.is-booked {
  opacity: 1;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.calendar-slot-bar {
  height: 6px;
  border-radius: 999px;
  flex: 1;
  opacity: 0.5;
}

.calendar-slot-bar.is-booked {
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.calendar-daily-list {
  display: grid;
  gap: var(--space-3);
}

.calendar-daily-item {
  background: #1f2126;
  border-radius: 12px;
  padding: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.calendar-daily-main {
  display: grid;
  gap: 4px;
}

.calendar-daily-time {
  font-weight: 700;
  font-size: 13px;
  display: block;
}

.calendar-daily-title {
  font-weight: 600;
  display: block;
}

.calendar-daily-meta {
  color: #b9bcc4;
  font-size: 12px;
  display: block;
}

.calendar-daily-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid transparent;
}

.status-pill.open {
  background: rgba(30, 126, 247, 0.2);
  color: #7fb7ff;
  border-color: rgba(30, 126, 247, 0.4);
}

.status-pill.pending {
  background: rgba(255, 154, 46, 0.2);
  color: #ffb66c;
  border-color: rgba(255, 154, 46, 0.4);
}

.status-pill.confirmed,
.status-pill.booked {
  background: rgba(77, 212, 120, 0.2);
  color: #7be79c;
  border-color: rgba(77, 212, 120, 0.4);
}

.status-pill.completed {
  background: rgba(77, 212, 120, 0.2);
  color: #7be79c;
  border-color: rgba(77, 212, 120, 0.4);
}

.status-pill.busy {
  background: rgba(148, 153, 163, 0.2);
  color: #c7cbd4;
  border-color: rgba(148, 153, 163, 0.4);
}

.status-pill.not-taken {
  background: rgba(148, 153, 163, 0.2);
  color: #c7cbd4;
  border-color: rgba(148, 153, 163, 0.4);
}

.status-pill.expired {
  background: rgba(148, 153, 163, 0.2);
  color: #c7cbd4;
  border-color: rgba(148, 153, 163, 0.4);
}

.theme-light .status-pill.open {
  background: #e6f0ff;
  color: #1e5db5;
  border-color: #3d85ff;
}

.theme-light .status-pill.confirmed,
.theme-light .status-pill.booked {
  background: #e3f6ea;
  color: #1f7a42;
  border-color: #63d76c;
}

.theme-light .status-pill.pending {
  background: #fff1e1;
  color: #b45309;
  border-color: #f59e0b;
}

.theme-light .status-pill.busy {
  background: #e9edf5;
  color: #4b5563;
  border-color: #9aa3b2;
}

.theme-light .status-pill.expired {
  background: #f1f3f6;
  color: #6b7280;
  border-color: #c7cdd6;
}

.calendar-empty {
  color: #b9bcc4;
  font-size: 12px;
}

.calendar-range {
  display: grid;
  gap: var(--space-2);
}

.calendar-range.is-hidden {
  display: none;
}

.calendar-range-toggle {
  margin-top: 2px;
}

.calendar-range-row {
  margin-top: 2px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.legend {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Work Sans", "Space Grotesk", sans-serif;
  text-transform: capitalize;
  letter-spacing: 0;
  line-height: 1.2;
  color: #101114;
  background: #f1f1f1;
}

.legend span {
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

.legend.calls {
  background: #5f8cff;
  color: #ffffff;
}

.legend.meetings {
  background: #ff8a00;
  color: #ffffff;
}

.legend.personal {
  background: #63d76c;
  color: #ffffff;
}

.legend.promo {
  background: #ff6bb5;
  color: #ffffff;
}

.calendar-block {
  background: #2a2c31;
  border-radius: 16px;
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
  color: #f7f7f7;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.status-item {
  background: #1f2126;
  border-radius: 12px;
  padding: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.status-item.pending {
  border-left: 4px solid #ffc107;
}

.status-item.confirmed {
  border-left: 4px solid #1e7ef7;
}

.status-item.completed {
  border-left: 4px solid #63d76c;
}

.status-item.cancelled {
  border-left: 4px solid #ff5a6b;
}

.availability-grid {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #c5c7cd;
}

.availability-form {
  display: grid;
  gap: 12px;
}

.availability-form.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.availability-form label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: #c5c7cd;
}

.availability-form input,
.availability-form select {
  background: #1f2126;
  border: 1px solid #3a3d45;
  color: #f7f7f7;
  border-radius: 10px;
  height: 36px;
  padding: 0 10px;
  color-scheme: dark;
}

.availability-form input[type="time"],
.calendar-range input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f7f7f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}

.slot-form input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f7f7f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
  color-scheme: dark;
}

.slot-form input[type="time"]::-webkit-calendar-picker-indicator,
.slot-form input[type="time"]::-webkit-inner-spin-button,
.slot-form input[type="time"]::-webkit-clear-button {
  opacity: 0;
}

.availability-form input[type="time"]::-webkit-calendar-picker-indicator,
.calendar-range input[type="time"]::-webkit-calendar-picker-indicator,
.availability-form input[type="time"]::-webkit-inner-spin-button,
.calendar-range input[type="time"]::-webkit-inner-spin-button,
.availability-form input[type="time"]::-webkit-clear-button,
.calendar-range input[type="time"]::-webkit-clear-button {
  opacity: 0;
}

.theme-light .availability-form input[type="time"],
.theme-light .calendar-range input[type="time"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23202124' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E");
}

.theme-light .slot-form input[type="time"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23202124' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E");
}

.availability-form input.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.calendar-range input.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.blackout-row input::placeholder {
  color: #7f828a;
  opacity: 1;
}

.theme-light .blackout-row input::placeholder {
  color: #9aa0a6;
}

.availability-group {
  display: grid;
  gap: 8px;
}

.small-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b9bcc4;
}

.day-pills {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.approval-toggle {
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  width: 100%;
  grid-column: 1 / -1;
}

.day-pill {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
}

.day-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.day-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.day-pill input:checked + span {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.day-pill input[data-slot-day="0"]:checked + span {
  background: #ff5a6b;
  border-color: rgba(255, 255, 255, 0.35);
}

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

.availability-row > label {
  min-width: 0;
}

.availability-row input,
.availability-row select {
  width: 100%;
}

.busy-blocks,
.blackout-dates {
  display: grid;
  gap: 10px;
}

.busy-row,
.blackout-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.busy-row button,
.blackout-row button {
  grid-column: 1 / -1;
}

.blackout-row input[data-blackout-field="label"] {
  grid-column: 1 / -1;
}

.busy-row input,
.busy-row select,
.blackout-row input {
  background: #1f2126;
  border: 1px solid #3a3d45;
  color: #f7f7f7;
  border-radius: 10px;
  height: 36px;
  padding: 0 10px;
}

.date-picker {
  position: absolute;
  z-index: 60;
  width: auto;
  max-width: 100%;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  border: none;
  box-shadow: var(--shadow);
  display: none;
}

.date-picker.is-open {
  display: block;
}

.date-picker-card {
  margin: 0;
}

.calendar-nav {
  background: transparent;
  border: 1px solid var(--button-border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.calendar-nav-row .calendar-nav {
  width: max-content;
}

.calendar-nav-row .calendar-nav:last-child {
  justify-self: end;
}

.event-type {
  background: #1f2126;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.event-type-info {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.event-type-meta {
  display: grid;
  gap: 2px;
}

.event-type small {
  color: #c5c7cd;
  display: block;
}

.event-type-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.event-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}

.event-tags .chip.ghost {
  white-space: nowrap;
}

.event-type-actions {
  display: flex;
  gap: 6px;
  flex-direction: column;
  align-items: stretch;
}

.event-type-actions .chip.danger {
  background: #2a2c31;
  border: 1px solid #4a4d55;
  color: #ff6b6b;
}

.theme-light .event-type-actions .chip.danger {
  background: #ffffff;
  border: 1px solid #e0e3e7;
  color: #d74343;
}

.tag-manager {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.tag-manager-list {
  display: grid;
  gap: 6px;
}

.tag-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tag-manager-row .ghost {
  padding: 6px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal[data-modal="tag-add"] .modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.modal[data-modal="tag-add"] .modal-actions button {
  width: 100%;
  min-width: 0;
}

.event-type-form {
  display: grid;
  gap: 10px;
}

.event-type-form label:not(.legend) {
  display: grid;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.event-location-custom.is-hidden {
  display: none;
}

.event-location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.event-location-row input {
  min-width: 0;
  width: 100%;
}

.event-location-row button {
  width: 100%;
}

.event-location-custom {
  width: 100%;
}

.event-location-grid.is-hidden {
  display: none;
}

.event-duration-custom {
  width: 100%;
}

.event-duration-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

.event-duration-row input {
  min-width: 0;
  width: 100%;
}

.event-duration-grid.is-hidden {
  display: none;
}

.event-location-row .ghost {
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.event-location-row .ghost.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.event-type-form input,
.event-type-form select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  border-radius: 10px;
  height: 36px;
  padding: 0 10px;
}

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

.swatch-row.compact {
  gap: 8px;
}

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

.swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
}

.swatch span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-block;
}

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

.swatch input:checked + span {
  box-shadow: 0 0 0 2px #fff;
}

.theme-light .swatch input:checked + span {
  box-shadow: 0 0 0 2px #202124;
}

.swatch.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-add-button {
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed var(--button-border);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}

.tag-add-button:hover {
  color: var(--text);
  border-color: var(--text);
}

.legend.selectable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

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

.legend.selectable input:checked + span {
  filter: brightness(1.05);
}

.legend.selectable.is-selected {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.integration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #1f2126;
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
}

.integration-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

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

.integration-form input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 12px;
  height: 40px;
}

.integration-form .hint {
  font-size: 11px;
}

.integration-form .chip.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.visibility-options {
  display: grid;
  gap: 0;
  font-size: 12px;
  color: #c5c7cd;
}

.visibility-options label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  line-height: 1;
}

.visibility-options .toggle-row {
  margin: 0;
}

.slot-row {
  position: relative;
  background: var(--panel-2);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.slot-select {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.slot-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.slot-form .calendar-block,
.slot-form .blackout-dates,
.slot-form .blackout-row {
  width: 100%;
}

.slot-form .calendar-block {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  gap: 8px;
}

.slot-form .calendar-block strong {
  margin-top: 6px;
  margin-bottom: 6px;
}

.slot-form .blackout-dates + .ghost.full {
  margin-top: 2px;
}

.slot-form label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.slot-form .toggle-row {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.slot-auto-pill {
  width: 100%;
  min-width: 0;
}

.slot-auto-pill span {
  width: 100%;
  padding: 8px 0;
  background: #2a2c31;
  color: #9ca0a8;
  border: 1px solid var(--button-border);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slot-auto-pill + .muted.small {
  font-size: 11px;
  line-height: 1.3;
}

.slot-auto-pill input:checked + span {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.slot-days {
  text-transform: none;
  letter-spacing: 0;
}

.slot-days .day-pill,
.slot-days .day-pill span {
  text-transform: none;
  letter-spacing: 0;
}

.slot-days-hint {
  display: none;
  font-size: 11px;
  color: #ff8a7a;
  margin-top: 6px;
}

.slot-days.is-error + .slot-days-hint {
  display: block;
}

.slot-days.is-error .day-pill span {
  border-color: #f04c4c;
}

.slot-form input,
.slot-form select {
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 12px;
}

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

.slot-ranges {
  display: grid;
  gap: 10px;
}

.slot-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.slot-range label {
  min-width: 0;
}

.slot-range input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border-radius: 10px;
  padding: 0 10px;
}

.slot-range button {
  grid-column: 1 / -1;
  justify-self: end;
}


.slot-grid label {
  min-width: 0;
}

.slot-grid input {
  width: 100%;
  min-width: 0;
}


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

.slot-filters {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
}

.slot-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.slot-filter-tabs .chip {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slot-filter-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--muted);
}

.slot-filter-toggle input {
  width: 16px;
  height: 16px;
}

.slot-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.slot-info {
  display: grid;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.slot-info small {
  color: var(--muted);
  display: block;
}

.venue-defaults {
  background: #1f2126;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #c5c7cd;
}

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

.tag-editor input {
  height: 36px;
  border-radius: 10px;
}

.approval-card {
  background: #1f2126;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.approval-list {
  display: grid;
  gap: var(--space-3, 10px);
}

.approval-card .muted {
  color: #c5c7cd;
  font-size: 12px;
}

.approval-card small {
  display: block;
  line-height: 1.4;
}

.approval-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.booking-card {
  background: #2a2c31;
  border-radius: 16px;
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
  color: #f7f7f7;
}


.booking-options,
.booking-actions {
  display: grid;
  gap: var(--space-3);
}

.booking-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.booking-slots .slot-time {
  font-weight: 400;
}

.booking-slots .slot-line {
  display: block;
}

.booking-slots .slot-line + .slot-line {
  margin-top: 4px;
}

.booking-slots .slot-desc {
  font-weight: 500;
}

.booking-slots .slot-price {
  font-weight: 600;
  color: #ffb84a;
}

.booking-slots .slot-capacity {
  font-weight: 400;
  font-style: italic;
}

.booking-slots .chip.is-selected,
.booking-options .ghost.full.is-selected {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(30, 126, 247, 0.3);
}

.booking-slots .chip.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-note {
  font-size: 12px;
  color: #c5c7cd;
}

.booking-timezone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.booking-timezone label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
  color: #b7b7b7;
}

.booking-timezone select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #3a3d45;
  background: #1f2126;
  color: #f7f7f7;
  padding: 0 10px;
  width: 100%;
}

.booking-timezone-note {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #c5c7cd;
}

.booking-status-list {
  display: grid;
  gap: var(--space-3);
}

.booking-status {
  background: #1f2126;
  border-radius: 12px;
  padding: var(--space-3);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}

.booking-status.pending {
  border-left: 4px solid #ffc107;
}

.booking-status.approved {
  border-left: 4px solid #1e7ef7;
}

.booking-status.confirmed,
.booking-status.booked {
  border-left: 4px solid #1e7ef7;
}

.booking-status.cancelled {
  border-left: 4px solid #ff5c6a;
}

.booking-status.completed {
  border-left: 4px solid #4caf50;
}

.booking-status.empty {
  justify-content: center;
  align-items: center;
  color: #c5c7cd;
}

.booking-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.booking-status-title {
  font-size: 13px;
  font-weight: 600;
  color: #f5f6f8;
}

.booking-status-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  background: #2b2e35;
  color: #f5f6f8;
}

.booking-status.pending .booking-status-label {
  background: #ffc107;
  color: #202124;
}

.booking-status.approved .booking-status-label,
.booking-status.confirmed .booking-status-label,
.booking-status.booked .booking-status-label {
  background: #1e7ef7;
  color: #ffffff;
}

.booking-status.cancelled .booking-status-label {
  background: #ff5c6a;
  color: #ffffff;
}

.booking-status.completed .booking-status-label {
  background: #4caf50;
  color: #ffffff;
}

.booking-status-meta {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: #c5c7cd;
}

.booking-status-actions {
  display: flex;
  justify-content: flex-end;
}

.booking-status-actions .chip {
  padding: 4px 12px;
  font-size: 11px;
}

.theme-light .booking-card {
  background: #ffffff;
  color: #202124;
  border: 1px solid #e0e3e7;
}

.theme-light .booking-card label {
  color: #5f6368;
}

.theme-light .booking-note {
  color: #5f6368;
}

.theme-light .booking-timezone select {
  background: #ffffff;
  border: 1px solid #c7c9cc;
  color: #202124;
}

.theme-light .booking-timezone-note {
  color: #5f6368;
}

.theme-light .booking-card .chip {
  background: #eef2f6;
  color: #202124;
}

.theme-light .booking-card .chip.ghost {
  background: transparent;
  border: 1px solid #c7c9cc;
  color: #202124;
}

.theme-light .booking-status {
  background: #f5f7fa;
  color: #202124;
  border: 1px solid #e1e5ea;
}

.theme-light .booking-status.empty {
  color: #5f6368;
}

.builder {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(240px, 320px);
  gap: 24px;
}

.builder-panel {
  background: var(--panel);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tabs {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.tab {
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8c8f96;
}

.tab.is-active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.tab-panels {
  display: grid;
  gap: 16px;
}

.tab-panel {
  display: none;
  gap: 12px;
}

.tab-panel.is-active {
  display: grid;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1b1c20;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.icon.add {
  border: 1px dashed #5d6068;
  background: transparent;
}

.link-stack {
  display: grid;
  gap: 10px;
}

.link-button {
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
  min-height: 48px;
}

.links-list {
  display: grid;
  gap: 12px;
}

.link-button.orange {
  background: #ff8a00;
}

.link-button.green {
  background: #63d76c;
}

.link-button.is-empty {
  border: 2px dashed #8c8f96;
  background: transparent;
  color: #9c9c9c;
}

.link-button.dashed {
  border: 1px dashed #5d6068;
  background: transparent;
}

.kebab {
  position: absolute;
  right: 14px;
  font-size: 12px;
  letter-spacing: 2px;
}

.color-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.swatch.orange {
  background: #ff8a00;
}

.swatch.blue {
  background: #3d85ff;
}

.swatch.violet {
  background: #8c5bff;
}

.swatch.pink {
  background: #ff6bb5;
}

.swatch.green {
  background: #63d76c;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.template {
  background: transparent;
  border-radius: 12px;
  padding: 0;
  display: grid;
  gap: 0;
  text-align: center;
  border: none;
  cursor: pointer;
}

.template.active {
  border: none;
  box-shadow: none;
}

.template.active .mini-preview {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mini-preview {
  height: auto;
  aspect-ratio: 353 / 227;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1eee7, #e7ddcd);
  position: relative;
  overflow: hidden;
}

.mini-preview-avatar {
  position: absolute;
  width: 26%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  top: 14px;
  right: 14px;
  background: #555555;
  box-shadow: none;
}


.mini-preview.alt {
  background: linear-gradient(135deg, #d8f3ff, #a5d0ff);
}

.mini-preview.alt .mini-preview-half {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #555555;
}

.mini-preview.mono {
  background: linear-gradient(135deg, #fff, #e2e2e2);
}


.swatch-grid {
  display: flex;
  gap: 12px;
}

.swatch-grid.bg-swatches {
  flex-wrap: wrap;
}

.swatch-grid.bg-swatches .swatch-break {
  flex-basis: 100%;
  height: 0;
}

.swatch.white {
  background: #ffffff;
}

.swatch.cream {
  background: #f1eee7;
}

.swatch.mint {
  background: #cdebd2;
}

.swatch.dark-grey {
  background: #555555;
}

.swatch.dark-brown {
  background: #3b2f26;
}

.swatch.dark-green {
  background: #1f3a2b;
}

.swatch.dark-blue {
  background: #1f2f5c;
}

.swatch.dark-red {
  background: #4a1f1f;
}

.swatch.dark-teal {
  background: #1f3f44;
}

.swatch.custom {
  position: relative;
  background: conic-gradient(from 90deg, #ff4d4f, #ffc53d, #73d13d, #36cfc9, #4096ff, #9254de, #ff4d4f);
  overflow: hidden;
}

.swatch.custom input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
}

.swatch.custom input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.swatch.custom input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 999px;
}

.swatch.custom input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 999px;
}

.swatch.sand {
  background: #f7e1b5;
}

.swatch.sky {
  background: #bde7ff;
}

.swatch.rose {
  background: #f3c6c6;
}

.preview {
  display: grid;
  gap: 16px;
  align-content: start;
}

.live-card {
  background: var(--card);
  color: #1b1c20;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.live-head,
.live-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-head span,
.live-head small {
  display: block;
  color: #505050;
}

.live-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-actions {
  display: grid;
  gap: 10px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.confirm-actions button {
  width: 100%;
}

.saved-section {
  display: grid;
  gap: 12px;
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
  align-items: start;
}

.saved-card-item {
  display: grid;
  gap: 6px;
  align-content: start;
}

.saved-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px;
}

.saved-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 2px;
}

.saved-note-toggle {
  padding: 6px 12px;
  font-size: 11px;
}

.saved-card-note {
  display: grid;
  gap: 6px;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.saved-card-note label {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.saved-card-note textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  outline: none;
  box-shadow: none;
  padding: 10px 12px;
  background: #26282e;
  color: var(--text);
  resize: vertical;
  min-height: 72px;
}

.theme-light .saved-card-note textarea {
  background: #ffffff;
  color: #1b1b1b;
}

.saved-tags {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.legend.saved-tag {
  box-shadow: none;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

body[data-view="saved"] .split,
body[data-view="saved-select"] .split {
  margin-top: 12px;
}

.group-list {
  display: grid;
  gap: 12px;
}

.group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #24262b;
  border-radius: 12px;
  padding: 12px;
}

.detail-card {
  background: var(--card);
  color: #1b1c20;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.detail-top,
.detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

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

.detail-item {
  background: #292b30;
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
  color: var(--muted);
}

.detail-item strong {
  display: block;
  color: var(--text);
  margin-top: 4px;
}

.icon-row {
  display: flex;
  gap: 10px;
}

.wallet {
  border-radius: 999px;
  padding: 10px 14px;
  background: #1b1c20;
  color: white;
  border: 1px solid #555;
  font-size: 12px;
  text-align: center;
}

.wallet img {
  height: 22px;
  display: block;
  margin: 0 auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.row {
  display: flex;
  gap: 12px;
}

.row.between {
  justify-content: space-between;
  align-items: center;
}

.divider.soft {
  text-align: left;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #1e7ef7;
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
}

.uploader {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #26282d;
  padding: 12px;
  border-radius: 16px;
}

.avatar.large {
  width: 64px;
  height: 64px;
  border: 2px solid #e2e2e2;
}

.link-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  background: #26282d;
  padding: 12px;
  border-radius: 16px;
}

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

.design-tile {
  background: #26282d;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.group-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.group-section h4 {
  margin: 12px 0 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

.is-dim {
  filter: grayscale(0.6);
  opacity: 0.7;
}

.check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #dcdcdc;
  color: #dcdcdc;
  font-size: 10px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  border-radius: 34px;
}

.group-modal {
  background: #3b3b3b;
  border-radius: 18px;
  padding: 16px;
  width: 80%;
  display: grid;
  gap: 12px;
  color: var(--text);
}

.group-modal h4 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}

.radio {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.radio input {
  width: 16px;
  height: 16px;
}

.radio .edit {
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid #5d6068;
  border-radius: 999px;
  color: var(--muted);
}

.switches {
  display: grid;
  gap: 8px;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-step {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #24262b;
  padding: 12px;
  border-radius: 12px;
  color: #f7f7f7;
}

.exchange-card .hint,
.confirm-card small {
  color: #c5c7cd;
}

.timeline-step span {
  background: #1e7ef7;
  color: white;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.login-card {
  display: grid;
  gap: 16px;
}

.auth-banner {
  background: #f1ece5;
  color: #1b1c1f;
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  aspect-ratio: 353 / 227;
}

.auth-banner-qr {
  width: 64px;
  height: 64px;
  background: repeating-linear-gradient(45deg, #222 0 3px, transparent 3px 6px);
  border-radius: 10px;
  align-self: end;
}

.auth-banner-text h3 {
  margin: 8px 0 4px;
  font-size: 20px;
  font-weight: 600;
}

.auth-banner-text {
  text-align: center;
}

.auth-banner-text p {
  color: #7c7c7c;
  margin: 0;
  font-size: 12px;
}

.auth-wave {
  position: absolute;
  left: -40%;
  bottom: -30px;
  width: 180%;
  height: 80px;
  background: radial-gradient(circle at 20% 50%, #88c000 0 35%, transparent 35%),
    radial-gradient(circle at 50% 50%, #6ca300 0 35%, transparent 35%),
    radial-gradient(circle at 80% 50%, #a00000 0 35%, transparent 35%);
  opacity: 0.85;
}

.auth-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #5d6068;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 12px;
  position: relative;
}

.icon-actions .icon-circle {
  border: none;
  background: transparent;
  color: #f0f0f0;
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.icon-circle::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: #f5f5f5;
  color: #1b1b1b;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.icon-circle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #f5f5f5 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 5;
}

.icon-circle:hover::after,
.icon-circle:focus-visible::after,
.icon-circle:active::after,
.icon-circle:hover::before,
.icon-circle:focus-visible::before,
.icon-circle:active::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.icon-circle.no-tooltip::after,
.icon-circle.no-tooltip::before {
  display: none;
}

.theme-light .icon-circle::after {
  background: #1b1b1b;
  color: #ffffff;
}

.theme-light .icon-circle::before {
  border-color: #1b1b1b transparent transparent transparent;
}

.icon-img {
  width: 16px;
  height: 16px;
  display: block;
}

.icon-img.mono {
  filter: brightness(0) invert(1);
}

.theme-light .icon-img.mono {
  filter: brightness(0) invert(0);
}

.tile .icon-img.mono,
.theme-light .tile .icon-img.mono {
  filter: brightness(0) invert(1);
}

.icon-actions .icon-img {
  width: 14px;
  height: 14px;
}

.auth-actions .icon-circle {
  border: none;
  background: transparent;
  color: #d5d5d5;
}

.input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.input-row input {
  width: 100%;
  padding-right: 36px;
}

.input-icon {
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: var(--muted);
}

.login-footer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.login-card .link {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
}

.phone-title {
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  margin-top: 2px;
}

.card-meta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  margin-bottom: 12px;
}

.card-meta-row:empty {
  display: none;
}

.card-meta {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-meta-label {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.card-label {
  display: inline-block;
}

.card-meta-actions {
  display: none;
  gap: 8px;
}

.card-meta.has-card .card-meta-actions {
  display: flex;
}

.card-meta-actions button {
  padding: 6px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-meta-actions .danger {
  border: none;
}

.edit-icon {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.card-meta.has-card .edit-icon {
  display: inline-flex;
}

.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--button-border);
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: default;
  position: relative;
}


.radio-dot .icon-img {
  display: none;
}

.radio-dot.is-enabled {
  cursor: pointer;
}

.radio-dot.is-enabled:hover {
  border-color: var(--accent);
}

.radio-dot.is-selected {
  border-color: var(--accent);
}

.radio-dot.is-selected::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.radio-dot.is-selected .icon-img {
  filter: brightness(0) invert(1);
}

.mini-card.card-preview {
  background: #f1eee7;
  color: #1c1d20;
  min-height: 90px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.saved-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  padding: 6px 0;
}

.poll-card {
  background: #2b2d33;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
  color: var(--text);
}

.poll-week {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.poll-question {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.poll-options {
  display: grid;
  gap: 10px;
}

.poll-option {
  border-radius: 999px;
  padding: 10px 14px;
  background: #1f2126;
  color: var(--text);
  border: 1px solid #3d3f45;
  text-align: left;
}

.poll-option.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(30, 126, 247, 0.35);
}

.poll-option.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

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

.poll-results {
  display: grid;
  gap: 8px;
  background: #1f2126;
  border-radius: 12px;
  padding: 12px;
}

.poll-results.is-hidden {
  display: none;
}

.poll-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.poll-owner {
  margin-top: 12px;
}

.poll-form {
  display: grid;
  gap: 10px;
}

.poll-form input {
  width: 100%;
  border: 1px solid #3c3f45;
  border-radius: 10px;
  padding: 8px 10px;
  background: #1f2126;
  color: var(--text);
}

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

.poll-dates {
  display: grid;
  gap: 8px;
}

.poll-toggles {
  display: grid;
  gap: 8px;
}

.poll-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.poll-owner-list {
  display: grid;
  gap: 10px;
}

.poll-owner-item {
  background: #1f2126;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.poll-owner-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.poll-owner-actions {
  display: flex;
  gap: 8px;
}

.saved-header span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 120px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}

.saved-header button {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0;
  line-height: 1;
}

.saved-header .header-title {
  flex: 1;
  text-align: center;
}

.saved-header .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.saved-header .icon-circle {
  border: 1px solid #5d6068;
  background: transparent;
}

.mobile-theme-toggle {
  display: none;
  width: 28px;
  height: 28px;
}

.saved-header .header-spacer {
  width: 24px;
  height: 24px;
}


.avatar.tiny {
  width: 26px;
  height: 26px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.edit-avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 8px auto 12px;
  position: relative;
}

.avatar.big {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px dashed #7a7d84;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(64px, 92px) 1fr;
  gap: 10px;
  align-items: center;
}

.field-row .country-code {
  width: 100%;
}

.field-row:has(.country-code) {
  grid-template-columns: minmax(64px, 92px) minmax(96px, 140px) 1fr;
}

select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-size: clamp(12px, 3vw, 13px);
  line-height: 1.2;
  height: 40px;
}

.logo-upload {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.logo-control {
  position: relative;
  width: 48px;
  height: 28px;
}

.logo-box {
  width: 48px;
  height: 28px;
  border: 2px dashed #7a7d84;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}

.logo-box.has-image {
  border: none;
  background-size: cover;
  background-position: center;
}

.logo-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #5d6068;
  background: #2f3136;
  color: #f5f5f5;
  font-size: 9px;
  padding: 0;
  line-height: 1;
  min-width: 0;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.logo-box.has-image + .logo-remove {
  display: inline-flex;
}

.theme-light .logo-remove {
  background: #ffffff;
}

.note {
  color: #56c363;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.design-preview {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.card-preview-large {
  background: var(--card-bg, #f1eee7);
  color: var(--card-text, #1c1d20);
  font-family: "Lato", sans-serif;
  border-radius: 14px;
  padding: 30px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  aspect-ratio: 353 / 227;
  position: relative;
  overflow: hidden;
  line-height: 1.2;
}

.card-preview-large.has-gradient {
  background: var(--card-gradient, linear-gradient(135deg, #f1eee7, #e7ddcd));
}

.card-preview-large.border-lines {
  position: relative;
  overflow: hidden;
}

.card-preview-large.border-lines::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transform: rotate(-8deg);
  z-index: 0;
  pointer-events: none;
}

.card-preview-large.wave {
  position: relative;
  overflow: hidden;
}

.card-preview-large.wave::after {
  content: none;
}

.card-preview-large > * {
  position: relative;
  z-index: 1;
}

.card-preview-large .card-top,
.card-preview-large .card-bottom {
  user-select: none;
  pointer-events: none;
}

.card-preview-large strong {
  font-size: 15px;
}

.card-preview-large .company-logo {
  margin-bottom: 8px;
  letter-spacing: 2px;
  font-size: 26px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 154px;
  height: 54px;
  line-height: 1;
  color: var(--card-text, #1c1d20);
}

.card-preview-large .company-logo.has-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  color: transparent;
}

.card-top,
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-preview-large .card-top {
  align-items: flex-start;
  gap: 20px;
}

.card-preview-large .avatar.large {
  width: 104px;
  height: 104px;
  border: none;
}

.card-bottom {
  gap: 12px;
}

.card-preview-large .qr {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  position: absolute;
  right: 30px;
  bottom: 16px;
}

.card-preview-large,
.contact-list,
.social-row,
.links-list,
.icon-actions,
.wallet,
.public-poll-slot,
[data-action="open-booking"],
[data-action="write-nfc"],
[data-view-link="exchange"],
[data-view-link="home"] {
  transition: opacity 0.2s ease;
}

body.public-loading .card-preview-large,
body.public-loading .contact-list,
body.public-loading .social-row,
body.public-loading .links-list,
body.public-loading .icon-actions,
body.public-loading .wallet,
body.public-loading .public-poll-slot,
body.public-loading [data-action="open-booking"],
body.public-loading [data-action="write-nfc"],
body.public-loading [data-view-link="exchange"],
body.public-loading [data-view-link="home"] {
  opacity: 0;
  pointer-events: none;
}

.card-preview-large.qr-hidden .qr {
  display: none;
}

.card-top span,
.card-top small {
  display: block;
  color: var(--card-muted, #6b6b6b);
}

.secondary-name {
  font-size: 11px;
  margin-bottom: 2px;
}

.card-preview-large .secondary-name {
  font-size: 15px;
  margin-top: 2px;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--card-text, #1c1d20);
}

.card-preview-large [data-preview="title"],
.card-preview-large [data-preview="dept"],
.card-preview-large [data-preview="unit"] {
  font-size: 10px;
  line-height: 1.2;
}

.card-preview-large [data-preview="dept"] {
  margin-top: 4px;
}

.card-preview-large .card-bottom {
  margin-top: auto;
  align-items: flex-end;
  padding-right: 30px;
}

.card-preview-large .card-bottom span {
  min-width: 0;
  color: var(--card-text, #1c1d20);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  flex: 1;
}

.icon-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  margin: 4px 0 6px;
}

.contact-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.contact-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.contact-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1b1c20;
  color: white;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.contact-icon .icon-img {
  width: 12px;
  height: 12px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 8px;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
}

.social[draggable="true"] {
  cursor: grab;
}

.social[draggable="true"]:active {
  cursor: grabbing;
}

.social.has-img,
.icon-pill.has-img {
  background: transparent;
  color: inherit;
}

.social img,
.icon-pill img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.footer-logo {
  text-align: center;
  font-weight: 700;
  letter-spacing: 6px;
  color: #e0e0e0;
  margin-top: 4px;
}

.social.fb {
  background: #3b5998;
}

.social.yt {
  background: #ff0000;
}

.social.ig {
  background: radial-gradient(circle at top left, #feda75, #d62976, #4f5bd5);
}

.social.wa {
  background: #25d366;
}

.social.tw {
  background: #1da1f2;
}

.social.li {
  background: #0077b5;
}

.social.tg {
  background: #229ed9;
}

.social.dc {
  background: #5865f2;
}

.social.tk {
  background: #010101;
}

.social.btc {
  background: #f7931a;
}

.social.eth {
  background: #3c3c3d;
}

.social.sol {
  background: #00ffa3;
  color: #111;
}

.social.snap {
  background: #fffc00;
  color: #111;
}

.social.pin {
  background: #bd081c;
}

.social.beh {
  background: #1769ff;
}

.social.dr {
  background: #ea4c89;
}

.social.g {
  background: #db4437;
}

.social.line {
  background: #00c300;
}

.social.mail {
  background: #607d8b;
}

.social.web {
  background: #37474f;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.analytics-toolbar {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.analytics-toolbar .ghost.is-active {
  background: #1e7ef7;
  border-color: #1e7ef7;
  color: white;
}

.date-range {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #2a2c31;
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
  color: var(--muted);
}

.date-range strong {
  display: block;
  color: var(--text);
  margin-top: 4px;
}

.metric {
  background: #2a2c31;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 18px;
}

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

.chart {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 120px;
  padding: 12px;
  background: #2a2c31;
  border-radius: 12px;
}

.export-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.chart span {
  flex: 1;
  background: linear-gradient(180deg, #1e7ef7, #63d76c);
  border-radius: 8px 8px 0 0;
}

.analytics-list {
  display: grid;
  gap: 12px;
}

.analytics-list div {
  background: #2a2c31;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.analytics-list strong {
  color: var(--text);
}

.plan-card {
  background: #2a2c31;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.stepper {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.step {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #5d6068;
  color: #b0b0b0;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.step.is-active {
  background: #1e7ef7;
  border-color: #1e7ef7;
  color: white;
}

.upgrade-step {
  display: none;
  gap: 12px;
}

.upgrade-step.is-active {
  display: grid;
}

.receipt {
  background: #2a2c31;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.receipt .total {
  border-top: 1px solid #3b3d44;
  padding-top: 10px;
  color: var(--text);
}

.success {
  background: #2a2c31;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 6px;
  text-align: center;
}

.plan-card strong {
  color: var(--text);
  font-size: 16px;
}

.plan-card.pro {
  border: 1px solid #1e7ef7;
  box-shadow: 0 10px 24px rgba(30, 126, 247, 0.2);
}

.plan-card.current {
  border: 1px dashed #5d6068;
}

.checkout {
  background: #2a2c31;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.exchange-card {
  background: #2a2c31;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
  text-align: center;
  align-items: stretch;
  color: #f7f7f7;
}

.exchange-card .exchange-qr {
  display: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  justify-self: stretch;
  margin: 0 auto;
}

.exchange-card.show-qr .scanner,
.exchange-card.show-qr .hint {
  display: none;
}

.exchange-card.show-qr .exchange-qr {
  display: block;
}

.exchange-step {
  display: none;
  gap: 12px;
}

.exchange-step.is-active {
  display: grid;
}

.confirm-card {
  background: #2a2c31;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 12px;
  color: #f7f7f7;
}

.scanner {
  height: 160px;
  border-radius: 16px;
  border: 2px dashed #5d6068;
  background: linear-gradient(135deg, rgba(30, 126, 247, 0.2), transparent 60%);
}

.exchange-actions {
  display: grid;
  gap: 10px;
}

.exchange-group {
  display: grid;
  gap: 10px;
  background: #2a2c31;
  border-radius: 16px;
  padding: 14px;
  color: #f7f7f7;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  place-items: center;
  z-index: 3;
}

.modal.is-active {
  display: grid;
}

.modal-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 20px;
  min-width: min(480px, 92vw);
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.share-info {
  display: grid;
  gap: 12px;
}

.qr.large {
  width: 220px;
  height: 220px;
  max-width: 70vw;
  max-height: 70vw;
}

.icon-picker {
  display: grid;
  gap: 16px;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  justify-items: center;
}

.icon-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 10px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.icon-pill.is-selected {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.hidden-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.icon-pill.fb { background: #3b5998; }
.icon-pill.tw { background: #1da1f2; }
.icon-pill.yt { background: #ff0000; }
.icon-pill.ig { background: radial-gradient(circle at top left, #feda75, #d62976, #4f5bd5); }
.icon-pill.li { background: #0077b5; }
.icon-pill.wa { background: #25d366; }
.icon-pill.tk { background: #010101; }
.icon-pill.dc { background: #5865f2; }
.icon-pill.tg { background: #229ed9; }
.icon-pill.btc { background: #f7931a; }
.icon-pill.eth { background: #3c3c3d; }
.icon-pill.sol { background: #00ffa3; color: #111; }
.icon-pill.snap { background: #fffc00; color: #111; }
.icon-pill.pin { background: #bd081c; }
.icon-pill.beh { background: #1769ff; }
.icon-pill.dr { background: #ea4c89; }
.icon-pill.g { background: #db4437; }
.icon-pill.line { background: #00c300; }
.icon-pill.mail { background: #607d8b; }
.icon-pill.web { background: #37474f; }

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5d6068;
}

.dot.is-active {
  background: #d9d9d9;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2c31;
  color: #f7f7f7;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-size: 12px;
  z-index: 4;
}

.toast.is-visible {
  opacity: 1;
}

.theme-light .toast {
  background: #1b1b1b;
  color: #ffffff;
}

.edit-avatar .avatar {
  display: none;
}

.edit-avatar.is-dashed .avatar.dashed {
  display: grid;
}

.edit-avatar.is-photo .avatar.photo {
  display: grid;
}

.edit-avatar.has-photo .avatar.dashed {
  display: none;
}

.avatar.photo {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9d3da, #8ea0b1);
  position: relative;
  border: 2px solid #e2e2e2;
}

.avatar-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #5d6068;
  background: #2f3136;
  color: #f5f5f5;
  font-size: 9px;
  padding: 0;
  line-height: 1;
  min-width: 0;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.edit-avatar.has-photo .avatar-remove {
  display: inline-flex;
}

.edit-avatar .avatar.photo + .avatar-remove {
  display: inline-flex;
}

.theme-light .avatar-remove {
  background: #ffffff;
  color: #1f1f1f;
  border-color: var(--input-border);
}

.avatar.dashed {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px dashed #7a7d84;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
}

.camera-badge {
  display: none;
}

.socials-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 6px;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.socials-row .social {
  width: 36px;
  height: 36px;
}

.social.add {
  background: #2f3136;
  border: 2px dashed #7a7d84;
  color: #b0b0b0;
  cursor: pointer;
}

.dotted-row {
  display: grid;
  grid-template-columns: repeat(6, 36px);
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 12px;
}

.dotted {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px dashed #7a7d84;
}

.theme-light .social.add {
  background: transparent;
  border-color: var(--input-border);
  color: var(--muted);
}

.theme-light .dotted {
  border-color: var(--input-border);
}

.link-slot {
  border: 2px dashed #8c8f96;
  border-radius: 12px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #9c9c9c;
  cursor: pointer;
}

.link-slot.has-link {
  border: none;
  color: white;
  font-weight: 600;
}

.section-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.section-label.inline {
  margin-top: 2px;
  margin-bottom: 2px;
}

.gradient-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gradient-bar {
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(90deg, #b9d9ff, #87b6ff);
  border: 0;
  box-shadow: inset 0 0 0 1px #5d6068;
  box-sizing: border-box;
  cursor: pointer;
}

.gradient-bar.alt {
  background: #8fb8c2;
  border: 0;
  box-shadow: inset 0 0 0 1px #5d6068;
}

.gradient-bar.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: transparent;
  box-shadow: none;
}

.qr-type-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.qr-type-option {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 0;
  box-shadow: inset 0 0 0 1px #5d6068;
  color: var(--text);
  text-align: left;
  font-size: 10px;
  line-height: 1.1;
  cursor: pointer;
}

.qr-type-option.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: transparent;
  box-shadow: none;
}

.qr-type-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.qr-type-icon .qr-bg {
  fill: #ffffff;
}

.qr-type-icon .qr-dot {
  fill: #111111;
}

.qr-type-icon.transparent .qr-bg {
  fill: none;
  stroke: #6b6b6b;
  stroke-width: 1.2;
  stroke-dasharray: 2 2;
}

.qr-type-icon.transparent .qr-dot {
  fill: #e0e3ea;
}

.qr-type-icon.no-border .qr-bg {
  fill: none;
}

.qr-type-icon.none .qr-bg {
  fill: none;
  stroke: #6b6b6b;
  stroke-width: 1.2;
}

.qr-type-icon.none .qr-slash {
  stroke: #ff6b6b;
  stroke-width: 2;
}

.mini-preview.wave {
  background: linear-gradient(135deg, #f1eee7, #efe6db);
  position: relative;
  overflow: hidden;
}

.mini-preview.wave::after {
  content: none;
}

.mini-preview.lines {
  background: linear-gradient(135deg, #7f5bdc, #7a4de6);
  position: relative;
  overflow: hidden;
}

.mini-preview.lines::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: rotate(-10deg);
}

.mini-preview.is-active,
.template.active .mini-preview {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.card-preview-large.template-creator {
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.card-preview-large.template-creator .brand-logo {
  letter-spacing: 2px;
  font-size: 16px;
}

.card-preview-large.template-creator .card-top {
  position: static;
}

.card-preview-large.template-creator .card-top > div:first-child {
  width: 50%;
  padding-right: 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.card-preview-large.template-creator .avatar.large {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.card-preview-large.template-creator .card-bottom {
  position: relative;
  z-index: 2;
}

.design-color-layout {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  margin-top: 8px;
}

.swatch-column {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.swatch-column .swatch {
  width: 32px;
  height: 32px;
}

.design-previews {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: end;
}

.design-previews .mini-preview {
  height: auto;
}

.modal[data-modal="icons"] .modal-card,
.modal[data-modal="link-edit"] .modal-card {
  background: var(--panel-2);
  border-radius: 16px;
  max-width: 320px;
  padding: 18px;
  margin: 0 auto;
}

.modal[data-modal="icons"] .modal-header,
.modal[data-modal="link-edit"] .modal-header {
  display: none;
  color: var(--text);
}

.modal[data-modal="icons"] .modal-actions,
.modal[data-modal="link-edit"] .modal-actions {
  justify-content: space-between;
}

.modal[data-modal="icons"] .modal-actions button,
.modal[data-modal="link-edit"] .modal-actions button {
  flex: 1;
}

.modal[data-modal="icons"] input,
.modal[data-modal="link-edit"] input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
}

.modal[data-modal="icons"] .icon-picker-grid {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 960px) {
  .view {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .view > * {
    max-width: 100%;
    width: 100%;
  }

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

  .app-shell {
    padding: 16px;
  }

  .phone {
    width: 100%;
    max-width: 100%;
  }

  .views {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  .app-shell {
    padding: 16px 0;
  }


  .views {
    display: flex;
    flex-direction: column;
  }

  .view {
    width: 100%;
  }

  .view.is-active {
    display: flex;
    flex-direction: column;
  }

  .view.is-active > .phone {
    order: 0;
  }

  .view.is-active > .panel {
    order: 1;
  }


  .app-header,
  .intro,
  .demo-header {
    display: none;
  }

  .mobile-theme-toggle {
    display: grid;
  }

  .phone {
    border-radius: 0;
    min-height: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 16px 16px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100%;
  }

  .phone-header {
    display: none;
  }

  .saved-header {
    min-height: 44px;
    padding: 10px 0;
    line-height: 1.4;
  }


  .home-grid,
  .saved-grid {
    gap: 10px;
  }

  .tile {
    border-radius: 16px;
  }

  .card-preview-large {
    border-radius: 14px;
    padding: 30px 30px 24px 30px;
  }

  .icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .availability-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .availability-form label {
    font-size: 10px;
  }

  .availability-form input,
  .availability-form select {
    height: 34px;
    font-size: 12px;
  }

}


@media (max-width: 360px) {
  .phone {
    border-radius: 22px;
    padding: 12px;
  }

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

  .icon-picker-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.theme-light .calendar-accordion-item {
  background: #f3f5f8;
  border-color: #d2d6dd;
}
.theme-light .calendar-accordion-trigger {
  color: #5f6368;
}
.theme-light .calendar-accordion-item.is-active .calendar-accordion-trigger {
  background: #ffffff;
  color: #202124;
}
.theme-light .calendar-accordion .chip.is-active {
  background: #e6e9ee;
  border-color: #c7c9cc;
  color: #202124;
}
.theme-light .calendar-card,
.theme-light .calendar-block {
  background: #ffffff;
  color: #202124;
  border: 1px solid #e0e3e7;
}
.theme-light .calendar-header .muted {
  color: #5f6368;
}
.theme-light .calendar-day {
  background: #f1f3f6;
  color: #202124;
}

.theme-light .calendar-day.has-slots {
  color: #ffffff;
}
.theme-light .calendar-day.muted {
  background: transparent;
  color: #9ca0a8;
}

.theme-light .calendar-day.muted.is-sunday,
.theme-light .calendar-day.is-sunday {
  color: #ff5a6b;
}
.theme-light .calendar-day.is-active {
  background: #1e7ef7;
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(32, 33, 36, 0.7);
}

.theme-light .calendar-grid.is-weekly .calendar-day.weekly-cell {
  background: #f1f3f6;
  color: #202124;
}

.theme-light .calendar-grid.is-weekly .calendar-day.weekly-cell.is-active,
.theme-light .calendar-grid.is-weekly .calendar-day.weekly-cell.is-today {
  box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.7);
}

.theme-light .calendar-grid.is-weekly .calendar-day.weekly-cell .weekly-date {
  color: #202124;
}

.theme-light .calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(32, 33, 36, 0.7);
}

.theme-light .calendar-day.has-booked {
  box-shadow: inset 0 0 0 2px rgba(32, 33, 36, 0.6);
}

.theme-light .calendar-grid.is-monthly .calendar-day.has-booked:not(.is-today) {
  box-shadow: none;
}

.theme-light .calendar-grid.is-monthly .calendar-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.7);
}

.theme-light .calendar-grid.is-weekly .calendar-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.7);
}
.theme-light .calendar-time-label {
  color: #5f6368;
}
.theme-light .calendar-time-slot {
  background: #f1f3f6;
  border-color: #e0e3e7;
}

.theme-light .weekly-event-time {
  color: #5f6368;
}

.theme-light .weekly-event.pending .weekly-event-dot {
  border-color: rgba(32, 33, 36, 0.4);
}

.theme-light .weekly-event.confirmed .weekly-event-dot,
.theme-light .weekly-event.booked .weekly-event-dot {
  border-color: rgba(32, 33, 36, 0.6);
}

.theme-light .weekly-event.completed .weekly-event-dot {
  border-color: rgba(77, 212, 120, 0.8);
  background: rgba(77, 212, 120, 0.8);
}

.theme-light .weekly-event.not-taken .weekly-event-dot,
.theme-light .weekly-event.busy .weekly-event-dot {
  background: rgba(120, 124, 133, 0.8);
}

.theme-light .weekly-event.expired .weekly-event-dot {
  background: rgba(120, 124, 133, 0.8);
}

.theme-light .calendar-today {
  border-color: rgba(32, 33, 36, 0.6);
  color: #202124;
}

.theme-light .calendar-daily-item {
  background: #f5f7fa;
  color: #202124;
  border: 1px solid #e1e5ea;
}

.theme-light .calendar-daily-meta {
  color: #5f6368;
}

.theme-light .calendar-empty {
  color: #5f6368;
}

.theme-light .calendar-slot-dot.is-booked {
  border-color: rgba(32, 33, 36, 0.6);
}

.theme-light .calendar-slot-bar.is-booked {
  border-color: rgba(32, 33, 36, 0.6);
}
.theme-light .status-item,
.theme-light .event-type,
.theme-light .integration-row,
.theme-light .slot-row,
.theme-light .venue-defaults,
.theme-light .approval-card {
  background: #f5f7fa;
  color: #202124;
  border: 1px solid #e1e5ea;
}
.theme-light .availability-grid,
.theme-light .visibility-options,
.theme-light .approval-card .muted {
  color: #5f6368;
}

.theme-light .availability-form input,
.theme-light .availability-form select {
  background: #ffffff;
  border: 1px solid #c7c9cc;
  color: #202124;
}

.theme-light .day-pill span {
  background: #f1f3f6;
  color: #202124;
}

.theme-light .busy-row input,
.theme-light .busy-row select,
.theme-light .blackout-row input {
  background: #ffffff;
  border: 1px solid #c7c9cc;
  color: #202124;
}
