.uc-dashboard-page {
  min-height: calc(100vh - 132px);
  padding: 34px 0 72px;
  background: radial-gradient(circle at 94% 0, #fae7e1 0, transparent 27%), linear-gradient(180deg, #fbf8f3, #f7f2ec);
}
.uc-dashboard__layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 28px; }
.uc-dashboard__rail { position: sticky; top: 94px; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: 0 12px 35px rgba(64,48,35,.05); }
.uc-dashboard__rail-link { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink); font-size: 13px; font-weight: 600; }
.uc-dashboard__rail-link > span { display: grid; width: 24px; height: 24px; place-items: center; color: var(--coral-dark); font-size: 18px; }
.uc-dashboard__rail-link:hover, .uc-dashboard__rail-link.is-current { color: var(--coral-dark); background: #fbece7; }
.uc-dashboard__local-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px 9px 4px; border-top: 1px solid var(--line); }
.uc-dashboard__local-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #fbece7; color: var(--coral-dark); }
.uc-dashboard__local-note strong, .uc-dashboard__local-note small { display: block; }
.uc-dashboard__local-note strong { font-size: 11px; }
.uc-dashboard__local-note small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.uc-dashboard__main { min-width: 0; }
.uc-dashboard__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.uc-dashboard__heading h1 { margin: 6px 0 4px; font: 600 clamp(28px, 3vw, 38px)/1.15 "Playfair Display", Georgia, serif; letter-spacing: -.035em; }
.uc-dashboard__heading p { margin: 0; color: var(--muted); font-size: 14px; }
.uc-dashboard__heading > .btn { flex: 0 0 auto; min-height: 46px; }
.uc-dashboard__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 29px; }
.uc-dashboard__stats article { display: flex; min-width: 0; min-height: 82px; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.86); }
.uc-dashboard__stat-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 13px; font-size: 19px; }
.uc-dashboard__stat-icon.is-coral { background: #fce9e4; color: var(--coral-dark); }
.uc-dashboard__stat-icon.is-amber { background: #fff2df; color: #b87528; }
.uc-dashboard__stat-icon.is-green { background: #e6f3eb; color: #41845e; }
.uc-dashboard__stats strong, .uc-dashboard__stats small { display: block; }
.uc-dashboard__stats strong { overflow: hidden; font-size: 18px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.uc-dashboard__stats small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.uc-dashboard__section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.uc-dashboard__section-head h2 { margin: 0; font: 600 22px/1.25 "Playfair Display", Georgia, serif; }
.uc-dashboard__section-head h2 span { margin-left: 5px; color: var(--muted); font: 500 11px/1 "DM Sans", system-ui, sans-serif; }
.uc-dashboard__section-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.uc-dashboard__local-badge, .uc-dashboard__status { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #f1cfc1; border-radius: 999px; background: #fff4ef; color: #b95c4d; font-size: 11px; font-weight: 700; white-space: nowrap; }
.uc-dashboard__local-badge { padding: 7px 10px; }
.uc-dashboard__local-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.uc-dashboard__invitation-card { display: grid; grid-template-columns: minmax(250px, .82fr) minmax(0, 1.18fr); gap: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(64,48,35,.06); }
.uc-dashboard__thumbnail { position: relative; min-height: 246px; overflow: hidden; border: 1px solid rgba(39,48,45,.08); border-radius: 15px; background: #f7efe8; isolation: isolate; }
.uc-dashboard__thumbnail-renderer { position: absolute; top: 0; left: 50%; width: 760px; height: 1000px; margin-left: -159.6px; overflow: hidden; transform: scale(.42); transform-origin: top left; pointer-events: none; }
.uc-dashboard__thumbnail-renderer .uc-theme { width: 760px; max-width: none; margin: 0; border-radius: 0; box-shadow: none; }
.uc-dashboard__thumbnail-renderer .uc-reveal { opacity: 1 !important; transform: none !important; }
.uc-dashboard__thumbnail-renderer [data-uc-section] { scroll-margin: 0; }
.uc-dashboard__thumbnail-template { position: absolute; right: 9px; bottom: 9px; z-index: 3; max-width: calc(100% - 18px); overflow: hidden; padding: 5px 9px; border: 1px solid #ffffffd9; border-radius: 999px; background: #fffdf8e8; color: var(--ink); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.uc-dashboard__thumbnail-fallback { display: grid; width: 100%; height: 246px; align-content: center; justify-items: center; gap: 8px; padding: 20px; background: linear-gradient(145deg, var(--thumb-a), var(--thumb-b)); color: white; text-align: center; }
.uc-dashboard__thumbnail-fallback > span { font-size: 25px; }
.uc-dashboard__thumbnail-fallback strong { font: 600 24px/1.1 "Playfair Display", Georgia, serif; }
.uc-dashboard__thumbnail-fallback small { font-size: 11px; }
.uc-dashboard__invitation-info { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 7px 7px 7px 0; }
.uc-dashboard__invitation-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.uc-dashboard__status { padding: 5px 9px; }
.uc-dashboard__invitation-top h3 { margin: 8px 0 2px; overflow-wrap: anywhere; font-size: 20px; line-height: 1.25; }
.uc-dashboard__invitation-top p { margin: 0; color: var(--muted); font-size: 12px; }
.uc-dashboard__template-chip { display: inline-flex; flex: 0 0 auto; align-items: center; max-width: 44%; overflow: hidden; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.uc-dashboard__details { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px; margin: 19px 0; padding: 15px 0; border-top: 1px solid #f0ebe5; border-bottom: 1px solid #f0ebe5; }
.uc-dashboard__details > div { min-width: 0; }
.uc-dashboard__details small, .uc-dashboard__details strong { display: block; }
.uc-dashboard__details small { margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.uc-dashboard__details strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.uc-dashboard__invitation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.uc-dashboard__invitation-actions .btn { min-height: 42px; padding: 10px 13px; font-size: 12px; }
.uc-dashboard__action-note { flex-basis: 100%; color: var(--muted); font-size: 10px; }
.uc-dashboard__next-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); gap: 14px; margin-top: 18px; }
.uc-dashboard__next-card, .uc-dashboard__package-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.88); }
.uc-dashboard__next-card h2, .uc-dashboard__package-card h2 { margin: 5px 0 6px; font: 600 20px/1.25 "Playfair Display", Georgia, serif; }
.uc-dashboard__next-card > p, .uc-dashboard__package-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.uc-dashboard__progress { height: 6px; overflow: hidden; margin: 15px 0 7px; border-radius: 999px; background: #eee8e0; }
.uc-dashboard__progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e07764, #efaa8c); }
.uc-dashboard__next-card > small { color: var(--muted); font-size: 10px; }
.uc-dashboard__checkout-button { width: 100%; min-height: 43px; margin-top: 14px; font-size: 12px; }
.uc-dashboard__checkout-disabled { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px; border: 1px solid #eee5dc; border-radius: 12px; background: #faf7f2; }
.uc-dashboard__checkout-disabled > span { color: var(--coral-dark); font-size: 20px; }
.uc-dashboard__checkout-disabled div { min-width: 0; flex: 1; }
.uc-dashboard__checkout-disabled strong, .uc-dashboard__checkout-disabled small { display: block; }
.uc-dashboard__checkout-disabled strong { font-size: 11px; }
.uc-dashboard__checkout-disabled small { color: var(--muted); font-size: 10px; }
.uc-dashboard__checkout-disabled button, .uc-dashboard__text-link { padding: 5px 0 5px 8px; border: 0; background: transparent; color: var(--coral-dark); font-size: 11px; font-weight: 700; white-space: nowrap; }
.uc-dashboard__package-card { position: relative; padding-left: 60px; }
.uc-dashboard__package-icon { position: absolute; top: 20px; left: 19px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #fbece7; color: var(--coral-dark); }
.uc-dashboard__package-card > strong { display: block; margin: 2px 0 5px; color: var(--coral-dark); font-size: 18px; }
.uc-dashboard__text-link { margin-top: 12px; padding: 0; }
.uc-dashboard__privacy-note { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.uc-dashboard__empty { display: grid; min-height: 440px; justify-items: center; align-content: center; padding: 32px 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.8); text-align: center; }
.uc-dashboard__empty-art { width: min(220px, 70vw); margin-bottom: 10px; }
.uc-dashboard__empty-art svg { display: block; width: 100%; height: auto; }
.uc-dashboard__empty h2 { margin: 3px 0 5px; font: 600 24px/1.25 "Playfair Display", Georgia, serif; }
.uc-dashboard__empty > p { max-width: 440px; margin: 0 0 17px; color: var(--muted); font-size: 13px; }
.uc-dashboard__empty .btn { min-height: 45px; }
.uc-dashboard__empty-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 22px; color: var(--muted); font-size: 10px; }
.uc-dashboard__empty-points span::before { margin-right: 5px; color: var(--coral); content: "✓"; }

@media (max-width: 900px) {
  .uc-dashboard__layout { grid-template-columns: 1fr; gap: 14px; }
  .uc-dashboard__rail { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; overflow: visible; padding: 6px; }
  .uc-dashboard__rail-link { min-width: 0; min-height: 48px; flex: initial; flex-direction: column; justify-content: center; gap: 2px; padding: 5px 3px; font-size: 10px; text-align: center; white-space: nowrap; }
  .uc-dashboard__rail-link > span { width: auto; height: auto; font-size: 15px; line-height: 1; }
  .uc-dashboard__local-note { display: none; }
  .uc-dashboard__invitation-card { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}
@media (max-width: 680px) {
  .uc-dashboard-page { padding: 20px 0 44px; }
  .uc-dashboard__layout { gap: 12px; }
  .uc-dashboard__heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 18px; }
  .uc-dashboard__heading h1 { font-size: 30px; }
  .uc-dashboard__heading p { font-size: 12px; }
  .uc-dashboard__heading > .btn { width: 100%; min-height: 44px; }
  .uc-dashboard__stats { gap: 7px; margin-bottom: 22px; }
  .uc-dashboard__stats article { min-height: 78px; align-items: flex-start; flex-direction: column; gap: 5px; padding: 10px; }
  .uc-dashboard__stat-icon { width: 28px; height: 28px; border-radius: 9px; font-size: 15px; }
  .uc-dashboard__stats strong { font-size: 14px; }
  .uc-dashboard__stats small { font-size: 9px; }
  .uc-dashboard__section-head h2 { font-size: 20px; }
  .uc-dashboard__section-head p { max-width: 235px; font-size: 10px; }
  .uc-dashboard__invitation-card { grid-template-columns: 1fr; gap: 13px; padding: 10px; border-radius: 16px; }
  .uc-dashboard__thumbnail { min-height: 195px; }
  .uc-dashboard__thumbnail-renderer { transform: scale(.39); margin-left: -148.2px; }
  .uc-dashboard__invitation-info { padding: 0 4px 4px; }
  .uc-dashboard__invitation-top h3 { font-size: 18px; }
  .uc-dashboard__details { gap: 11px 12px; margin: 14px 0; padding: 12px 0; }
  .uc-dashboard__invitation-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .uc-dashboard__invitation-actions .btn { width: 100%; padding-inline: 7px; }
  .uc-dashboard__action-note { grid-column: 1 / -1; }
  .uc-dashboard__next-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .uc-dashboard__next-card, .uc-dashboard__package-card { padding: 16px; }
  .uc-dashboard__package-card { padding-left: 56px; }
  .uc-dashboard__package-icon { top: 16px; left: 16px; }
  .uc-dashboard__empty { min-height: 390px; padding: 24px 15px; }
  .uc-dashboard__empty h2 { font-size: 21px; }
  .uc-dashboard__empty > p { font-size: 12px; }
  .uc-dashboard__empty-points { gap: 7px 11px; font-size: 9px; }
}
@media (max-width: 390px) {
  .uc-dashboard__layout { width: calc(100% - 28px); }
  .uc-dashboard__rail-link { gap: 2px; padding-inline: 3px; font-size: 10px; }
  .uc-dashboard__section-head { align-items: flex-start; }
  .uc-dashboard__local-badge { padding: 6px 8px; font-size: 9px; }
  .uc-dashboard__template-chip { max-width: 42%; font-size: 9px; }
  .uc-dashboard__details strong { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-dashboard__rail-link, .uc-dashboard__invitation-card, .uc-dashboard__invitation-actions .btn { transition: none; }
}
