:root {
  --ink: #10231f;
  --muted: #5b6b66;
  --paper: #f3f7f5;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(16, 35, 31, 0.12);
  --accent: #0f8a74;
  --accent-deep: #0b5f52;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(16, 35, 31, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "Public Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; }
input, select, textarea, button { max-width: 100%; }

.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 138, 116, 0.22), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 88, 120, 0.16), transparent 50%),
    linear-gradient(180deg, #eef5f2 0%, #f7faf8 45%, #e8f0ec 100%);
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.lang-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}
.lang-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.lang-link.is-active {
  background: var(--ink);
  color: #fff;
}
.lang-link:hover { text-decoration: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(243, 247, 245, 0.7);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: #fff; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}
.nav-main,
.nav-aside {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}
.nav-main {
  flex: 1;
  min-width: 0;
  gap: 0.15rem;
}
.nav-main a,
.nav-aside > a {
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 9px;
  white-space: nowrap;
}
.nav-main a:hover,
.nav-aside > a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.nav-main a.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.nav-aside { margin-left: auto; gap: 0.65rem; }
.nav-user { color: var(--muted); font-size: 0.9rem; }

@media (min-width: 901px) and (max-width: 1180px) {
  .nav-user { display: none; }
  .nav-main a,
  .nav-aside > a { padding: 0.38rem 0.55rem; font-size: 0.88rem; }
}
.inline { display: inline; margin: 0; }

.dash-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  padding: 0.25rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.dash-nav-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.dash-nav-link:hover { color: var(--ink); text-decoration: none; }
.dash-nav-link.is-active {
  background: var(--ink);
  color: #fff;
}

.dash-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.3rem;
  padding: 0.25rem;
  margin: 1.25rem 0 1rem;
  max-width: 44rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}
.dash-tabs .media-tab {
  min-height: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-small { padding: 0.4rem 0.7rem; font-size: 0.85rem; }

.page, .dash, .auth-panel {
  width: min(1080px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 34rem) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: calc(100svh - 4.75rem);
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.5rem);
  max-width: 38rem;
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
  line-height: 0.92;
  color: var(--ink);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  line-height: 1.2;
  color: var(--ink);
}

.lede, .section-lede { color: var(--muted); max-width: 36ch; margin: 0; }
.hero .lede { font-size: 1.05rem; line-height: 1.55; max-width: 34ch; }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }

.hero-canvas {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-canvas-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--paper) 0%, transparent 18%),
    linear-gradient(155deg, #0c6b5c 0%, #0f8a74 38%, #163f4f 100%);
}

.hero-canvas-grid {
  position: absolute;
  inset: -10% -5%;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
  animation: grid-drift 18s linear infinite;
}

.hero-scene {
  position: absolute;
  inset: 0;
  display: block;
  animation: float-soft 7s ease-in-out infinite;
}

.hero-site {
  position: absolute;
  top: 7%;
  right: -6%;
  bottom: -10%;
  width: min(540px, 90%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem 1.1rem;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-left: 1px solid rgba(255,255,255,0.35);
}

.hero-site-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.5rem;
}

.hero-site-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(16, 35, 31, 0.18);
}
.hero-site-dot:nth-child(1) { background: #e07a5f; }
.hero-site-dot:nth-child(2) { background: #f2cc8f; }
.hero-site-dot:nth-child(3) { background: #81b29a; }

.hero-site-url {
  margin-left: 0.55rem;
  flex: 1;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(16, 35, 31, 0.55);
  background: rgba(16, 35, 31, 0.06);
}

.hero-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.hero-slot-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 138, 116, 0.85);
}

.hero-slot-fill {
  background:
    linear-gradient(135deg, rgba(15, 138, 116, 0.95), rgba(22, 70, 90, 0.88)),
    repeating-linear-gradient(-24deg, transparent, transparent 10px, rgba(255,255,255,0.07) 10px, rgba(255,255,255,0.07) 20px);
  box-shadow: inset 0 0 0 1px rgba(15, 138, 116, 0.22);
  animation: shimmer 4.5s ease-in-out infinite;
}

.hero-slot-banner .hero-slot-fill {
  height: 52px;
}

.hero-site-body {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.75rem;
  align-items: start;
  flex: 1;
  min-height: 0;
}

.hero-site-article {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.hero-site-headline {
  display: block;
  height: 14px;
  width: 78%;
  margin-bottom: 0.25rem;
  background: rgba(16, 35, 31, 0.16);
}

.hero-site-line {
  display: block;
  height: 8px;
  width: 100%;
  background: rgba(16, 35, 31, 0.07);
}
.hero-site-line.mid { width: 92%; }
.hero-site-line.short { width: 62%; }

.hero-slot-inline {
  margin: 0.35rem 0 0.15rem;
}

.hero-slot-fill-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 72px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 138, 116, 0.28);
  animation: none;
}

.hero-slot-thumb {
  width: 64px;
  height: 48px;
  flex: none;
  background:
    linear-gradient(135deg, rgba(15, 138, 116, 0.95), rgba(22, 70, 90, 0.88));
  animation: shimmer 4.5s ease-in-out infinite;
}

.hero-slot-copy {
  flex: 1;
  display: grid;
  gap: 0.35rem;
}
.hero-slot-copy i {
  display: block;
  height: 7px;
  background: rgba(16, 35, 31, 0.12);
  font-style: normal;
}
.hero-slot-copy i:first-child { width: 78%; height: 9px; background: rgba(16, 35, 31, 0.2); }
.hero-slot-copy i:last-child { width: 52%; }

.hero-slot-side .hero-slot-fill-tall {
  min-height: 168px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.15) brightness(1.06); }
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes grid-drift {
  from { transform: perspective(900px) rotateY(-8deg) rotateX(4deg) translate3d(0, 0, 0); }
  to { transform: perspective(900px) rotateY(-8deg) rotateX(4deg) translate3d(-48px, -24px, 0); }
}

.home-offer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  padding: 1.35rem 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  animation: rise 800ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-offer p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  max-width: 36ch;
  color: var(--ink);
}

.costs {
  width: min(640px, calc(100% - 2rem));
  margin: 0 auto 3.5rem;
}
.costs h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}
.costs-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.costs-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.costs-list dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}
.costs-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.roles {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 5rem;
  padding-top: 1.5rem;
}
.roles h2, .dash h1, .auth-panel h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.roles h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}
.role-grid article {
  padding: 0;
  border-top: 2px solid var(--accent);
  background: transparent;
  padding-top: 1rem;
}
.role-grid h3 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.role-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

body.home .bg-atmosphere {
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(15, 138, 116, 0.28), transparent 58%),
    radial-gradient(780px 460px at 88% 8%, rgba(22, 70, 90, 0.14), transparent 52%),
    linear-gradient(180deg, #e8f3ef 0%, #f3f7f5 42%, #e7efeb 100%);
}
body.home .topbar {
  background: rgba(243, 247, 245, 0.55);
  border-bottom-color: transparent;
}
body.home .site-footer {
  width: min(1120px, calc(100% - 2rem));
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.dash-links {
  display: flex;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; margin: 0 0 0.35rem; }
.muted { color: var(--muted); }
.tiny { font-size: 0.8rem; }
.narrow { max-width: 520px; }

.form-with-preview {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(260px, 1fr);
  gap: 2rem;
  align-items: start;
}
.dash.ad-studio {
  width: min(1200px, calc(100% - 2rem));
}
.ad-studio.form-with-preview {
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  grid-template-areas: "form preview";
  gap: 1.5rem 2rem;
}
.ad-studio .form-pane { grid-area: form; }
.ad-studio .studio-preview { grid-area: preview; }
.ad-studio .preview-toggle { grid-area: toggle; }
.studio-lede { margin: 0 0 1rem; max-width: 40rem; }
.studio-form { display: grid; gap: 1rem; margin: 1rem 0 0; }
.studio-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.studio-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  position: sticky;
  top: 4.6rem;
  z-index: 5;
}
.studio-nav-tab {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 0.5rem;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
}
.studio-nav-tab.is-active {
  background: var(--ink);
  color: #fff;
}
.studio-panel { display: none; }
.studio-panel.is-active { display: grid; gap: 0.75rem; }
.studio-admin-status { margin: 0.75rem 0 0; }
.preview-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.preview-toggle-dims { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.size-more-btn {
  margin-top: 0.65rem;
  border: none;
  background: none;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.55rem 0;
  min-height: 44px;
  text-align: left;
}
.size-picker-extra { display: none; margin-top: 0.5rem; }
.size-picker-extra.is-open { display: grid; }
.dropzone-thumb {
  width: min(100%, 12rem);
  max-height: 7rem;
  object-fit: cover;
  border-radius: 10px;
}
.dropzone.has-file { padding: 0.85rem; }
.dropzone { font-weight: 600; }
.studio-fields { display: grid; gap: 0.85rem; }
.studio-group-label {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.studio-card > .studio-group-label:first-of-type { margin-top: 0; }
.studio-tabs { margin-bottom: 0.85rem; }
.studio-look-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
.studio-colors { margin-top: 0.85rem; }
.studio-actions {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 0 calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, var(--paper) 28%);
}

.sr-only-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.size-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.6rem, 1fr));
  gap: 0.5rem;
}
.size-card {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.7rem 0.4rem 0.7rem;
  min-height: 5.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: center;
}
.size-card:hover { border-color: rgba(15, 138, 116, 0.45); }
.size-card.is-active {
  border-color: var(--accent);
  background: rgba(15, 138, 116, 0.08);
  box-shadow: 0 0 0 1px var(--accent);
}
.size-card-frame {
  width: 2.6rem;
  height: 1.7rem;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.45;
  aspect-ratio: var(--sw, 300) / var(--sh, 250);
  max-width: 2.8rem;
  max-height: 1.8rem;
}
.size-card-dims { font-weight: 700; font-size: 0.78rem; letter-spacing: -0.02em; }
.size-card-name { font-size: 0.68rem; color: var(--muted); line-height: 1.2; }

.dropzone {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  margin: 0.55rem 0 0.85rem;
}
.dropzone:hover, .dropzone.is-drag {
  border-color: var(--accent);
  background: rgba(15, 138, 116, 0.06);
}
.dropzone-icon {
  width: 2.1rem;
  height: 1.55rem;
  border: 2px solid var(--accent);
  border-radius: 5px;
  position: relative;
}
.dropzone-icon::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.28rem;
  height: 0.45rem;
  background: rgba(15, 138, 116, 0.35);
  border-radius: 2px;
}
.dropzone-icon-video { border-radius: 6px; }
.dropzone-title { font-size: 0.92rem; }
.dropzone-file { font-size: 0.78rem; color: var(--muted); font-weight: 500; min-height: 1.1em; }

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.choice-chip:hover { border-color: rgba(15, 138, 116, 0.45); }
.choice-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.layout-icon {
  width: 1.15rem;
  height: 0.9rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
  opacity: 0.85;
}
.layout-icon-top::after,
.layout-icon-bottom::after,
.layout-icon-left::after,
.layout-icon-right::after,
.layout-icon-full::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: 0.45;
}
.layout-icon-top::after { left: 1px; right: 1px; top: 1px; height: 35%; }
.layout-icon-bottom::after { left: 1px; right: 1px; bottom: 1px; height: 35%; }
.layout-icon-left::after { top: 1px; bottom: 1px; left: 1px; width: 38%; }
.layout-icon-right::after { top: 1px; bottom: 1px; right: 1px; width: 38%; }
.layout-icon-full::after { inset: 1px; }

.form-pane h1 { margin-bottom: 1rem; }
.ad-studio .form-pane h1 { margin-bottom: 0.35rem; }
.preview-pane {
  position: sticky;
  top: 5.5rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.preview-head h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.preview-stage {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(16, 35, 31, 0.04) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(rgba(16, 35, 31, 0.04) 1px, transparent 1px) 0 0 / 16px 16px,
    #fff;
  border: 1px dashed var(--line);
  overflow: auto;
}

.ad-preview {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(16, 35, 31, 0.18);
  box-shadow: 0 10px 28px rgba(16, 35, 31, 0.1);
  overflow: hidden;
  transition: width 180ms ease, height 180ms ease;
  position: relative;
}
.ad-preview.layout-top { flex-direction: column; }
.ad-preview.layout-bottom { flex-direction: column-reverse; }
.ad-preview.layout-left { flex-direction: row; }
.ad-preview.layout-right { flex-direction: row-reverse; }
.ad-preview.layout-full .ad-preview-media {
  position: absolute;
  inset: 0;
  flex: none;
  min-height: 100%;
  z-index: 0;
}
.ad-preview.layout-full .ad-preview-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
}
.ad-preview.layout-full .ad-preview-headline,
.ad-preview.layout-full .ad-preview-body,
.ad-preview.layout-full .ad-preview-brand { color: #fff; }
.ad-preview.layout-left .ad-preview-media,
.ad-preview.layout-right .ad-preview-media {
  flex: 0 0 42%;
  min-height: 100%;
}
.ad-preview.layout-left .ad-preview-copy,
.ad-preview.layout-right .ad-preview-copy {
  flex: 1;
  justify-content: center;
}
.ad-preview.card-border { border: 1px solid rgba(16, 35, 31, 0.18); border-radius: 8px; box-shadow: none; }
.ad-preview.card-shadow { border: none; border-radius: 10px; box-shadow: 0 12px 30px rgba(16, 35, 31, 0.16); }
.ad-preview.card-flat { border: none; border-radius: 0; box-shadow: none; }
.ad-preview.card-rounded { border: 1px solid rgba(16, 35, 31, 0.12); border-radius: 16px; box-shadow: none; }

.ad-preview.is-banner {
  flex-direction: row;
}
.ad-preview.is-banner .ad-preview-media {
  width: 38%;
  min-height: 100%;
  flex: 0 0 38%;
}
.ad-preview.is-banner .ad-preview-copy {
  flex: 1;
  justify-content: center;
}
.ad-preview.is-skyscraper .ad-preview-media {
  flex: 1 1 auto;
  min-height: 55%;
}
.ad-preview-media {
  flex: 1 1 55%;
  min-height: 48%;
  background: linear-gradient(135deg, rgba(15, 138, 116, 0.2), rgba(22, 70, 90, 0.18));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.ad-preview-media video,
.ad-preview-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-preview-placeholder {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 35, 31, 0.45);
}
.ad-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem 0.7rem;
  background: #fff;
}
.ad-preview-headline {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2.4vw, 0.95rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.ad-preview-body {
  font-size: clamp(0.65rem, 1.8vw, 0.78rem);
  line-height: 1.35;
  color: var(--muted);
}
.ad-preview.image-only .ad-preview-copy {
  display: none !important;
}
.ad-preview.image-only .ad-preview-media {
  flex: 1 1 auto !important;
  width: 100%;
  height: 100%;
  max-width: none;
}
.ad-preview-brand {
  margin-top: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 35, 31, 0.45);
}

.ad-list-thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
  border-radius: 8px;
  background: rgba(16, 35, 31, 0.04);
  border: 1px solid rgba(16, 35, 31, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-list-thumb-scale {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  pointer-events: none;
}
.ad-list-thumb .ad-preview {
  transition: none;
  box-shadow: none;
}
.ad-preview-cell {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.ads-list-table .ad-preview-cell {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.placement-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  background: rgba(15, 138, 116, 0.08);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: width 180ms ease, height 180ms ease;
}

@media (max-width: 860px) {
  .form-with-preview { grid-template-columns: 1fr; }
  .preview-pane { position: static; }
  .ad-studio.form-with-preview {
    grid-template-columns: 1fr;
    grid-template-areas:
      "toggle"
      "preview"
      "form";
    gap: 0.85rem;
  }
  .ad-studio .preview-toggle { display: flex; }
  .ad-studio .studio-preview {
    display: none;
    position: static;
    order: 0;
  }
  .ad-studio.is-preview-open .studio-preview {
    display: block;
    position: sticky;
    top: 4.35rem;
    z-index: 6;
    padding: 0.75rem 0.85rem;
    max-height: min(52vh, 22rem);
    overflow: auto;
  }
  .ad-studio.is-preview-open .preview-stage { min-height: 120px; padding: 0.5rem; }
  .ad-studio .preview-note { display: none; }
  .studio-nav { top: 4.35rem; }
  .studio-look-grid { grid-template-columns: 1fr; }
  .studio-actions .btn { flex: 1 1 auto; min-width: min(100%, 9rem); }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.stat-row div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.stat-row span { color: var(--muted); font-size: 0.85rem; }

.stats-period { margin: 0 0 2rem; }
.stats-period h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.2rem;
}
.stats-period-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.stats-grains {
  margin: 0;
  max-width: 22rem;
  flex: 1 1 16rem;
}
.stats-grains.dash-tabs { display: grid; }
.stats-grains .media-tab {
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stat-meter {
  display: block;
  height: 6px;
  margin-top: 0.4rem;
  border-radius: 99px;
  background: rgba(15, 138, 116, 0.12);
  overflow: hidden;
  max-width: 12rem;
}
.stat-meter > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

.table-wrap { overflow-x: auto; margin: 1rem 0 2rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
table.data-table tbody tr:hover td { background: rgba(15, 138, 116, 0.05); }
.data-table .embed {
  width: 100%;
  min-width: 0;
  max-width: 22rem;
  font-size: 0.78rem;
}
.data-table code { word-break: break-all; }
.filters {
  margin: 0 0 1rem;
  align-items: flex-end;
}
.filters label {
  display: grid;
  gap: 0.3rem;
  min-width: min(100%, 12rem);
}
.actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.users-filters {
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.users-filters input[type="search"] {
  min-width: min(220px, 100%);
}
.users-filters input[type="date"] {
  min-width: 9.5rem;
}
.audit-pager {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 0;
}
.stat-row.compact { margin-bottom: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.row-link { cursor: pointer; }
.row-link:hover td { background: rgba(15, 138, 116, 0.06); }
.row-link:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-transform: capitalize;
}
.pill.status-approved { border-color: rgba(15, 138, 116, 0.45); color: var(--brand, #0f8a74); }
.pill.status-pending { border-color: rgba(180, 120, 20, 0.45); color: #9a6b10; }
.pill.status-rejected { border-color: rgba(180, 35, 24, 0.35); color: var(--danger); }

.stack { display: grid; gap: 0.9rem; margin: 1rem 0; }
.stack label, .embed-label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
input, select, textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.flash.error {
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}
.flash.success {
  background: rgba(15, 138, 116, 0.1);
  color: var(--brand, #0f8a74);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}
.check-row input {
  width: auto;
  margin: 0;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem 0.85rem;
  margin-top: 0.55rem;
}
.device-targets {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
  background: rgba(255,255,255,0.4);
}
.device-targets legend {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0 0.35rem;
}
.verify-box {
  margin: 1.25rem 0 2rem;
  padding: 1.25rem 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 138, 116, 0.04);
}
.verify-box h2 {
  margin: 0 0 0.35rem;
}
.verify-steps {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.verify-steps p {
  margin: 0;
}
.inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.auth-panel {
  max-width: 420px;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: rise 500ms ease both;
}
#register-website[hidden] { display: none !important; }
#register-website { display: grid; gap: 0.35rem; }

.placement-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.code {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.25rem 0.5rem;
  background: rgba(15, 138, 116, 0.08);
  border-radius: 6px;
  font-size: 0.85rem;
}
.embed {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  resize: vertical;
}
.inline-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.inline-row > * { min-width: 0; }
.filters input,
.filters select,
.users-filters input,
.users-filters select {
  width: auto;
  min-width: min(180px, 100%);
  flex: 1 1 140px;
}

.image-fields {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 0.85rem;
}
.image-fields legend {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0 0.35rem;
}
.media-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
}
.media-tab {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 650;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
}
.media-tab.is-active {
  background: var(--accent);
  color: #fff;
}
.media-panel { display: none; }
.media-panel.is-active { display: block; }

.color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.color-row input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 0.25rem;
  cursor: pointer;
}
.style-fields label { font-weight: 600; }

.schedule-box {
  margin: 0.5rem 0 2rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  max-width: 640px;
}
.schedule-box h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}
.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--brand, #0f8a74); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}
.footer-contact a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.footer-contact a:hover { color: var(--brand, #0f8a74); }

.home-guides {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
}
.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.guide-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.72), rgba(232,244,239,0.55));
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 138, 116, 0.35);
}
.guide-card h2,
.guide-card h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.25rem;
}
.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.guide-card-cta {
  font-weight: 700;
  color: var(--brand, #0f8a74);
  margin-top: 0.35rem;
}

.guide {
  width: min(760px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}
.guide h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0.35rem 0 0.75rem;
}
.guide .lede {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1.5rem;
}
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0 0 2rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.guide-toc a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.guide-toc a:hover { color: var(--brand, #0f8a74); }
.guide section {
  margin: 0 0 2rem;
}
.guide h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
}
.guide h3 {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.45rem;
}
.guide p, .guide li {
  line-height: 1.55;
  color: var(--ink);
}
.guide-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}
.guide-code {
  margin: 0.85rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: #10231f;
  color: #e7f3ef;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.guide-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}
.guide-check {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}
.guide-next {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.guide-next a {
  font-weight: 700;
  color: var(--brand, #0f8a74);
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-copy {
    padding: 2.25rem 1.25rem 1.5rem;
    max-width: none;
  }
  .hero-canvas {
    position: relative;
    inset: auto;
    height: min(52vw, 320px);
    min-height: 240px;
    margin-top: 0.25rem;
  }
  .hero-canvas-wash {
    background:
      linear-gradient(180deg, var(--paper) 0%, transparent 22%),
      linear-gradient(155deg, #0c6b5c 0%, #0f8a74 38%, #163f4f 100%);
  }
  .hero-scene {
    inset: 0;
  }
  .hero-site {
    top: 8%;
    right: -10%;
    bottom: -14%;
    width: min(380px, 82%);
    padding: 0.7rem 0.75rem 0.85rem;
    gap: 0.5rem;
  }
  .hero-slot-banner .hero-slot-fill { height: 36px; }
  .hero-slot-side .hero-slot-fill-tall { min-height: 110px; }
  .hero-slot-fill-row { min-height: 56px; }
  .hero-slot-thumb { width: 48px; height: 36px; }
  .role-grid, .placement-block { grid-template-columns: 1fr; }
  .home-offer {
    align-items: flex-start;
    flex-direction: column;
  }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .dash-head {
    flex-direction: column;
    align-items: stretch;
  }
  .dash-head .btn { align-self: flex-start; }
  .stats-period-head {
    flex-direction: column;
    align-items: stretch;
  }
  .stats-grains { max-width: none; }
  .color-row { grid-template-columns: 1fr; }
  .page .dash {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
  }
  .brand {
    font-size: 1.1rem;
    line-height: 1.1;
  }
  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }
  .nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0.15rem 0 0;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav-main,
  .nav-aside {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    gap: 0;
  }
  .nav-main a,
  .nav-aside > a,
  .nav .nav-user,
  .nav .lang-switch,
  .nav .inline {
    padding: 0.85rem 0.1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-main a,
  .nav-aside > a {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-main a.is-active {
    color: var(--accent-deep);
    background: rgba(15, 138, 116, 0.08);
    padding-left: 0.65rem;
  }
  .nav-main a:hover,
  .nav-aside > a:hover { color: var(--accent-deep); }
  .nav-aside > a.btn {
    margin-top: 0.75rem;
    border-bottom: none;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
  }
  .nav .inline {
    border-bottom: none;
    padding-top: 0.85rem;
  }
  .nav .inline .btn { width: 100%; }
  .nav .lang-switch {
    align-self: flex-start;
    border-bottom: none;
    padding-bottom: 0.35rem;
  }
  .page, .dash, .auth-panel {
    width: min(1080px, calc(100% - 1.25rem));
    margin: 1.25rem auto 3rem;
  }
  .roles,
  .home-guides,
  .home-offer,
  .site-footer,
  body.home .site-footer {
    width: min(1120px, calc(100% - 1.25rem));
  }
  .guide {
    width: min(760px, calc(100% - 1.25rem));
    margin: 1.25rem auto 2.5rem;
  }
  .auth-panel {
    padding: 1.35rem 1.15rem;
    border-radius: 14px;
  }
  .guide-cards { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .table-wrap {
    margin-inline: 0;
    padding-bottom: 0;
    overflow: visible;
  }
  table:not(.data-table) { min-width: 540px; }
  .table-wrap:has(table:not(.data-table)) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  th, td { padding: 0.65rem 0.4rem; font-size: 0.92rem; }
  .data-table {
    min-width: 0;
  }
  .data-table thead { display: none; }
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table tbody { display: grid; gap: 0.75rem; }
  .data-table tr {
    margin: 0;
    padding: 0.35rem 0.9rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
  }
  .data-table td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 38%) 1fr;
    gap: 0.55rem;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: 0.55rem 0;
  }
  .data-table td:last-child { border-bottom: none; }
  .data-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.15rem;
  }
  .data-table td.table-empty,
  .data-table td[colspan] {
    display: block;
    border-bottom: none;
    padding: 0.85rem 0;
  }
  .data-table td.table-empty::before,
  .data-table td[colspan]::before { display: none; content: none; }
  .data-table td.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding-top: 0.7rem;
  }
  .data-table td.actions::before { display: none; content: none; }
  .data-table td.ad-preview-cell {
    grid-template-columns: 1fr;
  }
  .data-table td.ad-preview-cell::before {
    margin-bottom: 0.35rem;
  }
  .data-table .row-link:hover td { background: transparent; }
  .data-table .embed { max-width: 100%; }
  .preview-pane { padding: 0.85rem; }
  .preview-stage {
    min-height: 160px;
    padding: 0.65rem;
  }
  .schedule-box,
  .image-fields,
  .device-targets {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .ad-studio .studio-tabs { grid-template-columns: 1fr 1fr; }
  .dash.ad-studio {
    width: min(1200px, calc(100% - 1.25rem));
  }
  .check-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; min-width: min(100%, 10rem); }
  .brand-mark { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .hero h1 { max-width: none; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-row strong { font-size: 1.35rem; }
  .hero-canvas {
    height: 220px;
    min-height: 200px;
  }
  .hero-site {
    width: min(310px, 88%);
    padding: 0.6rem 0.65rem 0.75rem;
  }
  .hero-site-body { grid-template-columns: 1fr; gap: 0.55rem; }
  .hero-slot-side { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn,
  .auth-panel .btn,
  .home-offer .btn { width: 100%; }
  .dash-head .btn,
  .inline-row .btn,
  .actions .btn { width: auto; }
  .actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .home-offer,
  .hero-scene,
  .hero-canvas-grid,
  .hero-slot-fill,
  .hero-slot-thumb,
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Creator workspace */
body.creator-app .page {
  width: min(1180px, calc(100% - 1.25rem));
  margin: 1rem auto 3.5rem;
}
.cr { display: grid; gap: 1.1rem; }
.cr-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.cr-id {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}
.cr-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  background: var(--bio-theme, var(--accent));
  box-shadow: 0 0 0 3px #fff, 0 8px 20px rgba(16, 35, 31, 0.12);
}
.cr-id-copy { min-width: 0; }
.cr-id-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
}
.cr-lede { margin: 0.3rem 0 0; max-width: 42ch; }
.cr-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.cr-balance {
  display: grid;
  gap: 0.1rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.cr-balance:hover { text-decoration: none; border-color: var(--accent); }
.cr-balance span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cr-balance strong { font-family: var(--font-display); font-size: 1.05rem; }
.cr-copy.is-copied { border-color: var(--accent); color: var(--accent-deep); }

.cr-card {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(16, 35, 31, 0.04);
}
.cr-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.cr-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
}
.cr-chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.cr-chip-ok {
  border-color: rgba(15, 138, 116, 0.4);
  color: var(--accent-deep);
  background: rgba(15, 138, 116, 0.08);
}

.cr-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.35rem;
  align-items: start;
}
.cr-editor { display: grid; gap: 1rem; }
.cr-card label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; margin: 0 0 0.85rem; }
.cr-save { width: 100%; min-height: 46px; }
.cr-theme {
  border: 0;
  margin: 0 0 0.85rem;
  padding: 0;
}
.cr-theme legend { font-weight: 600; font-size: 0.9rem; padding: 0; }
.cr-look {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}
.cr-look legend { font-weight: 600; font-size: 0.9rem; padding: 0; }
.cr-look-k {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.7rem 0 0.35rem;
}
.cr-look-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cr-card label.cr-look-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  position: relative;
}
.cr-look-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.cr-look-opt span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.cr-look-opt input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cr-look-opt input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent-deep, var(--accent));
}
.cr-look-shape {
  display: inline-block;
  width: 1.15rem;
  height: 0.7rem;
  border: 1.5px solid currentColor;
  background: color-mix(in srgb, currentColor 18%, #fff);
  flex-shrink: 0;
}
.cr-look-shape--round { border-radius: 6px; }
.cr-look-shape--pill { border-radius: 999px; }
.cr-look-shape--square { border-radius: 2px; }
.cr-card label.cr-look-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.cr-look-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}
.cr-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.45rem;
}
.cr-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  background: var(--sw);
  cursor: pointer;
  padding: 0;
}
.cr-swatch.is-on { box-shadow: 0 0 0 2px var(--ink); }
.cr-swatch-custom {
  width: 2rem;
  height: 2rem;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1px dashed var(--line);
}
.cr-swatch-custom input {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  transform: translate(-0.5rem, -0.5rem);
  cursor: pointer;
}

.cr-add-link {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  align-items: stretch;
}
.cr-add-link .btn { min-height: 44px; white-space: nowrap; }
.cr-plats-label {
  font-weight: 650;
  margin: 0.35rem 0 0.4rem;
}
.cr-plats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.8rem, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.cr-plat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink);
  min-height: 4.55rem;
  line-height: 1.15;
  text-align: center;
}
.cr-plat:hover,
.cr-plat.is-on {
  border-color: var(--bio-link, var(--accent));
  background: color-mix(in srgb, var(--bio-link, var(--accent)) 9%, #fff);
}
.cr-plat .bio-ico {
  width: 1.7rem;
  height: 1.7rem;
}
.cr-plat .bio-ico svg { width: 0.92rem; height: 0.92rem; }
.cr-add-plat {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  background: #f7faf8;
  margin: 0 0 1rem;
}
.cr-add-plat[hidden] { display: none !important; }
.cr-add-plat-name { font-weight: 800; margin: 0; }
.cr-add-plat label,
.cr-edit-form label { margin-bottom: 0; }
.cr-edit-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.cr-link-edit summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
  list-style: none;
}
.cr-link-edit summary::-webkit-details-marker { display: none; }
.cr-link-edit[open] summary { color: var(--accent-deep, var(--accent)); }
.cr-empty {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.cr-empty strong { display: block; margin-bottom: 0.25rem; }
.cr-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.cr-link {
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.cr-link-main {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}
.cr-link-move { display: grid; gap: 0.15rem; }
.cr-icon-btn {
  width: 2rem;
  height: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf8;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--ink);
}
.cr-icon-btn:disabled { opacity: 0.35; cursor: default; }
.cr-link-ico { display: grid; place-items: center; }
.cr-link-ico .bio-ico { width: 2.05rem; height: 2.05rem; }
.cr-link-body { min-width: 0; display: grid; gap: 0.15rem; }
.cr-link-url { word-break: break-all; }
.cr-link-actions { display: flex; gap: 0.35rem; align-items: center; }
.cr-switch {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 0.85rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin: 0 0 0.65rem;
  font-weight: 500;
  cursor: pointer;
}
.cr-switch strong { display: block; }
.cr-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.cr-switch-ui {
  width: 2.6rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #d5ddd9;
  position: relative;
  margin-top: 0.15rem;
  flex-shrink: 0;
  grid-row: 1 / span 2;
}
.cr-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 35, 31, 0.2);
  transition: transform 160ms ease;
}
.cr-switch input:checked + .cr-switch-ui { background: var(--accent); }
.cr-switch input:checked + .cr-switch-ui::after { transform: translateX(1.1rem); }
.cr-switch input:focus-visible + .cr-switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-earn-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cr-earn-actions .btn { min-height: 44px; }

.cr-preview-col { min-width: 0; }
.cr-preview-sticky {
  position: sticky;
  top: 5.25rem;
}
.cr-preview-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.cr-phone {
  width: min(320px, 100%);
  margin: 0 auto;
  min-height: 520px;
  border-radius: 32px;
  border: 10px solid #1a2422;
  background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px rgba(16, 35, 31, 0.08);
  padding: 0 0.9rem 1.1rem;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.cr-phone-notch {
  width: 5.5rem;
  height: 0.7rem;
  margin: 0.45rem auto 0;
  background: #1a2422;
  border-radius: 0 0 10px 10px;
}
.bio-preview-bio.is-empty { display: none; }
.bio-preview-ad.is-off { display: none; }

.cr-aff {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.15rem;
  align-items: start;
}
.cr-post-list, .cr-offer-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.cr-post, .cr-offer {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.cr-post { padding: 0.9rem; display: grid; gap: 0.7rem; }
.cr-post-main { display: grid; gap: 0.25rem; min-width: 0; }
.cr-post-url { display: block; word-break: break-all; font-size: 0.8rem; }
.cr-post-meta { display: flex; flex-wrap: wrap; gap: 0.45rem 0.75rem; align-items: center; }
.cr-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cr-post-actions form { margin: 0; }
.cr-offer { display: grid; }
.cr-offer-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: linear-gradient(160deg, var(--aff-brand, var(--accent)), #123);
}
.cr-offer-img--empty { min-height: 88px; height: 88px; }
.cr-offer-body { padding: 0.85rem 0.95rem 1rem; display: grid; gap: 0.35rem; }
.cr-offer-body h3 { margin: 0; font-size: 1.05rem; }
.cr-offer-form { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.cr-offer-form .btn { min-height: 44px; }

.cr-pay {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.15rem;
  align-items: start;
}
.cr-pay-hero { padding: 1.25rem 1.25rem 1.4rem; }
.cr-pay-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.7rem);
  letter-spacing: -0.04em;
  margin: 0.15rem 0 0.35rem;
  line-height: 1.05;
}
.cr-pay-amount span { font-size: 0.45em; color: var(--muted); letter-spacing: 0; }
.cr-pay-form { display: grid; gap: 0.75rem; margin-top: 1rem; }
.cr-pay-form .btn { min-height: 48px; }
.cr-pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.cr-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.cr-stat-grid div {
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}
.cr-stat-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.cr-stat-grid span { color: var(--muted); font-size: 0.78rem; }
.cr-tin-form { display: grid; gap: 0.65rem; margin-top: 0.75rem; }

.bio-handle-row {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.15rem 0.55rem;
  background: #fff;
}
.bio-handle-prefix {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.bio-handle-row input {
  border: 0;
  outline: none;
  flex: 1;
  min-width: 0;
  background: transparent;
}

.bio-preview-banner,
.bio-public-banner {
  height: 88px;
  margin: 0 -0.9rem;
  background: linear-gradient(160deg, var(--bio-theme, var(--accent)), color-mix(in srgb, var(--bio-theme, var(--accent)) 55%, #0a2e28));
}
.bio-preview-avatar,
.bio-public-avatar {
  width: 84px;
  height: 84px;
  margin: -42px auto 0.65rem;
  border-radius: 50%;
  background: #dff0eb;
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(16, 35, 31, 0.12);
}
.bio-preview-name { font-family: var(--font-display); font-weight: 800; margin: 0; }
.bio-preview-handle, .bio-public-handle { color: var(--muted); margin: 0.15rem 0 0.75rem; font-size: 0.92rem; }
.bio-preview-bio, .bio-public-bio { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.bio-preview-links, .bio-public-links {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0;
}
.bio-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.85rem;
  border-radius: 16px;
  border: 1.5px solid color-mix(in srgb, var(--bio-link, var(--bio-theme, #0f8a74)) 32%, var(--line));
  background: #fff;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  box-shadow: 0 1px 0 rgba(16, 35, 31, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
a.bio-btn:hover {
  border-color: var(--bio-link, var(--bio-theme, var(--accent)));
  transform: translateY(-1px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--bio-link, var(--bio-theme, #0f8a74)) 18%, transparent);
  text-decoration: none;
}
.bio-btn-text { flex: 1; min-width: 0; }
.bio-btn-go {
  color: var(--bio-link, var(--bio-theme, var(--accent)));
  font-weight: 800;
  opacity: 0.9;
}
.bio-ico {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bio-link, #0f8a74);
  color: #fff;
}
.bio-ico svg { width: 1.12rem; height: 1.12rem; display: block; }
.bio-ico--snapchat { color: #111; }

.bio-look--filled .bio-btn {
  background: var(--bio-link, var(--bio-theme, #0f8a74));
  color: var(--bio-on, #fff);
  border-color: transparent;
}
.bio-look--filled .bio-ico {
  background: color-mix(in srgb, var(--bio-on, #fff) 18%, transparent);
  color: var(--bio-on, #fff);
}
.bio-look--filled .bio-ico--snapchat {
  color: #111;
  background: rgba(0, 0, 0, 0.12);
}
.bio-look--filled .bio-btn-go { color: var(--bio-on, #fff); }
.bio-look--filled a.bio-btn:hover {
  border-color: transparent;
  filter: brightness(1.06);
}

.bio-look--theme .bio-btn {
  background: var(--bio-theme, #0f8a74);
  color: var(--bio-theme-on, #fff);
  border-color: transparent;
}
.bio-look--theme .bio-ico {
  background: color-mix(in srgb, var(--bio-theme-on, #fff) 18%, transparent);
  color: var(--bio-theme-on, #fff);
}
.bio-look--theme .bio-btn-go { color: var(--bio-theme-on, #fff); }
.bio-look--theme a.bio-btn:hover {
  border-color: transparent;
  filter: brightness(1.06);
}

.bio-look--outline .bio-btn {
  background: transparent;
  border-width: 2px;
  border-color: var(--bio-link, var(--bio-theme, #0f8a74));
  box-shadow: none;
}
.bio-look--outline a.bio-btn:hover {
  background: color-mix(in srgb, var(--bio-link, var(--bio-theme, #0f8a74)) 8%, #fff);
}

.bio-look--soft .bio-btn {
  background: color-mix(in srgb, var(--bio-link, var(--bio-theme, #0f8a74)) 14%, #fff);
  border-color: transparent;
}

.bio-shape--pill .bio-btn { border-radius: 999px; }
.bio-shape--square .bio-btn { border-radius: 8px; }
.bio-shape--square .bio-ico { border-radius: 7px; }
.bio-shape--round .bio-btn { border-radius: 16px; }

.bio-shadow--none .bio-btn { box-shadow: none; }
.bio-shadow--soft .bio-btn {
  box-shadow: 0 8px 18px color-mix(in srgb, var(--bio-link, var(--bio-theme, #0f8a74)) 22%, transparent);
}
.bio-shadow--hard .bio-btn {
  box-shadow: 3px 3px 0 var(--bio-link, var(--bio-theme, #0f8a74));
}
.bio-look--filled.bio-shadow--hard .bio-btn,
.bio-look--theme.bio-shadow--hard .bio-btn {
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--bio-link, var(--bio-theme, #0f8a74)) 55%, #000);
}
.bio-shadow--hard a.bio-btn:hover { transform: translate(-1px, -1px); }

.bio-size--sm .bio-btn { padding: 0.48rem 0.7rem; font-size: 0.86rem; }
.bio-size--sm .bio-ico { width: 1.7rem; height: 1.7rem; }
.bio-size--sm .bio-ico svg { width: 0.9rem; height: 0.9rem; }
.bio-size--lg .bio-btn { padding: 0.95rem 1.05rem; font-size: 1.02rem; }
.bio-size--lg .bio-ico { width: 2.4rem; height: 2.4rem; }

.bio-icons-off .bio-ico { display: none; }
.bio-arrows-off .bio-btn-go { display: none; }
.bio-align--center .bio-btn { justify-content: center; text-align: center; }
.bio-align--center .bio-btn-text { flex: 0 1 auto; }
.bio-preview-link, .bio-public-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f7faf8;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.bio-public-link:hover { border-color: var(--bio-theme, var(--accent)); text-decoration: none; transform: translateY(-1px); }
.bio-public-go { color: var(--bio-theme, var(--accent)); font-weight: 800; }
.bio-preview-ad {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.bio-preview-footer, .bio-public-footer {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.bio-public-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 50% -10%, color-mix(in srgb, var(--bio-theme, #0f8a74) 28%, transparent), transparent 55%),
    linear-gradient(180deg, #eef5f2 0%, #f7faf8 100%);
}
.bio-public {
  width: min(420px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}
.bio-public-card {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0 1.15rem 1.35rem;
  text-align: center;
  overflow: hidden;
}
.bio-public-card h1 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
}
.bio-public-ad { margin: 1rem 0; min-height: 40px; }
.bio-public-banner { margin: 0 -1.15rem; }

@media (max-width: 980px) {
  .cr-studio,
  .cr-aff,
  .cr-pay { grid-template-columns: 1fr; }
  .cr-preview-col { order: -1; }
  .cr-preview-sticky {
    position: sticky;
    top: 4.35rem;
    z-index: 5;
    padding-bottom: 0.35rem;
    background: linear-gradient(180deg, rgba(243, 247, 245, 0.96) 70%, transparent);
  }
  .cr-phone {
    width: min(280px, 100%);
    min-height: 0;
    max-height: 42vh;
    overflow: auto;
    border-width: 8px;
    border-radius: 26px;
    -webkit-overflow-scrolling: touch;
  }
  .cr-aff-posts { order: -1; }
}

@media (max-width: 700px) {
  .cr-add-link,
  .cr-pay-row { grid-template-columns: 1fr; }
  .cr-top-actions { width: 100%; }
  .cr-top-actions .btn,
  .cr-balance { flex: 1 1 auto; justify-content: center; }
  .cr-handle-host { display: none; }
  .cr-stat-grid { grid-template-columns: 1fr; }
  .cr-link-main {
    grid-template-columns: auto auto minmax(0, 1fr);
  }
  .cr-link-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .creator-app .dash-nav { margin-bottom: 0.35rem; }
}

@media (min-width: 981px) {
  .cr-offer {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .cr-offer-img,
  .cr-offer-img--empty {
    width: 120px;
    height: 100%;
    min-height: 120px;
  }
}

/* Creator Bio Studio (legacy hooks) */
.bio-studio {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 4rem;
  padding-top: 1.5rem;
}

/* Affiliate landing */
.aff-land-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgba(15, 138, 116, 0.12), transparent 50%),
    var(--bg, var(--paper));
}
.aff-land {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}
.aff-brand-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.aff-promoter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--aff-promoter, var(--accent)) 18%, transparent);
  color: var(--aff-promoter, var(--accent));
  font-weight: 600;
  font-size: 0.88rem;
}
.aff-via { color: var(--muted); font-size: 0.85rem; }
.aff-land-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.aff-land-media {
  aspect-ratio: 1.91 / 1;
  background: linear-gradient(135deg, var(--aff-brand, var(--accent)), color-mix(in srgb, var(--aff-brand, var(--accent)) 55%, #0a2e28));
  overflow: hidden;
}
.aff-land-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.aff-land-media--fallback { min-height: 180px; }
.aff-land-copy { padding: 1.25rem 1.35rem 1.5rem; }
.aff-brand-name {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aff-brand, var(--accent));
  font-weight: 700;
}
.aff-land-copy h1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.aff-caption { margin: 0 0 0.75rem; color: var(--text, var(--ink)); }
.aff-cta { display: inline-flex; margin-top: 0.5rem; min-width: 10rem; justify-content: center; }
.aff-land-footer { margin: 1rem 0 0; }
.aff-offer-grid {
  display: grid;
  gap: 1rem;
}
.aff-offer-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface, #fff);
}
.aff-offer-img {
  width: 96px;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
  display: block;
}
.aff-offer-img--empty {
  background: linear-gradient(160deg, var(--aff-brand, var(--accent)), color-mix(in srgb, var(--aff-brand, var(--accent)) 40%, #123));
}
.aff-offer-body { padding: 0.75rem 0.85rem 0.85rem 0; }
.aff-offer-body h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.inline-form { display: inline; }

@media (max-width: 900px) {
  .aff-offer-card { grid-template-columns: 1fr; }
  .aff-offer-img { width: 100%; height: 140px; }
}


/* —— Compare page —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.compare-page .brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0.35rem;
  color: var(--accent-deep);
}
.compare-hero,
.compare-network,
.compare-pitch,
.compare-table-section,
.compare-join,
.compare-faq,
.compare-bottom-cta {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}
.compare-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.compare-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.12;
  margin: 0.2rem 0 0.85rem;
  max-width: 18ch;
}
.compare-hero .lede {
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 48ch;
  color: var(--muted);
}
.compare-hero-promise {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(15, 138, 116, 0.08);
  border-radius: 0 10px 10px 0;
  font-weight: 600;
  max-width: 46ch;
}
.compare-hero-actions { margin-top: 1.5rem; }
.btn-alt {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-alt:hover {
  background: #1a3530;
  text-decoration: none;
}
.compare-hero-visual {
  min-height: 280px;
  display: grid;
  place-items: center;
}
.compare-orbit {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 138, 116, 0.18), transparent 55%),
    conic-gradient(from 210deg, rgba(15, 138, 116, 0.25), transparent 40%, rgba(34, 88, 120, 0.2), transparent 75%, rgba(15, 138, 116, 0.2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: compare-spin 28s linear infinite;
}
.compare-orbit-node {
  position: absolute;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(16, 35, 31, 0.08);
  animation: compare-spin-rev 28s linear infinite;
}
.compare-orbit-pub { top: 12%; left: 50%; transform: translateX(-50%); }
.compare-orbit-bio { top: 50%; right: 6%; transform: translateY(-50%); }
.compare-orbit-space { bottom: 12%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-color: var(--ink); }
.compare-orbit-adv { top: 50%; left: 6%; transform: translateY(-50%); }
@keyframes compare-spin { to { transform: rotate(360deg); } }
@keyframes compare-spin-rev { to { transform: rotate(-360deg); } }

.compare-network-title,
.compare-pitch h2,
.compare-table-section h2,
.compare-join h2,
.compare-faq h2,
.compare-bottom-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.65rem;
}
.compare-flow {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: none;
}
.compare-flow-step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
}
.compare-flow-step.is-highlight {
  background: linear-gradient(165deg, rgba(15, 138, 116, 0.14), rgba(255, 255, 255, 0.85));
  border-color: rgba(15, 138, 116, 0.35);
}
.compare-flow-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--ink);
  color: #fff;
}
.compare-flow-step h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.15rem;
}
.compare-flow-step p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.compare-bullets {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  max-width: 62ch;
}
.compare-bullets li { color: var(--ink); }
.compare-table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  padding: 0.25rem 0.5rem;
}
.compare-table {
  min-width: 760px;
  font-size: 0.92rem;
}
.compare-table thead th {
  position: sticky;
  top: 0;
  background: rgba(243, 247, 245, 0.96);
  z-index: 1;
}
.compare-table th[scope="row"] {
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  min-width: 9.5rem;
}
.compare-table td.is-nukta,
.compare-table th.is-nukta {
  background: rgba(15, 138, 116, 0.08);
  font-weight: 600;
  color: var(--accent-deep);
}
.compare-note {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 70ch;
  margin-top: 0.75rem;
}
.compare-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.compare-cta-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.compare-cta-card.is-featured {
  background: linear-gradient(165deg, rgba(15, 138, 116, 0.12), rgba(255, 255, 255, 0.9));
  border-color: rgba(15, 138, 116, 0.28);
  box-shadow: var(--shadow);
}
.compare-cta-tag {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.compare-cta-card h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.2rem;
}
.compare-cta-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.compare-faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  max-width: 70ch;
}
.compare-faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.65);
}
.compare-faq-list summary {
  cursor: pointer;
  font-weight: 600;
}
.compare-faq-list p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}
.compare-bottom-cta {
  padding-bottom: 3.5rem;
}
.compare-bottom-cta .hero-actions { justify-content: flex-start; }

@media (max-width: 900px) {
  .compare-hero {
    grid-template-columns: 1fr;
  }
  .compare-hero-visual { order: -1; min-height: 220px; }
  .compare-orbit { width: min(100%, 260px); }
  .compare-flow,
  .compare-cta-grid { grid-template-columns: 1fr; }
  .compare-hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .compare-orbit,
  .compare-orbit-node { animation: none; }
}

/* Partners */
.partners-page .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.35rem 0 0.5rem;
  letter-spacing: -0.02em;
}
.partners-hero,
.partners-offer,
.partners-program,
.partners-faq,
.partners-bottom {
  max-width: 72rem;
  margin-inline: auto;
  padding: 2.5rem 1.25rem;
}
.partners-hero {
  padding-top: 3rem;
}
.partners-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  max-width: 22ch;
  margin: 0.35rem 0 0.75rem;
  line-height: 1.15;
}
.partners-hero .lede {
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.1rem;
}
.partners-who {
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
  color: var(--ink);
}
.partners-tags {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.partners-tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}
.partners-offer h2,
.partners-program h2,
.partners-faq h2,
.partners-bottom h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.partners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.partners-list li {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.15rem;
  background: rgba(255, 255, 255, 0.7);
}
.partners-list h3 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}
.partners-list p {
  margin: 0;
  color: var(--muted);
}
.partners-program p {
  max-width: 58ch;
  color: var(--muted);
}
.partners-fair {
  font-weight: 600;
  color: var(--ink) !important;
}
.partners-faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 70ch;
}
.partners-faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.65);
}
.partners-faq-list summary {
  cursor: pointer;
  font-weight: 600;
}
.partners-faq-list p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}
.partners-bottom {
  padding-bottom: 3.5rem;
}
.partners-bottom p {
  max-width: 48ch;
  color: var(--muted);
}
@media (max-width: 720px) {
  .partners-list { grid-template-columns: 1fr; }
  .partners-hero h1 { max-width: none; }
}

.settings-page .settings-form {
  display: grid;
  gap: 1.15rem;
  max-width: 760px;
  margin: 0 0 2.5rem;
}
.settings-card {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.62);
}
.settings-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}
.settings-card > .muted { margin: 0 0 0.9rem; }
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.settings-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.split-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.85rem 0 1rem;
  background: var(--line);
}
.split-bar-cut { background: #0f8a74; }
.split-bar-earner { background: #c4a35a; }
.split-preview {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(15, 138, 116, 0.06);
  border: 1px solid rgba(15, 138, 116, 0.16);
}
.split-preview h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}
.split-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.split-preview-label {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 0.82rem;
}
.split-preview .tiny { margin: 0.15rem 0 0; }
.rate-split {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 138, 116, 0.06);
  border: 1px solid rgba(15, 138, 116, 0.14);
}
.rate-split-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.rate-split p { margin: 0; }
@media (max-width: 720px) {
  .settings-grid,
  .split-preview-grid { grid-template-columns: 1fr; }
}
