body[data-page="index-preview"] {
  background:
    radial-gradient(circle at top left, rgba(245, 221, 246, 0.72), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 236, 204, 0.68), transparent 26%),
    linear-gradient(180deg, #f8f5f6 0%, #faf8f8 44%, #f7f5f5 100%);
}

body[data-page="index-preview"] .page-shell {
  padding-top: 24px;
  padding-bottom: 48px;
}

.home-preview-shell {
  gap: 24px;
}

.home-preview-hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "ribbon"
    "gallery";
  gap: 20px;
  align-items: stretch;
}

.home-preview-gallery-card,
.home-preview-copy-card {
  display: grid;
  min-height: 100%;
  padding: 0;
}

.home-preview-gallery-card {
  grid-area: gallery;
  gap: 0;
  align-content: start;
  align-self: start;
}

.home-preview-copy-card {
  align-content: center;
  padding: 28px;
  border: 1px solid rgba(232, 226, 219, 0.96);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 243, 224, 0.92), transparent 32%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 46px rgba(26, 26, 26, 0.05);
  backdrop-filter: blur(18px);
}

.home-preview-copy-card--cta {
  grid-area: copy;
  position: relative;
  overflow: hidden;
  border-color: rgba(31, 28, 24, 0.14);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.2), transparent 34%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.12), transparent 30%),
    linear-gradient(150deg, #171512 0%, #23201d 54%, #2a2623 100%);
  box-shadow:
    0 22px 48px rgba(26, 26, 26, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-preview-gallery-shell,
.home-preview-gallery {
  min-width: 0;
  height: 100%;
}

.home-preview-gallery__frame {
  position: relative;
  min-height: 492px;
  height: 100%;
  border-radius: 32px;
  box-shadow: 0 22px 44px rgba(26, 26, 26, 0.08);
  overflow: hidden;
}

.home-preview-gallery__slides {
  position: relative;
  min-height: 524px;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 237, 228, 0.96), rgba(232, 223, 213, 0.92)),
    #ece3d8;
}

.home-preview-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 15, 12, 0.42);
  color: #fff8f1;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(26, 26, 26, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.home-preview-gallery__nav:hover {
  background: rgba(19, 15, 12, 0.58);
  transform: translateY(-50%) scale(1.04);
}

.home-preview-gallery__nav:disabled {
  opacity: 0.38;
  cursor: default;
}

.home-preview-gallery__nav:disabled:hover {
  background: rgba(19, 15, 12, 0.42);
  transform: translateY(-50%);
}

.home-preview-gallery__nav span {
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.home-preview-gallery__nav--prev {
  left: 18px;
}

.home-preview-gallery__nav--next {
  right: 18px;
}

.home-preview-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition:
    opacity 0.6s ease,
    transform 1.2s ease;
}

.home-preview-gallery__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  transform: scale(1);
}

.home-preview-gallery__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 15, 12, 0.08) 0%, rgba(20, 15, 12, 0.06) 30%, rgba(18, 14, 11, 0.18) 52%, rgba(15, 12, 10, 0.72) 100%),
    radial-gradient(circle at top left, rgba(18, 14, 11, 0.1), transparent 24%),
    radial-gradient(circle at bottom right, rgba(18, 14, 11, 0.12), transparent 28%);
}

.home-preview-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.96) brightness(1.03) sepia(0.06);
}

.home-preview-gallery__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px;
  z-index: 2;
  pointer-events: none;
}

.home-preview-gallery__tag {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  color: #fff7ef;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
}

.home-preview-gallery__title {
  margin: 0;
  max-width: 100%;
  color: #fffaf2;
  font-size: clamp(1.72rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.home-preview-gallery__subtitle {
  margin: 8px 0 0;
  max-width: 32rem;
  color: rgba(255, 247, 239, 0.9);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  text-shadow: none;
}

.home-preview-gallery__dots {
  display: none;
}

.home-preview-gallery__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

.home-preview-gallery__dot.is-active {
  width: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.home-preview-gallery__credit {
  position: absolute;
  right: 20px;
  top: 22px;
  bottom: auto;
  z-index: 3;
  display: grid;
  gap: 4px;
  max-width: min(46%, 260px);
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(19, 15, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff8f1;
  text-align: right;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

a.home-preview-gallery__credit:hover {
  transform: translateY(-1px);
  background: rgba(19, 15, 12, 0.56);
  border-color: rgba(255, 255, 255, 0.18);
}

.home-preview-gallery__credit-title {
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.home-preview-gallery__credit-description {
  color: rgba(255, 246, 238, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
}

.home-preview-gallery__empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(60, 54, 48, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
}

.home-preview-hero-ribbon {
  grid-area: ribbon;
  display: block;
  align-self: start;
  padding: 18px 22px;
  border: 1px solid rgba(226, 222, 218, 0.9);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 239, 214, 0.76), transparent 38%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.035);
  text-align: center;
}

.home-preview-hero-ribbon p {
  margin: 0;
  color: var(--color-text);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.58;
  letter-spacing: -0.015em;
  text-align: center;
}

.home-preview-hero-ribbon__accent {
  color: var(--color-primary-strong);
  font-weight: 900;
  font-size: 1.52em;
  line-height: 0.92;
}

.home-preview-hero-ribbon__line + .home-preview-hero-ribbon__line {
  margin-top: 6px;
}

.home-preview-copy-content {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-width: 0;
  padding: 8px 10px 8px 2px;
}

.home-preview-title {
  margin: 0;
  display: grid;
  gap: 10px;
  max-width: 11.2em;
}

.home-preview-title-main {
  display: grid;
  gap: 12px;
}

.home-preview-number-lockup {
  display: none;
}

.home-preview-title-text {
  max-width: 10ch;
  color: #fffaf4;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.home-preview-title-text--cta {
  max-width: none;
  display: inline-block;
  white-space: nowrap;
}

.home-preview-title-text--cta br {
  display: block;
}

.home-preview-copy-card--cta .home-preview-title {
  max-width: none;
}

.home-preview-copy {
  max-width: 25rem;
  color: rgba(255, 246, 238, 0.82);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.76;
}

.home-preview-copy--cta {
  max-width: 22rem;
  font-size: 1rem;
}

.home-preview-copy-note {
  margin: -2px 0 0;
  color: rgba(255, 243, 234, 0.64);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.6;
}

.home-preview-copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffb063;
  backdrop-filter: blur(12px);
}

.home-preview-copy-icon svg {
  width: 24px;
  height: 24px;
}

.home-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.home-preview-actions .button {
  min-width: 100%;
}

.home-preview-copy-card--cta .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff8f1;
  border-color: rgba(255, 255, 255, 0.12);
}

.home-preview-copy-card--cta .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.home-preview-card {
  border: 1px solid rgba(226, 222, 218, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.05);
  backdrop-filter: blur(18px);
}

.home-preview-card--timeline {
  display: grid;
  gap: 16px;
  padding: 28px 30px;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.home-preview-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.home-preview-card--timeline .section-heading {
  font-size: 1.36rem;
}

.home-preview-legend {
  margin-top: -2px;
}

.home-preview-timeline-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.home-preview-timeline-scroll::-webkit-scrollbar {
  height: 8px;
}

.home-preview-timeline-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.12);
}

.home-preview-timeline-board {
  min-width: 760px;
  display: grid;
  gap: 10px;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.home-preview-empty {
  padding: 16px 18px;
  border: 1px dashed rgba(255, 152, 0, 0.26);
  border-radius: 20px;
  background: rgba(255, 248, 240, 0.68);
  color: var(--color-subtext);
  font-weight: 700;
}

.home-preview-axis,
.home-preview-row {
  display: grid;
  grid-template-columns: 160px repeat(var(--preview-days, 10), minmax(40px, 1fr));
  gap: 8px;
  min-width: max-content;
}

.home-preview-axis-corner,
.home-preview-axis-day,
.home-preview-row-label,
.home-preview-row-track {
  border-radius: 18px;
}

.home-preview-axis-corner,
.home-preview-row-label {
  padding: 12px 14px;
  border: 1px solid rgba(224, 220, 216, 0.9);
  background: rgba(248, 247, 245, 0.92);
}

.home-preview-axis-corner {
  display: grid;
  align-content: center;
  gap: 4px;
}

.home-preview-axis-corner span,
.home-preview-row-label small {
  color: var(--color-subtext);
  font-size: 0.76rem;
  font-weight: 800;
}

.home-preview-axis-corner strong,
.home-preview-row-label strong {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 900;
}

.home-preview-axis-day {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 58px;
  border: 1px solid rgba(224, 220, 216, 0.72);
  background: rgba(255, 255, 255, 0.76);
}

.home-preview-axis-day strong {
  color: var(--color-text);
  font-size: 0.84rem;
  font-weight: 900;
}

.home-preview-axis-day span {
  color: var(--color-subtext);
  font-size: 0.72rem;
  font-weight: 800;
}

.home-preview-axis-day.is-today {
  border-color: rgba(255, 152, 0, 0.4);
  background: rgba(255, 243, 224, 0.92);
}

.home-preview-row-label {
  display: grid;
  gap: 6px;
  align-content: center;
}

.home-preview-row-track {
  grid-column: 2 / -1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--preview-days, 10), minmax(40px, 1fr));
  gap: 8px;
  min-height: 74px;
  padding: 8px 0;
}

.home-preview-row-track::before {
  content: "";
  position: absolute;
  inset: 8px 0;
  border: 1px solid rgba(224, 220, 216, 0.9);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 247, 245, 0.82));
}

.home-preview-grid-cell {
  position: relative;
  z-index: 1;
  border-right: 1px dashed rgba(224, 220, 216, 0.74);
}

.home-preview-grid-cell:last-child {
  border-right: 0;
}

.home-preview-bar {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 16px;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(26, 26, 26, 0.1);
  overflow: hidden;
}

.home-preview-bar strong {
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-preview-bar small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-preview-bar[data-tone="waiting"] {
  background: linear-gradient(135deg, #bdbdb7, #d3d3cf);
  color: #4c4c48;
}

.home-preview-bar[data-tone="waiting"] small {
  color: rgba(76, 76, 72, 0.76);
}

.home-preview-bar[data-tone="notified"] {
  background: linear-gradient(135deg, #ffb300, #ff9800);
}

.home-preview-bar[data-tone="confirmed"] {
  background: linear-gradient(135deg, #2196f3, #42a5f5);
}

.home-preview-bar[data-tone="locked"] {
  background: linear-gradient(135deg, #2196f3, #42a5f5);
}

.home-preview-bar[data-tone="ongoing"] {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.home-preview-bar[data-tone="maintenance"] {
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 224, 178, 0.95) 0,
    rgba(255, 224, 178, 0.95) 10px,
    rgba(255, 204, 128, 0.95) 10px,
    rgba(255, 204, 128, 0.95) 20px
  );
  color: #6e5628;
}

.home-preview-bar[data-tone="maintenance"] small {
  color: rgba(110, 86, 40, 0.76);
}

@media (min-width: 1181px) {
  .home-preview-hero {
    grid-template-columns: minmax(320px, 2fr) minmax(0, 3fr);
    grid-template-areas:
      "copy gallery"
      "copy ribbon";
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 22px;
  }
}

@media (max-width: 1180px) {
  .home-preview-hero {
    grid-template-areas:
      "copy"
      "ribbon"
      "gallery";
  }

  .home-preview-gallery__frame,
  .home-preview-gallery__slides {
    min-height: 392px;
  }

  .home-preview-copy-card {
    align-content: start;
  }

  .home-preview-title {
    max-width: 14em;
  }
}

@media (max-width: 1080px) {
  .home-preview-section-head {
    align-items: start;
    flex-direction: column;
  }

  .home-preview-actions .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body[data-page="index-preview"] .page-shell {
    padding-top: 18px;
    padding-bottom: 38px;
  }

  .home-preview-copy-card,
  .home-preview-card--timeline {
    border-radius: 24px;
  }

  .home-preview-copy-card,
  .home-preview-card--timeline {
    padding: 22px;
  }

  .home-preview-gallery-card {
    padding: 0;
    border-radius: 24px;
  }

  .home-preview-gallery__frame {
    min-height: 316px;
    border-radius: 24px;
  }

  .home-preview-gallery__slides {
    min-height: 316px;
    border-radius: 24px;
  }

  .home-preview-gallery__overlay {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 16px 22px;
  }

  .home-preview-gallery__tag {
    top: 14px;
    left: 14px;
    min-height: 0;
    max-width: calc(100% - 72px);
    padding: 6px 10px;
    font-size: 0.7rem;
    line-height: 1.3;
    white-space: normal;
  }

  .home-preview-gallery__title {
    max-width: 100%;
    font-size: 1.28rem;
  }

  .home-preview-gallery__subtitle {
    margin-top: 8px;
    font-size: 0.84rem;
  }

  .home-preview-gallery__credit {
    right: 14px;
    left: auto;
    top: 14px;
    bottom: auto;
    max-width: min(52%, 180px);
    padding: 8px 10px;
    border-radius: 14px;
    text-align: right;
  }

  .home-preview-gallery__credit-title {
    font-size: 0.74rem;
  }

  .home-preview-gallery__credit-description {
    font-size: 0.66rem;
  }

  .home-preview-gallery__nav {
    width: 38px;
    height: 38px;
  }

  .home-preview-gallery__nav--prev {
    left: 12px;
  }

  .home-preview-gallery__nav--next {
    right: 12px;
  }

  .home-preview-bar strong {
    font-size: 0.8rem;
    line-height: 1.2;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  .home-preview-bar small {
    font-size: 0.64rem;
    line-height: 1.2;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  .home-preview-hero-ribbon {
    padding: 14px 16px;
  }

  .home-preview-hero-ribbon p {
    font-size: 0.95rem;
  }

  .home-preview-title-main {
    gap: 10px;
  }

  .home-preview-actions {
    display: grid;
  }

  .home-preview-axis,
  .home-preview-row {
    grid-template-columns: 132px repeat(var(--preview-days, 10), minmax(38px, 1fr));
  }

  .home-preview-timeline-board {
    min-width: 650px;
  }
}
