@font-face {
  font-family: "Cormorant Garamond";
  src: url("/vendor/CormorantGaramond-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/vendor/CormorantGaramond-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/vendor/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/vendor/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ads-ink: #10100f;
  --ads-ivory: #f7f3ec;
  --ads-paper: #fffcf7;
  --ads-champagne: #c8a96a;
  --ads-claret: #3a0d1f;
  --ads-green: #263c34;
  --ads-smoke: #625f58;
  --ads-border: #ded5c8;
}

body {
  background: var(--ads-ivory);
  color: var(--ads-ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

html {
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  -webkit-text-size-adjust: 100%;
}

code {
  color: var(--ads-claret);
  overflow-wrap: anywhere;
}

.skip-link {
  background: var(--ads-ink);
  color: var(--ads-ivory);
  font-weight: 600;
  left: max(1rem, env(safe-area-inset-left));
  padding: 0.75rem 1rem;
  position: fixed;
  text-decoration: none;
  top: calc(0.75rem + env(safe-area-inset-top));
  transform: translateY(-160%);
  transition: transform 160ms ease;
  z-index: 2000;
}

.skip-link:focus {
  color: var(--ads-ivory);
  transform: translateY(0);
}

#main-content:focus {
  outline: none;
}

.brand-wordmark {
  color: var(--ads-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0;
}

.ads-nav {
  background: rgba(247, 243, 236, 0.94);
  border-bottom: 1px solid var(--ads-border);
  backdrop-filter: blur(18px);
  padding-top: env(safe-area-inset-top);
  z-index: 1030;
}

.ads-nav-shell {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 3.85rem;
  padding-bottom: 0.15rem;
  padding-top: 0.15rem;
}

.ads-nav-left {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.ads-brand-link {
  text-decoration: none;
}

.ads-brand-link:hover,
.ads-brand-link:focus {
  color: var(--ads-claret);
}

.ads-nav-actions {
  align-items: center;
  align-self: stretch;
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.ads-nav-quick {
  align-items: center;
  align-self: center;
  background: transparent;
  border: 1px solid rgba(16, 16, 15, 0.14);
  border-radius: 999px;
  color: var(--ads-ink);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 600;
  height: 2.15rem;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0 0.82rem;
  text-decoration: none;
  text-transform: uppercase;
}

.ads-nav-form {
  align-items: center;
  align-self: center;
  display: inline-flex;
  margin: 0;
}

.ads-nav-create {
  align-items: center;
  align-self: center;
  background: var(--ads-ink);
  border: 1px solid var(--ads-ink);
  border-radius: 999px;
  color: var(--ads-ivory);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 600;
  height: 2.15rem;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.ads-nav-create:hover,
.ads-nav-create:focus {
  background: var(--ads-claret);
  border-color: var(--ads-claret);
  color: var(--ads-ivory);
}

.ads-nav-quick:hover,
.ads-nav-quick:focus {
  border-color: var(--ads-champagne);
  color: var(--ads-claret);
}

.ads-menu-button {
  align-items: center;
  background: var(--ads-paper);
  border: 1px solid rgba(16, 16, 15, 0.16);
  border-radius: 999px;
  color: var(--ads-ink);
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  padding: 0;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
  width: 2.35rem;
}

.ads-menu-button:hover,
.ads-menu-button:focus {
  border-color: var(--ads-champagne);
  color: var(--ads-claret);
  transform: translateY(-1px);
}

.ads-menu-button:focus-visible,
.ads-drawer-close:focus-visible,
.ads-drawer-link:focus-visible,
.ads-nav-create:focus-visible,
.ads-nav-quick:focus-visible,
.ads-brand-link:focus-visible {
  outline: 2px solid rgba(200, 169, 106, 0.75);
  outline-offset: 3px;
}

.ads-menu-lines {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  width: 0.95rem;
}

.ads-menu-lines span {
  background: currentColor;
  display: block;
  height: 1px;
  width: 100%;
}

.ads-menu-lines span:nth-child(2) {
  align-self: flex-end;
  width: 72%;
}

.ads-nav-drawer {
  --bs-offcanvas-width: min(23rem, calc(100vw - 1.5rem));
  background: var(--ads-paper);
  border-right: 1px solid var(--ads-border);
  color: var(--ads-ink);
}

.ads-drawer-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(222, 213, 200, 0.72);
  justify-content: space-between;
  padding: 1.65rem 1.75rem 1.15rem;
  text-align: left;
}

.ads-drawer-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.ads-drawer-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(16, 16, 15, 0.14);
  border-radius: 999px;
  color: var(--ads-ink);
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  margin-top: 0.1rem;
  padding: 0;
  position: relative;
  width: 2.35rem;
}

.ads-drawer-close span {
  background: currentColor;
  display: block;
  height: 1px;
  position: absolute;
  width: 0.95rem;
}

.ads-drawer-close span:first-child {
  transform: rotate(45deg);
}

.ads-drawer-close span:last-child {
  transform: rotate(-45deg);
}

.ads-drawer-body {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.75rem 1.75rem;
}

.ads-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.ads-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ads-drawer-kicker {
  color: var(--ads-smoke);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0;
  padding: 0.2rem 0 0.3rem;
  text-transform: uppercase;
}

.ads-drawer-link {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(222, 213, 200, 0.66);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: var(--ads-ink);
  display: flex;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  justify-content: flex-start;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 0.62rem 0;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  width: 100%;
}

.ads-drawer-form {
  margin: 0;
}

.ads-drawer-button {
  padding-left: 0;
  padding-right: 0;
}

.ads-drawer-primary {
  color: var(--ads-claret);
}

.ads-drawer-link:hover,
.ads-drawer-link:focus {
  color: var(--ads-claret);
}

.ads-drawer-footer {
  margin-top: auto;
  padding-top: 2rem;
}

.offcanvas-backdrop.show {
  opacity: 0.36;
}

@media (max-width: 575.98px) {
  .brand-wordmark {
    font-size: 1.18rem;
  }

  .ads-nav-shell {
    min-height: 3.65rem;
  }

  .ads-nav-quick {
    display: none;
  }

  .ads-nav-create {
    display: none;
  }

  .ads-nav-actions {
    gap: 0.45rem;
  }

  .ads-drawer-header,
  .ads-drawer-body {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
}

.hero-title,
.display-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-title {
  font-size: 4rem;
  line-height: 0.82;
}

.display-title {
  font-size: 2.15rem;
  line-height: 0.96;
}

.ads-page-title,
.ads-profile-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.ads-page-title {
  font-size: 2rem;
}

.ads-profile-title {
  font-size: 2.15rem;
}

.ads-section-title {
  font-size: 1.35rem;
  line-height: 1.05;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 6rem;
  }

  .display-title {
    font-size: 3.2rem;
  }

  .ads-page-title {
    font-size: 2.65rem;
  }

  .ads-profile-title {
    font-size: 2.9rem;
  }

  .ads-section-title {
    font-size: 1.65rem;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 9rem;
  }

  .display-title {
    font-size: 4.35rem;
  }

  .ads-page-title {
    font-size: 3.25rem;
  }

  .ads-profile-title {
    font-size: 3.65rem;
  }

  .ads-section-title {
    font-size: 2rem;
  }
}

.ads-section-heading {
  margin-bottom: 1.35rem;
}

.eyebrow {
  color: var(--ads-smoke);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-panel {
  background: var(--ads-paper);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16, 16, 15, 0.06);
}

.ads-settings-shell {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.ads-settings-header {
  align-items: end;
  border-bottom: 1px solid var(--ads-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 1.35rem;
}

.ads-settings-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.ads-billing-status {
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  padding: 1.1rem;
}

.ads-billing-status strong,
.ads-billing-status span {
  display: block;
}

.ads-billing-status strong {
  font-size: 1.1rem;
}

.ads-billing-status span {
  color: #625f58;
  margin-top: 0.25rem;
}

.ads-payment-method {
  background: rgba(38, 60, 52, 0.08);
  border: 1px solid rgba(38, 60, 52, 0.18);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.ads-payment-method strong,
.ads-payment-method span {
  display: block;
}

.ads-payment-method span {
  color: #625f58;
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.ads-plan-card {
  background: var(--ads-paper);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
}

.ads-plan-heading {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
}

.ads-plan-heading h2 {
  font-size: 1.35rem;
  margin: 0;
}

.ads-plan-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
  margin: 0.85rem 0;
}

.ads-plan-allowance {
  border-top: 1px solid var(--ads-border);
  color: #423f39;
  font-size: 0.95rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
}

.ads-payment-method-select {
  margin-bottom: 0.85rem;
}

.ads-admin-billing-summary {
  border-top: 1px solid var(--ads-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.ads-admin-billing-summary span {
  color: #625f58;
  font-size: 0.92rem;
}

.ads-admin-billing-requests {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-left: 1rem;
}

.ads-admin-billing-request {
  align-items: center;
  background: rgba(200, 169, 106, 0.12);
  border: 1px solid rgba(200, 169, 106, 0.34);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.ads-admin-billing-request span {
  color: #625f58;
  display: block;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.ads-admin-danger-details {
  background: rgba(200, 169, 106, 0.08);
  border: 1px solid rgba(200, 169, 106, 0.28);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.ads-admin-danger-details summary {
  cursor: pointer;
  font-weight: 600;
}

.ads-danger-callout {
  background: rgba(58, 13, 31, 0.08);
  border: 1px solid rgba(58, 13, 31, 0.24);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.ads-settings-rail {
  border-top: 1px solid var(--ads-border);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-top: 1.35rem;
}

.ads-account-summary,
.ads-upload-row {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.ads-account-name {
  font-weight: 600;
}

.ads-avatar-placeholder {
  align-items: center;
  aspect-ratio: 1;
  background: var(--ads-ink);
  border-radius: 8px;
  color: var(--ads-ivory);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.12em;
  width: 4.5rem;
}

.ads-account-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.ads-account-facts div {
  align-items: center;
  border-bottom: 1px solid rgba(222, 213, 200, 0.82);
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.ads-account-facts dt {
  color: var(--ads-smoke);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ads-account-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.ads-link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ads-settings-link,
.ads-settings-note {
  border-bottom: 1px solid rgba(222, 213, 200, 0.82);
  color: var(--ads-ink);
  display: flex;
  font-size: 0.82rem;
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding: 0.65rem 0;
  text-decoration: none;
  text-transform: uppercase;
}

.ads-settings-link::after {
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  height: 0.42rem;
  margin-top: 0.18rem;
  transform: rotate(-45deg);
  width: 0.42rem;
}

.ads-settings-link:hover,
.ads-settings-link:focus {
  color: var(--ads-claret);
}

.ads-settings-note {
  color: var(--ads-smoke);
}

.ads-settings-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ads-settings-section {
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

textarea.ads-compact-textarea {
  min-height: 6.5rem;
}

.ads-switch-row {
  align-items: center;
  display: flex;
  gap: 0.7rem;
}

.ads-switch-row .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.ads-upload-control {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1 1 auto;
  min-width: 0;
}

.ads-file-input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.ads-file-picker,
.ads-upload-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ads-file-name {
  color: var(--ads-smoke);
  min-width: min(16rem, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ads-profile-header {
  align-items: end;
  border-bottom: 1px solid var(--ads-border);
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.65rem;
}

.ads-profile-copy {
  max-width: 46rem;
}

.ads-profile-stories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ads-empty-state {
  border-bottom: 1px solid var(--ads-border);
  border-top: 1px solid var(--ads-border);
  color: var(--ads-smoke);
  padding: 1.35rem 0;
}

.ads-studio-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

.ads-studio-header {
  align-items: end;
  border-bottom: 1px solid var(--ads-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 1rem;
}

.ads-studio-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.ads-style-guide-toggle {
  align-items: center;
  background: #fffdfa;
  border: 1px solid var(--ads-border);
  border-radius: 999px;
  color: var(--ads-ink);
  display: inline-flex;
  flex: 0 0 auto;
  font: 600 0.78rem/1 Inter, system-ui, sans-serif;
  min-height: 2.35rem;
  justify-content: center;
  letter-spacing: 0;
  padding: 0.7rem 0.95rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.ads-style-guide-toggle.is-active,
.ads-style-guide-toggle:hover,
.ads-style-guide-toggle:focus-visible {
  background: #111;
  border-color: #111;
  color: #fff;
}

.ads-studio-console {
  width: 100%;
  margin-inline: auto;
}

.ads-studio-tools-col,
.ads-composer-col {
  min-width: 0;
}

.ads-composer-panel {
  background: rgba(255, 252, 247, 0.7);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.45rem);
}

textarea.ads-story-prompt {
  min-height: clamp(20rem, 52vh, 34rem);
  resize: vertical;
}

.ads-studio-submit {
  align-items: center;
  border-top: 1px solid var(--ads-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.35rem;
  padding-top: 1.35rem;
}

.ads-studio-submit .btn {
  margin-left: auto;
  order: 2;
}

.ads-studio-submit .muted {
  flex: 1 1 auto;
}

.ads-studio-submit-copy {
  flex: 1 1 auto;
}

.ads-studio-tools,
.ads-studio-controls {
  background: rgba(255, 252, 247, 0.62);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ads-studio-tools {
  align-self: start;
  max-height: calc(100vh - 8.25rem);
  overflow: auto;
  position: sticky;
  top: 5.25rem;
}

.ads-control-section {
  border-bottom: 1px solid var(--ads-border);
  padding: clamp(0.85rem, 1.5vw, 1.1rem);
}

.ads-control-section:last-child,
.ads-studio-tools .ads-control-section:only-child {
  border-bottom: 0;
}

.ads-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ads-preset-button {
  background: transparent;
  border: 1px solid rgba(16, 16, 15, 0.14);
  border-radius: 999px;
  color: var(--ads-ink);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  text-transform: uppercase;
}

.ads-preset-button:hover,
.ads-preset-button:focus,
.ads-preset-button.is-active {
  background: var(--ads-ink);
  border-color: var(--ads-ink);
  color: var(--ads-ivory);
}

.ads-style-preset-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ads-style-preset-card {
  align-items: flex-start;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid rgba(16, 16, 15, 0.13);
  border-radius: 8px;
  color: var(--ads-ink);
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  min-height: 5.85rem;
  padding: 0.72rem;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  width: 100%;
}

.ads-style-preset-card strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

.ads-style-preset-card span:not(.ads-style-preset-kicker),
.ads-style-preset-card small {
  color: var(--ads-smoke);
  font-size: 0.72rem;
  line-height: 1.28;
}

.ads-style-preset-card small {
  margin-top: auto;
}

.ads-style-preset-kicker {
  color: var(--ads-claret);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ads-style-preset-card:hover,
.ads-style-preset-card:focus,
.ads-style-preset-card.is-active {
  background: var(--ads-ink);
  border-color: var(--ads-ink);
  color: var(--ads-ivory);
  transform: translateY(-1px);
}

.ads-style-preset-card:hover span,
.ads-style-preset-card:focus span,
.ads-style-preset-card.is-active span,
.ads-style-preset-card:hover small,
.ads-style-preset-card:focus small,
.ads-style-preset-card.is-active small {
  color: rgba(247, 243, 236, 0.78);
}

.ads-style-preset-card:hover .ads-style-preset-kicker,
.ads-style-preset-card:focus .ads-style-preset-kicker,
.ads-style-preset-card.is-active .ads-style-preset-kicker {
  color: var(--ads-champagne);
}

.ads-preset-note {
  font-size: 0.84rem;
}

.btn-ads {
  background: var(--ads-ink);
  border-color: var(--ads-ink);
  color: var(--ads-ivory);
}

.btn-ads:hover,
.btn-ads:focus {
  background: var(--ads-claret);
  border-color: var(--ads-claret);
  color: var(--ads-ivory);
}

.btn-outline-ads {
  border-color: var(--ads-border);
  color: var(--ads-ink);
}

.btn-outline-ads:hover {
  border-color: var(--ads-champagne);
  color: var(--ads-claret);
}

.hairline {
  border-top: 1px solid var(--ads-champagne);
}

.muted {
  color: #625f58;
}

.status-pill {
  border: 1px solid var(--ads-border);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
}

.ads-owner-pill {
  background: var(--ads-ink);
  border-color: var(--ads-ink);
  color: var(--ads-ivory);
}

.story-body {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.55;
  white-space: pre-line;
}

.ads-preview-gate {
  max-height: 17rem;
  overflow: hidden;
  position: relative;
}

.ads-preview-gate::after {
  background: linear-gradient(to bottom, rgba(247, 243, 236, 0), var(--ads-ivory) 82%);
  bottom: 0;
  content: "";
  height: 7rem;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.ads-preview-gate-body {
  padding-bottom: 4rem;
}

.story-teaser {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  white-space: pre-line;
}

.ads-access-strip,
.ads-action-strip,
.ads-disclosure-strip {
  align-items: center;
  border-bottom: 1px solid var(--ads-border);
  border-top: 1px solid var(--ads-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.ads-access-strip p,
.ads-action-strip p,
.ads-disclosure-strip p {
  max-width: 42rem;
}

.ads-story-list {
  border-top: 1px solid var(--ads-border);
}

.ads-story-row {
  border-bottom: 1px solid var(--ads-border);
  padding: 1.45rem 0;
}

.ads-story-row-main {
  align-items: flex-start;
}

.ads-story-row-action {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 10rem;
}

.ads-story-row-savebar {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
  width: 100%;
}

.ads-save-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.ads-save-actions form {
  margin: 0;
}

.ads-save-icon-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  min-height: 2.35rem;
  min-width: 2.35rem;
  padding: 0.55rem;
}

.ads-save-icon-button svg {
  display: block;
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1rem;
}

.ads-save-icon-button.btn-ads svg {
  fill: currentColor;
}

.ads-story-byline {
  color: var(--ads-smoke);
  font-size: 0.84rem;
}

.ads-story-byline a,
.ads-subtle-link,
.ads-story-title-link {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.ads-story-byline a {
  color: var(--ads-ink);
}

.ads-story-title-link {
  color: var(--ads-ink);
  text-decoration: none;
}

.ads-story-byline a:hover,
.ads-story-byline a:focus,
.ads-story-title-link:hover,
.ads-story-title-link:focus {
  color: var(--ads-claret);
  text-decoration: underline;
}

.ads-subtle-link {
  color: var(--ads-smoke);
  font-size: 0.84rem;
}

.ads-story-identity {
  align-items: center;
  border-bottom: 1px solid var(--ads-border);
  border-top: 1px solid var(--ads-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.ads-story-identity-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ads-discreet-action {
  border-top: 1px solid rgba(222, 213, 200, 0.75);
  color: var(--ads-smoke);
  font-size: 0.9rem;
  padding-top: 0.9rem;
}

.ads-discreet-action summary {
  cursor: pointer;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.ads-discreet-action summary::-webkit-details-marker {
  display: none;
}

.ads-discreet-action summary:hover,
.ads-discreet-action summary:focus {
  color: var(--ads-claret);
}

.ads-discreet-action-body {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.8rem;
}

.ads-auth-steps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ads-auth-steps span {
  border-bottom: 1px solid var(--ads-border);
  color: var(--ads-ink);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  padding-bottom: 0.7rem;
  text-transform: uppercase;
}

.ads-library-main {
  min-width: min(18rem, 100%);
}

.ads-library-shell {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.ads-library-header {
  align-items: flex-end;
  border-bottom: 1px solid var(--ads-border);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding-bottom: 1.75rem;
}

.ads-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ads-library-summary {
  align-items: center;
  border-bottom: 1px solid rgba(222, 213, 200, 0.82);
  border-top: 1px solid rgba(222, 213, 200, 0.82);
  color: var(--ads-smoke);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 0.45rem 0.85rem;
  padding: 0.65rem 0;
}

.ads-library-summary strong {
  color: var(--ads-ink);
  font-weight: 600;
}

.ads-library-main-feed,
.ads-library-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ads-library-feed {
  border-top: 1px solid var(--ads-border);
}

.ads-library-story {
  border-bottom: 1px solid var(--ads-border);
  padding: 1.45rem 0;
}

.ads-library-story-content {
  min-width: 0;
}

.ads-story-meta {
  align-items: center;
  color: var(--ads-smoke);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.65rem;
}

.ads-library-story-title {
  font-size: 1.35rem;
  line-height: 1.08;
  margin: 0;
}

@media (min-width: 768px) {
  .ads-library-story-title {
    font-size: 1.65rem;
  }
}

@media (min-width: 1200px) {
  .ads-library-story-title {
    font-size: 2rem;
  }
}

.ads-library-story-title a {
  color: var(--ads-ink);
  text-decoration: none;
}

.ads-library-story-title a:hover,
.ads-library-story-title a:focus {
  color: var(--ads-claret);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ads-library-story-excerpt {
  color: #3c3934;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.14rem;
  line-height: 1.5;
  margin: 0.7rem 0 0;
  max-width: 46rem;
  -webkit-line-clamp: 3;
}

.ads-story-management {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ads-action-menu summary {
  color: var(--ads-ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.ads-action-menu {
  min-width: 8.5rem;
  text-align: right;
}

.ads-action-menu summary {
  align-items: center;
  border: 1px solid var(--ads-border);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  list-style: none;
  min-height: 2.25rem;
  padding: 0 0.95rem;
  user-select: none;
}

.ads-action-menu summary::-webkit-details-marker {
  display: none;
}

.ads-action-menu summary:hover,
.ads-action-menu summary:focus {
  border-color: var(--ads-champagne);
  color: var(--ads-claret);
}

.ads-action-menu-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.ads-action-menu-panel .btn,
.ads-action-menu-panel form {
  width: 100%;
}

.ads-chat-feed {
  border-top: 1px solid var(--ads-border);
}

.ads-chat-row {
  border-bottom: 1px solid var(--ads-border);
  padding: 1rem 0;
}

.ads-chat-row strong {
  display: block;
  margin-bottom: 0.25rem;
}

.ads-recent-story-link {
  color: var(--ads-ink);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
}

.ads-recent-story-link:hover,
.ads-recent-story-link:focus {
  color: var(--ads-claret);
}

.ads-recent-story-link .story-teaser {
  -webkit-line-clamp: 2;
}

.ads-library-counts {
  border-top: 1px solid var(--ads-border);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
}

.ads-library-counts .eyebrow {
  margin: 1rem 0 0.35rem;
}

.ads-library-counts div {
  align-items: baseline;
  border-bottom: 1px solid var(--ads-border);
  display: flex;
  justify-content: space-between;
  padding: 0.72rem 0;
}

.ads-library-counts strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}

.ads-library-counts span {
  color: var(--ads-smoke);
  font-size: 0.82rem;
}

.ads-story-editor-main {
  min-height: calc(100dvh - 5.25rem);
  padding-bottom: 0;
  padding-top: clamp(0.85rem, 1.5vw, 1.4rem);
}

.ads-story-editor-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  overflow: visible;
  position: relative;
}

.ads-story-editor-shell::after {
  background: linear-gradient(180deg, rgba(249, 245, 239, 0), var(--ads-ivory));
  bottom: 0;
  content: "";
  height: clamp(2rem, 7dvh, 4.5rem);
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: 2;
}

.ads-story-editor-header {
  align-items: flex-end;
  border-bottom: 1px solid var(--ads-border);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding-bottom: 0.9rem;
}

.ads-story-editor-header > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.ads-story-editor-header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.ads-story-editor-header-actions .btn {
  white-space: nowrap;
}

.ads-story-editor-form {
  align-items: start;
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: minmax(20rem, 2fr) minmax(0, 3fr);
  height: auto;
  min-height: 0;
  min-width: 0;
  overflow: visible;
}

.ads-field-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ads-field-heading {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.ads-field-tools,
.ads-story-editor-output-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.ads-field-tool {
  align-items: center;
  background: #fffdfa;
  border: 1px solid rgba(16, 16, 15, 0.14);
  border-radius: 999px;
  color: var(--ads-ink);
  display: inline-flex;
  font: 600 0.78rem/1 Inter, system-ui, sans-serif;
  justify-content: center;
  min-height: 2rem;
  padding: 0.55rem 0.78rem;
  white-space: nowrap;
}

.ads-field-tool:hover,
.ads-field-tool:focus-visible {
  background: #111;
  border-color: #111;
  color: #fff;
}

.ads-story-editor-input,
.ads-story-editor-output {
  border-top: 1px solid var(--ads-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 0;
  min-width: 0;
  padding-top: 1.35rem;
}

.ads-story-editor-input {
  grid-column: 1;
  overflow: visible;
  padding-right: 0.2rem;
}

.ads-story-editor-input .row,
.ads-story-editor-input [class*="col-"],
.ads-story-editor-input .input-group,
.ads-story-editor-input .form-control,
.ads-story-editor-input .form-select,
.ads-story-editor-input .ads-field-block,
.ads-story-editor-input .ads-field-heading,
.ads-story-editor-control-grid,
.ads-story-editor-control-grid > * {
  min-width: 0;
}

.ads-story-editor-control-grid {
  background: rgba(255, 252, 247, 0.58);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ads-story-editor-output {
  grid-column: 2;
  height: auto;
  overflow: visible;
  position: relative;
}

.ads-story-editor-output-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.ads-story-editor-regenerate-bar {
  align-items: center;
  border-top: 1px solid var(--ads-border);
  display: flex;
  justify-content: flex-end;
  padding-top: 1.15rem;
}

.ads-story-editor-input textarea.ads-story-prompt {
  min-height: clamp(12rem, 24dvh, 18rem);
}

.ads-story-editor-generated {
  background: rgba(255, 252, 247, 0.64);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: clamp(1.15rem, 2.4vw, 2rem);
}

.ads-generation-state {
  background: rgba(38, 60, 52, 0.08);
  border: 1px solid rgba(38, 60, 52, 0.24);
  border-radius: 8px;
  padding: 1rem;
}

.ads-generation-state-error {
  background: rgba(58, 13, 31, 0.08);
  border-color: rgba(58, 13, 31, 0.28);
}

.ads-story-editor-actions {
  border-top: 1px solid var(--ads-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1rem;
}

.ads-guided-start-modal .modal-content {
  background: var(--ads-ivory);
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  color: var(--ads-ink);
}

.ads-guided-start-modal .modal-header,
.ads-guided-start-modal .modal-footer {
  border-color: var(--ads-border);
}

.ads-guided-start-modal .ads-style-preset-grid {
  flex-direction: row;
  flex-wrap: wrap;
}

.ads-guided-start-modal .ads-style-preset-card {
  flex: 1 1 14rem;
}

.ads-avatar-preview {
  aspect-ratio: 1;
  border: 1px solid var(--ads-border);
  border-radius: 8px;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  width: min(6.5rem, 100%);
}

textarea {
  min-height: 10rem;
}

textarea.ads-style-textarea {
  min-height: 5.75rem;
  resize: vertical;
}

.ads-notice {
  background: rgba(38, 60, 52, 0.08);
  border: 1px solid rgba(38, 60, 52, 0.28);
  border-radius: 8px;
  color: var(--ads-green);
}

.ads-error {
  background: rgba(58, 13, 31, 0.08);
  border: 1px solid rgba(58, 13, 31, 0.28);
  border-radius: 8px;
  color: var(--ads-claret);
  margin-top: 0.75rem;
}

.ads-public-profile-avatar {
  aspect-ratio: 1;
  border: 1px solid var(--ads-border);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(16, 16, 15, 0.08);
  object-fit: cover;
  width: min(8rem, 36vw);
}

.ads-seo-list {
  color: #3c3934;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
}

.ads-eu-notice {
  align-items: center;
  background: rgba(255, 252, 247, 0.97);
  border: 1px solid rgba(222, 213, 200, 0.9);
  border-radius: 8px;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  box-shadow: 0 18px 50px rgba(16, 16, 15, 0.12);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: max(1rem, env(safe-area-inset-left));
  margin: 0 auto;
  max-width: min(72rem, calc(100vw - 2rem));
  padding: 1rem;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  z-index: 1050;
}

.ads-eu-notice p:not(.eyebrow) {
  color: #3c3934;
  font-size: 0.9rem;
}

@media (max-width: 1199.98px) {
  .ads-studio-tools-left {
    max-height: none;
    overflow: visible;
    position: static;
  }

  .ads-studio-tools-left .ads-style-preset-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ads-studio-tools-left .ads-style-preset-card {
    flex: 1 1 10rem;
  }
}

@media (max-width: 991.98px) {
  .ads-studio-tools {
    max-height: none;
    overflow: visible;
    position: static;
  }

  .ads-studio-tools-left .ads-style-preset-card {
    flex-basis: 14rem;
  }

  textarea.ads-story-prompt {
    min-height: 22rem;
  }
}

@media (max-width: 767.98px) {
  .ads-settings-header,
  .ads-studio-header,
  .ads-library-header,
  .ads-story-editor-header,
  .ads-profile-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ads-studio-header-actions,
  .ads-story-editor-header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .ads-settings-header-actions {
    justify-content: flex-start;
  }

  .ads-story-editor-main {
    padding-bottom: 1.5rem;
  }

  .ads-story-editor-shell {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .ads-story-editor-form {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .ads-story-editor-input {
    overflow: visible;
    padding-right: 0;
  }

  .ads-story-editor-output {
    height: auto;
    overflow: visible;
    position: static;
  }

  .ads-story-editor-generated {
    overflow: visible;
  }

  .ads-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .ads-filter-bar .btn {
    justify-content: center;
    width: 100%;
  }

  .ads-story-management {
    align-items: start;
    justify-items: start;
  }

  .ads-admin-billing-request {
    align-items: stretch;
    flex-direction: column;
  }

  .ads-action-menu {
    text-align: left;
  }

  .ads-studio-tools-left .ads-style-preset-grid {
    flex-direction: column;
  }

  .ads-studio-tools-left .ads-style-preset-card {
    flex-basis: auto;
  }

  .ads-studio-form[data-ads-style-guide-preference-set="false"] [data-ads-studio-guide-col] {
    display: none;
  }

  .ads-style-guide-toggle[data-ads-style-guide-default="auto"] {
    background: #fffdfa;
    border-color: var(--ads-border);
    color: var(--ads-ink);
  }

  .ads-composer-panel {
    padding: 1rem;
  }

  .ads-field-heading,
  .ads-story-editor-output-header,
  .ads-story-editor-regenerate-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .ads-field-tools,
  .ads-story-editor-output-actions {
    justify-content: flex-start;
  }

  .ads-story-editor-regenerate-bar .btn {
    width: 100%;
  }

  .ads-story-editor-generated {
    max-height: none;
  }

  .ads-studio-submit {
    align-items: flex-end;
    flex-direction: column;
  }

  .ads-studio-submit .muted {
    width: 100%;
  }

  .ads-account-facts div {
    align-items: flex-start;
    flex-direction: column;
  }

  .ads-account-facts dd {
    text-align: left;
  }

  .ads-upload-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ads-eu-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .ads-access-strip,
  .ads-action-strip,
  .ads-disclosure-strip,
  .ads-story-identity {
    display: flex;
    flex-direction: column;
  }

  .ads-story-identity {
    align-items: flex-start;
  }

  .ads-story-row-action {
    align-items: flex-start;
    min-width: 0;
  }

  .ads-story-row-savebar {
    justify-content: flex-start;
  }

  .ads-save-actions {
    justify-content: flex-start;
  }
}

footer {
  padding-bottom: calc(3rem + env(safe-area-inset-bottom));
}

.ads-range-group {
  background: rgba(200, 169, 106, 0.08);
  border: 1px solid rgba(200, 169, 106, 0.28);
  border-radius: 8px;
  padding: 0.85rem 1rem 0.65rem;
}

.ads-range-value {
  color: var(--ads-claret);
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 3.5rem;
  text-align: right;
}

.form-range::-webkit-slider-thumb {
  background: var(--ads-ink);
}

.form-range::-moz-range-thumb {
  background: var(--ads-ink);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .content-panel,
  .ads-nav,
  .ads-menu-button,
  .ads-nav-create,
  .ads-nav-quick,
  .btn-ads,
  .btn-outline-ads,
  .status-pill {
    border: 1px solid CanvasText;
  }
}

.ads-nav .ads-nav-create,
.ads-nav .ads-nav-quick {
  font-family: Inter, system-ui, sans-serif;
  line-height: 1;
  text-decoration: none;
}

.ads-nav-drawer .ads-drawer-title {
  font-size: 1.6rem;
  line-height: 1.05;
}

.ads-nav-drawer .ads-drawer-kicker {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.66rem;
  line-height: 1;
}

.ads-nav-drawer .ads-drawer-link {
  align-items: center;
  display: flex;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.84rem;
  justify-content: flex-start;
  line-height: 1.2;
  min-height: 2.1rem;
  text-align: left;
  text-decoration: none;
}
