/* Final spacing and color refinements after live browser comparison. */
.mode-strip.preview .mode-dot,
.mode-strip.live .mode-dot {
  background: var(--ng-purple);
  box-shadow: none;
}

.mode-strip::after {
  margin-left: 1px;
  color: #76737f;
  content: "×";
  font-size: 16px;
  line-height: 1;
}

.side-nav {
  margin-top: 20px;
}

.nav-item {
  min-height: 33px;
  padding: 7px 12px;
  font-size: 12px;
}

.home-heading > div > p {
  display: none;
}

.home-hero {
  grid-template-columns: minmax(320px, .28fr) minmax(0, .72fr);
  height: 228px;
  min-height: 0;
}

.home-setup-track {
  gap: 46px;
  min-width: 760px;
}

.home-setup-step {
  gap: 22px;
}

.home-card {
  min-height: clamp(360px, calc(100svh - 425px), 620px);
}

.home-contacts-card {
  align-items: flex-start;
  gap: 24px;
  padding-top: 31px;
}

.home-contacts-art {
  width: 180px;
  flex-basis: 180px;
  margin-top: 18px;
}

.home-card-copy > .home-kicker,
.usage-card .home-kicker {
  display: none;
}

.home-card-copy h2 {
  margin-top: 0;
}

@media (max-width: 1260px) {
  .home-hero {
    height: auto;
    min-height: 228px;
  }

  .home-card {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .home-hero {
    height: auto;
  }

  .home-card {
    min-height: 0;
  }
}

button.home-day {
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  cursor: pointer;
}

button.home-day:hover {
  background: #f1efff;
}

.home-day.has-events {
  position: relative;
}

.home-day-dot {
  position: absolute;
  bottom: 1px;
  width: 4px;
  height: 4px;
  background: var(--ng-green);
  border-radius: 50%;
}

.home-day.is-selected .home-day-dot {
  background: #fff;
}

.theme-dialog {
  width: min(520px, calc(100vw - 30px));
  max-width: calc(100vw - 30px);
  padding: 0;
  color: var(--ng-ink);
  background: #fff;
  border: 1px solid var(--ng-line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(39, 45, 41, .2);
}

.theme-dialog::backdrop {
  background: rgba(33, 39, 35, .24);
  backdrop-filter: blur(3px);
}

.theme-dialog-form {
  padding: 23px;
}

.theme-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.theme-dialog-head h2 {
  margin: 4px 0 0;
  color: var(--ng-ink);
  font-size: 18px;
  line-height: 1.2;
}

.theme-dialog-close {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #737c75;
  background: #f5f7f3;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.theme-dialog-close:hover {
  color: var(--ng-ink);
  background: #edf2eb;
}

.theme-calendar-events {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.theme-calendar-event {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px 10px;
  color: var(--ng-ink);
  background: #fbfcfa;
  border: 1px solid var(--ng-line);
  border-radius: 11px;
  text-align: left;
}

.theme-calendar-event:hover {
  background: #f3faef;
  border-color: #bdd8ba;
}

.theme-calendar-time {
  color: var(--ng-green);
  font-size: 10px;
  font-weight: 800;
}

.theme-calendar-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.theme-calendar-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-calendar-copy small {
  color: #8a938b;
  font-size: 9px;
}

.theme-calendar-open,
.theme-dialog-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ng-purple);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.theme-calendar-open .icon,
.theme-dialog-link .icon {
  width: 12px;
  height: 12px;
}

.theme-calendar-empty {
  display: grid;
  gap: 5px;
  padding: 19px 10px;
  color: #8a938b;
  background: #fbfcfa;
  border: 1px solid var(--ng-line);
  border-radius: 11px;
  font-size: 10px;
  text-align: center;
}

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

.theme-dialog-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ng-line);
}

.theme-dialog-copy {
  max-width: 350px;
  margin: 8px 0 0;
  color: #8a938b;
  font-size: 10px;
  line-height: 1.45;
}

.theme-class-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.theme-class-meta > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #fbfcfa;
  border: 1px solid var(--ng-line);
  border-radius: 10px;
}

.theme-class-meta small {
  color: #8a938b;
  font-size: 9px;
}

.theme-class-meta strong {
  font-size: 10px;
}

.theme-dialog-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.theme-dialog-actions .home-dark-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

.theme-dialog-actions .home-dark-button .icon {
  width: 12px;
  height: 12px;
}

@media (max-width: 560px) {
  .theme-calendar-event {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .theme-calendar-open {
    grid-column: 2;
  }

  .theme-class-meta {
    grid-template-columns: 1fr;
  }
}
