:root {
  --primary: #ff5fa8;
  --primary-dark: #ff3f91;
  --secondary: #b28dff;
  --bg: #fff1f8;
  --text: #3b2f40;
  --muted: rgba(59, 47, 64, 0.6);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(255, 95, 168, 0.25);
  --phone-preview-width: 380px;
  --phone-preview-height: 680px;
  --phone-image-width: 380px;
  --image-base-width: 300;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #f8e0f0;
  font-size: 16.5px;
}

a {
  color: inherit;
  text-decoration: none;
}

.sky {
  min-height: 100vh;
  padding: 30px 2vw 60px;
  background: radial-gradient(circle at 30% 10%, #ffe9f6 0%, transparent 40%),
    radial-gradient(circle at 80% 0%, #f8d9ff 0%, transparent 45%),
    linear-gradient(180deg, #ffdff1 0%, #fff6fb 40%, #f8f0ff 100%);
  border-radius: 28px;
  margin: 0px;
  box-shadow: 0 30px 70px rgba(255, 128, 183, 0.35);
  position: relative;
  overflow: hidden;
}

html,
body {
  overflow-anchor: none;
}

.builder-page {
  overflow-x: hidden;
  overflow-anchor: none;
}

.sky.builder-page {
  overflow: visible;
}

.dashboard-page {
  padding-left: 3vw;
  padding-right: 3vw;
}

body.embedded,
body.public-page {
  background: transparent;
}

body.embedded .sky,
body.public-page .sky {
  margin: 0;
  padding: 0;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.embedded .panel,
body.public-page .panel {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.embedded .public-wrap,
body.public-page .public-wrap {
  place-items: stretch;
  padding: 16px;
}

body.embedded .public-card,
body.public-page .public-card {
  width: 100%;
  margin: 0;
  box-shadow: none;
}

body.embedded .public-card {
  min-height: var(--phone-preview-height);
}


body.public-page .public-wrap {
  place-items: center;
  padding: 16px;
}

@media (max-width: 640px) {
  body.public-page .public-wrap {
    padding: 0;
  }
}

body.public-page .public-card {
  width: min(var(--phone-preview-width), 100%);
  margin: 0 auto;
  min-height: var(--phone-preview-height);
}

@media (max-width: 640px) {
  body.public-page .public-wrap {
    place-items: stretch;
    padding: 0;
    min-height: 100dvh;
  }

  body.public-page .public-card {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 24px 22px calc(24px + env(safe-area-inset-bottom)) 22px;
  }
}

@media (min-width: 1200px) {
  body.public-page {
    --phone-preview-width: 440px;
  }
}

body.embedded .public-wrap {
  place-items: stretch;
  padding: 0;
  min-height: 100dvh;
}

body.embedded .public-card {
  width: 100%;
  min-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom)) 22px;
}

body.public-page::-webkit-scrollbar,
body.embedded::-webkit-scrollbar {
  width: 8px;
}

body.public-page::-webkit-scrollbar-track,
body.embedded::-webkit-scrollbar-track {
  background: rgba(240, 240, 240, 0.9);
}

body.public-page::-webkit-scrollbar-thumb,
body.embedded::-webkit-scrollbar-thumb {
  background: #e6e6e6;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

body.public-page {
  scrollbar-color: #e6e6e6 rgba(240, 240, 240, 0.9);
  scrollbar-width: thin;
}

body.public-page,
body.embedded,
html {
  scrollbar-color: #e6e6e6 rgba(240, 240, 240, 0.9);
  scrollbar-width: thin;
}

html {
  font-size: 16.5px;
}

html::-webkit-scrollbar,
body.public-page::-webkit-scrollbar,
body.embedded::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track,
body.public-page::-webkit-scrollbar-track,
body.embedded::-webkit-scrollbar-track {
  background: rgba(240, 240, 240, 0.9);
}

html::-webkit-scrollbar-thumb,
body.public-page::-webkit-scrollbar-thumb,
body.embedded::-webkit-scrollbar-thumb {
  background: #e6e6e6;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.sky-main {
  background: url("/static/images/back.jpg") center/cover no-repeat;
}

.sky-main::before,
.sky-main::after {
  display: none;
}

.overlay-header {
  position: absolute;
  top: 26px;
  left: 40px;
  right: 80px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  z-index: 2;
}

.overlay-header .nav {
  color: #6f5a7e;
  font-weight: 600;
}

.overlay-header .pill-btn {
  box-shadow: 0 12px 20px rgba(255, 95, 168, 0.25);
}

.overlay-hero {
  position: absolute;
  top: 190px;
  left: 90px;
  width: 560px;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.hero-visual {
  position: absolute;
  right: 170px;
  top: 150px;
  width: min(520px, 42vw);
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.hero-visual-image {
  width: auto;
  max-width: none;
  height: auto;
  display: block;
}

.overlay-copy h1 {
  font-size: 2.9rem;
  color: #3f3a46;
}

.overlay-copy .subhead {
  font-size: 1.05rem;
  color: rgba(63, 58, 70, 0.7);
}

.overlay-copy .trust {
  color: rgba(63, 58, 70, 0.6);
}

@media (max-width: 1200px) {
  .overlay-header {
    left: 0px;
    right: 40px;
  }

  .overlay-hero {
    left: 50px;
    width: 440px;
  }

  .hero-visual {
    right: 40px;
    width: min(420px, 46vw);
  }
}

@media (max-width: 920px) {
  .overlay-header {
    position: static;
    padding: 10px 0;
  }

  .overlay-hero {
    position: static;
    width: auto;
    padding-top: 40px;
  }

  .hero-visual {
    position: static;
    width: min(520px, 90%);
    margin: 24px auto 0;
    justify-content: center;
  }
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 40%, rgba(255, 255, 255, 0) 70%);
  bottom: 120px;
  opacity: 0.7;
}

.sky::after {
  bottom: 0;
  opacity: 0.9;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 6000;
  padding: 0 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1.6rem;
  text-decoration: none;
}

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

.logo-image {
  height: 86px;
  width: auto;
  display: block;
}

.logo-badge {
  background: #ffd1e8;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(255, 95, 168, 0.3);
}

.logo-text {
  color: var(--primary-dark);
}

.nav {
  display: flex;
  gap: 20px;
  font-weight: 600;
  color: var(--muted);
  align-items: center;
}

.nav a,
.nav .pill-btn,
.nav .icon-pill {
  display: inline-flex;
  align-items: center;
}

.nav-dashboard {
  color: var(--primary);
}

.nav-locked {
  color: var(--muted);
  opacity: 0.75;
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.overlay-header .header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 360px;
}

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3e9ff;
  color: #7b57d1;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e1d2ff;
}

.header-icon-btn::after {
  content: attr(aria-label);
  font-size: 0.72rem;
}

.menu-toggle {
  display: none;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffe7f3;
  color: #ff5fa8;
  font-weight: 800;
  cursor: pointer;
  margin-left: 10px;
  position: relative;
  z-index: 7001;
}

.menu-toggle.active {
  background: #ffd7ea;
}

.mobile-menu .nav a {
  display: inline-flex;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--menu-top, 120px);
  right: 16px;
  left: auto;
  width: min(360px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 18px 36px rgba(255, 95, 168, 0.2);
  z-index: 7000;
  box-sizing: border-box;
}

.mobile-menu.open {
  display: grid;
  gap: 6px;
}

.mobile-menu .nav,
.mobile-menu .header-actions {
  width: 100%;
}

.mobile-menu .header-actions {
  display: grid;
  gap: 6px;
}

.mobile-menu .header-actions > * {
  display: inline-flex !important;
}

.mobile-menu .nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  justify-content: flex-start;
  font-size: 0.82rem;
  max-width: 100%;
  min-width: 0;
}

.mobile-menu .nav a {
  display: inline-flex !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  justify-content: center;
  text-align: center;
  padding: 6px 8px;
}

.mobile-menu .mobile-actions {
  justify-content: flex-start;
  gap: 6px;
}

.mobile-menu .mobile-nav .pill-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: #f3ecff;
  color: #6b4ab8;
  font-weight: 700;
}

.mobile-menu .header-user {
  width: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
}

.mobile-menu .header-email {
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-menu .header-icon-btn {
  padding: 3px 8px;
  font-size: 0.7rem;
  gap: 4px;
  flex: 0 0 auto;
  justify-content: center;
}

.mobile-menu .header-icon-btn::after {
  font-size: 0.65rem;
}

.header-email {
  font-weight: 700;
  color: #6b4ab8;
  background: #f3ecff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.header-pill {
  font-weight: 700;
  color: #ff5fa8;
  background: #fff1f7;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.header-cta-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-cta-image img {
  height: 48px;
  width: auto;
  display: block;
}

.pill-btn {
  padding: 12px 22px;
  border-radius: 999px;
  background: #ffe7f3;
  color: var(--primary-dark);
  font-weight: 700;
  border: 2px solid #ffd1e8;
  box-shadow: 0 10px 20px rgba(255, 95, 168, 0.2);
}

.pill-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.pill-btn.primary {
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
}

.pill-btn.ghost {
  background: #f3e9ff;
  color: #7b57d1;
  border: 2px solid #e1d2ff;
}

.header-actions .pill-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.header-actions .pill-btn.ghost {
  padding: 5px 10px;
  font-size: 0.8rem;
}

.header-email {
  padding: 4px 8px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #f6e7ff;
  font-size: 1.2rem;
  color: #6d4fc8;
  box-shadow: 0 10px 20px rgba(124, 92, 255, 0.2);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-family: inherit;
  font-size: clamp(5rem, 2vw + 1rem, 4rem);
  margin: -38px 0 67px;
}

.accent {
  color: var(--primary-dark);
}

.subhead {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 22px;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-title-text {
  margin: 12px 0 20px;
  font-size: clamp(2.4rem, 2.4vw + 1.2rem, 3.4rem);
  color: #3f3a46;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-title-accent {
  color: #ff5fa8;
}

.hero-title-image {
  display: none;
  width: min(360px, 92vw);
  height: 160px;
  margin: 12px auto 20px;
  background-image: url("../images/m7.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
}

.hero-subhead-text {
  margin: 0 0 26px;
  color: #6f5a7e;
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.2rem);
  line-height: 1.6;
  font-weight: 600;
}

.hero-trust-text {
  margin: 25px 0 0;
  color: rgba(63, 58, 70, 0.6);
  font-size: 0.95rem;
  font-weight: 600;
}

.cta-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

.cta-image-btn img {
  height: 56px;
  width: auto;
  display: block;
}

.trust {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-phone {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(320px, 90%);
  background: #ffe7f5;
  padding: 20px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(255, 95, 168, 0.3);
  text-align: center;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
}

.notch {
  width: 80px;
  height: 14px;
  background: #f2c7dc;
  border-radius: 999px;
}

.status {
  width: 36px;
  height: 10px;
  background: #f2c7dc;
  border-radius: 999px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd1e8 0%, #ff87c2 60%, #ff5fa8 100%);
  margin: 20px auto 10px;
  border: 5px solid #ffd9ec;
}

.phone h3 {
  margin: 0;
  font-size: 1.1rem;
}

.handle {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.link-btn {
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--white);
}

.link-btn.ig {
  background: linear-gradient(135deg, #ff6aa2, #ff8ec8);
}

.link-btn.yt {
  background: linear-gradient(135deg, #8f6bff, #b28dff);
}

.link-btn.store {
  background: linear-gradient(135deg, #5fd7c3, #8debd8);
}

.link-btn.note {
  background: linear-gradient(135deg, #ffb347, #ffd27b);
}

.qr {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #fff;
  margin: 16px auto 0;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 700;
}

.trust-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding-top: 10px;
  position: relative;
  z-index: 2;
}

.social p {
  margin: 0 0 10px;
  color: var(--muted);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons span {
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 10px 20px rgba(255, 95, 168, 0.15);
}

.feature-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-pills .pill {
  background: #fff;
  padding: 10px 16px;
  border-radius: 16px;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 12px 24px rgba(178, 141, 255, 0.2);
}

.page-wrap {
  margin: 0;
}

.panel {
  margin-top: 30px;
  padding: 40px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 50px rgba(255, 95, 168, 0.18);
  position: relative;
  z-index: 2;
}

.cloud-panel {
  background: linear-gradient(180deg, #fff7fb 0%, #fff 40%, #f9f2ff 100%);
}

.panel-header {
  text-align: center;
  padding-top: 23px;
  margin-bottom: 28px;
}

.panel-header.center {
  text-align: center;
}

.panel-header h1 {
  font-family: inherit;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  margin: 0 0 12px;
}

.panel-header p {
  margin: 0 0 18px;
  color: var(--muted);
}

.samples-hero .pill-btn.primary {
  font-size: 1.05rem;
  padding: 14px 26px;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.sample-toolbar {
  margin: 0 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

.sample-toolbar strong {
  color: var(--text);
  margin-right: 8px;
}

.sample-toolbar form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-card {
  text-align: center;
  font-weight: 700;
  color: var(--text);
}

.sample-card {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.sample-frame {
  width: min(var(--phone-preview-width), 100%);
}

.sample-frame iframe {
  width: 100%;
  height: var(--phone-preview-height);
  border: none;
  background: #fff;
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe2f3;
  color: #d6478c;
  font-weight: 700;
  font-size: 0.85rem;
}

.sample-meta {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.stats-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.stats-filter-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
}

.stats-filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-date-range input[type="date"] {
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff4fb;
  font-weight: 700;
  color: #5b3f80;
}

.mini-date-range .date-sep {
  color: var(--muted);
  font-weight: 700;
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stats-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
}

.stats-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 700;
}

.stats-card strong {
  font-size: 1.6rem;
}

.stats-card.primary {
  background: linear-gradient(150deg, #ffe4f2, #fef6ff);
}

.stats-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stats-summary {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stats-chart-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 16px 34px rgba(255, 95, 168, 0.12);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.chart-header h3 {
  margin: 0;
}

.chart-header span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.stats-chart {
  width: 100%;
  height: 160px;
}

.chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  stroke: none;
}

.chart-line.views {
  stroke: #ff7dbb;
}

.chart-line.clicks {
  stroke: #7aa9ff;
}

.chart-line.unique {
  stroke-dasharray: 6 6;
  opacity: 0.75;
}

.chart-labels {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.stats-table {
  margin-top: 10px;
}

.stats-table-header h3 {
  margin: 0 0 6px;
}

.stats-table-header p {
  margin: 0 0 12px;
  color: var(--muted);
}

.stats-table-grid {
  display: grid;
  gap: 10px;
}

.stats-table-head,
.stats-table-row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.6fr;
  gap: 10px;
  align-items: center;
}

.stats-table-head {
  color: var(--muted);
  font-weight: 700;
  padding: 0 6px;
}

.stats-table-row {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.1);
}

.stats-lock-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff6f8;
  border: 1px dashed #f1b3d0;
  color: #7a4a6a;
  margin-bottom: 20px;
}

.stats-lock-card strong {
  display: block;
  margin-bottom: 4px;
}

.stats-lock-card p {
  margin: 0;
  color: var(--muted);
}

.stats-title {
  font-weight: 700;
}

.stats-metric {
  font-weight: 700;
  text-align: right;
}

.stats-metric.muted {
  color: var(--muted);
}

@media (max-width: 1200px) {
  .sample-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-table-head {
    display: none;
  }

  .stats-table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stats-metric {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .sample-grid {
    grid-template-columns: 1fr;
  }
}

.phone-preview {
  height: 220px;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 18px 35px rgba(255, 95, 168, 0.2);
  background: #ffe7f5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.phone-preview-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  margin: 0 auto;
}

.phone-preview-lines {
  height: 80px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.phone-preview.pink {
  background: linear-gradient(180deg, #ffd7ec, #ffeef7);
}

.phone-preview.purple {
  background: linear-gradient(180deg, #e8ddff, #f3edff);
}

.phone-preview.peach {
  background: linear-gradient(180deg, #ffe2cf, #fff1e5);
}

.phone-preview.mint {
  background: linear-gradient(180deg, #d6fff2, #ecfff9);
}

.phone-preview.lilac {
  background: linear-gradient(180deg, #f0ddff, #f8efff);
}

.phone-preview.sunset {
  background: linear-gradient(180deg, #ffd1c5, #ffe8dd);
}

.info-cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.sample-footer-cta {
  margin: 14px 0 10px;
  display: flex;
  justify-content: center;
}

.sample-footer-cta .pill-btn.primary {
  font-size: 1.05rem;
  padding: 14px 26px;
}

.info-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(124, 92, 255, 0.12);
}

.info-card h3 {
  margin: 0 0 8px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pricing-guide {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.pricing-guide h2 {
  margin: 0;
}

.pricing-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.pricing-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(255, 95, 168, 0.15);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #ffedf6, #f7edff);
  border: 2px solid rgba(255, 95, 168, 0.25);
}

.price-header {
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.price-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 10px;
}

.price-save {
  font-weight: 700;
  color: #ff5fa8;
  margin-bottom: 12px;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b4ab8;
  background: #f3ecff;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.pricing-card .price-cta {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

.billing-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff1f7;
  color: #c63b7f;
  font-weight: 700;
  margin-top: 12px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.12);
}

.toggle-btn {
  background: transparent;
  border: none;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.toggle-btn.active {
  color: #6b4ab8;
}

.toggle-track {
  width: 44px;
  height: 22px;
  background: #f2e9ff;
  border-radius: 999px;
  position: relative;
}

.toggle-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #ff5fa8;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

body[data-billing="annual"] .toggle-track span {
  transform: translateX(22px);
}

.toggle-badge {
  font-size: 0.75rem;
  color: #ff5fa8;
}

.billing-hint {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.price-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.price-highlight {
  font-weight: 800;
  color: #6b4ab8;
}

.panel-footer {
  margin-top: 24px;
  text-align: center;
  padding: 16px 0 8px;
}

.panel-footer p {
  color: var(--muted);
  margin-top: 40px;
}

.login-wrap {
  display: grid;
  place-items: center;
}

.login-card {
  background: #fff;
  border-radius: 26px;
  padding: 36px;
  width: min(420px, 100%);
  box-shadow: 0 20px 45px rgba(255, 95, 168, 0.2);
  text-align: center;
}

.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #ffe1f0;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  box-shadow: 0 12px 22px rgba(255, 95, 168, 0.2);
}

.login-logo-image {
  height: 34px;
  width: auto;
  display: block;
}

.form-alert {
  background: #ffe4ef;
  color: #c23b76;
  font-weight: 700;
  border-radius: 16px;
  padding: 10px 14px;
  margin-top: 12px;
  box-shadow: 0 12px 24px rgba(194, 59, 118, 0.12);
}

.form-notice {
  background: #e9fff4;
  color: #1f8a61;
  font-weight: 700;
  border-radius: 16px;
  padding: 10px 14px;
  margin-top: 12px;
  box-shadow: 0 12px 24px rgba(31, 138, 97, 0.12);
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  text-align: left;
}

.login-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.login-form input {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff4fb;
  font-size: 0.95rem;
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.member-login .login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 252, 0.95));
  border: 1px solid rgba(255, 214, 236, 0.6);
  box-shadow: 0 20px 45px rgba(255, 95, 168, 0.18);
}

.member-login .login-card h1 {
  font-size: 1.9rem;
  margin-bottom: 18px;
  color: #4a3b55;
}

.member-login .login-form label span {
  font-weight: 700;
  color: #6f5a7e;
}

.member-login .login-form input {
  background: #fff4fb;
  border: 1px solid #f2d6ea;
  border-radius: 16px;
  padding: 12px 14px;
}

.member-login .login-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.member-login .login-actions .pill-btn {
  width: 100%;
  justify-content: center;
}

.member-login .check {
  justify-content: center;
}

.member-login .login-hint {
  text-align: center;
}

.invite-wrap {
  display: grid;
  place-items: center;
}

.invite-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.templates-wrap {
  text-align: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.5fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: start;
}

.dashboard-card {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 36px rgba(255, 95, 168, 0.15);
}

.dashboard-card.dashboard-notifications {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  width: min(100%, 680px);
  margin-right: auto;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.12);
}

.dashboard-card#links {
  grid-column: 1 / 2;
  grid-row: 1 / span 3;
  align-self: start;
}

.dashboard-side-row {
  grid-column: 2 / 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
}

.dashboard-grid .profile-grid,
.dashboard-grid .dashboard-actions {
  grid-column: 2 / 3;
}

.dashboard-grid .profile-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.dashboard-grid .dashboard-actions {
  padding: 16px;
}

.dashboard-card h3 {
  margin: 0 0 8px;
}

.dashboard-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: #ffe8f3;
  color: #d23e87;
}

.stat-pill.alt {
  background: #efe4ff;
  color: #6e4cc8;
}

.dashboard-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.dashboard-notifications .dashboard-list {
  padding-left: 0;
  list-style: none;
  gap: 6px;
}

.dashboard-notifications .dashboard-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.3;
}

.notification-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1efff;
  color: #6b4ab8;
  white-space: nowrap;
}

.notification-kind.kind-success {
  background: #e7f7ef;
  color: #1d8a52;
}

.notification-kind.kind-warning {
  background: #fff4df;
  color: #a86a15;
}

.notification-kind.kind-error {
  background: #ffe8eb;
  color: #c83747;
}

.notification-text {
  color: var(--text);
  min-width: 0;
  word-break: break-word;
}

.notification-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.dashboard-notifications .pill-btn {
  padding: 6px 12px;
  font-size: 0.9rem;
}

.link-copy-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}

.copy-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.copy-toggle {
  border: none;
  background: #f2eaff;
  color: #6b4ab8;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.copy-toggle.active {
  background: #ff4f9a;
  color: #fff;
}

.dashboard-actions {
  margin-top: 26px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffeef7, #f7f0ff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.dashboard-actions h2 {
  margin: 0 0 6px;
  font-family: inherit;
}

.dashboard-actions p {
  margin: 0;
  color: var(--muted);
}

.dashboard-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav .active {
  color: var(--primary-dark);
}

.nav .pill-btn {
  padding: 6px 12px;
  font-weight: 700;
  border-radius: 999px;
}

.builder-wrap .panel-header {
  margin-bottom: 18px;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(90px, 0.2fr) minmax(260px, 0.75fr) minmax(320px, 1fr) minmax(220px, 0.45fr);
  column-gap: 0;
  row-gap: 20px;
  align-items: start;
  overflow-x: clip;
  max-width: 100%;
}

.builder-right {
  display: grid;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.builder-history {
  display: grid;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.history-list {
  display: grid;
  gap: 6px;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  height: clamp(240px, 45vh, 420px);
  max-height: 70vh;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(201, 180, 255, 0.2);
  overflow-anchor: none;
}

.history-item {
  border: none;
  border-radius: 12px;
  padding: 6px 8px;
  background: #f8f3ff;
  color: #6f4cc8;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  column-gap: 8px;
  row-gap: 4px;
}

.history-item.active {
  background: #ffe7f3;
  color: #c14b86;
}

.history-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(201, 180, 255, 0.3);
  font-size: 0.8rem;
  color: #6f4cc8;
}

.history-item small {
  color: rgba(111, 76, 200, 0.6);
  font-size: 0.72rem;
  margin-left: auto;
}

.history-hint {
  margin-top: 10px;
}

.builder-widget-palette {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
  background: #fff;
  border-radius: 22px;
  padding: 10px 8px;
  box-shadow: 0 16px 32px rgba(255, 95, 168, 0.12);
  justify-items: center;
  width: 100%;
  max-width: 84px;
  transform: translateX(0);
}

.builder-widget-palette h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.builder-widget-palette .widget-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.builder-widget-palette .widget-btn {
  min-height: 53px;
  padding: 0;
  border-radius: 14px;
  width: 100%;
}

.builder-widget-palette .widget-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.builder-widget-palette .widget-label {
  display: block;
  font-size: 0.68rem;
  line-height: 1.1;
  color: #7c6aa6;
}

.builder-editor {
  display: grid;
  gap: 18px;
}

.builder-section {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(255, 95, 168, 0.12);
}

.builder-section h2 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 1.05rem;
}

.board-lock-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: #fff6f8;
  border: 1px dashed #f1b3d0;
  color: #7a4a6a;
}

.board-lock-card strong {
  font-size: 1rem;
}

.board-lock-card p {
  margin: 0;
  color: var(--muted);
}

.board-lock-actions {
  display: flex;
  justify-content: flex-start;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.layout-card {
  border: none;
  border-radius: 16px;
  padding: 8px;
  background: #fff7fb;
  box-shadow: inset 0 0 0 1px rgba(201, 180, 255, 0.25);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.layout-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(178, 141, 255, 0.18);
}

.layout-title {
  font-weight: 700;
  color: #6f4cc8;
  font-size: 0.8rem;
}

.layout-preview {
  display: grid;
  gap: 5px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(201, 180, 255, 0.2);
}

.layout-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd6eb, #e7dcff);
  justify-self: center;
}

.layout-line {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 95, 168, 0.3);
  width: 80%;
  justify-self: center;
}

.layout-line.wide {
  width: 92%;
}

.layout-line.short {
  width: 60%;
}

.layout-pill {
  height: 8px;
  border-radius: 999px;
  background: rgba(111, 76, 200, 0.25);
  width: 90%;
  justify-self: center;
}

.layout-chip {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 95, 168, 0.28);
  width: 55%;
  justify-self: center;
}

.layout-image {
  height: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 95, 168, 0.25), rgba(178, 141, 255, 0.32));
}

.layout-thumb {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 191, 229, 0.4), rgba(178, 141, 255, 0.35));
}

.layout-qr {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(111, 76, 200, 0.35);
  justify-self: end;
}

.layout-qr.small {
  width: 14px;
  height: 14px;
}

.layout-spacer {
  height: 4px;
  border-radius: 999px;
  background: rgba(181, 139, 255, 0.2);
  width: 40%;
  justify-self: center;
}

.layout-row {
  display: grid;
  gap: 4px;
  align-items: center;
}

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

.layout-row.two .layout-pill {
  width: 100%;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
}

.builder-title-input {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff4fb;
  font-weight: 700;
}

.widget-btn {
  display: grid;
  gap: 8px;
  place-items: center;
  border: 0px solid #e2d4ff;
  border-radius: 16px;
  padding: 16px 14px;
  background: transparent;
  color: #4e357e;
  font-weight: 700;
  min-height: 96px;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.widget-btn.locked {
  position: relative;
  opacity: 0.65;
  background: #fff6f8;
  border: 1px dashed #f1b3d0;
  cursor: pointer;
}

.widget-btn.locked::after {
  content: "🔒";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.85rem;
}

.widget-btn.locked:hover {
  transform: none;
  background: #fff6f8;
  border-color: #f1b3d0;
}

.widget-btn.locked .widget-icon {
  background: #fff;
  box-shadow: inset 0 0 0 1px #f1b3d0;
}

.widget-btn:hover {
  transform: translateY(-2px);
  background: #fbf7ff;
  border-color: #cbb4ff;
}

.widget-btn:active {
  transform: translateY(0);
}

.widget-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: transparent;
  color: #6e4cc8;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: inset 0 0 0 1px #cbb4ff;
}

.widget-label {
  font-size: 0.95rem;
}

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

.board-manager {
  display: grid;
  gap: 12px;
}

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

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-tab {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f4efff;
  color: #6b4ab8;
  font-weight: 700;
  cursor: pointer;
}

.board-tab.active {
  background: #ff4f9a;
  color: #fff;
}

.board-editor {
  display: grid;
  gap: 10px;
}

.board-editor input,
.board-editor select,
.board-editor textarea {
  width: 100%;
}

.board-page-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.stats-wrap {
  max-width: 1180px;
}

.stats-panel .stats-chart {
  height: 190px;
}

.stats-panel .stats-chart-card {
  padding: 18px;
}

.stats-panel .stats-card strong {
  font-size: 1.75rem;
}

.board-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.board-page-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 20px;
}

.board-preview {
  position: sticky;
  top: 96px;
  align-self: start;
}

.board-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 18px;
  background: transparent;
  display: block;
}

.board-preview .phone-screen {
  padding: 0;
  overflow: hidden;
}

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

.board-save-hint {
  font-size: 0.85rem;
  color: #6b4ab8;
}

.board-page-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #3b2f40;
}

.board-page-select {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: #6b4ab8;
}

.board-page-select select {
  min-width: 240px;
}

.board-page-layout .pill-btn,
.board-page-layout .inline-btn {
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.board-editor-panel .dashboard-buttons {
  align-items: center;
}

@media (max-width: 1024px) {
  .board-page-layout {
    grid-template-columns: 1fr;
  }
  .board-preview {
    position: static;
  }
  .board-preview-frame {
    height: 640px;
  }
}

.board-guest-policy {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #6b4ab8;
}

.board-guest-limits {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: #6b4ab8;
}

.board-guest-limit-row {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-guest-limit-row input {
  padding: 8px 10px;
}

.inquiry-preview-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: #8a7a99;
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
}

.inquiry-page {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #7b6c9c;
}

.inquiry-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.board-posts {
  display: grid;
  gap: 8px;
}

.board-post-row {
  display: grid;
  gap: 6px;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: #fff7fb;
}

.board-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c14b86;
}

.board-pin-group {
  display: grid;
  gap: 4px;
  align-items: start;
  justify-items: start;
}

.board-notice-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6f4cc8;
}

.board-notice-toggle.hidden {
  display: none;
}

.board-notice-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.board-post-row input[type="text"] {
  min-width: 120px;
}

.board-post-row input[type="date"] {
  min-width: 120px;
}

.board-post-row textarea {
  grid-column: 1 / -1;
  min-height: 60px;
}

.board-post-row .board-image-upload,
.board-post-row .board-image-url,
.board-post-row .board-button-label,
.board-post-row .board-button-url,
.board-post-row .board-extra-section,
.board-post-row .board-image-ratio,
.board-post-row .board-toggle-btn {
  grid-column: 1 / -1;
}

.board-guest-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: #f4efff;
}

.board-guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-guest-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #6b4ab8;
}

.board-guest-lists {
  display: grid;
  gap: 12px;
}

.board-guest-group {
  display: grid;
  gap: 6px;
}

.board-guest-title {
  font-weight: 700;
  color: #5a3a9e;
}

.board-guest-list {
  display: grid;
  gap: 6px;
}

.board-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
}

.board-guest-meta {
  display: grid;
  gap: 2px;
}

.board-guest-subject {
  font-weight: 700;
  color: #3f2a6d;
}

.board-guest-detail {
  font-size: 0.82rem;
  color: #7b6c9c;
}

.board-guest-body {
  font-size: 0.85rem;
  color: #4b3a6f;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.board-guest-actions {
  display: flex;
  gap: 6px;
}

.board-guest-empty {
  padding: 8px;
  font-size: 0.85rem;
  color: #7b6c9c;
  background: #fff;
  border-radius: 10px;
}

.board-toggle-btn {
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  background: #f3ecff;
  color: #6b4ab8;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.board-extra-section {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: #f9f4ff;
}

.board-extra-section.hidden {
  display: none;
}

.board-image-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #f1e9ff;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: rgba(59, 47, 64, 0.55);
  font-size: 0.85rem;
}

.board-image-preview::after {
  content: "이미지 미리보기";
}

.board-image-preview.has-image::after {
  content: "";
}

.board-image-preview .preview-link.hidden {
  display: none;
}

.board-inline-hint {
  margin: 0;
  color: rgba(59, 47, 64, 0.6);
  font-size: 0.8rem;
}

.inquiry-list {
  display: grid;
  gap: 16px;
}

.inquiry-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 32px rgba(255, 95, 168, 0.12);
  display: grid;
  gap: 10px;
}

.inquiry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inquiry-meta {
  display: block;
  color: rgba(59, 47, 64, 0.65);
  font-size: 0.85rem;
  margin-top: 4px;
}

.inquiry-date {
  font-size: 0.78rem;
  color: rgba(59, 47, 64, 0.6);
}

.inquiry-message {
  color: #3b2f40;
  line-height: 1.5;
  font-size: 0.92rem;
}

.inquiry-replies {
  display: grid;
  gap: 8px;
  background: #f7f1ff;
  border-radius: 12px;
  padding: 10px;
}

.inquiry-reply {
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
  color: #3b2f40;
}

.inquiry-reply small {
  color: rgba(59, 47, 64, 0.6);
}

.inquiry-reply-form {
  display: grid;
  gap: 8px;
}

.inquiry-reply-form textarea {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f7f1ff;
  font-family: inherit;
}

.inquiry-empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.board-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.board-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.board-title-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #6f4cc8;
}

.board-title-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.widget-option-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #6f4cc8;
}

.widget-option-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

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

.hidden-group {
  background: #fff5fb;
  border-radius: 16px;
  padding: 10px;
}

.hidden-toggle {
  border: none;
  background: transparent;
  color: #6f4cc8;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  cursor: pointer;
}

.hidden-toggle::after {
  content: "▾";
  font-size: 0.9rem;
}

.hidden-group.open .hidden-toggle::after {
  content: "▴";
}

.hidden-list {
  display: none;
  gap: 10px;
}

.hidden-group.open .hidden-list {
  display: grid;
}

.widget-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fdf5ff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.widget-info {
  flex: 1;
  min-width: 0;
}

.widget-title {
  display: inline-block;
}

.widget-thumb {
  width: 120px;
  height: 80px;
  border-radius: 16px;
  margin-left: auto;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #c14b86;
  box-shadow: 0 8px 18px rgba(178, 141, 255, 0.18), inset 0 0 0 1px rgba(201, 180, 255, 0.25);
}

.widget-thumb.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.widget-summary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff5fb, #f1e9ff);
  color: #8c3fa5;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(178, 141, 255, 0.18);
  flex: 0 0 auto;
}

.summary-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 231, 243, 0.75);
  color: #a0356f;
  font-size: 0.72rem;
  font-weight: 600;
  flex: 0 0 auto;
  border: 1px solid rgba(193, 75, 134, 0.18);
}

.summary-tag.tag-pink {
  background: #ffe7f3;
  color: #c14b86;
}

.summary-tag.tag-purple {
  background: rgba(239, 231, 255, 0.85);
  color: #5d3db1;
  border-color: rgba(93, 61, 177, 0.2);
}

.summary-tag.tag-mint {
  background: rgba(230, 255, 243, 0.9);
  color: #1f8a65;
  border-color: rgba(31, 138, 101, 0.2);
}

.summary-tag.tag-gold {
  background: rgba(255, 243, 219, 0.9);
  color: #9a671c;
  border-color: rgba(154, 103, 28, 0.2);
}

.summary-tag.tag-동영상 {
  background: rgba(255, 231, 231, 0.9);
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.2);
}

.summary-tag.tag-지도 {
  background: rgba(230, 248, 255, 0.9);
  color: #2c7fb8;
  border-color: rgba(44, 127, 184, 0.2);
}

.summary-tag.tag-게시판 {
  background: rgba(255, 245, 222, 0.9);
  color: #9a5b1c;
  border-color: rgba(154, 91, 28, 0.2);
}

.summary-tag.tag-커스텀 {
  background: rgba(231, 243, 255, 0.9);
  color: #2f6ea8;
  border-color: rgba(47, 110, 168, 0.2);
}

.summary-tag.tag-small,
.summary-tag.tag-medium,
.summary-tag.tag-large {
  background: #f1e9ff;
  color: #6f4cc8;
}

.widget-card.active {
  background: #ffbedc;
  box-shadow: 0 10px 24px rgba(255, 95, 168, 0.18);
}

.widget-card.hidden-widget {
  background: #f3e8ff;
  border: 1px solid rgba(131, 84, 196, 0.18);
  opacity: 0.9;
}

.widget-controls.hidden-widget button {
  opacity: 0.6;
}

.widget-inputs {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.widget-card:not(.active) .widget-inputs {
  display: none;
}

.widget-inputs .url-hidden {
  display: none;
}

.widget-card.show-urls .widget-inputs .url-hidden {
  display: block;
}

.widget-inputs .hidden {
  display: none;
}

.widget-toggle-urls {
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  background: #f1e9ff;
  color: #6f4cc8;
  font-weight: 700;
  justify-self: start;
}

.widget-inputs .widget-row {
  display: grid;
  gap: 8px;
}

.widget-inputs .widget-row.fields-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.widget-inputs .widget-row.fields-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.widget-inputs .widget-row.fields-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.widget-inputs.button-inputs .widget-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.widget-inputs.button-inputs .widget-row.url-row {
  grid-template-columns: minmax(0, 1fr);
}

.widget-inputs.button-inputs .widget-row.combo-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.widget-inputs input,
.widget-inputs textarea,
.widget-inputs select {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.widget-inputs input[type="color"] {
  padding: 6px;
  height: 44px;
}

.widget-inputs input[type="file"] {
  background: transparent;
}

.widget-inputs button {
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffe6e6;
  color: #d64545;
  font-weight: 700;
}

.widget-inputs textarea {
  min-height: 70px;
  resize: vertical;
  width: 100%;
  max-width: 100%;
}

.avatar-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(131, 84, 196, 0.2);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #7a5ba5;
  background-size: cover;
  background-position: center;
}

.avatar-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: #5b2a57;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 95, 168, 0.15);
}

.avatar-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.avatar-library-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6f4cc8;
}

.avatar-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 8px;
}

.avatar-chip {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 52px;
  border-radius: 14px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
}

.avatar-chip.active {
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(255, 95, 168, 0.25);
}

.avatar-library-empty {
  grid-column: 1 / -1;
}

.widget-controls {
  display: flex;
  gap: 8px;
  align-self: flex-start;
}

.builder-page .widget-controls .reorder-btn {
  display: inline-flex;
}

.widget-row.hidden {
  display: none;
}

.button-icon-panel {
  display: grid;
  gap: 10px;
}

.button-icon-panel.hidden {
  display: none;
}

.button-icon-header {
  display: grid;
  gap: 8px;
}

.button-icon-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.button-icon-tab {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f7f2ff;
  color: #6f4cc8;
  font-weight: 700;
  cursor: pointer;
}

.button-icon-tab.active {
  background: #ffe7f3;
  color: #c14b86;
}

.button-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(201, 180, 255, 0.35);
}

.button-icon-grid.hidden {
  display: none;
}

.button-icon-chip {
  border: none;
  border-radius: 12px;
  background: #f7f2ff;
  padding: 8px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button-icon-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(178, 141, 255, 0.2);
}

.button-icon-chip.active {
  background: #ffe7f3;
  box-shadow: 0 0 0 2px rgba(255, 95, 168, 0.4);
}

.widget-controls button {
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  background: #ffe7f3;
  color: #d13f87;
  font-weight: 700;
}

.widget-controls button:disabled {
  opacity: 0.5;
}

.widget-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe7f3;
  color: #d13f87;
  font-weight: 700;
}

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

.style-grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.style-grid select {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff4fb;
  font-weight: 700;
}

.builder-preview {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 24px;
  align-self: start;
  justify-items: start;
}

.phone-shell {
  background: linear-gradient(180deg, #ffd6ee, #f7c4e6);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 18px 36px rgba(255, 95, 168, 0.25);
  width: min(var(--phone-preview-width), 100%);
  margin: 0;
}

.phone-bezel {
  background: #1c1524;
  border-radius: 34px;
  padding: 12px 10px 14px;
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 22px;
  border-radius: 0 0 18px 18px;
  background: #101015;
  z-index: 2;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  padding: 2px 12px 10px;
}

.phone-screen {
  background: #fff;
  border-radius: 26px;
  padding: 16px;
  display: grid;
  gap: 12px;
  aspect-ratio: 9 / 19.5;
  height: auto;
  overflow: auto;
}

.phone-screen .public-card {
  width: 100%;
  margin: 0;
}

.preview-card {
  padding: 12px;
  border-radius: 16px;
  background: #f7efff;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.preview-card.align-left {
  text-align: left;
}

.preview-card.align-center {
  text-align: center;
}

.preview-card.muted {
  font-weight: 600;
  color: var(--muted);
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.35;
  transform: translateX(-60%);
  animation: shimmer 3s ease-in-out infinite;
}

.preview-image {
  height: 120px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe0ef, #f6efff);
}

.preview-button {
  border: none;
  border-radius: 16px;
  padding: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.preview-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 80%);
  opacity: 0.35;
  transform: translateX(-60%);
  animation: shimmer 3s ease-in-out infinite;
}

.preview-button.primary {
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.preview-button.ghost {
  background: #f2ebff;
  color: #6e4cc8;
}

.preview-button.pill {
  border-radius: 999px;
  padding: 14px 16px;
  gap: 10px;
}

.preview-button.color-pink {
  background: linear-gradient(140deg, #ff7bbf, #ff9ad9);
}

.preview-button.color-purple {
  background: linear-gradient(140deg, #8f6dff, #c68bff);
}

.preview-button.color-mint {
  background: linear-gradient(140deg, #6ddbc9, #8debdc);
}

.preview-button.color-gold {
  background: linear-gradient(140deg, #ffcc7b, #ffd9a8);
}

.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.btn-arrow {
  margin-left: auto;
  opacity: 0.8;
}

.preview-profile {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding-top: 8px;
}

.preview-profile h3 {
  margin: 0;
  font-weight: 800;
}

.preview-profile p {
  margin: 0;
  color: var(--muted);
}

.preview-stack[data-ring="soft"] .preview-avatar {
  border: 4px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 16px rgba(255, 95, 168, 0.2);
}

.preview-stack[data-ring="neon"] .preview-avatar {
  border: 3px solid #ff8bd9;
  box-shadow: 0 0 12px rgba(255, 139, 217, 0.8);
}

.preview-stack[data-ring="glass"] .preview-avatar {
  border: 2px solid rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.preview-qr {
  height: 160px;
  border-radius: 18px;
  background: repeating-linear-gradient(45deg, #f7f1ff 0 8px, #fff 8px 16px);
  position: relative;
  overflow: hidden;
}

.preview-qr::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 60%);
  opacity: 0.5;
}

.preview-linkchip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.preview-spacer {
  height: 18px;
  border-radius: 12px;
  background: #f6f2ff;
}

.preview-spacer.small {
  height: 8px;
}

.preview-spacer.medium {
  height: 18px;
}

.preview-spacer.large {
  height: 32px;
}

.preview-stack {
  display: grid;
  gap: 12px;
  min-height: 100%;
}

.preview-item {
  display: grid;
  gap: 10px;
  position: relative;
  border-radius: 18px;
  outline: 1px dashed rgba(178, 141, 255, 0.55);
  outline-offset: 6px;
  cursor: pointer;
  transition: outline-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.preview-reorder {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

body.reorder-mode .builder-preview .preview-reorder {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.preview-reorder button {
  border: 1px solid rgba(255, 95, 168, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: #5b2a57;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(178, 141, 255, 0.2);
}

.preview-reorder button:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.preview-option-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 95, 168, 0.4);
  background: rgba(255, 255, 255, 0.95);
  color: #5b2a57;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(178, 141, 255, 0.2);
  cursor: pointer;
  z-index: 3;
}

.preview-option-btn:active {
  transform: translateY(1px);
}

body.reorder-mode .builder-preview .preview-option-btn {
  display: none;
}

.preview-item.drag-over {
  outline-color: rgba(255, 95, 168, 0.95);
  box-shadow: 0 16px 30px rgba(178, 141, 255, 0.25);
}

.preview-item.dragging {
  opacity: 0.6;
}

.preview-focus {
  box-shadow: 0 0 0 2px rgba(255, 95, 168, 0.5);
  border-radius: 16px;
}

.builder-preview .preview-item:hover {
  outline-color: rgba(255, 95, 168, 0.7);
  box-shadow: 0 10px 24px rgba(255, 95, 168, 0.18);
  transform: translateY(-1px);
}

.builder-preview .preview-item.active {
  outline-color: rgba(255, 95, 168, 0.95);
  box-shadow: 0 14px 28px rgba(178, 141, 255, 0.22);
}

.preview-public.hide-guides .preview-item {
  outline: none;
  box-shadow: none;
  transform: none;
}

.preview-public.hide-guides .preview-item.active {
  outline: none;
  box-shadow: none;
}

@keyframes shimmer {
  0% { transform: translateX(-60%); }
  50% { transform: translateX(60%); }
  100% { transform: translateX(60%); }
}

.preview-stack[data-theme="dreamy"] {
  padding: 12px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)) 0 0 / 120px 120px,
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 / 180px 180px,
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.preview-stack[data-theme="pastel"] {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #dff7ff, #fceaff);
}

.preview-stack[data-theme="retro"] {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe4b7, #ffd1cc);
}

.preview-stack[data-theme="cosmic"] {
  padding: 12px;
  border-radius: 18px;
  background: radial-gradient(circle at top, #3b2b6f, #140a2b);
}

.preview-stack[data-theme="neon"] {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1d1b3a, #0f1224);
}

.preview-stack[data-theme="black"] {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #151515, #050505);
}

.preview-stack[data-theme="minimal"] {
  padding: 12px;
  border-radius: 18px;
  background: #f8f8fb;
}

.preview-stack[data-theme="custom"] {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--custom-bg1), var(--custom-bg2));
  color: var(--custom-text);
}

.preview-stack[data-decor="clouds"] {
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.8), transparent 45%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.preview-stack[data-decor="sparkles"] {
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9), transparent 20%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.8), transparent 18%),
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.6), transparent 22%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.preview-stack[data-decor="hearts"] {
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 192, 203, 0.7), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(255, 182, 193, 0.6), transparent 30%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.preview-stack[data-theme="neon"] .preview-card,
.preview-stack[data-theme="neon"] .preview-card.muted {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.preview-stack[data-theme="custom"] .preview-card,
.preview-stack[data-theme="custom"] .preview-card.muted {
  background: rgba(255, 255, 255, 0.7);
  color: var(--custom-text);
}
.preview-stack[data-theme="cosmic"] .preview-card,
.preview-stack[data-theme="cosmic"] .preview-card.muted {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.preview-stack[data-theme="cosmic"] .preview-button.primary {
  background: linear-gradient(140deg, #7b5cff, #ff7dd1);
}

.preview-stack[data-theme="retro"] .preview-button.primary {
  background: linear-gradient(140deg, #ff9a5f, #ff6f91);
}

.preview-stack[data-theme="pastel"] .preview-button.primary {
  background: linear-gradient(140deg, #6cc6ff, #ff8bd9);
}

.preview-stack[data-theme="neon"] .preview-button.primary {
  background: linear-gradient(140deg, #6d5cff, #ff67f1);
}

.preview-stack[data-theme="minimal"] .preview-card {
  background: #ffffff;
}

.preview-stack[data-theme="custom"] .preview-button.primary {
  background: linear-gradient(140deg, var(--custom-accent), #ff8bd9);
}

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

.theme-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.theme-card {
  border: none;
  border-radius: 14px;
  padding: 6px;
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.12);
}

.theme-card strong {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
}

.theme-card.active {
  box-shadow: 0 0 0 2px rgba(255, 95, 168, 0.5), 0 12px 24px rgba(255, 95, 168, 0.2);
}
.theme-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.theme-thumb {
  height: 56px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.theme-thumb.dreamy {
  background: linear-gradient(180deg, #ffd6ee, #efe4ff);
}

.theme-thumb.pastel {
  background: linear-gradient(180deg, #dff7ff, #fceaff);
}

.theme-thumb.retro {
  background: linear-gradient(180deg, #ffe4b7, #ffd1cc);
}

.theme-thumb.cosmic {
  background: radial-gradient(circle at top, #3b2b6f, #140a2b);
}

.theme-thumb.neon {
  background: linear-gradient(180deg, #2b255e, #0c0f1d);
}

.theme-thumb.black {
  background: linear-gradient(180deg, #1a1a1a, #000000);
}

.theme-thumb.minimal {
  background: linear-gradient(180deg, #ffffff, #f1f1f6);
}

.theme-thumb.custom {
  background: linear-gradient(180deg, #ffe7f6, #f6efff);
}

.theme-thumb.blossom {
  background: linear-gradient(180deg, #ffe7f6, #f6efff);
}

.theme-thumb.aurora {
  background: linear-gradient(180deg, #f0e6ff, #fff4e8);
}

.theme-thumb.rose {
  background: linear-gradient(180deg, #ffe3f1, #fff3f8);
}

.theme-thumb.breeze {
  background: linear-gradient(180deg, #def3ff, #f6fbff);
}

.theme-thumb.moss {
  background: linear-gradient(180deg, #e1f7ea, #f7fff9);
}

.theme-thumb.latte {
  background: linear-gradient(180deg, #f1e6dc, #ffffff);
}

.theme-thumb.iris {
  background: linear-gradient(180deg, #e6e9ff, #f7f8ff);
}

.theme-thumb .mock-avatar {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  margin: 10px auto 6px;
}

.theme-thumb .mock-title {
  display: block;
  height: 8px;
  width: 70%;
  border-radius: 6px;
  margin: 0 auto 8px;
  background: rgba(255, 255, 255, 0.7);
}

.theme-thumb .mock-pill {
  display: block;
  height: 16px;
  width: 80%;
  margin: 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

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

.custom-theme-grid label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--muted);
}

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

.icon-chip {
  border: none;
  border-radius: 16px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(255, 95, 168, 0.12);
  font-weight: 700;
}

.public-card.theme-dreamy {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)) 0 0 / 140px 140px,
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 / 200px 200px,
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.public-card.theme-pastel {
  background: linear-gradient(180deg, #dff7ff, #fceaff);
}

.public-card.theme-retro {
  background: linear-gradient(180deg, #ffe4b7, #ffd1cc);
}

.public-card.theme-cosmic {
  background: radial-gradient(circle at top, #3b2b6f, #140a2b);
  color: #fff;
}

.public-card.theme-neon {
  background: linear-gradient(180deg, #1d1b3a, #0f1224);
  color: #fff;
}

.public-card.theme-black {
  background: linear-gradient(180deg, #151515, #050505);
  color: #fff;
}

.public-card.theme-neon .public-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

.public-card.theme-cosmic .public-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

.public-card.theme-black .public-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

.public-card.theme-neon .public-title,
.public-card.theme-cosmic .public-title,
.public-card.theme-black .public-title {
  color: #ffffff !important;
}

.public-card.theme-neon .public-profile h2,
.public-card.theme-cosmic .public-profile h2,
.public-card.theme-black .public-profile h2 {
  color: #ffffff;
}

.public-card.theme-neon .public-profile p,
.public-card.theme-cosmic .public-profile p,
.public-card.theme-black .public-profile p {
  color: rgba(255, 255, 255, 0.7);
}

.public-card.theme-neon .public-linkchip,
.public-card.theme-cosmic .public-linkchip,
.public-card.theme-black .public-linkchip {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.public-card.theme-neon .public-linkchip span,
.public-card.theme-cosmic .public-linkchip span,
.public-card.theme-black .public-linkchip span {
  color: #ffffff;
}

.public-card.theme-minimal {
  background: #ffffff;
}

.public-card.theme-custom {
  background: linear-gradient(180deg, var(--custom-bg1), var(--custom-bg2));
  color: var(--custom-text);
}

.preview-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  align-items: center;
}

.builder-guide-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #7c6aa6;
  font-size: 0.92rem;
}

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

.builder-link-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.builder-link-row.compact {
  margin-top: 0;
  background: #fff5fb;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 95, 168, 0.12);
  gap: 8px;
}

.builder-link-row.compact .builder-link {
  background: #f3ecff;
  padding: 6px 10px;
  border-radius: 999px;
}


.builder-link-row span {
  color: var(--muted);
  font-weight: 700;
}

.builder-link {
  background: #f3ecff;
  color: #6b4ab8;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.muted-text {
  color: var(--muted);
}

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

.upload-card {
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.12);
}

.upload-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.upload-thumb {
  height: 110px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.upload-card.is-video .upload-thumb {
  background: #2d2436;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
}

.upload-video-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.seo-upload-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.seo-upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.seo-upload-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.seo-preview {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 95, 168, 0.08);
}

.seo-preview-url {
  font-size: 0.85rem;
  color: #6b4ab8;
}

.seo-preview-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2f2a35;
}

.seo-preview-desc {
  font-size: 0.95rem;
  color: rgba(47, 42, 53, 0.75);
  line-height: 1.4;
}

.seo-preview-image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  min-height: 120px;
  border-radius: 14px;
  background: #f7f1fb;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.seo-preview-image.hidden {
  display: none;
}

.upload-remove {
  width: 100%;
}

.profile-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.profile-card {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(255, 95, 168, 0.12);
}

.profile-divider {
  height: 1px;
  background: rgba(201, 180, 255, 0.35);
  margin: 16px 0;
}

.profile-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.profile-card .profile-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-card select,
.profile-card input[type="date"] {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff4fb;
  font-weight: 600;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.profile-card h2 {
  margin: 0 0 8px;
  font-family: inherit;
}

.profile-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.profile-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

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

.slug-status {
  font-size: 0.85rem;
  color: var(--muted);
}

.slug-status.ok {
  color: #1f8a65;
  font-weight: 600;
}

.slug-status.error {
  color: #d64545;
  font-weight: 600;
}

.profile-form input {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff4fb;
  font-size: 0.95rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.profile-form select,
.profile-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.profile-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.slug-history {
  margin-top: 12px;
  background: #f7f1ff;
  border-radius: 16px;
  padding: 12px;
}

.slug-history h4 {
  margin: 0 0 8px;
}

.slug-history ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.slug-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.domain-guide {
  margin-top: 12px;
  background: #f7f1ff;
  border-radius: 16px;
  padding: 12px;
}

.domain-guide h4 {
  margin: 0 0 8px;
}

.domain-guide ol {
  margin: 0 0 10px 18px;
  color: var(--muted);
}

.domain-guide strong {
  color: #6e4cc8;
}

.public-wrap {
  display: grid;
  place-items: center;
  padding-bottom: 48px;
}

.public-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(255, 95, 168, 0.2);
  text-align: center;
}

.public-card h1 {
  margin: 0 0 18px;
  font-family: inherit;
}

.public-stack {
  display: grid;
  gap: 12px;
}

.public-profile {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.public-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ffe1f0;
  border: 4px solid rgba(255, 255, 255, 0.7);
  background-size: cover;
  background-position: center;
}

.public-profile h2 {
  margin: 0;
  font-weight: 800;
}

.public-profile p {
  margin: 0;
  color: var(--muted);
}

.public-card[data-ring="soft"] .public-avatar {
  border: 4px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 16px rgba(255, 95, 168, 0.2);
}

.public-card[data-ring="neon"] .public-avatar {
  border: 3px solid #ff8bd9;
  box-shadow: 0 0 12px rgba(255, 139, 217, 0.8);
}

.public-card[data-ring="glass"] .public-avatar {
  border: 2px solid rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.public-card[data-decor="clouds"] {
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.8), transparent 45%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.public-card[data-decor="sparkles"] {
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9), transparent 20%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.8), transparent 18%),
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.6), transparent 22%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.public-card[data-decor="hearts"] {
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 192, 203, 0.7), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(255, 182, 193, 0.6), transparent 30%),
    linear-gradient(180deg, #ffe7f6, #f6efff);
}

.public-title {
  font-weight: 800;
  font-size: 1.2rem;
}

.public-text {
  color: var(--muted);
}

.public-title.has-bg,
.public-text.has-bg {
  padding: 10px 12px;
  border-radius: 14px;
}

.public-title.left,
.public-text.left {
  text-align: left;
}

.public-title.center,
.public-text.center {
  text-align: center;
}

.public-image {
  --image-height: 160;
  --image-height-px: 160px;
  height: auto;
  aspect-ratio: var(--image-base-width) / var(--image-height);
  width: min(100%, var(--phone-image-width));
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe0ef, #f6efff);
  background-size: cover;
  background-position: center;
}

@supports not (aspect-ratio: 1 / 1) {
  .public-image {
    height: var(--image-height-px);
  }
}

.public-embed {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffe0ef, #f6efff);
  display: grid;
  place-items: center;
  color: rgba(59, 47, 64, 0.6);
  font-weight: 600;
  text-align: center;
  padding: 0;
}

.public-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.public-embed video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}

.public-map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  color: #3b2f40;
}

.public-map-meta span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  max-width: 100%;
  word-break: break-word;
  line-height: 1.35;
  -webkit-line-clamp: 3;
}

.public-map-copy {
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: #f3ecff;
  color: #6b4ab8;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.public-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  gap: 10px;
  width: 100%;
  border: none;
}

.public-button.primary {
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.public-button.ghost {
  background: #f2ebff;
  color: #6e4cc8;
}

.public-button.pill {
  border-radius: 999px;
  padding: 14px 16px;
}

.public-button.color-pink {
  background: linear-gradient(140deg, #ff7bbf, #ff9ad9);
  color: #fff;
}

.public-button.color-purple {
  background: linear-gradient(140deg, #8f6dff, #c68bff);
  color: #fff;
}

.public-button.color-mint {
  background: linear-gradient(140deg, #6ddbc9, #8debdc);
  color: #fff;
}

.public-button.color-gold {
  background: linear-gradient(140deg, #ffcc7b, #ffd9a8);
  color: #6b4a2a;
}

.public-qr {
  width: 140px;
  height: 140px;
  border-radius: 0;
  background: repeating-linear-gradient(45deg, #f7f1ff 0 8px, #fff 8px 16px);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.public-linkchip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.public-board {
  --board-bg: rgba(255, 255, 255, 0.82);
  --board-text: #3b2f40;
  --board-subtext: rgba(59, 47, 64, 0.7);
  --board-card-bg: rgba(255, 255, 255, 0.75);
  --board-border: rgba(255, 255, 255, 0.6);
  --board-action-bg: #f3ecff;
  --board-action-text: #6b4ab8;
  background: var(--board-bg);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--board-border);
  color: var(--board-text);
}

.public-board.theme-light-rose {
  --board-bg: #f9e6f3;
  --board-card-bg: rgba(255, 255, 255, 0.9);
  --board-text: #3b2f40;
  --board-subtext: #6d5a73;
  --board-border: rgba(255, 255, 255, 0.6);
  --board-action-bg: #fff0f8;
  --board-action-text: #b45482;
}

.public-board.theme-light-lilac {
  --board-bg: #f1e8ff;
  --board-card-bg: rgba(255, 255, 255, 0.92);
  --board-text: #3a2c5f;
  --board-subtext: #5c4a86;
  --board-border: rgba(255, 255, 255, 0.65);
  --board-action-bg: #f4edff;
  --board-action-text: #6a4db8;
}

.public-board.theme-light-mint {
  --board-bg: #e7f7f1;
  --board-card-bg: rgba(255, 255, 255, 0.92);
  --board-text: #214247;
  --board-subtext: #486469;
  --board-border: rgba(255, 255, 255, 0.65);
  --board-action-bg: #e9fbf4;
  --board-action-text: #2a7c6e;
}

.public-board.theme-light-sky {
  --board-bg: #e9f1ff;
  --board-card-bg: rgba(255, 255, 255, 0.92);
  --board-text: #2b3d5a;
  --board-subtext: #4c5e7c;
  --board-border: rgba(255, 255, 255, 0.6);
  --board-action-bg: #eef4ff;
  --board-action-text: #4763b7;
}

.public-board.theme-light-cream {
  --board-bg: #fff3d6;
  --board-card-bg: rgba(255, 255, 255, 0.95);
  --board-text: #4a3d21;
  --board-subtext: #6d5b33;
  --board-border: rgba(255, 255, 255, 0.65);
  --board-action-bg: #fff7e6;
  --board-action-text: #9a6a2b;
}

.public-board.theme-dark-plum {
  --board-bg: #2e2148;
  --board-card-bg: rgba(255, 255, 255, 0.12);
  --board-text: #f5ecff;
  --board-subtext: #d9c9ff;
  --board-border: rgba(255, 255, 255, 0.12);
  --board-action-bg: rgba(255, 255, 255, 0.18);
  --board-action-text: #ffffff;
}

.public-board.theme-dark-navy {
  --board-bg: #1c2a4a;
  --board-card-bg: rgba(255, 255, 255, 0.12);
  --board-text: #e9efff;
  --board-subtext: #c6d1ff;
  --board-border: rgba(255, 255, 255, 0.12);
  --board-action-bg: rgba(255, 255, 255, 0.18);
  --board-action-text: #ffffff;
}

.public-board.theme-dark-forest {
  --board-bg: #1d3b34;
  --board-card-bg: rgba(255, 255, 255, 0.12);
  --board-text: #e9fff6;
  --board-subtext: #c8f0e1;
  --board-border: rgba(255, 255, 255, 0.12);
  --board-action-bg: rgba(255, 255, 255, 0.18);
  --board-action-text: #ffffff;
}

.public-board.theme-dark-slate {
  --board-bg: #2a2f3d;
  --board-card-bg: rgba(255, 255, 255, 0.12);
  --board-text: #f0f4ff;
  --board-subtext: #cbd5f5;
  --board-border: rgba(255, 255, 255, 0.12);
  --board-action-bg: rgba(255, 255, 255, 0.18);
  --board-action-text: #ffffff;
}

.public-board.theme-dark-coal {
  --board-bg: #1f1f24;
  --board-card-bg: rgba(255, 255, 255, 0.12);
  --board-text: #f5f5f7;
  --board-subtext: #cfcfd6;
  --board-border: rgba(255, 255, 255, 0.12);
  --board-action-bg: rgba(255, 255, 255, 0.18);
  --board-action-text: #ffffff;
}

.public-board strong {
  font-size: 1rem;
  color: var(--board-text);
}

.public-board-list {
  display: grid;
  gap: 8px;
}

.public-board-item {
  display: grid;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--board-card-bg);
  font-size: 0.85rem;
  color: var(--board-text);
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.public-board-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.board-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.board-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: #ff4f9a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.board-title {
  font-weight: 700;
  color: var(--board-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.board-author {
  font-size: 0.72rem;
  color: var(--board-subtext);
}

.public-board-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.public-board-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
}

.board-page-btn {
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--board-action-bg, #f3ecff);
  color: var(--board-action-text, #6b4ab8);
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.board-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.board-page-status {
  font-size: 0.75rem;
  color: var(--board-subtext);
}

.chart-dot {
  fill: currentColor;
}

.chart-value {
  font-size: 0.9rem;
  text-anchor: middle;
  fill: #7b6c9c;
  pointer-events: none;
}

.stats-panel .chart-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.stats-panel .chart-value.hourly {
  font-size: 0.95rem;
  font-weight: 600;
}

.chart-value.views {
  fill: #ff7dbb;
}

.chart-value.clicks {
  fill: #6b8cff;
}

.public-board-write,
.public-board-submit {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--board-action-bg, #f3ecff);
  color: var(--board-action-text, #6b4ab8);
  font-weight: 700;
  cursor: pointer;
}

.board-guest-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 8000;
}

.board-guest-modal.active {
  display: flex;
}

.board-guest-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 15, 45, 0.45);
  backdrop-filter: blur(2px);
}

.board-guest-panel {
  position: relative;
  width: min(460px, 92vw);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 10px;
  z-index: 1;
}

.board-guest-panel h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #3b2f40;
}

.board-guest-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #f3ecff;
  color: #6b4ab8;
  font-weight: 700;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.board-guest-form {
  display: grid;
  gap: 8px;
}

.board-guest-form input,
.board-guest-form textarea {
  width: 100%;
}

.board-guest-message {
  font-size: 0.85rem;
  color: #6b4ab8;
}

.board-guest-policy {
  font-size: 0.85rem;
  color: #8a7a99;
}

.board-body-preview {
  color: var(--board-subtext);
  font-size: 0.82rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-board-item.expanded .board-body-preview {
  display: none;
}

.board-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-board-item.expandable {
  cursor: pointer;
}

.board-content {
  display: grid;
  gap: 10px;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.board-content .board-body-full {
  max-height: 1.3em;
  transition: max-height 0.35s ease;
  color: var(--board-text);
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: pre-line;
}

.public-board-item.expanded .board-content {
  max-height: 520px;
  opacity: 1;
}

.public-board-item.expanded .board-content .board-body-full {
  max-height: 420px;
}

.public-board-item.expanded .board-content {
  margin-top: 2px;
}

.board-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.board-image-preview .preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #6b4ab8;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.78rem;
}

.board-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--board-action-bg, #f3ecff);
  color: var(--board-action-text, #6b4ab8);
  font-weight: 700;
  text-decoration: none;
}

.public-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  color: rgba(59, 47, 64, 0.7);
  justify-content: center;
  margin: 0 auto;
}

.public-stats.compact {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.public-stats.no-bg {
  background: transparent;
  padding: 0;
}

.public-stats.no-bg span {
  color: rgba(59, 47, 64, 0.7);
  letter-spacing: 0.1em;
}

.public-stats.no-bg strong {
  font-weight: 800;
  color: #3b2f40;
}

.public-stats.no-bg .stats-sep {
  margin: 0 12px;
  display: inline-block;
}

.public-stats .stats-card {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.public-stats .stats-card span {
  color: rgba(59, 47, 64, 0.65);
  font-size: 0.78rem;
}

.public-stats .stats-card strong {
  font-size: 0.86rem;
  color: #3b2f40;
}

.public-contact {
  --contact-bg: rgba(255, 255, 255, 0.82);
  --contact-text: #3b2f40;
  --contact-subtext: rgba(59, 47, 64, 0.7);
  --contact-field-bg: #f7f1ff;
  --contact-border: rgba(255, 255, 255, 0.6);
  --contact-button-bg: #ff5fa8;
  --contact-button-text: #fff;
  background: var(--contact-bg);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--contact-border);
  color: var(--contact-text);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.public-contact * {
  box-sizing: border-box;
}

.public-contact.theme-light-rose {
  --contact-bg: #f9e6f3;
  --contact-text: #3b2f40;
  --contact-subtext: #6d5a73;
  --contact-field-bg: rgba(255, 255, 255, 0.92);
  --contact-border: rgba(255, 255, 255, 0.65);
  --contact-button-bg: #ff5fa8;
  --contact-button-text: #fff;
}

.public-contact.theme-light-lilac {
  --contact-bg: #f1e8ff;
  --contact-text: #3a2c5f;
  --contact-subtext: #5c4a86;
  --contact-field-bg: rgba(255, 255, 255, 0.92);
  --contact-border: rgba(255, 255, 255, 0.65);
  --contact-button-bg: #9c7bff;
  --contact-button-text: #fff;
}

.public-contact.theme-light-mint {
  --contact-bg: #e7f7f1;
  --contact-text: #214247;
  --contact-subtext: #486469;
  --contact-field-bg: rgba(255, 255, 255, 0.92);
  --contact-border: rgba(255, 255, 255, 0.65);
  --contact-button-bg: #2aa68a;
  --contact-button-text: #fff;
}

.public-contact.theme-light-sky {
  --contact-bg: #e9f1ff;
  --contact-text: #2b3d5a;
  --contact-subtext: #4c5e7c;
  --contact-field-bg: rgba(255, 255, 255, 0.92);
  --contact-border: rgba(255, 255, 255, 0.65);
  --contact-button-bg: #5a7ff5;
  --contact-button-text: #fff;
}

.public-contact.theme-light-cream {
  --contact-bg: #fff3d6;
  --contact-text: #4a3d21;
  --contact-subtext: #6d5b33;
  --contact-field-bg: rgba(255, 255, 255, 0.95);
  --contact-border: rgba(255, 255, 255, 0.65);
  --contact-button-bg: #d59643;
  --contact-button-text: #fff;
}

.public-contact.theme-dark-plum {
  --contact-bg: #2e2148;
  --contact-text: #f5ecff;
  --contact-subtext: #d9c9ff;
  --contact-field-bg: rgba(255, 255, 255, 0.12);
  --contact-border: rgba(255, 255, 255, 0.12);
  --contact-button-bg: rgba(255, 255, 255, 0.2);
  --contact-button-text: #ffffff;
}

.public-contact.theme-dark-navy {
  --contact-bg: #1c2a4a;
  --contact-text: #e9efff;
  --contact-subtext: #c6d1ff;
  --contact-field-bg: rgba(255, 255, 255, 0.12);
  --contact-border: rgba(255, 255, 255, 0.12);
  --contact-button-bg: rgba(255, 255, 255, 0.2);
  --contact-button-text: #ffffff;
}

.public-contact.theme-dark-forest {
  --contact-bg: #1d3b34;
  --contact-text: #e9fff6;
  --contact-subtext: #c8f0e1;
  --contact-field-bg: rgba(255, 255, 255, 0.12);
  --contact-border: rgba(255, 255, 255, 0.12);
  --contact-button-bg: rgba(255, 255, 255, 0.2);
  --contact-button-text: #ffffff;
}

.public-contact.theme-dark-slate {
  --contact-bg: #2a2f3d;
  --contact-text: #f0f4ff;
  --contact-subtext: #cbd5f5;
  --contact-field-bg: rgba(255, 255, 255, 0.12);
  --contact-border: rgba(255, 255, 255, 0.12);
  --contact-button-bg: rgba(255, 255, 255, 0.2);
  --contact-button-text: #ffffff;
}

.public-contact.theme-dark-coal {
  --contact-bg: #1f1f24;
  --contact-text: #f5f5f7;
  --contact-subtext: #cfcfd6;
  --contact-field-bg: rgba(255, 255, 255, 0.12);
  --contact-border: rgba(255, 255, 255, 0.12);
  --contact-button-bg: rgba(255, 255, 255, 0.2);
  --contact-button-text: #ffffff;
}

.public-contact strong {
  font-size: 1rem;
  color: var(--contact-text);
}

.public-contact p {
  margin: 0;
  color: var(--contact-subtext);
  font-size: 0.9rem;
}

.public-contact-form {
  display: grid;
  gap: 10px;
  width: 100%;
}

.contact-field {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.contact-field span {
  font-size: 0.85rem;
  color: var(--contact-subtext);
}

.contact-field input,
.contact-field textarea {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--contact-field-bg);
  color: var(--contact-text);
  font-family: inherit;
  width: 100%;
  max-width: 100%;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--contact-subtext);
}

.contact-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--contact-subtext);
}

.contact-submit {
  border: none;
  border-radius: 14px;
  padding: 12px;
  background: var(--contact-button-bg);
  color: var(--contact-button-text);
  font-weight: 700;
  cursor: pointer;
}

.contact-success,
.contact-error {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-success {
  background: #e7f7ef;
  color: #1d8a52;
}

.contact-error {
  background: #ffe8eb;
  color: #c83747;
}

.public-footer {
  margin-top: 18px;
  padding: 8px 0 4px;
  text-align: center;
  font-size: 0.62rem;
  color: rgba(59, 47, 64, 0.6);
  border-top: none;
}

.public-footer a {
  color: #6b4ab8;
  text-decoration: none;
  font-weight: 700;
  pointer-events: auto;
}

.public-card.theme-neon .public-footer,
.public-card.theme-cosmic .public-footer,
.public-card.theme-black .public-footer {
  color: rgba(255, 255, 255, 0.7);
  border-top: none;
}

.public-card.theme-neon .public-footer a,
.public-card.theme-cosmic .public-footer a,
.public-card.theme-black .public-footer a {
  color: #ffffff;
}

body.embedded .public-footer {
  display: none;
}

.board-date {
  font-size: 0.78rem;
  color: var(--board-subtext);
  white-space: nowrap;
}

.board-meta {
  justify-self: end;
}

.public-board-empty {
  color: var(--board-subtext);
  font-size: 0.85rem;
}

.public-card.theme-custom .public-button.primary {
  background: linear-gradient(140deg, var(--custom-accent), #ff8bd9);
  color: #fff;
}

.public-card.theme-dreamy,
.preview-stack[data-theme="dreamy"],
.public-card.theme-pastel,
.preview-stack[data-theme="pastel"] {
  font-family: "Fredoka", "Nunito", sans-serif;
}

.public-card.theme-retro,
.preview-stack[data-theme="retro"] {
  font-family: "DM Serif Display", "Nunito", serif;
}

.public-card.theme-neon,
.preview-stack[data-theme="neon"],
.public-card.theme-cosmic,
.preview-stack[data-theme="cosmic"],
.public-card.theme-black,
.preview-stack[data-theme="black"] {
  font-family: "Space Grotesk", "Nunito", sans-serif;
}

.public-card.theme-minimal,
.preview-stack[data-theme="minimal"],
.public-card.theme-custom,
.preview-stack[data-theme="custom"] {
  font-family: "Nunito", sans-serif;
}

.public-spacer.small {
  height: 8px;
}

.public-spacer.medium {
  height: 18px;
}

.public-spacer.large {
  height: 32px;
}

.link-preview {
  margin: 12px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #f3e6ff;
  background: #fff;
}

.link-actions-top {
  margin: 0 0 12px;
}
.link-preview iframe {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  height: auto;
  border: none;
}

.link-preview.phone-frame {
  min-height: 0;
  aspect-ratio: 9 / 19.5;
  height: auto;
  overflow: hidden;
}

.link-preview.phone-frame iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
}

.links-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.links-board {
  display: grid;
  gap: 10px;
}

.links-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.55fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.links-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.links-title-row h1 {
  white-space: nowrap;
}

.links-header-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.inline-actions-row {
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.links-header-actions .link-copy-options {
  margin: 0;
  flex-wrap: nowrap;
}

.links-header-actions .link-copy-options .copy-label {
  display: none;
}

.plan-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.links-statusbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.4fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(124, 92, 255, 0.12);
}

.status-left,
.status-center,
.status-right {
  display: grid;
  gap: 6px;
}

.status-right {
  justify-items: end;
}

.plan-tab {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: #f3edff;
  color: #6b4ab8;
  font-weight: 700;
  cursor: pointer;
}

.plan-tab.active {
  background: #7c5cff;
  color: #fff;
}

.plan-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.plan-value {
  font-size: 1.1rem;
  color: #6b4ab8;
  font-weight: 800;
}

.slot-label {
  font-weight: 700;
  color: #6b4ab8;
}

.slot-count {
  font-size: 1.25rem;
  font-weight: 800;
}

.status-helper {
  margin: 0 0 16px;
  color: var(--muted);
}

.slot-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.12);
  display: grid;
  gap: 8px;
}

.slot-card.locked {
  background: #fff7fb;
  border: 1px dashed #ffc2da;
}

.slot-card h4 {
  margin: 0;
}

.slot-card p {
  margin: 0;
  color: var(--muted);
}

.slot-card .pill-btn {
  justify-self: start;
}

.links-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.links-preview {
  position: sticky;
  top: 24px;
  align-self: start;
}

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

.links-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links-tab {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff4fb;
  color: #6b4ab8;
  font-weight: 700;
  cursor: pointer;
}

.links-tab.active {
  background: #ff5fa8;
  color: #fff;
}

.links-tab.selected {
  box-shadow: inset 0 0 0 2px rgba(255, 95, 168, 0.35);
}

.links-row.active {
  box-shadow: 0 0 0 2px rgba(255, 95, 168, 0.4), 0 12px 24px rgba(255, 95, 168, 0.12);
}

.links-row.selected {
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.28), 0 12px 24px rgba(124, 92, 255, 0.12);
}

.links-header,
.links-row {
  display: grid;
  grid-template-columns: 40px minmax(220px, 1fr) 110px 90px 150px 110px minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
}

.links-header {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 12px;
}

.links-row {
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.08);
  cursor: pointer;
}

.slot-row {
  grid-template-columns: 1fr;
  cursor: default;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.slot-row .slot-card {
  width: 100%;
}

.links-title {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.links-title strong {
  display: block;
}

.links-title small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.links-thumb {
  width: 120px;
  height: 80px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.links-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.links-actions .pill-btn {
  white-space: nowrap;
}

.links-row {
  align-items: start;
}

.links-title strong {
  max-width: 220px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.links-title small {
  max-width: 220px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.links-activate {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.links-actions .pill-btn,
.links-activate .pill-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  box-shadow: none;
}

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

.builder-section .links-storage {
  margin-bottom: 12px;
}

.storage-bar {
  position: relative;
  height: 8px;
  background: #f1eefc;
  border-radius: 999px;
  overflow: hidden;
}

.storage-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff7bb1, #8d7bff);
  border-radius: 999px;
}

.storage-meta {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.pill-btn.danger {
  background: #ffe6ee;
  color: #d9487c;
  border: 2px solid #ffd1e1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #f0ecff;
  color: #6b4ab8;
}

.status-pill.active {
  background: #ff5fa8;
  color: #fff;
}

.status-pill.ok {
  background: #e7f8ef;
  color: #179a63;
}

.status-pill.pending {
  background: #fff2de;
  color: #c46a00;
}

.status-pill.muted {
  background: #f3f3f7;
  color: #7a7a8a;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.links-empty {
  padding: 18px;
  border-radius: 16px;
  background: #fff7fb;
  color: var(--muted);
}

.phone-frame {
  border-radius: 30px;
  background: #ffffff;
  box-shadow: inset 0 0 0 0px #1f1f1f, 0 16px 16px rgba(31, 31, 31, 0.18);
  width: min(var(--phone-preview-width), 100%);
  min-height: 680px;
  margin: 0 auto;
}

.phone-frame iframe {
  border-radius: 20px;
  background: #fff;
}

.phone-notch {
  width: 0;
  height: 0;
}

.link-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.link-chip {
  background: #f3ecff;
  color: #6b4ab8;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-chip:hover {
  background: #eadfff;
}

.member-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.member-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.member-search input {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff4fb;
  min-width: 220px;
}

.member-search select {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f3ecff;
  font-weight: 700;
  color: #6b4ab8;
}

.member-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.member-settings {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
  margin: 14px 0 18px;
}

.invite-cleanup {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
  margin: 0 0 18px;
}

.invite-cleanup h3 {
  margin: 0 0 6px;
}

.invite-cleanup p {
  margin: 0;
  color: var(--muted);
}

.member-settings h3 {
  margin: 0 0 6px;
}

.member-settings p {
  margin: 0;
  color: var(--muted);
}

.settings-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-form.menu-form {
  align-items: flex-start;
}

.menu-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 16px;
  flex: 1;
  width: min(640px, 100%);
}

.menu-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #5f4b75;
}

.menu-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.settings-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--muted);
}

.settings-form input {
  border: none;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff4fb;
  width: 120px;
}

.summary-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 12px 26px rgba(255, 95, 168, 0.12);
}

.summary-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 600;
}

.summary-card strong {
  font-size: 1.4rem;
}

.member-table {
  display: grid;
  gap: 12px;
}

.member-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 6px;
  text-align: left;
}

.member-table-head span {
  justify-self: start;
}

.member-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
  text-align: left;
  min-height: 104px;
}

.member-row > *:not(.member-actions) {
  justify-self: start;
}

.member-info {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.member-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #ffe4f3;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #d6478c;
}

.member-role {
  font-weight: 700;
  justify-self: start;
}

.member-plan {
  font-weight: 700;
  justify-self: start;
  color: #6f4cc8;
}

.member-status {
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: left;
  background: #f0f0f0;
  justify-self: start;
}

.member-date {
  justify-self: start;
}

.member-status.활성 {
  background: #e7fff3;
  color: #1e9b6d;
}

.member-status.대기 {
  background: #fff6e6;
  color: #c8861c;
}

.member-status.중지 {
  background: #ffe8e8;
  color: #d24545;
}

.member-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-self: center;
  flex-wrap: wrap;
  row-gap: 8px;
}

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

.admin-links-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.95fr);
  gap: 26px;
  align-items: start;
}

.admin-links-preview {
  position: sticky;
  top: 24px;
  align-self: start;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(255, 95, 168, 0.12);
}

.preview-header h3 {
  margin: 0 0 6px;
}

.preview-header p {
  margin: 0 0 12px;
  color: var(--muted);
}

.preview-device {
  border-radius: 28px;
  border: 2px solid #f2cfe8;
  padding: 12px;
  background: linear-gradient(180deg, #fff8fd, #ffffff);
  box-shadow: inset 0 0 0 6px #fff;
  width: min(var(--phone-preview-width), 100%);
  margin: 0 auto;
}

.preview-device iframe {
  width: 100%;
  height: 820px;
  border: none;
  border-radius: 18px;
  background: #fff;
}

.preview-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-links-head {
  display: grid;
  grid-template-columns: 1.6fr 1.6fr 0.9fr 0.8fr 0.9fr 0.9fr auto;
  gap: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 6px;
}

.admin-links-row {
  display: grid;
  grid-template-columns: 1.6fr 1.6fr 0.9fr 0.8fr 0.9fr 0.9fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.admin-links-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 95, 168, 0.18);
}

.admin-links-row.selected {
  border-color: #f7b6db;
  box-shadow: 0 18px 36px rgba(255, 95, 168, 0.22);
}

.admin-links-member .member-info {
  margin-bottom: 4px;
}

.admin-links-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-links-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-links-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #f3e9ff;
  flex: 0 0 auto;
}

.admin-links-thumb.placeholder {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #7b57d1;
}

.post-status {
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
  background: #f0f0f0;
}

.post-status.published {
  background: #e7fff3;
  color: #1e9b6d;
}

.post-status.draft {
  background: #fff1f5;
  color: #d2457c;
}

.post-active {
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
  background: #f0f0f0;
}

.post-active.active {
  background: #e7f0ff;
  color: #2563eb;
}

.post-active.inactive {
  background: #f3f4f6;
  color: #6b7280;
}

.admin-links-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-links-sample {
  display: flex;
  align-items: center;
}

.sample-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #6e4cc8;
}

.sample-toggle-input {
  width: 18px;
  height: 18px;
  accent-color: #ff5fa8;
}

.inline-form {
  margin: 0;
}

.icon-pill {
  border: none;
  background: #f2ebff;
  color: #6e4cc8;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.icon-pill.ghost {
  background: #ffe7f3;
  color: #d13f87;
}

.icon-pill.danger {
  background: #ffe6e6;
  color: #d64545;
}

.icon-pill.success {
  background: #e5fff3;
  color: #1c8a61;
}

.icon-pill.warn {
  background: #fff3e3;
  color: #c97a1e;
}

.notification-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notify-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff5fa8;
  color: #fff;
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(255, 95, 168, 0.35);
}

.notification-unread {
  background: #fff4fb;
  border-radius: 16px;
}

.member-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
}

.member-pagination {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-info {
  color: var(--muted);
  font-weight: 600;
}

.page-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.page-ellipsis {
  color: var(--muted);
  font-weight: 700;
  padding: 0 6px;
}

.page-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(255, 95, 168, 0.12);
}

.page-pill.active {
  background: #ffe4f2;
  color: #d13f87;
}

.empty-state {
  margin-top: 30px;
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 36px rgba(255, 95, 168, 0.15);
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--muted);
}

.invite-chip {
  margin: 18px 0 10px;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(255, 95, 168, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.invite-chip span {
  font-weight: 700;
  color: var(--muted);
}

.invite-chip small {
  color: var(--muted);
  font-weight: 600;
}

.invite-link {
  background: #f3ecff;
  color: #6b4ab8;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.invite-table {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.invite-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  padding: 0 6px;
}

.invite-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
}

.invite-status {
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
  background: #f0f0f0;
}

.invite-status.유효 {
  background: #e7fff3;
  color: #1e9b6d;
}

.invite-status.만료 {
  background: #fff6e6;
  color: #c8861c;
}

.invite-status.사용됨 {
  background: #ffe8e8;
  color: #d24545;
}

.invite-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.member-logs {
  margin-top: 26px;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(255, 95, 168, 0.12);
}

.member-logs h3 {
  margin: 0 0 12px;
}

.member-logs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.member-logs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9f2ff;
  align-items: center;
}

.member-logs span {
  color: var(--muted);
  font-weight: 700;
}

.member-logs em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

.log-body {
  gap: 16px;
}

.log-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.log-meta span {
  color: var(--muted);
  font-weight: 700;
}

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

.log-grid h4 {
  margin: 0 0 8px;
}

.log-grid pre {
  background: #f7f1ff;
  border-radius: 14px;
  padding: 12px;
  min-height: 140px;
  overflow: auto;
  font-size: 0.85rem;
}

.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: grid;
  gap: 10px;
  z-index: 12;
}

.toast {
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  animation: toast-in 0.25s ease;
  display: flex;
  gap: 12px;
  align-items: center;
}

.toast.success {
  border-left: 6px solid #27ae60;
}

.toast.error {
  border-left: 6px solid #e74c3c;
}

.toast.hide {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-action {
  border: none;
  background: #f2ebff;
  color: #6e4cc8;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(54, 29, 52, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 8000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  width: min(520px, 100%);
  box-shadow: 0 24px 50px rgba(255, 95, 168, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.modal-header h2 {
  margin: 0;
  font-family: inherit;
}

.modal-body {
  display: grid;
  gap: 14px;
}

.modal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.modal-option {
  padding: 12px;
  border-radius: 14px;
  background: #f8f1ff;
  display: grid;
  gap: 4px;
  font-weight: 700;
  color: #6b4ab8;
}

.modal-option span {
  font-weight: 600;
  color: var(--muted);
}

.modal-footnote {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 30, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 8000;
}

.modal-overlay.open {
  display: flex;
}

.widget-fab {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(255, 95, 168, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-stack {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: none;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  z-index: 1800;
}

.widget-fab-order {
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #5b2a57;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(178, 141, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.widget-fab-publish {
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(255, 95, 168, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-fab-publish:active {
  transform: translateY(1px);
}

.widget-fab-order.active {
  background: #ffe0f1;
  box-shadow: 0 12px 22px rgba(255, 95, 168, 0.2);
}

.widget-fab-order:active {
  transform: translateY(1px);
}

.widget-fab:active {
  transform: translateY(1px);
  box-shadow: 0 12px 22px rgba(255, 95, 168, 0.3);
}

.widget-fab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.widget-picker-modal .modal-card {
  width: min(560px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.widget-picker-modal .modal-body {
  overflow: auto;
}

.widget-picker-modal .widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  justify-items: stretch;
}

.widget-picker-modal .widget-btn {
  width: 100%;
}

.avatar-crop-modal .modal-card {
  width: min(420px, 100%);
}

.avatar-crop-modal {
  z-index: 8100;
}

.avatar-crop-frame {
  width: min(260px, 72vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), rgba(246, 236, 255, 0.9));
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(131, 84, 196, 0.18);
}

.avatar-crop-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(18, 10, 28, 0.45);
  border: var(--crop-ring-size, 2px) solid var(--crop-ring-color, rgba(255, 255, 255, 0.8));
  pointer-events: none;
}

.avatar-crop-frame img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.avatar-crop-frame.dragging img {
  cursor: grabbing;
}

.avatar-crop-controls {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.avatar-crop-tools {
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr 1fr;
  align-items: end;
}

.avatar-crop-reset {
  padding: 8px 12px;
  font-size: 0.82rem;
  align-self: stretch;
}

.avatar-crop-ring {
  display: grid;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6f4cc8;
}

.avatar-crop-zoom {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6f4cc8;
}

.builder-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
  flex-wrap: nowrap;
  width: min(var(--phone-preview-width), 100%);
}

.builder-quick-actions .pill-btn,
.builder-quick-actions .builder-link {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.builder-quick-actions .builder-link {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.builder-mobile-panels {
  display: none;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin: 8px 0 6px;
}

.panel-pill {
  border: none;
  border-radius: 14px;
  padding: 10px 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 20px rgba(178, 141, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 68px;
}

.panel-pill:active {
  transform: translateY(1px);
  box-shadow: 0 8px 16px rgba(178, 141, 255, 0.18);
}

.panel-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.panel-label {
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.mobile-panel-placeholder {
  display: none;
}

.mobile-panel-modal .modal-card {
  width: min(640px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.mobile-panel-modal .modal-body {
  overflow: auto;
}

.mobile-panel-modal .builder-section > h2 {
  display: none;
}

.mobile-panel-modal .history-list {
  height: auto;
  max-height: none;
}

.widget-edit-modal .modal-card {
  width: min(720px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.widget-edit-modal .modal-body {
  overflow: auto;
}

.widget-edit-modal .widget-edit-body {
  display: grid;
  gap: 12px;
}

.widget-edit-modal .widget-card {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.widget-edit-modal .widget-info {
  width: 100%;
}

.widget-edit-modal .widget-controls {
  order: 2;
  align-self: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.widget-edit-modal .widget-controls button {
  padding: 6px 8px;
  font-size: 0.82rem;
}

.widget-card-placeholder {
  border: 1px dashed rgba(201, 180, 255, 0.5);
  border-radius: 16px;
  background: #faf6ff;
  min-height: 80px;
}

.modal-body label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.modal-body input,
.modal-body select {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff4fb;
  font-size: 0.95rem;
}

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

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

@media (max-width: 920px) {
  .widget-edit-modal {
    align-items: flex-end;
  }

  .widget-edit-modal .modal-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
  }

  .builder-section.widget-list-section {
    display: none;
  }

  .builder-page .mobile-panel {
    display: none;
  }

  .builder-page .mobile-panel.mobile-panel-active {
    display: block;
  }

  .builder-quick-actions {
    display: flex;
  }

  .fab-stack {
    display: flex;
  }

  .builder-page .widget-controls .reorder-btn {
    display: none;
  }

  body.reorder-mode .builder-page .widget-controls .reorder-btn {
    display: inline-flex;
  }

  body.widget-edit-open .builder-page .widget-controls .reorder-btn {
    display: none;
  }

  body.widget-edit-open .builder-preview .preview-reorder {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
  }

  .builder-preview .preview-item.active .preview-option-btn {
    display: inline-flex;
  }

  .widget-picker-modal {
    align-items: flex-end;
  }

  .widget-picker-modal .modal-card {
    width: 100%;
    max-height: 85vh;
    border-radius: 22px 22px 0 0;
  }

  .widget-picker-modal .widget-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .widget-picker-modal .widget-btn {
    min-height: 52px;
    padding: 6px 0;
  }

  .widget-picker-modal .widget-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .widget-picker-modal .widget-label {
    font-size: 0.68rem;
  }

  .mobile-panel-modal {
    align-items: flex-end;
  }

  .mobile-panel-modal .modal-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
  }

  .builder-mobile-panels {
    display: grid;
  }
}

.detail-body {
  gap: 12px;
}

.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f9f2ff;
}

.detail-line span {
  color: var(--muted);
  font-weight: 600;
}

.delete-message {
  margin: 0;
  color: var(--muted);
}

.template-showcase {
  margin-top: 20px;
}

.template-phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.template-phone {
  height: 220px;
  border-radius: 24px;
  background: #ffe7f5;
  box-shadow: 0 18px 30px rgba(255, 95, 168, 0.18);
}

.template-phone.pink {
  background: linear-gradient(180deg, #ffd7ec, #ffeef7);
}

.template-phone.purple {
  background: linear-gradient(180deg, #e8ddff, #f3edff);
}

.template-phone.peach {
  background: linear-gradient(180deg, #ffe2cf, #fff1e5);
}

.template-phone.mint {
  background: linear-gradient(180deg, #d6fff2, #ecfff9);
}

.template-pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 95, 168, 0.2);
  margin-bottom: 12px;
}

.template-cta {
  display: grid;
  gap: 10px;
  place-items: center;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.action-pill {
  padding: 10px 16px;
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 12px 24px rgba(178, 141, 255, 0.2);
}

@media (max-width: 920px) {
  .site-header {
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel {
    padding: 30px;
  }

  .login-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-actions {
    align-items: flex-start;
  }

  .member-table-head {
    display: none;
  }

  .member-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .member-actions {
    justify-content: flex-start;
  }

  .admin-links-head {
    display: none;
  }

  .admin-links-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-links-actions {
    justify-content: flex-start;
  }

  .admin-links-sample {
    justify-content: flex-start;
  }

  .admin-links-layout {
    grid-template-columns: 1fr;
  }

  .admin-links-preview {
    position: static;
  }

  .preview-device iframe {
    height: 520px;
  }

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

  .builder-widget-palette {
    position: static;
    width: 100%;
  }

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

  .invite-table-head {
    display: none;
  }

  .invite-row {
    grid-template-columns: 1fr;
  }

  .toast-stack {
    right: 16px;
    left: 16px;
  }

  .links-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .links-statusbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .status-right {
    justify-items: start;
  }

  .links-layout {
    grid-template-columns: 1fr;
  }

  .links-preview {
    position: static;
  }

  .links-header {
    display: none;
  }

  .links-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .links-row > span:first-child {
    display: none;
  }

  .links-row > span:nth-child(3),
  .links-row > span:nth-child(4) {
    display: none;
  }

  .links-title {
    align-items: flex-start;
  }

  .links-title strong,
  .links-title small {
    max-width: 100%;
  }

  .links-thumb {
    width: 100px;
    height: 68px;
  }

  .links-storage {
    width: 100%;
  }

  .links-activate {
    justify-content: flex-start;
  }

  .links-actions {
    justify-content: flex-start;
  }

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

  .dashboard-card {
    padding: 14px;
  }

  .dashboard-card#links {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 1;
  }

  .dashboard-card#plan {
    order: 0;
  }

  .dashboard-card.dashboard-notifications {
    order: 2;
  }

  .dashboard-card#storage {
    order: 3;
  }

  .dashboard-card#stats {
    order: 4;
  }

  .dashboard-grid .profile-grid {
    order: 5;
  }

  .dashboard-grid .dashboard-actions {
    order: 6;
  }

  .dashboard-card#links .link-preview {
    max-width: 360px;
    margin: 0 auto;
  }

  .dashboard-side-row {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .dashboard-grid .profile-grid,
  .dashboard-grid .dashboard-actions {
    grid-column: 1 / -1;
  }

  .dashboard-grid .profile-grid {
    grid-template-columns: 1fr;
  }

  .board-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-page-select {
    width: 100%;
  }

  .board-page-select select {
    width: 100%;
    min-width: 0;
  }

  .board-page-layout {
    gap: 14px;
  }

  .board-preview-frame {
    height: 520px;
  }

  .board-editor-panel .dashboard-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .board-editor-panel .dashboard-buttons .pill-btn,
  .board-editor-panel .dashboard-buttons .inline-btn {
    width: 100%;
  }

  .board-post-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .board-guest-limit-row {
    grid-template-columns: 1fr;
  }

  .board-guest-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .inquiry-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .inquiry-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .inquiry-action-row .pill-btn {
    width: 100%;
  }

  .slug-row {
    grid-template-columns: 1fr;
  }

  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-actions .pill-btn {
    width: 100%;
  }

  .stats-summary {
    grid-template-columns: 1fr;
  }

  .stats-charts {
    grid-template-columns: 1fr;
  }

  .stats-filter {
    align-items: stretch;
  }

  .stats-filter-left,
  .stats-filter label {
    width: 100%;
  }

  .stats-filter .pill-btn {
    width: 100%;
  }

  .stats-filter label {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-date-range {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
  }

  .stats-panel .stats-chart {
    height: 160px;
  }

  .stats-panel .stats-chart-card {
    padding: 14px;
  }

  .stats-panel .stats-card strong {
    font-size: 1.45rem;
  }

  .stats-panel .chart-value {
    font-size: 1rem;
  }

  .stats-panel .chart-value.hourly {
    font-size: 0.8rem;
  }

  .chart-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-lock-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-lock-card .pill-btn {
    width: 100%;
  }

  .stats-table-row {
    padding: 10px 12px;
  }

  .builder-layout {
    gap: 16px;
  }

  .builder-widget-palette {
    max-width: none;
    padding: 12px;
    border-radius: 18px;
    justify-items: stretch;
  }

  .builder-widget-palette .widget-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
  }

  .builder-widget-palette .widget-btn {
    min-height: 46px;
    padding: 4px 0;
  }

  .builder-widget-palette .widget-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .builder-widget-palette .widget-label {
    font-size: 0.66rem;
  }

  .builder-page .builder-widget-palette {
    display: none;
  }

  .builder-page .widget-fab {
    display: inline-flex;
  }

  .builder-preview {
    position: static;
    justify-items: center;
  }

  .phone-shell {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .phone-bezel {
    border-radius: 28px;
  }

  .phone-screen {
    padding: 12px;
  }

  .preview-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-actions-row .pill-btn,
  .preview-actions-row .inline-btn {
    width: 100%;
  }

  .builder-link-row.compact {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
  }

  .builder-link-row.compact .builder-link {
    width: 100%;
    text-align: center;
  }

  .builder-right,
  .builder-history {
    gap: 12px;
  }

  .builder-section {
    padding: 14px;
  }

  .history-list {
    padding: 8px;
    gap: 4px;
    max-height: 240px;
  }

  .history-item {
    padding: 6px;
    min-height: 30px;
  }

  .history-icon {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .site-header .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .site-header .nav a {
    display: none;
  }

.site-header .nav a.nav-dashboard,
.site-header .nav a[href*="member_links"],
.site-header .nav a[href*="/links"] {
  display: inline-flex;
}

.site-header .nav + .menu-toggle {
  display: inline-flex;
  align-self: center;
}

  .site-header .header-actions > :not(.menu-toggle) {
    display: inline-flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-cta-image img {
    height: 42px;
  }

  .overlay-hero {
    position: static;
    width: auto;
    padding-top: 28px;
  }

  .hero-visual {
    position: static;
    width: min(480px, 90%);
    margin: 20px auto 0;
    justify-content: center;
  }
}

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

  .sky {
    margin: 0;
    border-radius: 0;
  }

  .panel-header {
    padding-top: 23px;
  }

  .site-header {
    gap: 12px;
    align-items: center;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 16px;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav {
    gap: 6px;
    font-size: 0.85rem;
    justify-content: center;
  }

  .site-header .nav {
    display: flex;
    flex-wrap: nowrap;
  }

  .site-header .nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .nav {
    scrollbar-width: none;
  }

  .site-header .nav a,
  .site-header .nav .pill-btn {
    display: none;
  }

  .site-header .nav a.nav-dashboard,
  .site-header .nav a[href*="member_links"],
  .site-header .nav a[href*="/links"],
  .site-header .nav a.nav-cta {
    display: inline-flex;
  }

  .mobile-menu .nav {
    flex-wrap: wrap;
    width: 100%;
  }

  .mobile-menu .nav a,
  .mobile-menu .nav .pill-btn {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-header .logo-row {
    width: 100%;
    justify-content: center;
  }

  .site-header .header-actions {
    display: none;
  }

.mobile-menu .header-actions {
  display: grid;
}

  .site-header .menu-toggle {
    margin-left: 6px;
  }

  .logo-image {
    height: 64px;
  }

  .hero {
    padding: 30px 0 10px;
  }

  .hero-copy {
    text-align: center;
    align-items: center;
  }

  .hero-title-text,
  .hero-subhead-text,
  .hero-trust-text {
    text-align: center;
  }

  .hero-title-text {
    display: none;
  }

  .hero-title-image {
    display: block;
  }

  .hero-subhead-text {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    width: min(420px, 92%);
    margin-top: 14px;
  }

  .hero-visual-image {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .cta {
    flex-direction: column;
    align-items: center;
  }

  .panel {
    padding: 24px;
  }

  body.samples-page .panel {
    padding: 10px;
  }

  body.samples-page .samples-hero {
    padding-top: 12px;
  }
}

@media (max-width: 400px) {
  .builder-page .site-header {
    padding: 0 20px;
  }

  .builder-page .panel {
    padding: 18px;
  }

  .builder-page .builder-layout {
    gap: 12px;
  }

  .builder-page .builder-section {
    padding: 12px;
  }

  .builder-page .builder-widget-palette {
    padding: 10px;
  }

  .builder-page .builder-widget-palette .widget-grid {
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    gap: 6px;
  }

  .builder-page .builder-widget-palette .widget-btn {
    min-height: 42px;
    padding: 2px 0;
  }

  .builder-page .builder-widget-palette .widget-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 0.85rem;
  }

  .builder-page .builder-widget-palette .widget-label {
    font-size: 0.6rem;
  }

  .widget-picker-modal .widget-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .builder-page .phone-shell {
    padding: 10px;
  }

  .builder-page .phone-bezel {
    padding: 10px 8px 12px;
    border-radius: 30px;
  }

  .builder-page .phone-notch {
    width: 140px;
    height: 20px;
  }

  .builder-page .phone-screen {
    padding: 12px;
    border-radius: 22px;
  }

  .builder-quick-actions .pill-btn,
  .builder-quick-actions .builder-link {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .builder-mobile-panels {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
  }

  .panel-pill {
    min-height: 62px;
    padding: 8px 6px;
  }

  .panel-label {
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .builder-page .sky {
    padding-left: 10px;
    padding-right: 10px;
  }

  .builder-page .panel {
    padding: 14px;
  }

  .builder-page .panel-header h1 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .builder-page .builder-preview {
    justify-items: stretch;
  }

  .builder-page .phone-shell {
    width: 100%;
  }

  .builder-page .phone-bezel {
    padding: 8px 6px 10px;
  }

  .builder-page .phone-notch {
    width: 130px;
  }

  .builder-page .phone-screen {
    padding: 10px;
  }

  .builder-page .builder-widget-palette .widget-grid {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    gap: 6px;
  }

  .builder-page .builder-widget-palette .widget-label {
    font-size: 0.58rem;
  }
}
.builder-preview .preview-actions-row {
  display: none;
}
