:root {
  --ink: #17120f;
  --ink-soft: #4d4038;
  --paper: #eee3dd;
  --paper-strong: #f7f0eb;
  --surface: #17120f;
  --surface-soft: #231b17;
  --muted: #776b62;
  --line: rgba(23, 18, 15, 0.16);
  --gold: #d3a57e;
  --gold-dark: #9f744f;
  --teal: #d3a57e;
  --teal-soft: #e5d6cd;
  --shadow: 0 24px 70px rgba(23, 18, 15, 0.18);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(211, 165, 126, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(23, 18, 15, 0.08), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 18, 15, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 18, 15, 0.035) 1px, transparent 1px);
  background-size: 86px 86px;
  opacity: 0.34;
  content: "";
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.generation-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: min(520px, calc(100vw - 32px));
  padding: 15px 18px;
  border: 1px solid rgba(240, 229, 223, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 0%, rgba(211, 165, 126, 0.22), transparent 10rem),
    linear-gradient(135deg, rgba(23, 18, 15, 0.96), rgba(44, 34, 29, 0.94));
  color: #f6eee9;
  box-shadow: 0 22px 60px rgba(23, 18, 15, 0.28);
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.generation-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.generation-toast-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(211, 165, 126, 0.18);
  box-shadow: inset 0 0 0 1px rgba(211, 165, 126, 0.42);
}

.generation-toast-icon::before {
  position: absolute;
  top: 9px;
  left: 12px;
  width: 8px;
  height: 14px;
  border-right: 2px solid #e5bd98;
  border-bottom: 2px solid #e5bd98;
  transform: rotate(42deg);
  content: "";
}

.generation-toast strong {
  display: block;
  margin-bottom: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.2;
}

.generation-toast p {
  margin: 0;
  color: rgba(246, 238, 233, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding: 10px 6vw;
  border-bottom: 1px solid rgba(23, 18, 15, 0.12);
  background: rgba(238, 227, 221, 0.86);
  backdrop-filter: blur(18px);
}

.home-page .site-header {
  grid-template-columns: 1fr auto;
}

.home-page .brand-mark {
  display: none;
}

.home-page .main-nav {
  justify-content: flex-start;
}

.home-page .header-actions {
  justify-self: end;
  width: max-content;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-actions[hidden],
.member-header[hidden] {
  display: none;
}

.member-header {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  max-width: min(420px, 42vw);
  border: 1px solid rgba(23, 18, 15, 0.14);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(247, 240, 235, 0.76);
  box-shadow: 0 14px 34px rgba(23, 18, 15, 0.1);
}

.member-avatar-button {
  --member-avatar-bg: #211a16;
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(211, 165, 126, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(240, 229, 223, 0.64), transparent 52%),
    linear-gradient(145deg, #17120f, #3d2e25);
  color: #f0e5df;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 1px rgba(240, 229, 223, 0.08);
}

.member-avatar-button::after {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  height: 14px;
  place-items: center;
  background: rgba(23, 18, 15, 0.72);
  color: #f0e5df;
  font-size: 0.58rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 180ms ease;
  content: "Editar";
}

.member-avatar-button:hover::after,
.member-avatar-button:focus-visible::after {
  opacity: 1;
}

.member-avatar-button.is-loading::after {
  opacity: 1;
  content: "...";
}

.member-avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar-button.has-custom-avatar,
.member-avatar-button.has-predefined-avatar {
  background: var(--member-avatar-bg);
}

.member-avatar-button.has-custom-avatar img {
  padding: 9%;
  object-fit: contain;
}

.member-avatar-button.has-custom-avatar.uses-dark-avatar-bg {
  border-color: rgba(226, 178, 137, 0.54);
}

.member-avatar-button.has-predefined-avatar img {
  padding: 0;
  object-fit: cover;
}

body.avatar-picker-open {
  overflow: hidden;
}

.avatar-picker-dialog {
  width: min(780px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(211, 165, 126, 0.28);
  border-radius: 8px;
  background: #f8f2ed;
  color: #211a16;
  box-shadow: 0 28px 80px rgba(22, 16, 13, 0.28);
}

.avatar-picker-dialog:not([open]) {
  display: none;
}

.avatar-picker-dialog::backdrop {
  background: rgba(24, 17, 14, 0.68);
  backdrop-filter: blur(5px);
}

.avatar-picker-shell {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(240, 227, 218, 0.58)),
    #f8f2ed;
}

.avatar-picker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.avatar-picker-heading h2 {
  margin: 5px 0 7px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.02;
}

.avatar-picker-heading p {
  max-width: 590px;
  margin: 0;
  color: #75675f;
  line-height: 1.55;
}

.avatar-picker-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(37, 27, 22, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  color: #2b211c;
  font-size: 1.35rem;
  line-height: 1;
}

.avatar-picker-close:hover,
.avatar-picker-close:focus-visible {
  border-color: rgba(164, 112, 75, 0.48);
  background: #fffaf6;
}

.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.avatar-picker-option {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 86px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(64, 45, 35, 0.13);
  border-radius: 8px;
  background: rgba(255, 252, 249, 0.82);
  color: #271d18;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.avatar-picker-option:hover,
.avatar-picker-option:focus-visible,
.avatar-picker-option.is-selected {
  border-color: rgba(171, 113, 73, 0.58);
  background: #fffaf6;
  box-shadow: 0 10px 26px rgba(58, 39, 29, 0.1);
}

.avatar-picker-option.is-selected::after {
  position: absolute;
  top: 8px;
  right: 9px;
  color: #9a6543;
  font-size: 0.78rem;
  font-weight: 900;
  content: "✓";
}

.avatar-picker-option:disabled {
  cursor: progress;
  opacity: 0.6;
}

.avatar-picker-preview {
  display: grid;
  width: 62px;
  height: 62px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(211, 165, 126, 0.34);
  border-radius: 50%;
  background: #211a16;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.avatar-picker-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-picker-custom-preview {
  border-style: dashed;
  border-color: rgba(139, 92, 62, 0.52);
  background: #f2e7df;
  color: #815338;
}

.avatar-picker-custom-preview span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

.avatar-picker-option-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.avatar-picker-option-copy strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.avatar-picker-option-copy small {
  color: #806f65;
  font-size: 0.72rem;
  line-height: 1.3;
}

.avatar-picker-status {
  min-height: 20px;
  margin: -6px 0 0;
  color: #77675e;
  font-size: 0.82rem;
}

.avatar-picker-status[data-type="error"] {
  color: #8a4937;
}

.avatar-picker-status[data-type="success"] {
  color: #496341;
}

@media (max-width: 720px) {
  .avatar-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .avatar-picker-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .avatar-picker-shell {
    gap: 18px;
    padding: 20px 16px;
  }

  .avatar-picker-heading {
    gap: 12px;
  }

  .avatar-picker-grid {
    grid-template-columns: 1fr;
  }

  .avatar-picker-option {
    min-height: 78px;
  }
}

.member-identity-link {
  display: grid;
  min-width: 0;
  max-width: 320px;
  margin-left: 10px;
  color: var(--ink);
  line-height: 1.1;
}

.member-company-name,
.member-email-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-company-name {
  font-size: 0.9rem;
  font-weight: 900;
}

.member-email-link {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
}

.member-identity-link:hover .member-company-name {
  color: var(--gold-dark);
}

.brand-mark img {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: rgba(23, 18, 15, 0.72);
  font-size: 0.95rem;
}

.main-nav a,
.text-link,
.site-footer a,
.auth-return {
  position: relative;
  font-weight: 700;
}

.main-nav a:hover,
.text-link:hover,
.site-footer a:hover,
.auth-return:hover {
  color: var(--gold-dark);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.header-action,
.primary-button {
  background: var(--ink);
  color: #f0e5df;
  box-shadow: 0 16px 34px rgba(23, 18, 15, 0.16);
}

.secondary-button {
  background: rgba(23, 18, 15, 0.035);
  color: var(--ink);
  border-color: var(--line);
}

.header-action:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.header-action:hover,
.primary-button:hover {
  box-shadow: 0 20px 42px rgba(23, 18, 15, 0.24);
}

.header-action-secondary {
  background: rgba(240, 229, 223, 0.42);
  color: var(--ink);
  border-color: rgba(23, 18, 15, 0.16);
  box-shadow: none;
}

.header-action-secondary:hover {
  background: rgba(211, 165, 126, 0.16);
  box-shadow: 0 14px 30px rgba(23, 18, 15, 0.12);
}

.full-width {
  width: 100%;
}

.hero-section {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(72px, 10svh, 116px) 6vw;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #1c1511;
}

.hero-section::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(23, 18, 15, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 18, 15, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.48;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 72%);
  content: "";
}

.hero-section::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 112px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(23, 18, 15, 0.1));
  content: "";
}

.hero-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
}

.hero-image-layer::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(238, 227, 221, 0.72) 0%, rgba(238, 227, 221, 0.46) 27%, rgba(238, 227, 221, 0.16) 48%, rgba(23, 18, 15, 0.48) 100%),
    linear-gradient(180deg, rgba(23, 18, 15, 0.28), rgba(238, 227, 221, 0.14) 42%, rgba(23, 18, 15, 0.42));
  content: "";
}

.hero-image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.86) contrast(1.03);
}

.hero-copy,
.band-content,
.section-heading,
.plans-copy {
  max-width: 780px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(760px, 92vw);
  align-self: center;
  justify-self: center;
  padding-top: 0;
  text-align: center;
  animation: heroReveal 760ms ease-out both;
}

.hero-brand-logo {
  width: min(620px, 82vw);
  height: auto;
  margin: 0 auto;
  image-rendering: auto;
  filter: none;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 540px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.1vw, 4.2rem);
  font-weight: 700;
}

.hero-lead {
  max-width: 480px;
  margin-bottom: 0;
  color: rgba(23, 18, 15, 0.72);
  font-size: 1.06rem;
  line-height: 1.65;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: heroReveal 920ms 120ms ease-out both;
}

.product-window {
  position: relative;
  width: min(100%, 640px);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.16);
  border-radius: var(--radius);
  background: rgba(23, 18, 15, 0.88);
  box-shadow: var(--shadow);
  animation: studioFloat 7s ease-in-out infinite;
}

.product-window::before {
  position: absolute;
  inset: -45% auto -45% -70%;
  z-index: 1;
  width: 45%;
  transform: rotate(12deg);
  background: linear-gradient(90deg, transparent, rgba(240, 229, 223, 0.16), transparent);
  animation: windowSheen 6s ease-in-out infinite;
  content: "";
}

.product-window > * {
  position: relative;
  z-index: 2;
}

.window-topbar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(240, 229, 223, 0.12);
}

.window-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.75;
}

.studio-preview {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 22px;
  padding: 26px;
}

.preview-panel,
.preview-grid,
.preview-lines {
  border-radius: var(--radius);
}

.preview-panel {
  min-height: 304px;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(211, 165, 126, 0.34), rgba(240, 229, 223, 0.12)),
    #17120f;
  color: #f0e5df;
  transform: translateZ(0);
}

.preview-panel p {
  color: var(--gold);
  font-weight: 900;
}

.preview-panel strong {
  display: block;
  margin: 48px 0 18px;
  font-size: 2rem;
  line-height: 1.1;
}

.preview-panel small {
  color: rgba(240, 229, 223, 0.76);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preview-tile {
  min-height: 112px;
  border: 1px solid rgba(240, 229, 223, 0.14);
  border-radius: var(--radius);
  animation: tilePulse 6s ease-in-out infinite;
}

.preview-tile:nth-child(2) {
  animation-delay: 900ms;
}

.preview-tile:nth-child(3) {
  animation-delay: 1500ms;
}

.preview-tile:nth-child(4) {
  animation-delay: 2300ms;
}

.preview-tile.gold {
  background: linear-gradient(150deg, #d3a57e, #f0e5df);
}

.preview-tile.teal {
  background: linear-gradient(150deg, #17120f, #4d4038);
}

.preview-tile.ink {
  background: linear-gradient(150deg, #17120f, #2b211c);
}

.preview-tile.soft {
  background: linear-gradient(150deg, #d9c8bd, #cdbbae);
}

.preview-lines {
  grid-column: 2;
  display: grid;
  gap: 12px;
  align-content: start;
  margin-top: -72px;
  padding: 18px;
  background: rgba(240, 229, 223, 0.08);
}

.preview-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(240, 229, 223, 0.22);
  transform-origin: left;
  animation: lineBreath 4.8s ease-in-out infinite;
}

.preview-lines span:nth-child(2) {
  width: 76%;
}

.preview-lines span:nth-child(3) {
  width: 54%;
  background: rgba(211, 165, 126, 0.58);
}

.brand-story-section,
.pressure-section,
.legacy-method-section,
.studio-section,
.comparison-section,
.ecosystem-section {
  padding: 96px 6vw;
}

.brand-story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 52px;
  align-items: center;
  background:
    radial-gradient(circle at 8% 16%, rgba(211, 165, 126, 0.16), transparent 28rem),
    var(--paper);
}

.story-copy {
  max-width: 600px;
}

.story-copy h2,
.pressure-heading h2,
.legacy-method-section .section-heading h2,
.studio-copy-panel h2,
.comparison-copy h2,
.ecosystem-section .section-heading h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 1.02;
}

.story-copy p,
.pressure-heading p,
.studio-copy-panel p,
.comparison-copy p,
.ecosystem-section .section-heading p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.story-media,
.studio-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.story-media img,
.studio-visual img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.story-media::after,
.studio-visual::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 46%, rgba(23, 18, 15, 0.44) 100%),
    linear-gradient(90deg, rgba(23, 18, 15, 0.22), transparent 42%);
  content: "";
}

.pressure-section {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1.24fr);
  gap: 44px;
  align-items: end;
  border-top: 1px solid rgba(23, 18, 15, 0.12);
  border-bottom: 1px solid rgba(23, 18, 15, 0.12);
  background:
    radial-gradient(circle at 86% 22%, rgba(211, 165, 126, 0.22), transparent 30rem),
    linear-gradient(135deg, #17120f, #231b17);
  color: #f0e5df;
}

.pressure-heading h2,
.pressure-heading p,
.pressure-section .section-kicker {
  color: #f0e5df;
}

.market-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.market-proof-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(240, 229, 223, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(211, 165, 126, 0.22), rgba(240, 229, 223, 0.04)),
    rgba(240, 229, 223, 0.06);
}

.market-proof-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  line-height: 0.9;
}

.market-proof-grid span,
.source-line {
  color: rgba(240, 229, 223, 0.72);
}

.source-line {
  grid-column: 2;
  margin: 14px 0 0;
  font-size: 0.82rem;
}

.source-line a {
  color: var(--gold);
  font-weight: 800;
}

.legacy-method-section {
  background:
    radial-gradient(circle at 12% 16%, rgba(23, 18, 15, 0.06), transparent 30rem),
    linear-gradient(180deg, #eee3dd, #e3d5cc);
}

.method-grid,
.comparison-grid,
.ecosystem-grid {
  display: grid;
  gap: 18px;
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-grid article,
.comparison-grid article,
.ecosystem-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 18, 15, 0.08);
}

.method-grid article {
  min-height: 260px;
  padding: 28px;
}

.method-grid span,
.ecosystem-grid span,
.comparison-grid span {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-grid h3,
.ecosystem-grid h3 {
  margin: 42px 0 12px;
  font-size: 1.6rem;
}

.method-grid p,
.comparison-grid p,
.ecosystem-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(420px, 1.18fr) minmax(0, 0.82fr);
  gap: 48px;
  align-items: center;
  background: var(--paper);
}

.studio-copy-panel {
  max-width: 560px;
}

.studio-benefits {
  display: grid;
  gap: 10px;
  margin: 26px 0 10px;
}

.studio-benefits span {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(23, 18, 15, 0.14);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(247, 240, 235, 0.66);
  color: var(--ink);
  font-weight: 800;
}

.comparison-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 44px;
  align-items: center;
  background:
    radial-gradient(circle at 80% 18%, rgba(211, 165, 126, 0.18), transparent 26rem),
    #e5d8cf;
}

.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-grid article {
  min-height: 300px;
  padding: 28px;
}

.comparison-grid .is-manual {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    #d9c8bd;
}

.comparison-grid .is-system {
  border-color: rgba(211, 165, 126, 0.42);
  background:
    linear-gradient(150deg, rgba(211, 165, 126, 0.26), rgba(247, 240, 235, 0.7)),
    var(--paper-strong);
}

.comparison-grid span {
  display: block;
  margin-bottom: 72px;
}

.comparison-grid p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.ecosystem-section {
  background: var(--paper);
}

.ecosystem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecosystem-grid article {
  min-height: 250px;
  padding: 26px;
}

.ecosystem-grid .is-active {
  background:
    linear-gradient(145deg, rgba(23, 18, 15, 0.94), rgba(35, 27, 23, 0.92)),
    #17120f;
}

.ecosystem-grid .is-active h3,
.ecosystem-grid .is-active p {
  color: #f0e5df;
}

.intro-band,
.feature-section,
.how-section,
.solutions-section,
.plans-section {
  padding: 88px 6vw;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 42px;
  align-items: center;
  border-top: 1px solid rgba(23, 18, 15, 0.12);
  border-bottom: 1px solid rgba(23, 18, 15, 0.12);
  background:
    linear-gradient(135deg, #17120f, #231b17);
  color: #f0e5df;
}

.intro-band h2,
.intro-band p {
  color: #f0e5df;
}

.intro-band h2,
.section-heading h2,
.plans-copy h2 {
  margin-bottom: 18px;
  font-size: 2.6rem;
}

.intro-band p,
.section-heading p,
.plans-copy p,
.showcase-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-band .section-kicker,
.intro-band p {
  color: rgba(240, 229, 223, 0.78);
}

.brand-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.brand-pillars span {
  display: grid;
  min-height: 132px;
  place-items: end start;
  border: 1px solid rgba(240, 229, 223, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(211, 165, 126, 0.22), rgba(240, 229, 223, 0.04)),
    rgba(240, 229, 223, 0.05);
  color: #f0e5df;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-section,
.solutions-section {
  background: var(--paper);
}

.section-heading {
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.align-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.studio-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 42px;
  align-items: center;
  margin-bottom: 20px;
}

.showcase-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.showcase-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 46%, rgba(23, 18, 15, 0.72) 100%),
    linear-gradient(90deg, rgba(23, 18, 15, 0.18), transparent 42%);
  content: "";
}

.media-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  color: #f0e5df;
}

.media-caption strong {
  color: #f0e5df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.media-caption span {
  max-width: 250px;
  color: rgba(240, 229, 223, 0.75);
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: right;
}

.showcase-copy h3 {
  margin-bottom: 18px;
  font-size: 2rem;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold-dark);
}

.process-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-stack article,
.flow-grid article,
.solution-grid article,
.studio-overview article,
.overview-action-grid article,
.auth-card,
.brand-profile,
.campaign-builder,
.generated-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12)),
    var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 18, 15, 0.08);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.process-stack article:hover,
.flow-grid article:hover,
.solution-grid article:hover,
.studio-overview article:hover,
.generated-card:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 165, 126, 0.42);
  box-shadow: 0 24px 58px rgba(23, 18, 15, 0.14);
}

.process-stack article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 24px;
}

.process-stack span,
.flow-grid span,
.studio-overview span,
.overview-action-grid span,
.generated-card span {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-stack strong {
  font-size: 1.1rem;
}

.process-stack p {
  margin-bottom: 0;
  color: var(--muted);
}

.how-section {
  border-top: 1px solid rgba(23, 18, 15, 0.1);
  border-bottom: 1px solid rgba(23, 18, 15, 0.1);
  background:
    radial-gradient(circle at 14% 30%, rgba(23, 18, 15, 0.06), transparent 30rem),
    linear-gradient(180deg, #e5d8cf, #d9c8bd);
}

.flow-grid,
.solution-grid,
.studio-overview,
.generated-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-grid article,
.solution-grid article {
  padding: 26px;
}

.flow-grid h3,
.solution-grid h3 {
  margin: 16px 0 12px;
  font-size: 1.35rem;
}

.flow-grid p,
.solution-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.solution-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plans-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: start;
  border-top: 1px solid rgba(23, 18, 15, 0.12);
  background:
    radial-gradient(circle at 84% 18%, rgba(211, 165, 126, 0.2), transparent 28rem),
    radial-gradient(circle at 12% 86%, rgba(238, 227, 221, 0.08), transparent 24rem),
    linear-gradient(135deg, #17120f, #2b211c 54%, #17120f);
}

.interest-form,
.stacked-form {
  display: grid;
  gap: 12px;
}

label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff8f3;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(211, 165, 126, 0.18);
}

.holiday-theme-select {
  background-color: #fff8f3;
}

.holiday-theme-hint {
  margin-top: -10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.interest-form {
  padding: 28px;
  border: 1px solid rgba(240, 229, 223, 0.16);
  border-radius: var(--radius);
  background: rgba(240, 229, 223, 0.08);
}

.plans-section h2,
.plans-section label {
  color: #f0e5df;
}

.plans-section .section-kicker {
  color: var(--gold);
}

.plans-section p {
  color: rgba(240, 229, 223, 0.76);
}

.plans-section .primary-button,
.auth-card .primary-button {
  background: var(--gold);
  color: var(--ink);
}

.plans-copy {
  display: grid;
  max-width: 840px;
  gap: 16px;
}

.plans-copy h2 {
  max-width: 720px;
}

.plans-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.plans-note span {
  border: 1px solid rgba(240, 229, 223, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(240, 229, 223, 0.08);
  color: rgba(240, 229, 223, 0.78);
  font-size: 0.82rem;
  font-weight: 850;
}

.billing-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 360px);
  margin-top: 6px;
  border: 1px solid rgba(240, 229, 223, 0.16);
  border-radius: var(--radius);
  padding: 5px;
  background: rgba(240, 229, 223, 0.075);
}

.billing-toggle button {
  min-height: 42px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: rgba(240, 229, 223, 0.7);
  font-size: 0.9rem;
  font-weight: 900;
}

.billing-toggle button.is-active {
  background: rgba(211, 165, 126, 0.2);
  color: #f0e5df;
  box-shadow: inset 0 0 0 1px rgba(211, 165, 126, 0.18);
}

.billing-toggle span {
  color: #e4bf94;
  font-size: 0.78rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(240, 229, 223, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 248, 243, 0.12), rgba(255, 248, 243, 0.055)),
    rgba(240, 229, 223, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.pricing-card-featured {
  border-color: rgba(211, 165, 126, 0.38);
  background:
    linear-gradient(180deg, rgba(211, 165, 126, 0.16), rgba(255, 248, 243, 0.06)),
    rgba(240, 229, 223, 0.085);
  box-shadow:
    inset 0 1px 0 rgba(211, 165, 126, 0.22),
    0 30px 76px rgba(0, 0, 0, 0.22);
}

.pricing-card-free {
  border-color: rgba(240, 229, 223, 0.2);
  background:
    linear-gradient(180deg, rgba(240, 229, 223, 0.1), rgba(255, 248, 243, 0.045)),
    rgba(23, 18, 15, 0.28);
}

.pricing-card-custom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr) auto;
  gap: 22px 30px;
  align-items: center;
  border-color: rgba(211, 165, 126, 0.28);
  background:
    radial-gradient(circle at 84% 12%, rgba(211, 165, 126, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 248, 243, 0.1), rgba(255, 248, 243, 0.045)),
    rgba(23, 18, 15, 0.34);
}

.pricing-card-custom .pricing-card-header {
  grid-column: 1;
  grid-row: 1;
}

.pricing-card-custom ul {
  grid-column: 2;
  grid-row: 1;
}

.pricing-card-custom .plan-button {
  grid-column: 3;
  grid-row: 1;
  min-width: 174px;
  margin-top: 0;
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(211, 165, 126, 0.26);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(211, 165, 126, 0.13);
  color: #e4bf94;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-card-header {
  display: grid;
  gap: 10px;
  padding-right: 0;
}

.pricing-card-featured .pricing-card-header {
  padding-right: 110px;
}

.pricing-card-header span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card-featured .pricing-card-header span {
  color: #e4bf94;
}

.pricing-card-free .pricing-card-header span {
  color: rgba(240, 229, 223, 0.72);
}

.pricing-card h3 {
  margin: 0;
  color: #f0e5df;
  font-size: 1.38rem;
  line-height: 1.12;
}

.pricing-card-featured h3 {
  color: #f0e5df;
}

.pricing-card p {
  margin: 0;
  color: rgba(240, 229, 223, 0.68);
  font-size: 0.93rem;
  line-height: 1.58;
}

.pricing-card-featured p {
  color: rgba(240, 229, 223, 0.7);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 8px;
  min-width: 0;
  padding-top: 4px;
}

.pricing-original {
  width: 100%;
  color: rgba(240, 229, 223, 0.42);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-color: rgba(211, 165, 126, 0.68);
  text-decoration-thickness: 2px;
  white-space: nowrap;
}

.pricing-price strong {
  color: #f0e5df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 0.95;
  white-space: nowrap;
}

.pricing-card-featured .pricing-price strong {
  color: #f0e5df;
}

.pricing-card-free .pricing-price strong {
  font-size: clamp(2.25rem, 3.3vw, 3rem);
}

.pricing-price-custom {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.pricing-price-custom strong {
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  line-height: 1.04;
}

.pricing-price span {
  color: rgba(240, 229, 223, 0.62);
  font-weight: 850;
  white-space: nowrap;
}

.pricing-card-featured .pricing-price span {
  color: rgba(240, 229, 223, 0.62);
}

.pricing-billing-note,
.pricing-year-total {
  margin: -10px 0 0;
  color: rgba(240, 229, 223, 0.58);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pricing-year-total {
  margin-top: -16px;
  color: rgba(228, 191, 148, 0.78);
}

.pricing-card ul {
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 22px;
  color: rgba(240, 229, 223, 0.78);
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.55;
}

.pricing-card-featured li {
  color: rgba(240, 229, 223, 0.8);
}

.pricing-card li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 48px;
  border: 1px solid rgba(240, 229, 223, 0.2);
  border-radius: var(--radius);
  padding: 0 18px;
  background: rgba(240, 229, 223, 0.08);
  color: #f0e5df;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.plan-button:hover {
  transform: translateY(-2px);
  border-color: rgba(211, 165, 126, 0.46);
  background: rgba(211, 165, 126, 0.16);
}

.plan-button-primary {
  border-color: rgba(211, 165, 126, 0.38);
  background: rgba(211, 165, 126, 0.18);
  color: #f0e5df;
}

.plan-button-free {
  border-color: rgba(240, 229, 223, 0.26);
  background: rgba(240, 229, 223, 0.12);
}

.custom-plan-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(149, 109, 79, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 109, 79, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 78% 10%, rgba(211, 165, 126, 0.18), transparent 32rem),
    var(--paper);
  background-size:
    64px 64px,
    64px 64px,
    auto,
    auto;
  color: var(--ink);
}

.contact-page {
  background:
    linear-gradient(rgba(149, 109, 79, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 109, 79, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 16% 16%, rgba(211, 165, 126, 0.14), transparent 28rem),
    radial-gradient(circle at 84% 8%, rgba(23, 18, 15, 0.08), transparent 30rem),
    var(--paper);
  background-size:
    64px 64px,
    64px 64px,
    auto,
    auto,
    auto;
}

.custom-plan-main {
  display: grid;
  gap: 34px;
  padding: 92px 6vw 104px;
}

.custom-plan-hero,
.custom-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.custom-plan-copy,
.custom-plan-info,
.custom-contact-heading,
.custom-contact-form {
  border: 1px solid rgba(159, 116, 79, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 10%, rgba(211, 165, 126, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2));
  box-shadow: 0 28px 70px rgba(65, 45, 34, 0.1);
}

.custom-plan-copy {
  display: grid;
  gap: 22px;
  padding: clamp(30px, 4vw, 54px);
}

.custom-plan-copy h1,
.custom-contact-heading h2 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4.2vw, 4.55rem);
  line-height: 1.02;
  text-wrap: balance;
}

.custom-plan-copy > p,
.custom-plan-info p,
.custom-contact-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.75;
}

.custom-plan-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.custom-plan-points article {
  display: grid;
  gap: 10px;
  min-height: 180px;
  border: 1px solid rgba(240, 229, 223, 0.13);
  border-radius: var(--radius);
  padding: 22px;
  background:
    radial-gradient(circle at 88% 0%, rgba(211, 165, 126, 0.18), transparent 11rem),
    linear-gradient(145deg, rgba(23, 18, 15, 0.96), rgba(45, 35, 30, 0.94));
  box-shadow: 0 22px 54px rgba(23, 18, 15, 0.18);
}

.custom-plan-points span {
  color: #d3a57e;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.custom-plan-points strong {
  color: #f0e5df;
  font-size: 1.08rem;
  line-height: 1.25;
}

.custom-plan-points p {
  margin: 0;
  color: rgba(240, 229, 223, 0.72);
  line-height: 1.58;
}

.custom-plan-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(28px, 3.4vw, 40px);
  border-color: rgba(240, 229, 223, 0.14);
  background:
    radial-gradient(circle at 86% 0%, rgba(211, 165, 126, 0.18), transparent 14rem),
    linear-gradient(145deg, rgba(23, 18, 15, 0.96), rgba(44, 34, 29, 0.94));
  box-shadow: 0 30px 80px rgba(23, 18, 15, 0.2);
}

.custom-plan-info h2 {
  margin: 0;
  color: #f0e5df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 2.8vw, 3.2rem);
  line-height: 1.02;
}

.custom-plan-info p {
  color: rgba(240, 229, 223, 0.72);
}

.custom-plan-info .section-kicker {
  color: #d3a57e;
}

.custom-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: auto;
}

.custom-plan-actions .plan-button {
  color: #fff8ee;
}

.custom-plan-actions .text-link {
  color: #e4bf94;
  font-weight: 900;
  text-decoration: none;
}

.custom-contact-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.custom-contact-heading {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(28px, 3.2vw, 42px);
  border-color: rgba(240, 229, 223, 0.14);
  background:
    radial-gradient(circle at 86% 0%, rgba(211, 165, 126, 0.18), transparent 15rem),
    linear-gradient(145deg, rgba(23, 18, 15, 0.96), rgba(44, 34, 29, 0.94));
  box-shadow: 0 30px 80px rgba(23, 18, 15, 0.2);
}

.custom-contact-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3.7rem);
  color: #f0e5df;
}

.custom-contact-heading p {
  color: rgba(240, 229, 223, 0.72);
}

.custom-contact-heading .section-kicker {
  color: #d3a57e;
}

.custom-contact-benefits {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.custom-contact-benefits li {
  position: relative;
  min-height: 46px;
  padding: 12px 14px 12px 34px;
  border: 1px solid rgba(240, 229, 223, 0.12);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 248, 243, 0.055);
  color: rgba(240, 229, 223, 0.76);
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.45;
}

.custom-contact-benefits li::before {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d3a57e;
  content: "";
}

.custom-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(24px, 3vw, 36px);
}

.custom-contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 850;
}

.custom-contact-form input,
.custom-contact-form select,
.custom-contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(159, 116, 79, 0.18);
  border-radius: calc(var(--radius) - 4px);
  padding: 12px 14px;
  background: rgba(255, 248, 243, 0.72);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.custom-contact-form textarea {
  min-height: 154px;
  resize: vertical;
}

.custom-contact-form input:focus,
.custom-contact-form select:focus,
.custom-contact-form textarea:focus {
  border-color: rgba(159, 116, 79, 0.46);
  background: #fffaf6;
  box-shadow: 0 0 0 4px rgba(211, 165, 126, 0.13);
}

.custom-contact-wide,
.custom-plan-status,
.custom-contact-form button {
  grid-column: 1 / -1;
}

.custom-plan-status {
  margin-top: 0;
}

.custom-contact-form button {
  justify-self: stretch;
  min-height: 50px;
}

.public-contact-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.public-contact-channels .support-contact-panel {
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
}

.public-contact-channels .support-contact-copy {
  min-height: 112px;
}

.public-contact-channels .primary-button,
.public-contact-channels .secondary-button {
  text-align: center;
  text-decoration: none;
}

.contact-quick-panel {
  min-height: 100%;
}

.custom-plan-page .public-contact-channels .support-contact-panel.reveal-target {
  opacity: 1;
  transform: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.studio-workspace.quote-builder-layout {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.quote-builder-layout .creation-form,
.quote-builder-layout .inline-results,
.quote-builder-layout .quote-builder-top,
.quote-builder-layout .quote-side-stack,
.quote-builder-layout .quote-decision-panel,
.quote-builder-layout .quote-saved-panel,
.quote-builder-layout .quote-results-grid {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.quote-builder-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.62fr);
  gap: 22px;
  align-items: stretch;
}

.quote-side-stack {
  display: grid;
  grid-template-rows: minmax(260px, 0.75fr) minmax(410px, 1.25fr);
  gap: 22px;
  min-height: 100%;
}

.quote-builder-layout > .quote-builder-top,
.quote-builder-layout > .quote-results-section {
  grid-column: 1 / -1;
}

.quote-decision-panel,
.quote-saved-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 18, 15, 0.96), rgba(50, 37, 29, 0.94)), #17120f;
  color: #f5eee8;
  box-shadow: 0 24px 52px rgba(23, 18, 15, 0.14);
}

.quote-decision-panel h2,
.quote-decision-panel p,
.quote-saved-panel h2,
.quote-saved-panel p {
  color: #f5eee8;
}

.quote-decision-panel > div > p:last-child,
.quote-saved-panel > div > p:last-child {
  margin-bottom: 0;
  color: rgba(245, 238, 232, 0.72);
  line-height: 1.55;
}

.quote-saved-panel {
  min-height: 0;
  justify-content: flex-start;
}

.quote-template-list {
  display: grid;
  align-content: start;
  gap: 11px;
  min-height: 0;
  overflow: visible;
}

.quote-template-empty,
.quote-template-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(245, 238, 232, 0.14);
  border-radius: 7px;
  background: rgba(255, 250, 246, 0.06);
}

.quote-template-empty strong,
.quote-template-card strong {
  color: #fffaf6;
}

.quote-template-empty span,
.quote-template-card small {
  color: rgba(245, 238, 232, 0.66);
  font-size: 0.78rem;
  line-height: 1.45;
}

.quote-template-card-heading {
  display: grid;
  gap: 5px;
}

.quote-template-card-heading > span {
  color: #d8aa83;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-template-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.quote-template-card-actions button {
  min-height: 36px;
  padding: 8px 9px;
  border: 1px solid rgba(245, 238, 232, 0.18);
  border-radius: 6px;
  background: rgba(255, 250, 246, 0.08);
  color: #f5eee8;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.quote-template-card-actions button:hover,
.quote-template-card-actions button:focus-visible {
  border-color: rgba(216, 170, 131, 0.72);
  background: rgba(216, 170, 131, 0.16);
}

.quote-template-card-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quote-form-wide {
  grid-column: 1 / -1;
}

.quote-items-section {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.46);
}

.quote-items-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.quote-items-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.quote-add-item {
  min-width: 132px;
  flex: 0 0 auto;
}

.quote-items-list {
  display: grid;
  gap: 12px;
}

.quote-item-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(82px, 0.6fr) minmax(104px, 0.78fr) minmax(126px, 0.9fr) minmax(104px, 0.78fr) 38px;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.quote-item-row label {
  min-width: 0;
}

.quote-item-row label > span,
.quote-item-total > span {
  display: block;
  min-height: 26px;
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-transform: uppercase;
}

.quote-item-row input,
.quote-item-row select {
  width: 100%;
  min-height: 44px;
}

.quote-item-total {
  min-width: 0;
}

.quote-item-total strong {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.quote-remove-item {
  width: 38px;
  height: 44px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 7px;
  background: rgba(255, 250, 246, 0.7);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.quote-discount-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
}

.quote-live-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.64);
}

.quote-live-summary span {
  display: grid;
  gap: 5px;
  padding: 15px 17px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-live-summary span + span {
  border-left: 1px solid rgba(23, 18, 15, 0.08);
}

.quote-live-summary strong {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
}

.quote-live-summary .is-total {
  background: #201712;
  color: rgba(245, 238, 232, 0.7);
}

.quote-live-summary .is-total strong {
  color: #f5eee8;
}

.quote-results-section {
  padding-top: 0;
}

.quote-script-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-final-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.quote-final-card {
  display: grid;
  grid-column: 1 / -1;
  gap: 20px;
  width: 100%;
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.72);
  box-shadow: 0 20px 52px rgba(23, 18, 15, 0.08);
}

.quote-document-preview {
  width: min(100%, 980px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.13);
  border-radius: 6px;
  background: #fffaf6;
  box-shadow: 0 24px 55px rgba(23, 18, 15, 0.12);
}

.quote-preview-header {
  display: grid;
  min-height: 300px;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  border-left: 6px solid var(--quote-preview-accent, #a97752);
  background: #17120f;
  color: #f5eee8;
}

.quote-preview-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  padding: 30px 34px;
}

.quote-preview-brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 96px;
}

.quote-preview-logo {
  display: grid;
  box-sizing: border-box;
  flex: 0 0 190px;
  width: 190px;
  height: 92px;
  place-items: center;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--quote-preview-accent, #a97752) 64%, transparent);
  background: #fffaf6;
}

.quote-preview-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.quote-preview-kicker,
.quote-preview-monogram {
  color: var(--quote-preview-accent, #d3a57e);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.quote-preview-monogram {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.quote-preview-copy h3 {
  max-width: 560px;
  margin: 0;
  color: #fffaf6;
  font-size: clamp(1.75rem, 3.5vw, 3.3rem);
  line-height: 0.98;
}

.quote-preview-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(245, 238, 232, 0.74);
  line-height: 1.55;
}

.quote-preview-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-left: 2px solid var(--quote-preview-accent, #a97752);
  background: color-mix(in srgb, var(--quote-preview-accent, #a97752) 14%, #f2e7de);
}

.quote-preview-visual > img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
}

.quote-preview-visual-fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 52%, color-mix(in srgb, var(--quote-preview-accent, #a97752) 32%, transparent) 52% 68%, transparent 68%),
    linear-gradient(160deg, #f8f0ea, #d9c6b8);
}

.quote-preview-intro {
  display: grid;
  gap: 7px;
  padding: 24px 30px 18px;
}

.quote-preview-intro p,
.quote-preview-meta small,
.quote-preview-bottom small {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-preview-intro h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.85rem);
  line-height: 1;
}

.quote-preview-intro > span {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.quote-preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 30px 20px;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.09);
  border-radius: 6px;
}

.quote-preview-meta > span {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
}

.quote-preview-meta > span + span {
  border-left: 1px solid rgba(23, 18, 15, 0.08);
}

.quote-preview-table {
  width: calc(100% - 60px);
  margin: 0 30px;
  border-collapse: collapse;
  table-layout: fixed;
}

.quote-preview-table th {
  padding: 11px 12px;
  background: #201712;
  color: #f5eee8;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.quote-preview-table th:first-child,
.quote-preview-table td:first-child {
  width: 43%;
}

.quote-preview-table th:nth-child(n + 3),
.quote-preview-table td:nth-child(n + 3) {
  text-align: right;
}

.quote-preview-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(23, 18, 15, 0.08);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quote-preview-table tr:nth-child(even) td {
  background: rgba(242, 226, 214, 0.28);
}

.quote-preview-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr);
  gap: 20px;
  padding: 22px 30px;
}

.quote-preview-bottom p {
  margin: 5px 0 13px;
  color: var(--muted);
  line-height: 1.45;
}

.quote-preview-commercial-terms p:last-child {
  margin-bottom: 0;
}

.quote-preview-totals {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 17px;
  border-radius: 6px;
  background: #201712;
}

.quote-preview-totals span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(245, 238, 232, 0.72);
  font-size: 0.8rem;
}

.quote-preview-totals strong {
  color: #f5eee8;
}

.quote-preview-totals .is-total {
  margin-top: 5px;
  padding-top: 11px;
  border-top: 1px solid rgba(245, 238, 232, 0.14);
  font-size: 1rem;
  font-weight: 900;
}

.quote-preview-next-step {
  display: grid;
  grid-template-columns: minmax(110px, 0.22fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 30px 22px;
  padding: 16px 18px;
  border: 1px solid rgba(23, 18, 15, 0.09);
  border-left: 5px solid var(--quote-preview-accent, #a97752);
  background: rgba(255, 250, 246, 0.72);
}

.quote-preview-next-step small {
  color: var(--quote-preview-accent, var(--accent-dark));
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-preview-next-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.quote-document-preview footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 30px;
  background: rgba(32, 23, 18, 0.06);
  color: var(--muted);
  font-size: 0.74rem;
}

.quote-document-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.quote-builder-layout .quote-template-editor-grid {
  grid-template-columns: minmax(520px, 0.9fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 22px;
  width: 100%;
}

.quote-builder-layout .quote-template-editor-grid > * {
  width: 100%;
  min-width: 0;
}

.quote-editor-preview-card,
.quote-editor-form {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.72);
  box-shadow: 0 20px 52px rgba(23, 18, 15, 0.08);
}

.quote-editor-preview-card {
  position: sticky;
  top: 20px;
  align-self: start;
  overflow: hidden;
}

.quote-editor-heading {
  display: grid;
  gap: 5px;
}

.quote-editor-heading > span {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-editor-heading h3,
.quote-editor-heading p {
  margin: 0;
}

.quote-editor-heading h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.quote-editor-heading p {
  color: var(--muted);
  line-height: 1.5;
}

.quote-editor-preview-host {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(32, 23, 18, 0.035);
}

.quote-editor-preview-host .quote-document-preview {
  width: 980px;
  max-width: none;
  margin: 0;
  transform-origin: left top;
  will-change: transform;
}

.quote-editor-item-row {
  grid-template-columns: minmax(220px, 1.65fr) minmax(90px, 0.55fr) minmax(110px, 0.65fr) minmax(140px, 0.8fr) minmax(120px, 0.7fr) 42px;
  gap: 12px;
}

@media (max-width: 1500px) {
  .quote-builder-layout .quote-template-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-editor-preview-card {
    position: static;
  }
}

.library-document-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.library-document-actions .primary-button,
.library-document-actions .secondary-button {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 0.82rem;
}

@media (max-width: 1080px) {
  .pricing-card-custom {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-card-custom .pricing-card-header,
  .pricing-card-custom .pricing-price,
  .pricing-card-custom .pricing-billing-note,
  .pricing-card-custom ul,
  .pricing-card-custom .plan-button {
    grid-column: auto;
    grid-row: auto;
  }

  .pricing-card-custom .plan-button {
    min-width: 0;
  }

  .custom-plan-hero,
  .custom-contact-layout,
  .public-contact-channels {
    grid-template-columns: 1fr;
  }

  .custom-plan-info {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .custom-plan-main {
    padding: 64px 20px 72px;
  }

  .custom-plan-points,
  .custom-contact-form {
    grid-template-columns: 1fr;
  }
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 58px;
  padding: 98px 6vw 112px;
  border-top: 1px solid rgba(240, 229, 223, 0.1);
  background:
    radial-gradient(circle at 88% 12%, rgba(211, 165, 126, 0.18), transparent 26rem),
    linear-gradient(180deg, #241a15 0%, #17120f 58%, #120e0c 100%);
  color: #f0e5df;
}

.faq-heading {
  align-self: start;
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.faq-heading h2 {
  margin: 0;
  color: #fff7ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5.15rem);
  line-height: 0.96;
}

.faq-heading p:not(.section-kicker) {
  margin: 0;
  color: rgba(240, 229, 223, 0.68);
  font-size: 1.04rem;
  line-height: 1.72;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(240, 229, 223, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 248, 243, 0.09), rgba(255, 248, 243, 0.035)),
    rgba(240, 229, 223, 0.055);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(211, 165, 126, 0.32);
  background:
    linear-gradient(180deg, rgba(211, 165, 126, 0.13), rgba(255, 248, 243, 0.045)),
    rgba(240, 229, 223, 0.065);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 22px 66px 22px 24px;
  color: #fff7ec;
  font-weight: 900;
  line-height: 1.28;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(211, 165, 126, 0.24);
  border-radius: 999px;
  background: rgba(211, 165, 126, 0.12);
  color: #e4bf94;
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: -6px 0 0;
  padding: 0 24px 24px;
  color: rgba(240, 229, 223, 0.68);
  font-size: 0.97rem;
  line-height: 1.72;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 6vw;
  border-top: 1px solid rgba(23, 18, 15, 0.12);
  background: #17120f;
  color: rgba(240, 229, 223, 0.72);
}

.site-footer img {
  width: 126px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
}

.site-footer a {
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.legal-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 82% 10%, rgba(211, 165, 126, 0.18), transparent 30rem),
    linear-gradient(180deg, #eadfd8 0%, #ded1c8 54%, #cdbbae 100%);
  color: var(--ink);
}

.legal-main {
  padding: 72px 6vw 96px;
}

.legal-hero {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 58px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(23, 18, 15, 0.96), rgba(45, 34, 27, 0.94)),
    #17120f;
  color: #f5eee8;
  box-shadow: 0 30px 70px rgba(23, 18, 15, 0.18);
}

.legal-hero h1 {
  max-width: 840px;
  margin: 0;
  color: #fff7ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  line-height: 0.98;
}

.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(245, 238, 232, 0.74);
  font-size: 1.04rem;
  line-height: 1.72;
}

.legal-hero span {
  color: rgba(228, 191, 148, 0.88);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.legal-summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 248, 243, 0.74)),
    var(--paper-strong);
  box-shadow: 0 18px 46px rgba(23, 18, 15, 0.08);
}

.legal-summary > div {
  display: grid;
}

.legal-summary > div > p {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-summary a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 46px;
  border-top: 1px solid rgba(23, 18, 15, 0.09);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 820;
}

.legal-summary a:last-child {
  border-bottom: 1px solid rgba(23, 18, 15, 0.09);
}

.legal-summary a:hover,
.legal-summary a:focus-visible {
  color: var(--gold-dark);
}

.legal-summary a:focus-visible {
  outline: 2px solid rgba(159, 116, 79, 0.5);
  outline-offset: 4px;
}

.legal-summary a span {
  color: var(--gold-dark);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.legal-summary-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.legal-content {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.legal-document {
  padding: 42px 46px;
  scroll-margin-top: 96px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 248, 243, 0.78)),
    var(--paper-strong);
  box-shadow: 0 22px 58px rgba(23, 18, 15, 0.09);
}

.legal-document-heading {
  display: grid;
  gap: 12px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(23, 18, 15, 0.12);
}

.legal-document-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  line-height: 1.05;
}

.legal-document-heading > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.legal-section {
  display: grid;
  gap: 13px;
  padding: 30px 0;
  scroll-margin-top: 96px;
  border-bottom: 1px solid rgba(23, 18, 15, 0.1);
}

.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h3 {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.3;
}

.legal-section h3 span {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.legal-section strong {
  color: var(--ink-soft);
  font-weight: 850;
}

.legal-section ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-section li {
  padding-left: 4px;
  line-height: 1.65;
}

.legal-section li::marker {
  color: var(--gold-dark);
}

.legal-section a {
  color: var(--gold-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-contact-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: center;
  padding: 34px 38px;
  scroll-margin-top: 96px;
  border: 1px solid rgba(240, 229, 223, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(23, 18, 15, 0.93), rgba(45, 34, 27, 0.9)),
    #17120f;
  box-shadow: 0 22px 58px rgba(23, 18, 15, 0.13);
}

.legal-contact-panel h2 {
  margin: 4px 0 0;
  color: #fff7ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.05;
}

.legal-contact-panel p {
  margin: 0;
  color: rgba(245, 238, 232, 0.74);
  line-height: 1.7;
}

.legal-contact-panel a {
  color: #e4bf94;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-redirect-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.legal-redirect-panel {
  display: grid;
  gap: 14px;
  width: min(620px, 100%);
  padding: 42px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 243, 0.86);
  box-shadow: 0 24px 68px rgba(23, 18, 15, 0.16);
}

.legal-redirect-panel img {
  width: 168px;
  margin-bottom: 12px;
}

.legal-redirect-panel h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1.08;
}

.legal-redirect-panel p {
  margin: 0;
  color: var(--muted);
}

.legal-redirect-panel a {
  color: var(--gold-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 80% 24%, rgba(211, 165, 126, 0.2), transparent 28rem),
    radial-gradient(circle at 10% 88%, rgba(23, 18, 15, 0.08), transparent 32rem),
    var(--paper);
}

.register-page {
  background:
    radial-gradient(circle at 82% 18%, rgba(211, 165, 126, 0.2), transparent 30rem),
    radial-gradient(circle at 8% 82%, rgba(23, 18, 15, 0.1), transparent 34rem),
    linear-gradient(135deg, #eadfd8, #d9c8bd);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 54px;
  align-items: center;
  min-height: 100svh;
  padding: 52px 6vw;
}

.register-shell {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
}

.auth-brand-panel {
  max-width: 680px;
  color: var(--ink);
}

.auth-logo {
  display: inline-flex;
  margin-bottom: 58px;
}

.auth-logo img {
  width: 210px;
  max-height: 172px;
  object-fit: contain;
}

.auth-brand-panel h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 3.2rem;
}

.auth-brand-panel p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.auth-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.auth-highlights article {
  min-height: 176px;
  padding: 20px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.38);
  box-shadow: 0 18px 42px rgba(23, 18, 15, 0.08);
}

.auth-highlights span {
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.auth-highlights strong {
  display: block;
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 1.02rem;
}

.auth-highlights p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-card {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(240, 229, 223, 0.05), rgba(240, 229, 223, 0.02)),
    #17120f;
}

.register-card {
  padding: 28px;
}

.auth-card h2 {
  margin-bottom: 8px;
  color: #f0e5df;
  font-size: 1.8rem;
}

.auth-card p {
  color: rgba(240, 229, 223, 0.72);
}

.auth-message {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(211, 165, 126, 0.3);
  border-radius: var(--radius);
  background: rgba(211, 165, 126, 0.12);
  color: #f0e5df;
  font-size: 0.94rem;
}

.auth-message[data-type="success"] {
  border-color: rgba(216, 196, 166, 0.46);
  background: rgba(240, 229, 223, 0.1);
}

.auth-message[data-type="info"] {
  border-color: rgba(240, 229, 223, 0.2);
  background: rgba(240, 229, 223, 0.08);
}

.auth-card label {
  color: rgba(240, 229, 223, 0.86);
}

.is-hidden,
.auth-verification-panel[hidden] {
  display: none !important;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 108px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(211, 165, 126, 0.76);
  border-radius: calc(var(--radius) - 3px);
  background: linear-gradient(180deg, #e4bf94, #d3a57e);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(23, 18, 15, 0.22);
  transform: translateY(-50%);
}

.password-toggle:hover {
  border-color: rgba(240, 229, 223, 0.74);
  background: linear-gradient(180deg, #f0cfaa, #d3a57e);
  box-shadow: 0 10px 22px rgba(23, 18, 15, 0.28);
}

.password-toggle[aria-pressed="true"] {
  border-color: rgba(240, 229, 223, 0.3);
  background: rgba(240, 229, 223, 0.13);
  color: #f0e5df;
}

.forgot-password-link {
  justify-self: end;
  margin-top: -2px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-note-panel {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(240, 229, 223, 0.13);
  border-radius: var(--radius);
  background: rgba(240, 229, 223, 0.06);
}

.auth-note-panel strong {
  color: #f0e5df;
  font-size: 0.9rem;
}

.auth-note-panel span {
  color: rgba(240, 229, 223, 0.68);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-verification-panel {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(240, 229, 223, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(211, 165, 126, 0.14), rgba(240, 229, 223, 0.04)),
    rgba(240, 229, 223, 0.04);
}

.verification-heading {
  display: grid;
  gap: 9px;
}

.verification-pill {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(211, 165, 126, 0.3);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verification-heading h3 {
  color: #f0e5df;
  font-size: 1.28rem;
}

.verification-heading p {
  margin: 0;
  font-size: 0.95rem;
}

.verification-heading strong {
  color: #f0e5df;
  font-weight: 800;
}

.verification-code-input {
  text-align: center;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.auth-secondary-action {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(240, 229, 223, 0.16);
  border-radius: var(--radius);
  background: rgba(240, 229, 223, 0.06);
  color: #f0e5df;
  font-weight: 800;
}

.auth-secondary-action:hover {
  border-color: rgba(211, 165, 126, 0.44);
  background: rgba(211, 165, 126, 0.13);
}

.auth-return {
  display: inline-flex;
  margin-top: 20px;
  color: var(--gold);
}

.auth-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.auth-card-footer .auth-return {
  margin-top: 0;
}

.auth-legal-notice {
  margin: 2px 0 4px;
  color: rgba(240, 229, 223, 0.58) !important;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.auth-legal-notice a {
  color: rgba(228, 191, 148, 0.92);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.auth-legal-notice a:hover {
  color: #f0cfaa;
}

.auth-legal-notice a:focus-visible {
  border-radius: 2px;
  outline: 2px solid rgba(228, 191, 148, 0.64);
  outline-offset: 3px;
}

.studio-page {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100svh;
  background:
    radial-gradient(circle at 80% 8%, rgba(211, 165, 126, 0.16), transparent 30rem),
    radial-gradient(circle at 18% 84%, rgba(23, 18, 15, 0.06), transparent 28rem),
    var(--paper);
}

.studio-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100svh;
  overflow: hidden;
  padding: 24px;
  border-right: 1px solid rgba(23, 18, 15, 0.18);
  background:
    linear-gradient(180deg, rgba(35, 27, 23, 0.96), rgba(23, 18, 15, 0.98)),
    #17120f;
  color: #f0e5df;
}

.studio-brand img {
  width: 82px;
  margin: 0 auto 38px;
}

.studio-brand {
  flex: 0 0 auto;
}

.studio-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(211, 165, 126, 0.42) rgba(240, 229, 223, 0.08);
  scrollbar-gutter: stable;
}

.studio-nav::-webkit-scrollbar {
  width: 6px;
}

.studio-nav::-webkit-scrollbar-track {
  background: rgba(240, 229, 223, 0.08);
  border-radius: 999px;
}

.studio-nav::-webkit-scrollbar-thumb {
  background: rgba(211, 165, 126, 0.42);
  border-radius: 999px;
}

.studio-nav a,
.studio-nav-toggle,
.studio-exit {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: rgba(240, 229, 223, 0.72);
  font-weight: 800;
  text-align: left;
}

.studio-nav a[hidden] {
  display: none;
}

.studio-nav a:hover,
.studio-nav a.is-active,
.studio-nav-toggle:hover,
.studio-nav-toggle[aria-expanded="true"] {
  background: rgba(211, 165, 126, 0.18);
  color: #f0e5df;
}

.studio-nav-group {
  display: grid;
  gap: 6px;
}

.studio-nav-toggle {
  position: relative;
  width: 100%;
}

.studio-nav-toggle::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease;
  content: "";
}

.studio-nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(225deg);
}

.studio-nav-submenu {
  display: grid;
  gap: 4px;
  padding-left: 10px;
}

.studio-nav-submenu[hidden] {
  display: none;
}

.studio-nav-submenu a {
  min-height: 38px;
  padding-left: 14px;
  border-left: 1px solid rgba(240, 229, 223, 0.14);
  color: rgba(240, 229, 223, 0.64);
  font-size: 0.9rem;
}

.studio-exit {
  flex: 0 0 auto;
  margin-top: auto;
  border: 1px solid rgba(240, 229, 223, 0.16);
}

.studio-main {
  min-width: 0;
  padding: 34px;
}

.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.studio-account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.studio-member-header {
  max-width: min(360px, 34vw);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.14)),
    rgba(247, 240, 235, 0.8);
}

.studio-topbar h1 {
  margin-bottom: 0;
  font-size: 2.2rem;
}

.studio-account-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.studio-notice,
.admin-status {
  margin: 0 0 20px;
  padding: 13px 14px;
  border: 1px solid rgba(211, 165, 126, 0.28);
  border-radius: var(--radius);
  background: rgba(211, 165, 126, 0.12);
  color: var(--ink-soft);
  font-weight: 700;
}

.studio-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.studio-notice p {
  margin: 0;
}

.studio-notice-action {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(23, 18, 15, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.studio-notice-action:hover,
.studio-notice-action:focus-visible {
  border-color: rgba(168, 121, 85, 0.54);
  background: rgba(255, 255, 255, 0.8);
}

.admin-status[data-type="success"] {
  border-color: rgba(95, 126, 88, 0.28);
  background: rgba(95, 126, 88, 0.1);
}

.admin-status[data-type="error"] {
  border-color: rgba(145, 54, 41, 0.28);
  background: rgba(145, 54, 41, 0.1);
}

.studio-overview {
  margin-bottom: 24px;
}

.studio-overview article {
  padding: 22px;
}

.studio-overview strong {
  display: block;
  margin: 10px 0;
  font-size: 2rem;
  line-height: 1;
}

.studio-overview p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.studio-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.studio-page-section[hidden] {
  display: none;
}

.studio-page-section {
  display: grid;
  gap: 24px;
}

.studio-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 24px;
  align-items: end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 18, 15, 0.94), rgba(35, 27, 23, 0.9)),
    #17120f;
  box-shadow: var(--shadow);
}

.studio-hero-panel h2,
.studio-hero-panel p {
  color: #f0e5df;
}

.studio-hero-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.studio-hero-panel p {
  max-width: 680px;
  margin-bottom: 0;
  opacity: 0.74;
}

.studio-section-hero {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 18%, rgba(211, 165, 126, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(23, 18, 15, 0.95), rgba(44, 34, 29, 0.92)),
    #17120f;
  box-shadow: var(--shadow);
}

.studio-section-hero h2,
.studio-section-hero p {
  color: #f0e5df;
}

.studio-section-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.studio-section-hero p {
  max-width: 760px;
  margin-bottom: 0;
  opacity: 0.76;
}

.billing-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.32fr);
  gap: 24px;
  align-items: end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 20%, rgba(211, 165, 126, 0.22), transparent 22rem),
    linear-gradient(135deg, rgba(23, 18, 15, 0.95), rgba(44, 34, 29, 0.92)),
    #17120f;
  box-shadow: var(--shadow);
}

.billing-hero-panel h2,
.billing-hero-panel p {
  color: #f0e5df;
}

.billing-hero-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.billing-hero-panel p {
  max-width: 740px;
  margin-bottom: 0;
  opacity: 0.76;
}

.billing-hero-status {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(240, 229, 223, 0.14);
  border-radius: var(--radius);
  background: rgba(240, 229, 223, 0.08);
  color: #f0e5df;
}

.billing-hero-status span,
.billing-summary-grid span,
.billing-financial-grid span,
.billing-limit-grid span,
.billing-upgrade-grid span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-hero-status strong {
  color: #f0e5df;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
}

.billing-hero-status small {
  color: rgba(240, 229, 223, 0.72);
  font-weight: 800;
}

.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.billing-summary-grid article,
.billing-financial-grid article,
.billing-limit-grid article,
.billing-upgrade-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.14)),
    var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 18, 15, 0.08);
}

.billing-summary-grid article {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 20px;
}

.billing-summary-grid strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.billing-summary-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.billing-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.billing-history-panel,
.billing-upgrade-panel {
  grid-column: 1 / -1;
}

.billing-financial-grid,
.billing-limit-grid {
  display: grid;
  gap: 12px;
}

.billing-limits-panel {
  display: flex;
  flex-direction: column;
}

.billing-financial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.billing-financial-grid article,
.billing-limit-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  box-shadow: none;
}

.billing-financial-grid strong,
.billing-limit-grid strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.billing-action-row {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.billing-action-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.billing-action-row p[data-type="error"] {
  color: #75382e;
  font-weight: 800;
}

.billing-action-row .secondary-button:disabled {
  border-color: rgba(23, 18, 15, 0.1);
  background: rgba(23, 18, 15, 0.07);
  color: rgba(77, 64, 56, 0.56);
  box-shadow: none;
  cursor: not-allowed;
}

.billing-limit-grid {
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.billing-history-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.58);
}

.billing-history-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.billing-history-table th,
.billing-history-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(23, 18, 15, 0.1);
  text-align: left;
}

.billing-history-table th {
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-history-table td {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.billing-history-table tr:last-child td {
  border-bottom: 0;
}

.billing-history-table a {
  color: var(--gold-dark);
  font-weight: 900;
}

.billing-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.billing-upgrade-grid article {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}

.billing-upgrade-grid strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.billing-upgrade-grid p,
.billing-upgrade-grid ul {
  margin: 0;
  color: var(--muted);
}

.billing-upgrade-grid ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
  font-size: 0.94rem;
}

.billing-upgrade-grid .primary-button {
  width: 100%;
  margin-top: 4px;
}

.subscription-access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(211, 165, 126, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 248, 243, 0.82), rgba(231, 218, 208, 0.5)),
    var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 18, 15, 0.08);
}

.subscription-access-panel[hidden] {
  display: none;
}

.subscription-access-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
}

.subscription-access-panel p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.admin-limit-note {
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnosis-score-card span,
.diagnosis-section-grid span,
.diagnosis-content-plan span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.free-account [data-requires-subscription].is-locked {
  border-color: rgba(211, 165, 126, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 248, 243, 0.62), rgba(255, 255, 255, 0.16)),
    var(--paper-strong);
}

.plan-chip {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px;
  border: 1px solid rgba(240, 229, 223, 0.14);
  border-radius: var(--radius);
  background: rgba(240, 229, 223, 0.08);
  color: #f0e5df;
}

.plan-chip span,
.library-card span,
.usage-list span,
.overview-action-grid span,
.mini-library-list span,
.plan-details-grid span,
.social-grid span {
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-chip strong {
  color: #f0e5df;
  font-size: 1.35rem;
  line-height: 1.1;
}

.studio-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 22px;
  align-items: start;
}

.studio-panel,
.schedule-form,
.settings-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12)),
    var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 18, 15, 0.08);
}

.library-preview-panel,
.overview-usage-panel,
.overview-guidance-panel {
  grid-column: 1 / -1;
}

.overview-usage-stack {
  display: grid;
  grid-column: 1 / -1;
  gap: 22px;
}

.overview-library-panel {
  overflow: hidden;
}

.usage-list,
.quick-actions,
.overview-action-grid,
.mini-library-list,
.schedule-list,
.settings-grid,
.social-grid,
.plan-details-grid,
.settings-toggle-list {
  display: grid;
  gap: 12px;
}

.usage-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-usage-panel .usage-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-action-grid,
.mini-library-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usage-list article,
.overview-action-grid article,
.mini-library-card,
.schedule-list article,
.social-grid article,
.plan-details-grid article,
.library-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.56);
}

.overview-action-grid article {
  align-content: start;
}

.overview-action-grid strong,
.mini-library-card strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.18;
}

.overview-action-grid p,
.mini-library-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.overview-action-grid button {
  justify-self: start;
  min-height: 40px;
  margin-top: 4px;
  padding: 0 14px;
  border: 1px solid rgba(23, 18, 15, 0.13);
  border-radius: var(--radius);
  background: rgba(23, 18, 15, 0.055);
  color: var(--ink);
  font-weight: 850;
}

.overview-action-grid button:hover {
  border-color: rgba(211, 165, 126, 0.46);
  background: rgba(211, 165, 126, 0.16);
  transform: translateY(-1px);
}

.usage-list strong,
.plan-details-grid strong,
.social-grid strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-actions button {
  min-height: 48px;
  border: 1px solid rgba(23, 18, 15, 0.14);
  border-radius: var(--radius);
  background: rgba(23, 18, 15, 0.045);
  color: var(--ink);
  font-weight: 850;
}

.quick-actions button:hover {
  border-color: rgba(211, 165, 126, 0.46);
  background: rgba(211, 165, 126, 0.14);
}

.library-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.library-preview-header p {
  max-width: 760px;
}

.mini-library-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mini-library-card:hover {
  border-color: rgba(211, 165, 126, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 248, 243, 0.68)),
    rgba(211, 165, 126, 0.12);
  box-shadow: 0 16px 36px rgba(23, 18, 15, 0.08);
  transform: translateY(-2px);
}

.mini-library-card small {
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.schedule-frequency-fields {
  display: grid;
  gap: 8px;
}

.schedule-frequency-fields[hidden] {
  display: none;
}

.strategy-panel {
  position: relative;
  overflow: hidden;
}

.strategy-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(23, 18, 15, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(211, 165, 126, 0.22), transparent 38%);
  pointer-events: none;
}

.strategy-panel > * {
  position: relative;
}

.diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(0, 1.42fr);
  gap: 22px;
  align-items: start;
}

.diagnosis-form,
.diagnosis-result-panel {
  align-self: start;
}

.diagnosis-result-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 8%, rgba(211, 165, 126, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 18, 15, 0.08);
}

.latest-diagnosis-panel {
  display: grid;
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 18, 15, 0.93), rgba(49, 37, 31, 0.92)),
    #17120f;
}

.latest-diagnosis-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-diagnosis-panel strong {
  color: #f4d29d;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.latest-diagnosis-panel p {
  margin: 0;
  color: rgba(240, 229, 223, 0.78);
}

.latest-diagnosis-panel[data-empty="true"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(255, 248, 243, 0.58);
}

.latest-diagnosis-panel[data-empty="true"] p {
  color: var(--muted);
}

.diagnosis-score-grid,
.diagnosis-section-grid,
.diagnosis-content-plan > div:last-child {
  display: grid;
  gap: 14px;
}

.diagnosis-score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagnosis-score-card,
.diagnosis-section-grid article,
.diagnosis-content-plan,
.diagnosis-content-plan article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.58);
}

.diagnosis-score-card strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.diagnosis-score-card p,
.diagnosis-section-grid li,
.diagnosis-content-plan p,
.diagnosis-content-plan small {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.diagnosis-section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.diagnosis-section-grid strong,
.diagnosis-content-plan strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.diagnosis-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.diagnosis-content-plan > div:first-child {
  display: grid;
  gap: 4px;
}

.diagnosis-content-plan > div:last-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-required-notice {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(145, 54, 41, 0.18);
  border-radius: var(--radius);
  background: rgba(145, 54, 41, 0.08);
}

.profile-required-notice[hidden] {
  display: none;
}

.profile-required-notice strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.profile-required-notice p {
  margin: 0;
  color: var(--ink-soft);
}

.strategy-context-grid,
.strategy-results-grid {
  display: grid;
  gap: 14px;
}

.strategy-context-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategy-context-grid article,
.strategy-card {
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.62);
}

.strategy-context-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.strategy-context-grid span,
.strategy-card span {
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-context-grid strong,
.strategy-card h3,
.strategy-card strong {
  color: var(--ink);
}

.strategy-context-grid p,
.strategy-card p,
.strategy-card small {
  margin: 0;
  color: var(--ink-soft);
}

.strategy-results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strategy-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 340px;
  padding: 24px;
  box-shadow: 0 18px 36px rgba(23, 18, 15, 0.08);
}

.strategy-card h3 {
  margin: 0;
  max-width: 92%;
  font-size: clamp(1.3rem, 1.1vw, 1.65rem);
  line-height: 1.12;
}

.strategy-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.strategy-detail-list div {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(23, 18, 15, 0.08);
  padding-top: 10px;
}

.strategy-detail-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.strategy-detail-list dt {
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-detail-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.strategy-detail-list ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.05rem;
}

.strategy-detail-list li::marker {
  color: var(--gold-dark);
}

.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.creation-form,
.inline-results {
  max-width: 980px;
}

.strategy-results-section {
  width: 100%;
  max-width: none;
}

.brand-creation-layout,
.campaign-creation-layout,
.video-creation-layout,
.commercial-proposal-layout,
.schedule-creation-layout {
  grid-template-columns: minmax(0, 1fr);
}

.brand-creation-layout .creation-form,
.brand-creation-layout .inline-results,
.campaign-creation-layout .creation-form,
.campaign-creation-layout .inline-results,
.video-creation-layout .creation-form,
.video-creation-layout .inline-results,
.commercial-proposal-layout .creation-form,
.commercial-proposal-layout .inline-results,
.schedule-creation-layout .creation-form,
.schedule-creation-layout .inline-results {
  max-width: none;
}

.brand-creation-top,
.campaign-creation-top,
.video-creation-top,
.commercial-proposal-top,
.schedule-creation-top {
  display: grid;
  grid-template-columns: minmax(440px, 1.08fr) minmax(320px, 0.62fr);
  gap: 22px;
  align-items: stretch;
}

.brand-decision-panel,
.campaign-decision-panel,
.video-decision-panel,
.commercial-proposal-decision-panel,
.schedule-decision-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(23, 18, 15, 0.95), rgba(45, 34, 27, 0.94)),
    #17120f;
  color: #f5eee8;
  box-shadow: 0 24px 52px rgba(23, 18, 15, 0.14);
}

.brand-decision-panel h2,
.brand-decision-panel p,
.campaign-decision-panel h2,
.campaign-decision-panel p,
.video-decision-panel h2,
.video-decision-panel p,
.commercial-proposal-decision-panel h2,
.commercial-proposal-decision-panel p,
.schedule-decision-panel h2,
.schedule-decision-panel p {
  color: #f5eee8;
}

.brand-decision-panel > div > p:last-child,
.campaign-decision-panel > div > p:last-child,
.video-decision-panel > div > p:last-child,
.commercial-proposal-decision-panel > div > p:last-child,
.schedule-decision-panel > div > p:last-child {
  margin-bottom: 0;
  color: rgba(245, 238, 232, 0.72);
  line-height: 1.55;
}

.brand-script-summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-script-summary-list li {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(245, 238, 232, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.brand-script-summary-list li.is-selected {
  border-color: rgba(211, 165, 126, 0.44);
  background: rgba(211, 165, 126, 0.12);
}

.brand-script-summary-list strong {
  color: #f5eee8;
  font-size: 0.92rem;
  line-height: 1.22;
}

.brand-script-summary-list span {
  color: rgba(245, 238, 232, 0.7);
  font-size: 0.86rem;
  line-height: 1.38;
}

.brand-results-section,
.campaign-results-section,
.video-results-section,
.commercial-proposal-results-section,
.schedule-results-section {
  padding-top: 0;
}

.inline-results {
  padding-top: 4px;
}

.compact-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-script-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-final-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.video-processing-layout {
  grid-template-columns: minmax(0, 1fr);
}

.video-processing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid rgba(134, 96, 67, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 0%, rgba(211, 165, 126, 0.2), transparent 18rem),
    linear-gradient(145deg, rgba(255, 250, 246, 0.88), rgba(242, 232, 224, 0.76)),
    var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 18, 15, 0.08);
}

.video-processing-card div {
  display: grid;
  gap: 6px;
}

.video-processing-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.video-processing-card span {
  color: var(--muted);
  line-height: 1.45;
}

.video-processing-status {
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 820;
}

.video-processing-card.is-error {
  border-color: rgba(134, 73, 58, 0.3);
}

.video-final-layout {
  width: 100%;
}

.video-final-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 430px;
  aspect-ratio: 1 / 1;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 8%, rgba(211, 165, 126, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 250, 246, 0.38)),
    var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 18, 15, 0.08);
}

.video-final-card-header {
  display: grid;
  gap: 6px;
}

.video-final-card-header span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-final-card-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  line-height: 1.08;
}

.video-final-media-frame {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 16%, rgba(211, 165, 126, 0.24), transparent 18rem),
    linear-gradient(145deg, rgba(23, 18, 15, 0.96), rgba(49, 37, 31, 0.94)),
    #120e0c;
}

.video-final-media-frame .generated-video {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 6px;
}

.video-final-media-frame .generated-download-button {
  right: 14px;
  bottom: 14px;
}

.video-final-script-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.video-final-script-scroll::-webkit-scrollbar {
  width: 8px;
}

.commercial-proposal-script-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commercial-proposal-results-grid.commercial-proposal-final-grid,
.commercial-proposal-final-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.commercial-proposal-final-card {
  display: grid;
  gap: 22px;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 6%, rgba(211, 165, 126, 0.16), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 250, 246, 0.34)),
    var(--paper-strong);
  box-shadow: 0 20px 52px rgba(23, 18, 15, 0.08);
}

.commercial-proposal-final-header {
  display: grid;
  gap: 7px;
  max-width: 980px;
}

.commercial-proposal-final-header span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-proposal-final-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 0.98;
}

.commercial-proposal-final-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.commercial-proposal-document {
  display: grid;
  gap: 14px;
}

.commercial-proposal-document-preview {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  overflow-x: auto;
  padding-bottom: 4px;
}

.commercial-proposal-page {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(211, 165, 126, 0.18), transparent 34%),
    linear-gradient(180deg, #fffaf6, #f2e8df);
  box-shadow: 0 18px 38px rgba(23, 18, 15, 0.08);
}

.commercial-proposal-page::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 42px;
  height: 2px;
  background: var(--proposal-accent, #d3a57e);
}

.commercial-proposal-page-kicker {
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-proposal-page-logo {
  width: min(150px, 56%);
  max-height: 86px;
  object-fit: contain;
  object-position: left center;
}

.commercial-proposal-page h4 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.65vw, 1.85rem);
  line-height: 1;
}

.commercial-proposal-page p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.commercial-proposal-page ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1rem;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.35;
}

.commercial-proposal-page li::marker {
  color: var(--accent-dark);
}

.commercial-proposal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.commercial-proposal-actions .primary-button,
.commercial-proposal-actions .secondary-button {
  min-width: min(220px, 100%);
}

.commercial-proposal-pdf-document {
  width: 794px;
  gap: 0;
  background: #f7efe8;
}

.commercial-proposal-pdf-document .commercial-proposal-page {
  width: 794px;
  height: 1123px;
  min-height: 1123px;
  padding: 76px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  page-break-after: always;
}

.commercial-proposal-pdf-document .commercial-proposal-page h4 {
  max-width: 600px;
  font-size: 48px;
}

.commercial-proposal-pdf-document .commercial-proposal-page p {
  max-width: 620px;
  font-size: 22px;
}

.commercial-proposal-pdf-document .commercial-proposal-page ul {
  max-width: 610px;
  font-size: 20px;
}

.commercial-proposal-document-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-height: none;
  gap: 24px;
  overflow-y: visible;
  overflow-x: hidden;
  padding: 0;
  scroll-padding: 18px;
}

.commercial-proposal-document-preview::-webkit-scrollbar {
  width: 8px;
}

.commercial-proposal-document-preview::-webkit-scrollbar-track {
  background: rgba(23, 18, 15, 0.05);
  border-radius: 999px;
}

.commercial-proposal-document-preview::-webkit-scrollbar-thumb {
  background: rgba(134, 96, 67, 0.28);
  border-radius: 999px;
}

.commercial-proposal-document-preview .commercial-proposal-page {
  width: min(100%, 1120px);
  min-height: clamp(840px, 74vw, 1180px);
  margin: 0 auto;
}

.commercial-proposal-document-preview .commercial-proposal-page:not(.is-active) {
  display: none;
}

.commercial-proposal-document-preview .commercial-proposal-page.is-active {
  display: flex;
}

.commercial-proposal-viewer {
  display: grid;
  gap: 18px;
  width: 100%;
}

.commercial-proposal-page-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(247, 238, 231, 0.42)),
    rgba(255, 250, 246, 0.62);
}

.commercial-proposal-page-button {
  min-height: 44px;
  padding-inline: 18px;
}

.commercial-proposal-page-button:last-child {
  justify-self: end;
}

.commercial-proposal-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.commercial-proposal-page-indicator {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 180px;
}

.commercial-proposal-page-indicator strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.commercial-proposal-page-nav.is-pdf-preview {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.commercial-proposal-page-count {
  color: var(--body);
  font-size: 0.88rem;
  font-weight: 500;
}

.commercial-proposal-page-arrow {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 6px;
  font-size: 1.2rem;
  line-height: 1;
}

.commercial-proposal-page-arrow:first-child {
  justify-self: start;
}

.commercial-proposal-preview-source {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.commercial-proposal-page-dots {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.commercial-proposal-page-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(134, 96, 67, 0.26);
  cursor: pointer;
}

.commercial-proposal-page-dots button.is-active {
  width: 24px;
  background: var(--accent-dark);
}

.commercial-proposal-pdf-preview {
  position: relative;
  width: min(100%, 860px);
  aspect-ratio: 595.28 / 841.89;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(23, 18, 15, 0.14);
}

.commercial-proposal-pdf-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.commercial-proposal-pdf-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 238, 231, 0.94)),
    #fff;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.commercial-proposal-pdf-loading.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.commercial-proposal-book-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 239, 232, 0.9)),
    #fffaf6;
}

.commercial-proposal-page {
  min-height: 980px;
  padding: 0;
  border: 1px solid rgba(23, 18, 15, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 250, 246, 0.96), rgba(239, 228, 219, 0.9)),
    #f7efe8;
  box-shadow: 0 28px 70px rgba(23, 18, 15, 0.14);
}

.commercial-proposal-page::before {
  display: none;
}

.commercial-proposal-page-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 18, 15, 0.72), rgba(23, 18, 15, 0.22)),
    var(--proposal-image),
    radial-gradient(circle at 30% 22%, var(--proposal-accent-soft), transparent 20rem),
    linear-gradient(135deg, #211812, #5b4638);
  background-position: center;
  background-size: cover;
}

.commercial-proposal-page-art::before,
.commercial-proposal-page-art::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: var(--proposal-accent, #d3a57e);
  opacity: 0.86;
}

.commercial-proposal-page-art::before {
  top: 12%;
  right: -28%;
  width: 72%;
  height: 18%;
  transform: rotate(-34deg);
}

.commercial-proposal-page-art::after {
  right: 12%;
  bottom: 12%;
  width: 34%;
  height: 4px;
}

.commercial-proposal-page-art-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 44px 38px;
  color: #fffaf6;
  background:
    linear-gradient(180deg, rgba(23, 18, 15, 0.05), rgba(23, 18, 15, 0.46));
}

.commercial-proposal-page-logo {
  width: min(270px, 82%);
  max-height: 170px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.22));
}

.commercial-proposal-page-monogram {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(255, 250, 246, 0.52);
  border-radius: 999px;
  color: #fffaf6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
}

.commercial-proposal-page-art-label {
  max-width: 260px;
  color: rgba(255, 250, 246, 0.86);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.commercial-proposal-page-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 56px 50px 42px;
}

.commercial-proposal-page-kicker {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.commercial-proposal-page h4 {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.02;
}

.commercial-proposal-page-divider {
  width: min(150px, 48%);
  height: 5px;
  background: var(--proposal-accent, #d3a57e);
}

.commercial-proposal-page-meta {
  margin: 0 0 0.75rem;
  color: var(--proposal-accent, #d3a57e);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.commercial-proposal-page p {
  max-width: 100%;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.62;
}

.commercial-proposal-page ul {
  display: grid;
  max-width: 100%;
  gap: 12px;
  margin-top: 4px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.42;
}

.commercial-proposal-page li {
  position: relative;
  padding: 13px 15px 13px 42px;
  border: 1px solid rgba(23, 18, 15, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.commercial-proposal-page li::before {
  content: "";
  position: absolute;
  top: calc(13px + 0.71em);
  left: 17px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--proposal-accent, #d3a57e);
}

.commercial-proposal-page-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(23, 18, 15, 0.1);
  color: rgba(23, 18, 15, 0.48);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-proposal-page.is-cover .commercial-proposal-book-shell,
.commercial-proposal-page.is-closing .commercial-proposal-book-shell {
  grid-template-columns: 1fr;
}

.commercial-proposal-page.is-cover .commercial-proposal-page-art,
.commercial-proposal-page.is-closing .commercial-proposal-page-art {
  min-height: 42%;
}

.commercial-proposal-page.is-cover .commercial-proposal-page-content,
.commercial-proposal-page.is-closing .commercial-proposal-page-content {
  min-height: 58%;
  justify-content: end;
}

.commercial-proposal-page.is-cover h4,
.commercial-proposal-page.is-closing h4 {
  max-width: 650px;
  font-size: clamp(2.25rem, 4.1vw, 3.7rem);
  line-height: 1.02;
}

.commercial-proposal-page.is-split-reverse .commercial-proposal-book-shell {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.commercial-proposal-page.is-split-reverse .commercial-proposal-page-art {
  order: 2;
}

.commercial-proposal-page.is-split-reverse .commercial-proposal-page-content {
  order: 1;
}

.commercial-proposal-pdf-document {
  display: block;
  width: 794px;
  gap: 0;
  overflow: visible;
}

.commercial-proposal-pdf-document .commercial-proposal-page {
  width: 794px;
  height: 1123px;
  min-height: 1123px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  page-break-after: always;
  break-after: page;
}

.commercial-proposal-pdf-document .commercial-proposal-page:last-child {
  page-break-after: auto;
  break-after: auto;
}

.commercial-proposal-pdf-document .commercial-proposal-book-shell {
  min-height: 1123px;
  border-radius: 0;
}

.commercial-proposal-pdf-document .commercial-proposal-page-art-overlay {
  padding: 58px 50px;
}

.commercial-proposal-pdf-document .commercial-proposal-page-content {
  padding: 74px 64px 56px;
}

.commercial-proposal-pdf-document .commercial-proposal-page h4 {
  font-size: 40px;
}

.commercial-proposal-pdf-document .commercial-proposal-page.is-cover h4,
.commercial-proposal-pdf-document .commercial-proposal-page.is-closing h4 {
  font-size: 46px;
}

.commercial-proposal-pdf-document .commercial-proposal-page p {
  font-size: 20px;
}

.commercial-proposal-pdf-document .commercial-proposal-page ul {
  font-size: 18px;
}

.commercial-proposal-pdf-document .commercial-proposal-page-logo {
  width: min(290px, 84%);
  max-height: 180px;
}

.video-final-script-scroll::-webkit-scrollbar-track {
  background: rgba(23, 18, 15, 0.05);
  border-radius: 999px;
}

.video-final-script-scroll::-webkit-scrollbar-thumb {
  background: rgba(134, 96, 67, 0.26);
  border-radius: 999px;
}

.video-final-script-card .brand-script-points {
  gap: 12px;
}

.video-final-caption-content {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(134, 96, 67, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(247, 238, 231, 0.52)),
    var(--paper);
}

.video-final-caption-card {
  min-width: 0;
}

.video-final-caption-content p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
}

.video-final-caption-content::-webkit-scrollbar {
  width: 8px;
}

.video-final-caption-content::-webkit-scrollbar-track {
  background: rgba(23, 18, 15, 0.05);
  border-radius: 999px;
}

.video-final-caption-content::-webkit-scrollbar-thumb {
  background: rgba(134, 96, 67, 0.26);
  border-radius: 999px;
}

.video-final-caption-cta {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(134, 96, 67, 0.16);
}

.video-final-caption-cta span {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-final-caption-cta strong {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.45;
}

.video-final-caption-actions {
  display: flex;
}

.video-final-caption-actions .secondary-button {
  width: 100%;
  min-height: 42px;
}

.video-final-caption-actions .secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.video-final-empty-state {
  display: grid;
  gap: 8px;
  max-width: 320px;
  padding: 22px;
  text-align: center;
}

.video-final-empty-state strong {
  color: #f4d29d;
  font-size: 1.1rem;
}

.video-final-empty-state p {
  margin: 0;
  color: rgba(245, 238, 232, 0.72);
  line-height: 1.5;
}

.generated-media.has-video {
  min-height: 420px;
  background: #120e0c;
}

.schedule-side-stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 100%;
}

.schedule-saved-panel {
  align-content: start;
  min-height: 0;
  border: 1px solid rgba(23, 18, 15, 0.12);
  background:
    linear-gradient(145deg, rgba(23, 18, 15, 0.95), rgba(45, 34, 27, 0.94)),
    #17120f;
  color: #f5eee8;
  box-shadow: 0 24px 52px rgba(23, 18, 15, 0.14);
}

.schedule-saved-panel .panel-heading {
  margin-bottom: 0;
}

.schedule-saved-panel .panel-heading h2,
.schedule-saved-panel .panel-heading p {
  color: #f5eee8;
}

.schedule-saved-panel .panel-heading p,
.schedule-saved-panel #schedule-helper {
  color: rgba(245, 238, 232, 0.72);
}

.schedule-saved-panel .empty-state {
  border-color: rgba(245, 238, 232, 0.16);
  background: rgba(255, 250, 246, 0.1);
  color: rgba(245, 238, 232, 0.82);
}

#schedule-helper[data-type="error"],
#schedule-results-helper[data-type="error"] {
  display: block;
  padding: 13px 15px;
  border: 1px solid rgba(166, 118, 82, 0.24);
  border-radius: 8px;
  background: rgba(255, 248, 243, 0.72);
  color: #6f4630;
  font-weight: 780;
}

.schedule-saved-panel #schedule-helper[data-type="error"] {
  border-color: rgba(225, 181, 142, 0.28);
  background: rgba(255, 250, 246, 0.1);
  color: rgba(245, 238, 232, 0.9);
}

.schedule-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.schedule-list::-webkit-scrollbar,
.schedule-detail-panel::-webkit-scrollbar,
.schedule-final-media-list::-webkit-scrollbar {
  width: 8px;
}

.schedule-list::-webkit-scrollbar-track,
.schedule-detail-panel::-webkit-scrollbar-track,
.schedule-final-media-list::-webkit-scrollbar-track {
  background: rgba(23, 18, 15, 0.05);
  border-radius: 999px;
}

.schedule-list::-webkit-scrollbar-thumb,
.schedule-detail-panel::-webkit-scrollbar-thumb,
.schedule-final-media-list::-webkit-scrollbar-thumb {
  background: rgba(134, 96, 67, 0.26);
  border-radius: 999px;
}

.schedule-list article {
  cursor: pointer;
  position: relative;
  gap: 12px;
  padding: 18px;
  border-color: rgba(245, 238, 232, 0.14);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(246, 237, 230, 0.88)),
    #fffaf6;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.schedule-list article:hover,
.schedule-list article.is-selected {
  border-color: rgba(134, 96, 67, 0.38);
  box-shadow: 0 18px 36px rgba(23, 18, 15, 0.1);
}

.schedule-list article.is-selected {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(238, 229, 222, 0.8)),
    #f7f0eb;
}

.schedule-item.is-paused {
  border-color: rgba(134, 96, 67, 0.28);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(235, 226, 219, 0.86)),
    #f4ece6;
}

.schedule-item.is-paused .schedule-item-pill {
  border-color: rgba(134, 96, 67, 0.3);
  background: rgba(134, 96, 67, 0.11);
  color: #765239;
}

.schedule-item-header,
.schedule-item-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.schedule-item-header strong {
  color: var(--ink);
  line-height: 1.18;
}

.schedule-item-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(134, 96, 67, 0.18);
  border-radius: 999px;
  background: rgba(211, 165, 126, 0.16);
  color: #6f4933;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-item-time {
  display: block;
  color: rgba(23, 18, 15, 0.68);
  font-size: 0.92rem;
  font-weight: 720;
}

.schedule-item-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.schedule-item-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.schedule-item-action {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.64);
  color: rgba(23, 18, 15, 0.72);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 820;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.schedule-item-action:hover,
.schedule-item-action:focus-visible {
  border-color: rgba(211, 165, 126, 0.42);
  background: rgba(255, 250, 246, 0.94);
  color: var(--ink);
}

.schedule-detail-panel {
  display: grid;
  gap: 14px;
  max-height: 280px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.58);
}

.schedule-detail-panel[hidden] {
  display: none;
}

.schedule-detail-empty,
.schedule-detail-header {
  display: grid;
  gap: 7px;
}

.schedule-detail-empty strong,
.schedule-detail-header h3 {
  margin: 0;
  color: var(--ink);
}

.schedule-detail-header span {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-detail-header p,
.schedule-detail-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.schedule-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.schedule-detail-list div {
  display: grid;
  gap: 4px;
}

.schedule-detail-list dt {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-detail-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.schedule-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-detail-actions .secondary-button {
  min-height: 38px;
  padding: 0 14px;
}

.schedule-script-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.schedule-final-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  align-items: stretch;
}

.schedule-final-card {
  min-height: 520px;
  aspect-ratio: auto;
}

.schedule-final-preview-card {
  gap: 16px;
}

.schedule-final-media-list {
  display: grid;
  flex: 1;
  min-height: 0;
  max-height: 620px;
  overflow: auto;
  gap: 14px;
  padding-right: 3px;
}

.schedule-final-media-list .generated-card {
  min-height: 0;
  box-shadow: none;
}

.schedule-final-media-list .generated-media.has-image {
  min-height: 360px;
}

.schedule-final-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.64);
}

.schedule-final-copy span {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-final-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.generated-video {
  width: 100%;
  height: 100%;
  max-height: 560px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 6px;
  background: #120e0c;
}

.video-final-media-frame,
.video-final-media-frame .generated-video {
  aspect-ratio: 16 / 9;
}

.video-final-media-frame .generated-video {
  object-fit: contain;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 620px;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -8px 0 18px;
  padding: 12px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.56);
}

.library-toolbar p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.library-view-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.library-view-switch button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(23, 18, 15, 0.64);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.library-view-switch button.is-active {
  background: #17120f;
  color: #f5eee8;
  box-shadow: 0 12px 24px rgba(23, 18, 15, 0.12);
}

.library-grid {
  display: grid;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  gap: 14px;
  height: clamp(560px, 74vh, 760px);
  max-height: min(74vh, 760px);
  overflow-y: auto;
  padding: 2px 8px 18px 2px;
  scrollbar-color: rgba(145, 104, 72, 0.44) rgba(255, 248, 243, 0.45);
}

.library-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: visible;
  height: auto;
  width: 100%;
  min-height: 176px;
  padding: 20px 70px 58px 18px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 248, 243, 0.74)),
    var(--paper-strong);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.library-card::before {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, rgba(211, 165, 126, 0.96), rgba(145, 104, 72, 0.78));
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.library-card:hover,
.library-card.is-selected {
  border-color: rgba(211, 165, 126, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 248, 243, 0.66)),
    rgba(211, 165, 126, 0.12);
  box-shadow: 0 16px 36px rgba(23, 18, 15, 0.08);
}

.library-card.is-selected {
  border-color: rgba(145, 104, 72, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(145, 104, 72, 0.16),
    0 16px 36px rgba(23, 18, 15, 0.08);
}

.library-card.is-selected::before {
  opacity: 1;
}

.library-card strong {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.2;
}

.library-card > span {
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-card p,
.library-card small,
.library-detail-panel p,
.library-output-card p,
.mini-library-list span,
.schedule-list span,
.schedule-list p,
.schedule-list small {
  margin: 0;
  color: var(--muted);
}

.library-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4px;
  padding-top: 4px;
}

.library-card-footer small {
  min-width: 0;
  line-height: 1.45;
}

.library-favorite-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.58);
  color: rgba(23, 18, 15, 0.44);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 18, 15, 0.08);
  backdrop-filter: blur(12px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.library-favorite-button span {
  font-size: 1rem;
  line-height: 1;
}

.library-favorite-button:hover,
.library-favorite-button:focus-visible {
  border-color: rgba(211, 165, 126, 0.45);
  background: rgba(255, 250, 246, 0.9);
  color: rgba(145, 104, 72, 0.88);
  transform: translateY(-1px);
}

.library-favorite-button.is-active {
  border-color: rgba(211, 165, 126, 0.5);
  background: rgba(211, 165, 126, 0.18);
  color: #d3a57e;
}

.library-detail-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  height: clamp(560px, 74vh, 760px);
  max-height: min(74vh, 760px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(23, 18, 15, 0.95), rgba(45, 34, 27, 0.94)),
    #17120f;
  color: #f5eee8;
  box-shadow: 0 24px 52px rgba(23, 18, 15, 0.14);
  scrollbar-color: rgba(211, 165, 126, 0.42) rgba(255, 255, 255, 0.06);
}

.library-detail-heading {
  display: grid;
  gap: 8px;
}

.library-detail-heading span,
.library-output-card span,
.library-detail-stats span {
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-detail-heading h3 {
  margin: 0;
  color: #f5eee8;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.library-detail-heading p {
  color: rgba(245, 238, 232, 0.72);
}

.library-detail-favorite {
  position: static;
  justify-self: start;
  border-color: rgba(245, 238, 232, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 238, 232, 0.64);
}

.library-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.library-detail-stats article,
.library-output-card,
.library-detail-empty {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(245, 238, 232, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.library-detail-stats strong,
.library-output-card strong,
.library-detail-empty strong {
  color: #f5eee8;
  line-height: 1.2;
}

.library-output-list {
  display: grid;
  gap: 12px;
}

.library-output-card p,
.library-detail-empty p {
  color: rgba(245, 238, 232, 0.7);
}

.library-output-card .strategy-detail-list {
  gap: 10px;
  margin-top: 2px;
}

.library-output-card .strategy-detail-list div {
  border-top-color: rgba(245, 238, 232, 0.1);
}

.library-output-card .strategy-detail-list dt {
  color: rgba(211, 165, 126, 0.92);
}

.library-output-card .strategy-detail-list dd {
  color: rgba(245, 238, 232, 0.74);
}

.library-output-card.has-media {
  padding: 12px;
}

.library-output-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(245, 238, 232, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.08);
}

.library-output-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffaf6;
}

.library-output-download {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.6);
  color: rgba(23, 18, 15, 0.72);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.library-output-download:hover,
.library-output-download:focus-visible {
  background: rgba(255, 250, 246, 0.92);
  color: var(--ink);
  transform: translateY(-1px);
}

.schedule-list p {
  line-height: 1.55;
}

.schedule-list .schedule-item-pill {
  color: #6f4933;
}

.schedule-list .schedule-item-time {
  color: rgba(23, 18, 15, 0.68);
}

.schedule-list small {
  color: var(--gold-dark);
  font-weight: 850;
}

.empty-state {
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(23, 18, 15, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.42);
  color: var(--muted);
  font-weight: 700;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 800;
}

.settings-grid label:last-child {
  grid-column: 1 / -1;
}

.form-section-divider {
  display: grid;
  gap: 4px;
  margin: 10px 0 2px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 18, 15, 0.1);
}

.form-section-divider span {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.form-section-divider p,
.field-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.campaign-type-helper {
  margin-top: -8px;
  line-height: 1.45;
}

.social-format-preview {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 14px;
  margin-top: -4px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 248, 243, 0.56);
}

.social-format-ratio {
  display: block;
  height: 46px;
  min-width: 24px;
  max-width: 76px;
  border: 2px solid rgba(142, 94, 62, 0.56);
  border-radius: 4px;
  background: rgba(211, 165, 126, 0.16);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.48);
}

.social-format-preview-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.social-format-preview-copy strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.social-format-preview-copy small,
.general-chat-social-format-summary {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.specific-campaign-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 248, 243, 0.74), rgba(255, 255, 255, 0.36)),
    rgba(211, 165, 126, 0.1);
}

.schedule-form .specific-campaign-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.specific-campaign-fields[hidden] {
  display: none;
}

.specific-campaign-fields > div {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.brand-logo-uploader {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 248, 243, 0.72), rgba(255, 248, 243, 0.42)),
    rgba(255, 255, 255, 0.22);
}

.brand-logo-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo-heading span,
.brand-logo-heading strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.brand-logo-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.brand-logo-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.brand-logo-list[data-empty="true"] {
  grid-template-columns: 1fr;
}

.brand-logo-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 18, 15, 0.11);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.44);
}

.brand-logo-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
  background:
    linear-gradient(45deg, rgba(23, 18, 15, 0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(23, 18, 15, 0.045) 25%, transparent 25%),
    rgba(240, 229, 223, 0.48);
  background-size: 18px 18px;
  background-position:
    0 0,
    0 9px;
}

.brand-logo-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-logo-item strong,
.brand-logo-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo-item strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.brand-logo-item span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.company-image-uploader {
  background:
    radial-gradient(circle at 96% 8%, rgba(211, 165, 126, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 248, 243, 0.78), rgba(255, 248, 243, 0.44)),
    rgba(255, 255, 255, 0.26);
}

.company-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.company-image-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-image-list[data-empty="true"] {
  grid-template-columns: 1fr;
}

.company-image-item {
  align-content: start;
}

.company-image-item img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 248, 243, 0.82), rgba(238, 227, 221, 0.58)),
    rgba(247, 240, 235, 0.74);
}

.company-image-item label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.company-image-item select,
.company-image-item textarea {
  width: 100%;
  min-width: 0;
}

.company-image-item textarea {
  min-height: 72px;
  resize: vertical;
}

.analysis-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(211, 165, 126, 0.26);
  border-radius: var(--radius);
  background: rgba(211, 165, 126, 0.1);
  color: var(--ink);
}

.analysis-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.analysis-toggle span {
  font-size: 0.94rem;
  font-weight: 900;
}

.analysis-toggle small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.analysis-toggle.is-disabled {
  border-color: rgba(23, 18, 15, 0.1);
  background: rgba(23, 18, 15, 0.035);
  color: var(--muted);
}

.site-analysis-panel {
  overflow: hidden;
}

.site-analysis-form {
  display: grid;
  gap: 10px;
}

.site-analysis-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.site-analysis-input-row .secondary-button {
  white-space: nowrap;
}

.site-analysis-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 12%, rgba(211, 165, 126, 0.2), transparent 34%),
    rgba(255, 248, 243, 0.58);
}

.site-analysis-card[data-empty="true"] {
  border-style: dashed;
  background: rgba(255, 248, 243, 0.38);
}

.site-analysis-card span,
.site-analysis-meta span {
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-analysis-card strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.15;
}

.site-analysis-card p {
  margin: 0;
  color: var(--muted);
}

.site-analysis-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.site-analysis-meta article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.32);
}

.site-analysis-meta strong {
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.site-analysis-colors,
.site-analysis-assets,
.site-analysis-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-analysis-colors span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.site-analysis-colors span::before {
  content: "";
  width: 16px;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 18, 15, 0.18);
  border-radius: 50%;
  background: var(--swatch);
}

.site-analysis-assets a,
.site-analysis-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 999px;
  background: rgba(23, 18, 15, 0.055);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.site-analysis-assets a:hover {
  border-color: rgba(211, 165, 126, 0.48);
  color: var(--ink);
}

.site-analysis-actions {
  display: flex;
  justify-content: flex-end;
}

.ghost-button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ghost-button:hover {
  color: var(--ink);
}

.social-grid,
.plan-details-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-grid article {
  align-content: start;
}

.social-grid article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.social-grid article.is-connected {
  border-color: rgba(211, 165, 126, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 248, 243, 0.58)),
    rgba(211, 165, 126, 0.1);
}

.social-grid article.is-connected strong {
  color: var(--gold-dark);
}

.social-grid article.is-disabled {
  opacity: 0.72;
}

.social-grid article.is-disabled button {
  cursor: not-allowed;
  opacity: 0.72;
}

.prepared-tool-panel {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.section-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 166, 122, 0.38);
  border-radius: 999px;
  padding: 10px 14px;
  color: #d6a67a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  justify-self: end;
}

.general-chat-layout {
  display: block;
}

.general-chat-panel {
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 251, 247, 0.92);
}

.general-chat-thread {
  min-height: 420px;
  max-height: 620px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
}

.general-chat-message {
  width: min(84%, 720px);
  border: 1px solid rgba(67, 48, 38, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(23, 18, 15, 0.06);
}

.general-chat-message.is-wide {
  width: min(100%, 980px);
}

.general-chat-message span {
  display: block;
  margin-bottom: 6px;
  color: #a77952;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.general-chat-message p {
  margin: 0;
  color: rgba(31, 24, 20, 0.78);
  line-height: 1.55;
}

.general-chat-message.is-user {
  align-self: flex-end;
  background: #1b120e;
}

.general-chat-message.is-user p {
  color: rgba(255, 247, 239, 0.88);
}

.general-chat-message.is-bot {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(255, 252, 248, 0.98), rgba(239, 226, 216, 0.82));
}

.general-chat-composer {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.general-chat-inline-status {
  margin: 0;
  color: rgba(31, 24, 20, 0.58);
  font-size: 0.9rem;
  line-height: 1.45;
}

.general-chat-composer textarea,
.general-chat-compact-form input,
.general-chat-compact-form select,
.general-chat-compact-form textarea {
  width: 100%;
  border: 1px solid rgba(67, 48, 38, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255, 252, 248, 0.9);
  color: #1f1814;
  font: inherit;
}

.general-chat-compact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 16px;
}

.general-chat-compact-form label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: rgba(31, 24, 20, 0.72);
  font-size: 0.92rem;
}

.general-chat-compact-form label span {
  color: #6c4d39;
  font-weight: 800;
}

.general-chat-compact-form label.is-wide,
.general-chat-compact-form .full-width {
  grid-column: 1 / -1;
}

.general-chat-form-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.general-chat-form-submit,
.general-chat-form-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(179, 132, 95, 0.36);
  border-radius: 10px;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.general-chat-form-submit {
  background: linear-gradient(135deg, #2a1d18, #5b3d2e);
  color: #fff7ef;
  box-shadow: 0 16px 34px rgba(48, 30, 22, 0.22);
}

.general-chat-form-cancel {
  background: rgba(93, 68, 50, 0.1);
  color: #5d4432;
}

.general-chat-form-submit:hover,
.general-chat-form-cancel:hover {
  border-color: rgba(179, 132, 95, 0.66);
}

.general-chat-form-submit:hover {
  background: linear-gradient(135deg, #1d1411, #664735);
}

.general-chat-form-cancel:hover {
  background-color: rgba(211, 165, 126, 0.18);
}

.general-chat-form-submit:disabled,
.general-chat-form-cancel:disabled,
.general-chat-compact-form.is-cancelled .general-chat-form-submit,
.general-chat-compact-form.is-cancelled .general-chat-form-cancel {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.general-chat-compact-form label.is-disabled {
  opacity: 0.58;
}

.general-chat-compact-form label.is-disabled input,
.general-chat-compact-form label.is-disabled select,
.general-chat-compact-form label.is-disabled textarea {
  cursor: not-allowed;
  background: rgba(244, 233, 224, 0.56);
}

.general-chat-field-helper {
  margin: -2px 0 0;
  color: rgba(92, 76, 65, 0.72);
  font-size: 0.82rem;
  line-height: 1.4;
}

.general-chat-field-helper[data-type="success"] {
  color: #6f4933;
}

.general-chat-social-format-summary {
  margin-top: -1px;
}

.general-chat-message-card {
  display: grid;
  gap: 10px;
}

.general-chat-message-card h3 {
  margin: 0;
  color: #1f1814;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.general-chat-message-card > p:not(.section-kicker) {
  margin: 0;
  color: rgba(31, 24, 20, 0.68);
  line-height: 1.6;
}

.general-chat-option-grid,
.general-chat-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.general-chat-option-card,
.general-chat-result-card {
  border: 1px solid rgba(67, 48, 38, 0.12);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 252, 248, 0.82);
}

.general-chat-result-card {
  position: relative;
}

.general-chat-result-media {
  position: relative;
  margin-bottom: 10px;
}

.general-chat-result-media .generated-download-button {
  right: 12px;
  bottom: 12px;
}

.general-chat-result-media video,
.general-chat-result-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #f7efe8;
}

.general-chat-result-media video {
  display: block;
}

.general-chat-result-card strong {
  display: block;
  margin-bottom: 8px;
  color: #1f1814;
  font-size: 1rem;
}

.general-chat-copy-card,
.general-chat-score {
  border: 1px solid rgba(67, 48, 38, 0.12);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 252, 248, 0.82);
}

.general-chat-copy-card strong,
.general-chat-detail-list strong {
  color: #a77952;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.general-chat-copy-card p {
  margin: 8px 0 0;
  color: rgba(31, 24, 20, 0.78);
  line-height: 1.6;
}

.general-chat-diagnosis-result,
.general-chat-schedule-final {
  display: grid;
  gap: 14px;
}

.general-chat-score {
  display: inline-grid;
  justify-self: start;
  min-width: 150px;
}

.general-chat-score strong {
  color: #1f1814;
  font-size: 2rem;
  line-height: 1;
}

.general-chat-score span {
  margin-top: 6px;
  color: rgba(31, 24, 20, 0.58);
  font-weight: 800;
}

.general-chat-detail-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.general-chat-detail-list li {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(67, 48, 38, 0.1);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 252, 248, 0.62);
}

.general-chat-option-card.is-selected {
  border-color: rgba(167, 121, 82, 0.52);
  background: rgba(236, 216, 198, 0.5);
}

.general-chat-option-card label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 800;
}

.general-chat-video-redirect {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(167, 121, 82, 0.22);
  border-left: 4px solid #a77952;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(238, 224, 213, 0.82)),
    #fffaf6;
}

.general-chat-video-redirect p {
  margin: 0;
  color: rgba(31, 24, 20, 0.76);
  line-height: 1.6;
}

.general-chat-video-redirect .primary-button {
  justify-self: start;
  min-width: 190px;
}

.general-chat-quote-items {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(67, 48, 38, 0.12);
  border-radius: 10px;
  background: rgba(247, 237, 229, 0.56);
}

.general-chat-quote-items-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.general-chat-quote-items-heading div {
  display: grid;
  gap: 4px;
}

.general-chat-quote-items-heading strong {
  color: #3f2b20;
  font-size: 1rem;
}

.general-chat-quote-items-heading p,
.general-chat-quote-summary p {
  margin: 0;
  color: rgba(31, 24, 20, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.general-chat-quote-items-heading small {
  color: rgba(31, 24, 20, 0.62);
  font-size: 0.82rem;
  line-height: 1.4;
}

.general-chat-quote-add {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(167, 121, 82, 0.32);
  border-radius: 8px;
  background: rgba(255, 252, 248, 0.78);
  color: #5b3d2e;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.general-chat-quote-add:hover {
  border-color: rgba(167, 121, 82, 0.58);
  background: rgba(232, 212, 196, 0.72);
}

.general-chat-quote-items-list {
  display: grid;
  gap: 10px;
}

.general-chat-quote-item-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(86px, 0.48fr) minmax(100px, 0.56fr) minmax(135px, 0.72fr) 42px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(67, 48, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 252, 248, 0.9);
}

.general-chat-quote-item-row label {
  min-width: 0;
}

.general-chat-quote-item-row input,
.general-chat-quote-item-row select {
  min-width: 0;
}

.general-chat-quote-item-total {
  display: grid;
  gap: 7px;
  align-content: end;
  min-height: 68px;
  padding: 0 4px 11px;
}

.general-chat-quote-item-total span {
  color: #6c4d39;
  font-size: 0.76rem;
  font-weight: 800;
}

.general-chat-quote-item-total strong {
  color: #1f1814;
  font-size: 0.92rem;
}

.general-chat-quote-remove {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: end;
  border: 1px solid rgba(67, 48, 38, 0.14);
  border-radius: 8px;
  background: rgba(255, 252, 248, 0.78);
  color: #6c4d39;
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.general-chat-quote-remove:hover {
  border-color: rgba(167, 121, 82, 0.5);
  background: rgba(233, 215, 201, 0.7);
}

.general-chat-quote-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: 2px;
}

.general-chat-quote-summary strong {
  color: #1f1814;
  font-size: 1rem;
}

.general-chat-quote-summary > span {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  color: rgba(31, 24, 20, 0.62);
  font-size: 0.84rem;
}

.general-chat-quote-summary .is-total {
  margin-left: auto;
  padding: 9px 12px;
  border-radius: 7px;
  background: #2a1d18;
  color: rgba(255, 247, 239, 0.72);
}

.general-chat-quote-summary .is-total strong {
  color: #fff7ef;
}

.general-chat-document-result {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin-top: 4px;
}

.general-chat-document-result .commercial-proposal-book,
.general-chat-document-result .commercial-proposal-book-shell,
.general-chat-document-result .commercial-proposal-document-preview {
  min-width: 0;
}

.general-chat-proposal-result .commercial-proposal-book {
  width: 100%;
  max-width: none;
}

.general-chat-proposal-result .commercial-proposal-page {
  min-height: clamp(650px, 74vw, 900px);
}

.general-chat-quote-preview-host {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(32, 23, 18, 0.035);
}

.general-chat-quote-preview-host .quote-document-preview {
  width: 980px;
  max-width: none;
  margin: 0;
  transform-origin: left top;
  will-change: transform;
}

.general-chat-document-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.general-chat-document-actions.is-three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.general-chat-document-actions button {
  width: 100%;
  min-height: 46px;
}

.quote-replace-confirmation {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.quote-replace-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(19, 13, 10, 0.68);
  backdrop-filter: blur(5px);
  cursor: default;
}

.quote-replace-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 590px);
  gap: 14px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(211, 165, 126, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 252, 248, 0.99), rgba(239, 226, 216, 0.98)),
    #fffaf6;
  box-shadow: 0 32px 90px rgba(19, 13, 10, 0.32);
}

.quote-replace-dialog h2,
.quote-replace-dialog p {
  margin: 0;
}

.quote-replace-dialog h2 {
  color: #1f1814;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.quote-replace-dialog p {
  color: rgba(31, 24, 20, 0.7);
  line-height: 1.65;
}

.quote-replace-dialog p strong {
  color: #4b3326;
}

.quote-replace-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.quote-replace-actions button {
  min-height: 46px;
}

@media (max-width: 980px) {
  .general-chat-layout {
    grid-template-columns: 1fr;
  }

  .general-chat-message {
    width: 100%;
  }

  .general-chat-compact-form {
    grid-template-columns: 1fr;
  }

  .general-chat-form-actions {
    grid-template-columns: 1fr;
  }

  .general-chat-quote-item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .general-chat-quote-item-row label:first-child,
  .general-chat-quote-item-total {
    grid-column: 1 / -1;
  }

  .general-chat-quote-item-total {
    min-height: 0;
    padding: 0;
  }

  .general-chat-quote-remove {
    justify-self: end;
  }

  .general-chat-proposal-result .commercial-proposal-page {
    min-height: 720px;
  }

  .section-status-chip {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .general-chat-quote-items-heading,
  .general-chat-quote-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .general-chat-quote-summary .is-total {
    margin-left: 0;
  }

  .general-chat-quote-items-heading .secondary-button,
  .general-chat-quote-items-heading .general-chat-quote-add {
    width: 100%;
  }

  .general-chat-quote-item-row,
  .general-chat-document-actions,
  .general-chat-document-actions.is-three-column,
  .quote-replace-actions {
    grid-template-columns: 1fr;
  }

  .general-chat-quote-item-row label:first-child,
  .general-chat-quote-item-total {
    grid-column: auto;
  }

  .general-chat-quote-remove {
    justify-self: stretch;
    width: 100%;
  }

  .general-chat-video-redirect .primary-button {
    width: 100%;
  }
}

.account-security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  grid-template-areas:
    "profile summary"
    "profile danger"
    "access danger"
    "history history";
  gap: 22px;
  align-items: stretch;
}

.account-profile-panel,
.account-summary-panel,
.account-access-panel,
.account-danger-panel,
.account-history-panel {
  min-width: 0;
}

.account-profile-panel {
  grid-area: profile;
}

.account-summary-panel {
  grid-area: summary;
}

.account-access-panel {
  grid-area: access;
}

.account-danger-panel {
  grid-area: danger;
}

.account-history-panel {
  grid-area: history;
}

.account-profile-shell {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-member-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  justify-self: stretch;
  align-content: start;
  gap: 10px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  min-height: auto;
  padding: 16px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 248, 243, 0.58)),
    rgba(211, 165, 126, 0.08);
  text-align: center;
}

.account-member-card .member-avatar-button {
  width: 64px;
  height: 64px;
  margin-top: 4px;
  font-size: 1rem;
}

.account-member-card .member-identity-link {
  max-width: 100%;
  margin-left: 0;
  justify-items: center;
}

.account-member-card .member-company-name {
  font-size: clamp(0.84rem, 1.1vw, 0.98rem);
  line-height: 1.15;
  white-space: normal;
  text-align: center;
}

.account-member-card .member-email-link {
  max-width: 100%;
  font-size: 0.72rem;
  text-align: center;
  white-space: normal;
}

.account-form,
.account-delete-confirmation form {
  display: grid;
  gap: 12px;
}

.account-form label,
.account-delete-confirmation label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 850;
}

.account-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.account-summary-list div {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 14px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.56);
}

.account-summary-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-summary-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.account-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-action-grid .secondary-button {
  min-height: 58px;
  padding-inline: 14px;
}

.account-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.58);
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 760;
  line-height: 1.45;
}

.account-status:not(:empty) {
  display: block;
}

.account-status[data-type="success"] {
  border-color: rgba(79, 120, 73, 0.26);
  background: rgba(79, 120, 73, 0.1);
  color: #3f6538;
}

.account-status[data-type="error"] {
  border-color: rgba(145, 54, 41, 0.24);
  background: rgba(145, 54, 41, 0.1);
  color: #75382e;
}

.account-danger-panel {
  border-color: rgba(23, 18, 15, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 248, 243, 0.62)),
    rgba(211, 165, 126, 0.06);
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(145, 54, 41, 0.18);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.92), rgba(238, 224, 214, 0.72)),
    rgba(145, 54, 41, 0.05);
  color: #6f392f;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 18, 15, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.danger-button:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 54, 41, 0.34);
  box-shadow: 0 16px 28px rgba(23, 18, 15, 0.12);
}

.danger-button:disabled,
.danger-button[disabled] {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.account-delete-confirmation,
.account-delete-pending {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(145, 54, 41, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.74);
}

.account-delete-confirmation[hidden],
.account-delete-pending[hidden],
.account-delete-countdown[hidden] {
  display: none;
}

.account-delete-pending {
  display: grid;
  gap: 10px;
}

.account-delete-countdown {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid rgba(211, 165, 126, 0.28);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 248, 243, 0.76), rgba(238, 224, 214, 0.72)),
    rgba(211, 165, 126, 0.1);
}

.account-delete-confirmation form {
  gap: 10px;
}

.account-delete-confirm-label {
  gap: 7px;
}

.account-delete-confirm-label span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.25;
}

.account-delete-confirm-label strong {
  color: var(--ink);
  font-weight: 850;
}

.account-delete-countdown span {
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-delete-countdown b {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1;
}

.account-delete-pending strong {
  color: var(--ink);
  font-size: 1rem;
}

.account-delete-pending p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.account-delete-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.account-delete-support-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.account-security-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-security-events article {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 16px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.56);
}

.account-security-events article[data-status="success"] {
  border-color: rgba(79, 120, 73, 0.24);
}

.account-security-events article[data-status="warning"] {
  border-color: rgba(177, 124, 76, 0.28);
}

.account-security-events article[data-status="danger"] {
  border-color: rgba(145, 54, 41, 0.24);
}

.account-security-events span {
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-security-events strong {
  color: var(--ink);
  font-size: 1rem;
}

.account-security-events p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.settings-toggle-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.52);
  color: var(--ink-soft);
  font-weight: 780;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.52fr);
  gap: 22px;
  align-items: start;
}

.support-form {
  display: grid;
  gap: 12px;
}

.support-form label {
  color: var(--ink-soft);
  font-weight: 850;
}

.support-form textarea {
  min-height: 190px;
  resize: vertical;
}

.support-side-stack {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
  align-self: start;
}

.support-status {
  display: none;
  margin: 2px 0 0;
  padding: 13px 14px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.56);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.support-status:not(:empty) {
  display: block;
}

.support-status[data-type="success"] {
  border-color: rgba(79, 120, 73, 0.24);
  background: rgba(79, 120, 73, 0.1);
  color: #3f6538;
}

.support-status[data-type="error"] {
  border-color: rgba(145, 54, 41, 0.24);
  background: rgba(145, 54, 41, 0.1);
  color: #75382e;
}

.support-contact-panel {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(211, 165, 126, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12)),
    var(--paper-strong);
}

.support-contact-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.support-whatsapp-icon {
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(37, 211, 102, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.58), transparent 42%),
    linear-gradient(145deg, #1fa85b, #11753c);
  box-shadow: 0 14px 26px rgba(23, 18, 15, 0.14);
}

.support-whatsapp-icon svg {
  width: 34px;
  height: 34px;
  fill: #fff7ec;
}

.support-live-chat-icon {
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(168, 127, 92, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(145deg, #4d4038, #17120f);
  box-shadow: 0 14px 26px rgba(23, 18, 15, 0.14);
}

.support-live-chat-icon svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: #fff7ec;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.support-live-chat-icon svg path:first-child {
  fill: rgba(255, 247, 236, 0.12);
}

.support-contact-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.support-contact-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.support-contact-copy {
  padding: 16px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.5);
}

.support-whatsapp-button[aria-disabled="true"] {
  border-color: rgba(23, 18, 15, 0.12);
  background: rgba(23, 18, 15, 0.07);
  color: var(--muted);
  box-shadow: none;
}

.live-chat-status,
.support-email-inline {
  margin: 0;
  color: rgba(77, 64, 56, 0.66);
  font-size: 0.84rem;
  line-height: 1.45;
}

.support-email-inline {
  text-align: center;
}

.support-email-inline span {
  color: rgba(23, 18, 15, 0.68);
  font-weight: 800;
}

.live-chat-status {
  padding-top: 2px;
}

.live-chat-status[data-type="success"] {
  color: #3f6538;
  font-weight: 800;
}

.live-chat-status[data-type="error"] {
  color: #75382e;
  font-weight: 800;
}

.live-chat-card.is-pending .primary-button,
.live-chat-card .primary-button:disabled {
  border-color: rgba(23, 18, 15, 0.12);
  background: rgba(23, 18, 15, 0.08);
  color: rgba(77, 64, 56, 0.62);
  box-shadow: none;
  cursor: not-allowed;
}

.live-chat-card .primary-button:disabled:hover {
  transform: none;
}

.brand-profile,
.campaign-builder {
  display: grid;
  gap: 12px;
  padding: 26px;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.brand-contact-fields {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 248, 243, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(240, 229, 223, 0.34);
}

.brand-contact-heading {
  display: grid;
  gap: 4px;
}

.brand-contact-heading span {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-contact-heading p {
  max-width: 820px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.brand-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.brand-contact-grid > div {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.panel-heading h2 {
  margin-bottom: 4px;
  font-size: 1.55rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 18, 15, 0.06);
}

.segmented-control label {
  position: relative;
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
}

.segmented-control input:checked + span {
  background: linear-gradient(135deg, rgba(211, 165, 126, 0.34), rgba(255, 255, 255, 0.52));
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(23, 18, 15, 0.1);
}

.results-section {
  padding-top: 36px;
}

.results-section .section-heading {
  margin-bottom: 24px;
}

.generated-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.generated-card {
  overflow: hidden;
}

.generated-card.reveal-target {
  transition-delay: 0ms;
}

.generated-media {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(211, 165, 126, 0.74), rgba(23, 18, 15, 0.86)),
    #17120f;
  color: #f0e5df;
}

.generated-media.video {
  min-height: 260px;
  background:
    linear-gradient(145deg, rgba(23, 18, 15, 0.92), rgba(211, 165, 126, 0.46)),
    #17120f;
}

.generated-media strong {
  display: block;
  max-width: 240px;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.18;
}

.generated-media.has-image {
  position: relative;
  min-height: 320px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 229, 223, 0.84)),
    #f7f0eb;
}

.generated-image {
  width: 100%;
  height: 100%;
  max-height: 290px;
  object-fit: contain;
  border: 1px solid rgba(23, 18, 15, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(240, 229, 223, 0.42)),
    #fffaf6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.generated-image.is-previewable {
  cursor: zoom-in;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.generated-image.is-previewable:hover,
.generated-image.is-previewable:focus-visible {
  border-color: rgba(134, 96, 67, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.48),
    0 16px 30px rgba(23, 18, 15, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.generated-media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 7px 10px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.86);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.generated-download-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.9);
  color: rgba(23, 18, 15, 0.82);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 18, 15, 0.08);
  backdrop-filter: blur(14px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  appearance: none;
}

.download-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.generated-download-button:hover,
.generated-download-button:focus-visible {
  border-color: rgba(134, 96, 67, 0.34);
  background: rgba(255, 250, 246, 0.98);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(23, 18, 15, 0.16);
  transform: translateY(-1px);
}

.campaign-carousel-card .generated-media {
  gap: 0;
}

.campaign-carousel-media,
.library-carousel-media {
  position: relative;
}

.campaign-carousel-track {
  width: 100%;
  height: 100%;
}

.campaign-carousel-slide {
  width: 100%;
  height: 100%;
  margin: 0;
}

.campaign-carousel-slide[hidden] {
  display: none;
}

.campaign-carousel-slide .generated-image {
  display: block;
}

.campaign-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.58);
  color: rgba(23, 18, 15, 0.74);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.campaign-carousel-control:hover,
.campaign-carousel-control:focus-visible {
  background: rgba(255, 250, 246, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(23, 18, 15, 0.12);
}

.campaign-carousel-control.is-prev {
  left: 14px;
}

.campaign-carousel-control.is-next {
  right: 14px;
}

.campaign-carousel-dots {
  position: absolute;
  right: 50%;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(23, 18, 15, 0.08);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.7);
  transform: translateX(50%);
  backdrop-filter: blur(12px);
}

.campaign-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 18, 15, 0.28);
  cursor: pointer;
}

.campaign-carousel-dots button.is-active {
  width: 18px;
  background: var(--accent-dark);
}

.generated-preview-modal[hidden] {
  display: none;
}

.generated-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
}

.generated-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 18, 15, 0.64);
  cursor: zoom-out;
  backdrop-filter: blur(12px);
}

.generated-preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1040px, 94vw);
  max-height: min(860px, 92vh);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 246, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 250, 246, 0.96), rgba(239, 229, 221, 0.92)),
    #f7f0eb;
  box-shadow: 0 34px 90px rgba(23, 18, 15, 0.34);
}

.generated-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.82);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(23, 18, 15, 0.12);
  backdrop-filter: blur(14px);
}

.generated-preview-image {
  width: 100%;
  min-height: 0;
  max-height: calc(92vh - 150px);
  object-fit: contain;
  border: 1px solid rgba(23, 18, 15, 0.08);
  border-radius: 8px;
  background: #fffaf6;
}

.generated-preview-caption {
  display: grid;
  gap: 6px;
  padding: 0 4px 2px;
}

.generated-preview-caption[hidden] {
  display: none;
}

.generated-preview-caption h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.generated-preview-caption p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.brand-script-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.brand-final-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.campaign-script-grid,
.campaign-final-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.brand-script-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(238, 229, 222, 0.82)),
    #f7f0eb;
  box-shadow: 0 22px 44px rgba(23, 18, 15, 0.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.campaign-script-card {
  min-width: 0;
}

.brand-script-card:hover,
.brand-script-card.is-selected {
  border-color: rgba(134, 96, 67, 0.42);
  box-shadow: 0 26px 54px rgba(23, 18, 15, 0.12);
  transform: translateY(-2px);
}

.brand-script-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand-script-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-script-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.22rem, 1.6vw, 1.65rem);
  line-height: 1.08;
}

.brand-script-select {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 18, 15, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.brand-script-select input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-dark);
}

.brand-script-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.brand-script-points {
  display: grid;
  gap: 10px;
}

.brand-script-point {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(23, 18, 15, 0.08);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.58);
}

.brand-script-point strong {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-script-point p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.42;
}

.brand-script-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.brand-script-details div {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 18, 15, 0.08);
}

.brand-script-details dt {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-script-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.42;
}

.brand-final-actions {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(245, 238, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5eee8;
}

.brand-final-helper {
  margin: 0;
  color: rgba(245, 238, 232, 0.76);
  font-size: 0.94rem;
  line-height: 1.45;
}

.brand-empty-final-card {
  display: grid;
  min-height: 310px;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px dashed rgba(23, 18, 15, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(238, 229, 222, 0.48)),
    #f7f0eb;
  color: var(--muted);
  text-align: center;
}

.brand-empty-final-card span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-empty-final-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
}

.brand-empty-final-card p {
  max-width: 220px;
  margin: 0 auto;
  line-height: 1.5;
}

.reveal-target {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-page .reveal-target {
  opacity: 1;
  transform: none;
}

.studio-page .reveal-target,
.admin-page .reveal-target {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.reveal-target:nth-child(2),
.flow-grid article:nth-child(2),
.solution-grid article:nth-child(2),
.generated-grid article:nth-child(2) {
  transition-delay: 90ms;
}

.reveal-target:nth-child(3),
.flow-grid article:nth-child(3),
.solution-grid article:nth-child(3),
.generated-grid article:nth-child(3) {
  transition-delay: 160ms;
}

.solution-grid article:nth-child(4),
.generated-grid article:nth-child(4) {
  transition-delay: 230ms;
}

.generated-grid article:nth-child(5) {
  transition-delay: 300ms;
}

.generated-grid article:nth-child(6) {
  transition-delay: 370ms;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes studioFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes windowSheen {
  0%,
  42% {
    left: -70%;
  }

  72%,
  100% {
    left: 128%;
  }
}

@keyframes tilePulse {
  0%,
  100% {
    filter: saturate(0.92) brightness(0.94);
  }

  50% {
    filter: saturate(1.08) brightness(1.06);
  }
}

@keyframes lineBreath {
  0%,
  100% {
    transform: scaleX(0.92);
    opacity: 0.72;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-target {
    opacity: 1;
    transform: none;
  }
}

.generated-copy {
  padding: 20px;
}

.generated-copy h3 {
  margin: 12px 0 10px;
  font-size: 1.12rem;
}

.generated-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.admin-main {
  padding-bottom: 56px;
}

.admin-intro {
  align-items: center;
  border: 1px solid rgba(23, 18, 15, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 248, 243, 0.82), rgba(225, 212, 202, 0.62)),
    var(--paper);
  box-shadow: 0 18px 44px rgba(23, 18, 15, 0.08);
}

.admin-intro h1 {
  margin-bottom: 8px;
}

.admin-overview {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-overview article {
  min-height: 164px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08)),
    rgba(255, 248, 243, 0.68);
}

.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12)),
    var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 18, 15, 0.08);
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-panel-heading h2,
.admin-panel h2 {
  margin: 0;
  font-size: 1.55rem;
}

.admin-table-tools {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
}

.admin-search-field {
  display: grid;
  gap: 7px;
  min-width: min(360px, 46vw);
}

.admin-search-field span {
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-search-field input {
  width: 100%;
  border: 1px solid rgba(23, 18, 15, 0.14);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: rgba(255, 248, 243, 0.72);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.admin-search-field input:focus {
  outline: 2px solid rgba(211, 165, 126, 0.34);
  outline-offset: 2px;
  border-color: rgba(159, 116, 79, 0.42);
}

.admin-health-grid,
.admin-usage-grid {
  display: grid;
  gap: 14px;
}

.admin-health-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-usage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-health-grid article,
.admin-usage-grid article {
  min-height: 132px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    rgba(255, 248, 243, 0.58);
}

.admin-health-grid span,
.admin-usage-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-health-grid strong,
.admin-usage-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.admin-health-grid p,
.admin-usage-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.56);
}

.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(23, 18, 15, 0.1);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--ink-soft);
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td strong {
  color: var(--ink);
  line-height: 1.2;
}

.admin-table td span {
  margin-top: 3px;
  font-size: 0.88rem;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-empty-cell {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.status-badge {
  display: inline-flex;
  width: max-content;
  margin: 0;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(23, 18, 15, 0.06);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-table .status-badge {
  display: inline-flex;
  margin-top: 0;
}

.status-active,
.status-trialing {
  border-color: rgba(79, 120, 73, 0.24);
  background: rgba(79, 120, 73, 0.12);
  color: #3f6538;
}

.status-free,
.status-pending,
.status-past_due,
.status-incomplete,
.status-incomplete_expired,
.status-unpaid {
  border-color: rgba(159, 116, 79, 0.26);
  background: rgba(211, 165, 126, 0.16);
  color: var(--gold-dark);
}

.status-canceled,
.status-expired {
  border-color: rgba(145, 54, 41, 0.24);
  background: rgba(145, 54, 41, 0.1);
  color: #75382e;
}

.status-internal {
  border-color: rgba(23, 18, 15, 0.18);
  background: rgba(23, 18, 15, 0.08);
  color: var(--ink);
}

@media (max-width: 1240px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card-custom {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-card-custom .pricing-card-header,
  .pricing-card-custom .pricing-price,
  .pricing-card-custom .pricing-billing-note,
  .pricing-card-custom ul,
  .pricing-card-custom .plan-button {
    grid-column: auto;
    grid-row: auto;
  }

  .pricing-card-custom .plan-button {
    min-width: 0;
  }

  .admin-overview,
  .admin-usage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    display: none;
  }

  .hero-section,
  .brand-story-section,
  .pressure-section,
  .studio-section,
  .comparison-section,
  .studio-showcase,
  .intro-band,
  .process-stack,
  .plans-section,
  .faq-section,
  .auth-shell,
  .studio-workspace,
  .brand-creation-top,
  .campaign-creation-top,
  .video-creation-top,
  .commercial-proposal-top,
  .quote-builder-top,
  .quote-template-editor-grid,
  .schedule-creation-top,
  .diagnosis-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    position: static;
  }

  .legal-summary > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legal-summary > div > p {
    grid-column: 1 / -1;
  }

  .legal-summary a,
  .legal-summary a:last-child {
    border-top: 1px solid rgba(23, 18, 15, 0.09);
    border-bottom: 1px solid rgba(23, 18, 15, 0.09);
  }

  .legal-hero h1 {
    font-size: 3.6rem;
  }

  .commercial-proposal-page-nav {
    grid-template-columns: 1fr;
  }

  .commercial-proposal-page-nav.is-pdf-preview {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .quote-side-stack {
    grid-template-rows: auto auto;
  }

  .quote-editor-preview-card {
    position: static;
  }

  .commercial-proposal-page-button,
  .commercial-proposal-page-button:last-child {
    width: 100%;
    justify-self: stretch;
  }

  .commercial-proposal-page-arrow,
  .commercial-proposal-page-arrow:last-child {
    width: 46px;
  }

  .commercial-proposal-page-arrow:first-child {
    justify-self: start;
  }

  .commercial-proposal-page-arrow:last-child {
    justify-self: end;
  }

  .commercial-proposal-document-preview .commercial-proposal-page {
    width: 100%;
    min-height: 860px;
  }

  .commercial-proposal-document-preview .commercial-proposal-page.is-active {
    display: flex;
  }

  .commercial-proposal-document-preview .commercial-proposal-book-shell {
    grid-template-columns: 1fr;
  }

  .commercial-proposal-document-preview .commercial-proposal-page-art {
    min-height: 36%;
  }

  .commercial-proposal-document-preview .commercial-proposal-page-content {
    min-height: 64%;
    padding: 34px 28px;
  }

  .hero-section {
    min-height: calc(100svh - 72px);
  }

  .brand-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-proof-grid,
  .method-grid,
  .comparison-grid,
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .source-line {
    grid-column: 1;
  }

  .studio-copy-panel,
  .story-copy {
    max-width: 100%;
  }

  .solution-grid,
  .generated-grid,
  .diagnosis-score-grid,
  .diagnosis-section-grid,
  .diagnosis-content-plan > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo-list,
  .company-image-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-overview,
  .admin-content-grid,
  .studio-hero-panel,
  .studio-section-hero,
  .billing-hero-panel,
  .account-security-layout,
  .account-profile-shell,
  .studio-dashboard-grid,
  .billing-layout-grid,
  .subscription-access-panel,
  .library-layout,
  .support-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .account-security-layout {
    grid-template-areas:
      "profile"
      "summary"
      "access"
      "danger"
      "history";
  }

  .support-side-stack {
    position: static;
  }

  .compact-results,
  .video-script-grid,
  .video-final-grid,
  .schedule-script-grid,
  .schedule-final-layout,
  .campaign-script-grid,
  .campaign-final-grid,
  .strategy-context-grid,
  .strategy-results-grid,
  .social-grid,
  .billing-summary-grid,
  .billing-financial-grid,
  .billing-limit-grid,
  .billing-upgrade-grid,
  .plan-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-detail-panel {
    position: static;
    height: auto;
    max-height: none;
  }

  .library-grid {
    height: auto;
    max-height: none;
  }

  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .library-view-switch {
    width: 100%;
  }

  .library-view-switch button {
    flex: 1;
  }

  .auth-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand-final-actions,
  .brand-script-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-final-actions .primary-button {
    width: 100%;
  }

  .generation-toast {
    top: 12px;
    width: calc(100vw - 24px);
    padding: 13px 14px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    gap: 14px;
    padding: 12px 18px;
  }

  .brand-mark img {
    height: 44px;
  }

  .header-action {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .header-actions {
    gap: 8px;
  }

  .member-header {
    max-width: min(68vw, 330px);
    padding-right: 10px;
  }

  .member-avatar-button {
    width: 40px;
    height: 40px;
  }

  .member-identity-link {
    max-width: calc(68vw - 68px);
  }

  .member-company-name {
    font-size: 0.82rem;
  }

  .member-email-link {
    font-size: 0.72rem;
  }

  .hero-section,
  .brand-story-section,
  .pressure-section,
  .legacy-method-section,
  .studio-section,
  .comparison-section,
  .ecosystem-section,
  .intro-band,
  .feature-section,
  .how-section,
  .solutions-section,
  .plans-section,
  .faq-section {
    padding: 56px 20px;
  }

  .legal-main {
    padding: 54px 20px;
  }

  .legal-hero {
    padding: 34px 24px;
  }

  .legal-hero h1 {
    font-size: 2.55rem;
  }

  .legal-summary {
    padding: 20px;
  }

  .legal-summary > div {
    grid-template-columns: 1fr;
  }

  .legal-summary > div > p {
    grid-column: auto;
  }

  .legal-summary a,
  .legal-summary a:last-child {
    border-top: 1px solid rgba(23, 18, 15, 0.09);
    border-bottom: 0;
  }

  .legal-summary a:last-child {
    border-bottom: 1px solid rgba(23, 18, 15, 0.09);
  }

  .legal-document {
    padding: 30px 24px;
  }

  .legal-document-heading h2 {
    font-size: 2.15rem;
  }

  .legal-section h3 {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .legal-contact-panel {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .hero-section {
    min-height: calc(100svh - 68px);
    padding: 78px 20px 70px;
  }

  .hero-brand-logo {
    width: min(500px, 88vw);
    margin: 0 auto;
  }

  .hero-copy h1,
  .auth-brand-panel h1 {
    font-size: 2.45rem;
  }

  .intro-band h2,
  .section-heading h2,
  .plans-copy h2,
  .faq-heading h2 {
    font-size: 2rem;
  }

  .hero-lead {
    max-width: 360px;
    font-size: 1rem;
  }

  .plans-note {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-card {
    padding: 22px;
  }

  .pricing-card-featured .pricing-card-header {
    padding-right: 0;
  }

  .faq-section {
    gap: 30px;
  }

  .faq-item summary {
    min-height: 68px;
    padding: 20px 58px 20px 20px;
  }

  .faq-item summary::after {
    right: 18px;
  }

  .faq-item p {
    padding: 0 20px 22px;
  }

  .pricing-card-featured {
    transform: none;
  }

  .pricing-badge {
    position: static;
    width: max-content;
  }

  .story-copy h2,
  .pressure-heading h2,
  .legacy-method-section .section-heading h2,
  .studio-copy-panel h2,
  .comparison-copy h2,
  .ecosystem-section .section-heading h2 {
    font-size: 2.25rem;
  }

  .story-media,
  .studio-visual,
  .story-media img,
  .studio-visual img {
    min-height: 310px;
  }

  .market-proof-grid article,
  .method-grid article,
  .comparison-grid article,
  .ecosystem-grid article {
    min-height: auto;
    padding: 22px;
  }

  .market-proof-grid strong {
    font-size: 3.1rem;
  }

  .method-grid h3,
  .ecosystem-grid h3 {
    margin-top: 28px;
  }

  .comparison-grid span {
    margin-bottom: 36px;
  }

  .product-window {
    min-height: auto;
  }

  .studio-preview {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    min-height: 240px;
  }

  .preview-lines {
    grid-column: 1;
    margin-top: 0;
  }

  .flow-grid,
  .solution-grid,
  .studio-overview,
  .generated-grid,
  .brand-script-grid,
  .brand-final-grid,
  .campaign-script-grid,
  .campaign-final-grid,
  .admin-content-grid,
  .admin-health-grid,
  .admin-usage-grid,
  .diagnosis-score-grid,
  .diagnosis-section-grid,
  .diagnosis-content-plan > div:last-child,
  .brand-pillars,
  .process-stack {
    grid-template-columns: 1fr;
  }

  .brand-pillars span {
    min-height: 74px;
  }

  .showcase-media,
  .showcase-media img {
    min-height: 300px;
  }

  .media-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-caption span {
    max-width: 100%;
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-shell {
    padding: 32px 20px;
  }

  .auth-logo {
    margin-bottom: 34px;
  }

  .auth-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-page {
    grid-template-columns: 1fr;
  }

  .studio-sidebar {
    position: static;
    height: auto;
  }

  .studio-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-nav-group,
  .studio-nav-submenu {
    grid-column: 1 / -1;
  }

  .studio-exit {
    margin-top: 16px;
  }

  .studio-main {
    padding: 24px 18px;
  }

  .studio-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-account-actions {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
  }

  .studio-member-header {
    max-width: 100%;
  }

  .admin-panel-heading {
    flex-direction: column;
  }

  .admin-table-tools,
  .admin-search-field {
    width: 100%;
    min-width: 0;
  }

  .admin-table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .usage-list,
  .quick-actions,
  .overview-action-grid,
  .mini-library-list,
  .library-layout,
  .brand-logo-list,
  .company-image-list,
  .compact-results,
  .video-script-grid,
  .video-final-grid,
  .schedule-script-grid,
  .schedule-final-layout,
  .strategy-context-grid,
  .strategy-results-grid,
  .diagnosis-layout,
  .settings-grid,
  .site-analysis-input-row,
  .site-analysis-meta,
  .social-grid,
  .account-action-grid,
  .account-summary-list,
  .account-security-events,
  .account-delete-actions,
  .billing-summary-grid,
  .billing-financial-grid,
  .billing-limit-grid,
  .billing-upgrade-grid,
  .brand-contact-grid,
  .specific-campaign-fields,
  .plan-details-grid {
    grid-template-columns: 1fr;
  }

  .overview-usage-panel .usage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-final-card {
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }

  .video-final-media-frame {
    min-height: 420px;
  }

  .library-preview-header {
    align-items: stretch;
    flex-direction: column;
  }

  .studio-hero-panel,
  .studio-section-hero,
  .billing-hero-panel,
  .subscription-access-panel,
  .studio-panel,
  .account-delete-confirmation,
  .account-delete-pending,
  .support-form,
  .support-contact-panel,
  .schedule-form,
  .settings-form {
    padding: 22px;
  }
}

@media (max-width: 780px) {
  .quote-form-grid,
  .quote-live-summary,
  .quote-document-actions,
  .quote-preview-meta,
  .quote-preview-bottom {
    grid-template-columns: 1fr;
  }

  .quote-item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-item-description,
  .quote-item-total {
    grid-column: 1 / -1;
  }

  .quote-remove-item {
    justify-self: end;
  }

  .quote-live-summary span + span,
  .quote-preview-meta > span + span {
    border-top: 1px solid rgba(23, 18, 15, 0.08);
    border-left: 0;
  }

  .quote-script-grid {
    grid-template-columns: 1fr;
  }

  .quote-preview-header {
    grid-template-columns: 1fr;
  }

  .quote-preview-visual {
    min-height: 230px;
    border-top: 2px solid var(--quote-preview-accent, #a97752);
    border-left: 0;
  }

  .quote-preview-visual > img {
    min-height: 230px;
  }

  .quote-preview-brand-row,
  .quote-document-preview footer {
    flex-direction: column;
  }

  .quote-preview-next-step {
    grid-template-columns: 1fr;
  }

  .quote-preview-table {
    display: block;
    overflow-x: auto;
  }
}
/* Legacy Empresas: Contatos */
.contacts-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.contacts-section-hero {
  min-height: 226px;
}

.contacts-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contacts-metrics article {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid rgba(117, 86, 67, 0.22);
  border-radius: 8px;
  background: rgba(255, 251, 248, 0.78);
}

.contacts-metrics span,
.contacts-plan-badge,
.contacts-recipient-summary span,
.contacts-preview-heading span,
.contacts-email-preview footer,
.contacts-directory-footer,
.contacts-attachment-field span,
.contacts-full-field small {
  color: var(--muted-text, #776b64);
  font-size: 0.76rem;
  line-height: 1.45;
}

.contacts-metrics span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.contacts-metrics strong {
  display: block;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
}

.contacts-directory-panel,
.contacts-communication-panel {
  padding: clamp(20px, 3vw, 32px);
}

.contacts-panel-heading,
.contacts-items-heading,
.contacts-panel-intro,
.contacts-preview-heading,
.contacts-directory-footer,
.contacts-dialog-heading,
.contacts-dialog-actions,
.contacts-composer-actions,
.contacts-attachment-field,
.contacts-campaign-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contacts-panel-heading h2,
.contacts-panel-intro h3,
.contacts-dialog-heading h2 {
  margin: 0;
}

.contacts-panel-heading > div > p:last-child,
.contacts-panel-intro p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted-text, #776b64);
}

.contacts-add-button {
  flex: 0 0 auto;
  min-width: 178px;
}

.contacts-add-button span {
  font-size: 1.25rem;
  line-height: 0;
}

.contacts-list-switcher,
.contacts-communication-tabs {
  display: grid;
  gap: 6px;
  margin: 24px 0 18px;
  padding: 5px;
  border: 1px solid rgba(117, 86, 67, 0.2);
  border-radius: 8px;
  background: rgba(225, 211, 201, 0.36);
}

.contacts-list-switcher {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contacts-communication-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contacts-list-switcher button,
.contacts-communication-tabs button {
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5c4c43;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contacts-list-switcher button.is-active,
.contacts-communication-tabs button.is-active {
  background: #2a1d18;
  color: #fffaf6;
  box-shadow: 0 7px 18px rgba(42, 29, 24, 0.12);
}

.contacts-list-switcher button span,
.contacts-communication-tabs button span {
  display: inline-grid;
  min-width: 24px;
  min-height: 22px;
  margin-left: 6px;
  padding: 2px 6px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
}

.contacts-toolbar {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(420px, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 15px;
}

.contacts-selection-actions,
.contacts-search-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contacts-selection-actions .secondary-button,
.contacts-search-tools select {
  min-height: 42px;
}

.contacts-selection-actions .secondary-button {
  padding-inline: 14px;
}

.contacts-search-tools {
  justify-content: flex-end;
}

.contacts-search-tools label,
.contacts-search-tools select,
.contacts-search-field input {
  min-width: 0;
}

.contacts-search-field {
  flex: 1 1 260px;
}

.contacts-search-field input,
.contacts-search-tools select {
  width: 100%;
}

.contacts-search-tools label:not(.contacts-search-field) {
  flex: 0 1 185px;
}

.contacts-table-shell {
  position: relative;
  min-height: 264px;
  max-height: 560px;
  overflow: auto;
  border: 1px solid rgba(117, 86, 67, 0.2);
  border-radius: 8px;
  background: rgba(255, 252, 249, 0.72);
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.contacts-table th,
.contacts-table td {
  padding: 15px 12px;
  border-bottom: 1px solid rgba(117, 86, 67, 0.14);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.contacts-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f2e8e1;
  color: #6f513f;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.contacts-table th:first-child,
.contacts-table td:first-child {
  width: 48px;
  text-align: center;
}

.contacts-table th:nth-child(2) { width: 18%; }
.contacts-table th:nth-child(3) { width: 18%; }
.contacts-table th:nth-child(4) { width: 22%; }
.contacts-table th:nth-child(5) { width: 14%; }
.contacts-table th:nth-child(6) { width: 10%; }

.contacts-table tbody tr {
  background: rgba(255, 252, 249, 0.54);
}

.contacts-table tbody tr.is-selected {
  background: rgba(206, 161, 124, 0.16);
}

.contacts-table tbody tr:last-child td {
  border-bottom: 0;
}

.contacts-table td strong,
.contacts-table td span {
  display: block;
}

.contacts-table td span {
  margin-top: 3px;
  color: #81736b;
  font-size: 0.78rem;
}

.contacts-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #8c6248;
}

.contacts-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
  color: #76675f;
}

.contacts-empty-state[hidden] {
  display: none;
}

.contacts-directory-footer {
  margin-top: 12px;
  align-items: flex-start;
}

.contacts-plan-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(117, 86, 67, 0.2);
  border-radius: 999px;
  background: #f4ebe5;
  color: #6b4d3c;
  font-weight: 700;
}

.contacts-tab-panel {
  min-height: 360px;
}

.contacts-tab-panel[hidden] {
  display: none;
}

.contacts-composer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.contacts-email-form {
  min-width: 0;
}

.contacts-recipient-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin-bottom: 18px;
  padding: 15px 17px;
  border-left: 3px solid #a87857;
  background: rgba(239, 225, 215, 0.55);
}

.contacts-recipient-summary strong {
  grid-row: span 2;
  align-self: center;
  font-size: 1.15rem;
}

.contacts-recipient-summary small {
  color: #786a62;
}

.contacts-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contacts-form-grid label,
.contacts-full-field,
.contacts-editor-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.contacts-form-grid label > span,
.contacts-full-field > span,
.contacts-editor-field > span {
  color: #5f483a;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contacts-form-grid small {
  font-weight: 500;
  text-transform: none;
}

.contacts-editor-field {
  margin: 16px 0;
}

.contacts-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 45px;
  padding: 7px;
  border: 1px solid rgba(117, 86, 67, 0.22);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #eee2da;
}

.contacts-editor-toolbar button {
  min-width: 34px;
  min-height: 31px;
  padding: 5px 8px;
  border: 1px solid rgba(100, 72, 55, 0.18);
  border-radius: 5px;
  background: #fffaf7;
  color: #382a23;
  cursor: pointer;
}

.contacts-editor-toolbar > span {
  margin-left: auto;
  color: #776a62;
  font-size: 0.68rem;
}

.contacts-editor-toolbar code {
  color: #75513e;
}

.contacts-rich-editor {
  min-height: 240px;
  max-height: 420px;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(117, 86, 67, 0.22);
  border-radius: 0 0 8px 8px;
  background: #fffdfb;
  line-height: 1.65;
  outline: none;
}

.contacts-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #9a8e87;
}

.contacts-rich-editor:focus {
  border-color: #ad7c5c;
  box-shadow: 0 0 0 3px rgba(173, 124, 92, 0.1);
}

.contacts-cta-grid {
  margin-bottom: 16px;
}

.contacts-attachment-field {
  align-items: flex-start;
  padding: 15px 0;
  border-top: 1px solid rgba(117, 86, 67, 0.16);
  border-bottom: 1px solid rgba(117, 86, 67, 0.16);
}

.contacts-attachment-field > div:first-child {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
}

.contacts-attachment-field .secondary-button {
  flex: 0 0 auto;
  cursor: pointer;
}

.contacts-attachment-list {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 7px;
}

.contacts-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  padding: 7px 9px;
  border: 1px solid rgba(117, 86, 67, 0.18);
  border-radius: 6px;
  background: #f7efea;
  font-size: 0.74rem;
}

.contacts-file-chip span {
  overflow: hidden;
  color: #5b4a41;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contacts-file-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.contacts-composer-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.contacts-composer-actions .primary-button,
.contacts-composer-actions .secondary-button {
  min-width: 145px;
}

.contacts-inline-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #706159;
  font-size: 0.78rem;
}

.contacts-inline-status[data-type="error"] { color: #8c3f36; }
.contacts-inline-status[data-type="success"] { color: #376447; }

.contacts-email-preview {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(117, 86, 67, 0.22);
  border-radius: 8px;
  background: #eee5df;
}

.contacts-preview-modes {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
}

.contacts-preview-modes button {
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #6f6058;
  font-size: 0.68rem;
  cursor: pointer;
}

.contacts-preview-modes button.is-active {
  background: #fffaf7;
  color: #2b211c;
  font-weight: 700;
}

.contacts-preview-canvas {
  display: grid;
  min-height: 500px;
  margin-top: 13px;
  padding: 22px 13px;
  place-items: start center;
  overflow: auto;
  border-radius: 6px;
  background: #f3eeea;
}

.contacts-preview-canvas article {
  width: min(100%, 620px);
  border: 1px solid var(--contact-email-border, #ddcec4);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(54, 39, 31, 0.08);
}

.contacts-preview-canvas.is-mobile article {
  width: min(100%, 330px);
}

.contacts-preview-canvas.is-mobile .contacts-preview-brand {
  align-items: flex-start;
  flex-direction: column;
}

.contacts-preview-canvas header {
  padding: 24px 28px 26px;
  border-top: 4px solid var(--contact-email-accent, #a97858);
  background: var(--contact-email-header, #f1e7e0);
  color: var(--contact-email-text, #2b211c);
}

.contacts-preview-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contacts-preview-logo {
  display: inline-grid;
  flex: 0 1 auto;
  max-width: 138px;
  min-height: 40px;
  padding: 6px 8px;
  place-items: center;
  border: 1px solid var(--contact-email-border, #ddcec4);
  border-radius: 5px;
  background: #fff;
}

.contacts-preview-logo[hidden] {
  display: none;
}

.contacts-preview-logo img {
  display: block;
  width: auto;
  max-width: 120px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.contacts-preview-canvas header span {
  color: var(--contact-email-accent, #a97858);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contacts-preview-canvas h3 {
  margin: 18px 0 0;
  color: var(--contact-email-text, #2b211c);
  font-size: 1.38rem;
  line-height: 1.24;
}

.contacts-preview-canvas header > i {
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 17px;
  background: var(--contact-email-accent, #a97858);
}

.contacts-preview-body {
  min-height: 170px;
  padding: 28px;
  color: #54463f;
  font-size: 0.86rem;
  line-height: 1.65;
}

.contacts-preview-body a {
  color: #7e523a;
}

.contacts-preview-body .contacts-preview-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 15px;
  border-radius: 5px;
  background: var(--contact-email-primary, #35251f);
  color: var(--contact-email-on-primary, #fffaf6);
  text-decoration: none;
  font-weight: 700;
}

.contacts-email-preview footer {
  display: grid;
  gap: 3px;
  padding: 20px 28px;
  border-top: 1px solid var(--contact-email-border, #ddcec4);
  background: var(--contact-email-soft, #faf6f3);
}

.contacts-email-preview footer strong {
  color: #2b211c;
  font-size: 0.82rem;
}

.contacts-email-preview footer span {
  color: var(--contact-email-muted, #6f6058);
  overflow-wrap: anywhere;
}

.contacts-panel-intro {
  align-items: flex-start;
  margin: 4px 0 18px;
}

.contacts-campaign-list,
.contacts-template-grid {
  display: grid;
  gap: 12px;
}

.contacts-template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contacts-campaign-card,
.contacts-template-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(117, 86, 67, 0.2);
  border-radius: 8px;
  background: rgba(255, 251, 248, 0.78);
}

.contacts-campaign-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.8fr) auto;
  gap: 20px;
  align-items: center;
}

.contacts-campaign-card h4,
.contacts-template-card h4 {
  margin: 4px 0 7px;
  font-size: 1rem;
}

.contacts-campaign-card p,
.contacts-template-card p {
  margin: 0;
  color: #786a62;
  font-size: 0.78rem;
  line-height: 1.55;
}

.contacts-campaign-progress {
  display: grid;
  gap: 7px;
}

.contacts-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5d9d1;
}

.contacts-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #a77757;
}

.contacts-campaign-actions {
  justify-content: flex-end;
  gap: 7px;
}

.contacts-campaign-actions button,
.contacts-template-actions button {
  min-height: 36px;
  padding: 7px 10px;
}

.contacts-campaign-recipients {
  margin-top: 14px;
  border-top: 1px solid rgba(117, 86, 67, 0.16);
  padding-top: 12px;
}

.contacts-campaign-recipients summary {
  color: #6e4d3c;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.contacts-recipient-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  margin-top: 10px;
  overflow-y: auto;
  padding-right: 5px;
}

.contacts-recipient-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(117, 86, 67, 0.12);
  border-radius: 6px;
  background: rgba(255, 252, 249, 0.65);
}

.contacts-recipient-list article > div,
.contacts-recipient-list strong,
.contacts-recipient-list span {
  min-width: 0;
}

.contacts-recipient-list strong,
.contacts-recipient-list article > div > span {
  display: block;
}

.contacts-recipient-list article > div > span {
  margin-top: 2px;
  color: #7a6b63;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.contacts-recipient-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 5px;
  background: #e8ddd5;
  color: #654a3c;
  font-size: 0.69rem;
  font-weight: 800;
}

.contacts-recipient-status.is-delivered,
.contacts-recipient-status.is-sent {
  background: #dfeadf;
  color: #376447;
}

.contacts-recipient-status.is-failed,
.contacts-recipient-status.is-blocked,
.contacts-recipient-status.is-unsubscribed {
  background: #f1dfdc;
  color: #8c3f36;
}

.contacts-campaign-notice {
  margin-top: 9px !important;
  color: #795842 !important;
  font-size: 0.76rem !important;
}

.contacts-template-card {
  display: grid;
  min-height: 190px;
  align-content: space-between;
}

.contacts-template-actions {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}

.contacts-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.contacts-dialog::backdrop {
  background: rgba(31, 22, 18, 0.64);
  backdrop-filter: blur(3px);
}

.contacts-dialog-card {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid #d9c8bd;
  border-radius: 8px;
  background: #fffaf7;
}

.contacts-dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(117, 86, 67, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #4d3b32;
  font-size: 1.4rem;
  cursor: pointer;
}

.contacts-complementary-data {
  border: 1px solid rgba(117, 86, 67, 0.18);
  border-radius: 8px;
  background: #f8f1ec;
}

.contacts-complementary-data summary {
  padding: 14px 16px;
  color: #5e493d;
  font-weight: 700;
  cursor: pointer;
}

.contacts-complementary-data .contacts-form-grid {
  padding: 0 16px 16px;
}

.contacts-full-field {
  grid-column: 1 / -1;
}

.contacts-dialog-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.contacts-dialog-actions button {
  min-width: 150px;
}

@media (max-width: 1180px) {
  .contacts-toolbar,
  .contacts-composer-layout {
    grid-template-columns: 1fr;
  }

  .contacts-search-tools,
  .contacts-selection-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .contacts-email-preview {
    position: static;
  }

  .contacts-preview-canvas {
    min-height: 360px;
  }

  .contacts-campaign-card {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  }

  .contacts-campaign-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .contacts-preview-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .contacts-metrics,
  .contacts-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-panel-heading,
  .contacts-attachment-field,
  .contacts-directory-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contacts-add-button {
    width: 100%;
  }

  .contacts-communication-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-table {
    display: block;
  }

  .contacts-table thead {
    display: none;
  }

  .contacts-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .contacts-table tr {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 10px;
    padding: 14px;
    border: 1px solid rgba(117, 86, 67, 0.16);
    border-radius: 7px;
  }

  .contacts-table td {
    display: block;
    width: auto !important;
    padding: 3px 0;
    border: 0;
  }

  .contacts-table td:first-child {
    grid-row: 1 / span 5;
    width: 36px !important;
  }

  .contacts-table td:not(:first-child) {
    grid-column: 2;
  }

  .contacts-campaign-card {
    grid-template-columns: 1fr;
  }

  .contacts-campaign-actions {
    grid-column: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .contacts-metrics,
  .contacts-form-grid,
  .contacts-list-switcher,
  .contacts-template-grid {
    grid-template-columns: 1fr;
  }

  .contacts-selection-actions .secondary-button,
  .contacts-search-tools label,
  .contacts-search-tools label:not(.contacts-search-field) {
    flex: 1 1 calc(50% - 8px);
  }

  .contacts-recipient-summary {
    grid-template-columns: 1fr;
  }

  .contacts-recipient-summary strong {
    grid-row: auto;
  }

  .contacts-editor-toolbar {
    flex-wrap: wrap;
  }

  .contacts-editor-toolbar > span {
    width: 100%;
    margin-left: 0;
  }

  .contacts-composer-actions,
  .contacts-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contacts-composer-actions button,
  .contacts-dialog-actions button {
    width: 100%;
  }

}
