/* a6a create styles. Sections preserve cascade order across shared and responsive rules. */

/* ── Foundation: local fonts, theme tokens and application shell ── */
@font-face {
  font-family: Jakarta;
  src: url('../assets/jakarta-latin.woff2');
  font-weight: 400 800;
  font-display: swap;
}
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-legal a,
.payment-policy-links a {
  text-underline-offset: 3px;
}
.payment-policy-links {
  font-size: 12px;
  margin: 12px 0;
  color: var(--muted);
}
@media (max-width: 600px) {
  .footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-legal {
    width: 100%;
    order: 3;
    justify-content: center;
  }
}
:root {
  --purple: #7150ce;
  --soft: #f0eafa;
  --ink: #302a3d;
  --muted: #817489;
  --line: #e9e2f0;
  --page: #f8f7fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font:
    14px/1.65 Jakarta,
    'Segoe UI',
    'Microsoft YaHei',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  line-height: 1.5;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
p {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
  letter-spacing: -0.035em;
}
button,
a,
input,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bba0e8;
}
[hidden] {
  display: none !important;
}
.icon-definitions {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 15px;
  padding: 12px;
  background: white;
  z-index: 500;
}
.skip-link:focus {
  top: 15px;
}
#main-content:focus {
  outline: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand img {
  object-fit: contain;
}
.brand strong {
  font-size: 28px;
  letter-spacing: -1.5px;
  font-weight: 800;
  line-height: 1;
}
.brand-create {
  font-size: 14px;
  color: #81708e;
  border-left: 1px solid var(--line);
  padding-left: 9px;
  margin-left: 2px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 31px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar > .brand {
  margin: 0 8px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  margin: 43px 14px 13px;
  color: #81708e;
}
.side-nav {
  display: grid;
  gap: 7px;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #8b799c;
  border-radius: 11px;
}
.side-nav button.active {
  background: var(--soft);
  color: var(--purple);
}
.side-nav button:last-child {
  margin-top: 16px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.sidebar-tip {
  padding: 18px 15px;
  background: #f8f5fc;
  border-radius: 15px;
  margin-bottom: 20px;
}
.tip-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  background: #eee5f9;
  color: #81708e;
  border-radius: 11px;
  margin-bottom: 12px;
}
.sidebar-tip h3 {
  font-size: 13px;
  margin-bottom: 7px;
  letter-spacing: 0;
}
.sidebar-tip p {
  font-size: 11px;
  line-height: 1.85;
  margin-bottom: 13px;
}
.sidebar-tip button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  color: #81708e;
  font-size: 11px;
  font-weight: 600;
}
.sidebar-tip button .icon {
  width: 16px;
}
.help-link,
.lite-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px;
  width: 100%;
  text-align: left;
  color: #81708e;
  font-size: 11px;
}
.help-link .icon,
.lite-toggle .icon {
  width: 18px;
}
.toggle-track {
  margin-left: auto;
  background: #e5dceb;
  width: 27px;
  height: 16px;
  border-radius: 20px;
  padding: 3px;
  flex: none;
}
.toggle-track span {
  display: block;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}
.lite-toggle[aria-pressed='true'] .toggle-track {
  background: var(--purple);
}
.lite-toggle[aria-pressed='true'] .toggle-track span {
  transform: translateX(11px);
}
.sidebar-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #81708e;
  padding: 18px 10px 0;
  margin-top: 13px;
  border-top: 1px solid var(--line);
}
.sidebar-email .icon {
  width: 13px;
}
.workspace {
  margin-left: 220px;
}
.topbar {
  height: 82px;
  padding: 0 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.workspace-name {
  font-size: 12px;
  color: #81708e;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.mobile-brand,
.mobile-nav {
  display: none;
}
.language-control {
  position: relative;
}
.language-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #8f779e;
  border-radius: 9px;
}
.language-trigger .icon {
  width: 16px;
}
.language-trigger .icon:last-child {
  width: 12px;
}
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 65;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 15px 45px #3822401c;
  padding: 7px;
  border-radius: 13px;
}
.language-option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 43px;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
}
.language-option[aria-selected='true'],
.language-option:hover {
  background: var(--soft);
  color: var(--purple);
}
.language-option .icon {
  width: 16px;
}
.credit-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--soft);
  color: #81708e;
  padding: 10px 13px;
  border-radius: 10px;
  min-height: 40px;
  font-size: 10px;
}
.credit-balance strong {
  font-size: 14px;
}
.credit-balance .icon {
  width: 16px;
  height: 16px;
}
.credit-plus {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e4d5f6;
  margin-left: 4px;
  font-size: 13px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: #f5e2d5;
  border-radius: 50%;
  color: #b28c76;
}
main {
  max-width: 1320px;
  padding: 32px 37px 0;
  margin: auto;
}

/* ── Hero carousel ── */
.hero {
  height: 330px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 23px;
  background: #f7e8d9;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: 65% 7%;
  opacity: 0;
  transition: opacity 0.5s ease;
  contain: layout paint;
}
.hero-slide.current {
  opacity: 1;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #f8ede0 0%, #f8ede0ed 26%, #f8ede080 47%, transparent 69%);
}
.hero-copy {
  padding: 34px 38px;
  width: 55%;
}
.eyebrow {
  font-size: 9px;
  color: #aa866f;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.27;
  letter-spacing: -1.5px;
  white-space: pre-line;
  margin: 14px 0 13px;
  color: #52394d;
}
.hero p {
  font-size: 12px;
  color: #a18a7c;
  line-height: 1.85;
  max-width: 275px;
  white-space: pre-line;
  margin-bottom: 18px;
}
.hero-action {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: #906c8b;
  font-weight: 700;
  padding: 0;
  min-height: 28px;
}
.hero-action .icon {
  width: 17px;
}
.hero-controls {
  position: absolute;
  right: 17px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 25px;
  background: #fffc;
  padding: 3px 5px 3px 10px;
}
.hero-dots {
  display: flex;
  gap: 3px;
}
.hero-dots button {
  width: 19px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
}
.hero-dots button:after {
  content: '';
  width: 5px;
  height: 5px;
  background: #b39da7;
  border-radius: 10px;
  transition: width 0.2s;
}
.hero-dots button.current:after {
  width: 14px;
  background: #947184;
}
.hero-pause {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #fff9;
  border-radius: 50%;
  color: #81708e;
}
.hero-pause .icon {
  width: 13px;
  height: 13px;
}

/* ── Creation form and output settings ── */
.composer {
  padding: 23px 26px;
  border: 1px solid #e4d9ef;
  border-radius: 21px;
  background: #fff;
  margin-top: 24px;
  box-shadow: 0 7px 25px #43354c03;
}
.composer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.composer-heading h2 {
  font-size: 19px;
  margin: 0;
}
.creation-types {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #f6f2fa;
  border-radius: 11px;
}
.type-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-width: 98px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #81708e;
  font-size: 11px;
  font-weight: 600;
}
.type-tab .icon {
  width: 17px;
  height: 17px;
}
.type-tab.active {
  background: #fff;
  color: #81708e;
  box-shadow: 0 2px 9px #3d245907;
}
.prompt-box {
  padding: 14px 16px 10px;
  border: 1px solid #eee6f4;
  border-radius: 12px;
  background: #fdfcfe;
}
.prompt-box:focus-within {
  border-color: #81708e;
  box-shadow: 0 0 0 3px #f7f2fd;
}
textarea {
  display: block;
  resize: vertical;
  width: 100%;
  min-height: 85px;
  max-height: 260px;
  border: 0;
  background: none;
  font-size: 13px;
  color: #6d567c;
  line-height: 1.9;
  padding: 0;
}
textarea:focus {
  outline: 0;
}
textarea::placeholder {
  color: #81708e;
}
.reference-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 7px;
}
.reference-button,
.idea-button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: #81708e;
  font-size: 11px;
  padding: 4px 0;
}
.reference-button .icon,
.idea-button .icon {
  width: 17px;
  height: 17px;
}
.idea-button {
  margin-left: auto;
  font-size: 10px;
}
.attachment {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 6px;
  background: var(--soft);
  border-radius: 8px;
  width: max-content;
  max-width: 100%;
}
.attachment img {
  width: 36px;
  height: 36px;
  border-radius: 5px;
}
.attachment span {
  font-size: 10px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment button {
  width: 30px;
  height: 30px;
  color: #81708e;
}
.attachment .icon {
  width: 14px;
}
.output-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-top: 18px;
}
.setting-group {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.setting-group legend {
  font-size: 9px;
  color: #81708e;
  padding: 0;
  margin-bottom: 7px;
}
.segmented {
  display: flex;
  gap: 5px;
}
.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  min-width: 45px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 8px;
  color: #81708e;
  font-size: 10px;
  white-space: nowrap;
}
.segmented button small {
  font-size: 9px;
}
.segmented button.selected {
  border-color: #81708e;
  background: #f6f0fc;
  color: #81708e;
}
.shape {
  display: block;
  flex: none;
  border: 1.3px solid currentColor;
  border-radius: 2px;
}
.shape.portrait {
  width: 9px;
  height: 14px;
}
.shape.square {
  width: 12px;
  height: 12px;
}
.shape.landscape {
  width: 15px;
  height: 9px;
}
.composer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #f1eaf7;
  padding-top: 18px;
  margin-top: 23px;
}
.quote-block {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #81708e;
}
.quote-block > .icon {
  width: 19px;
}
.quote-block strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #81708e;
}
.quote-block span {
  display: block;
  font-size: 9px;
  color: #81708e;
  margin-top: 2px;
}
.primary-button,
.secondary-button,
.sponsor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  border-radius: 10px;
  padding: 12px 19px;
  font-size: 12px;
  font-weight: 650;
}
.primary-button {
  background: var(--purple);
  color: #fff;
}
.primary-button:hover {
  background: #6240ba;
}
.secondary-button {
  background: #fff;
  border: 1px solid var(--line);
  color: #81708e;
}
.sponsor-button {
  background: #8f6c43;
  color: #88704f;
}
.sponsor-button:hover {
  background: #7e5b36;
}
.primary-button .icon,
.secondary-button .icon,
.sponsor-button .icon {
  width: 18px;
  height: 18px;
}
.create-button {
  min-width: 224px;
  min-height: 49px;
  gap: 10px;
}
.create-button .icon:last-child {
  margin-left: 25px;
  width: 17px;
}
.form-error,
.payment-error {
  color: #81708e;
  font-size: 11px;
  line-height: 1.9;
  margin: 12px 0 0;
}
.payment-error a {
  text-decoration: underline;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #81708e;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 0;
  white-space: nowrap;
}
.text-button .icon {
  width: 17px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #81708e;
  font-size: 12px;
}
.contact-link .icon {
  width: 17px;
}

/* ── Templates, saved works and gallery controls ── */
.templates-section {
  margin-top: 38px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h1,
.section-heading h2 {
  font-size: 23px;
  margin: 0 0 6px;
  letter-spacing: -0.8px;
}
.section-heading p {
  font-size: 11px;
  margin: 0;
  line-height: 1.85;
  color: #81708e;
}
.template-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 19px;
}
.filter {
  min-height: 34px;
  padding: 7px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #81708e;
  font-size: 10px;
}
.filter.active {
  background: var(--soft);
  border-color: #81708e;
  color: #81708e;
  font-weight: 650;
}
.template-grid,
.saved-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.template-card,
.saved-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  align-self: stretch;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.template-card:hover,
.saved-card:hover {
  border-color: #81708e;
  box-shadow: 0 8px 25px #4b28590b;
}
.template-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1.08;
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
  background: #f4edf8;
}
.template-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.template-type {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff6eaf2;
  border-radius: 6px;
  padding: 5px 7px;
  color: #81708e;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 600;
}
.template-type .icon {
  width: 12px;
  height: 12px;
}
.template-arrow {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 29px;
  height: 29px;
  background: #fff9eff2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #81708e;
}
.template-arrow .icon {
  width: 16px;
}
.duration-chip {
  position: absolute;
  bottom: 11px;
  left: 11px;
  padding: 4px 6px;
  background: #4635496e;
  border-radius: 5px;
  color: #fff;
  font-size: 9px;
  line-height: 1.3;
}
.template-content {
  flex: 1;
  padding: 16px;
  line-height: 1.6;
  min-width: 0;
}
.template-content h3 {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 5px;
  letter-spacing: -0.3px;
}
.template-content p {
  font-size: 10px;
  line-height: 1.85;
  margin: 0;
  color: #81708e;
}
.saved-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.saved-card .template-image {
  aspect-ratio: 1.4;
}
.saved-card .template-content h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-card time {
  display: block;
  font-size: 9px;
  color: #81708e;
  margin-top: 7px;
}
.empty-state {
  text-align: center;
  padding: 65px 20px 75px;
  background: #fff;
  border: 1px dashed #e0d1ee;
  border-radius: 20px;
  margin-top: 25px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  background: var(--soft);
  color: #81708e;
  border-radius: 22px;
  margin: 0 auto 22px;
}
.empty-icon .icon {
  width: 28px;
  height: 28px;
}
.empty-state h2 {
  font-size: 21px;
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 12px;
  margin-bottom: 25px;
}

/* ── Credits, supporter introduction and thank-you card ── */
.sponsor-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 45px;
  border-radius: 23px;
  background: #faf1e5;
  border: 1px solid #eee0c9;
  padding: 37px;
}
.supporter-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #88704f;
  font-weight: 700;
}
.supporter-kicker .icon {
  width: 14px;
  height: 14px;
}
.sponsor-copy h1 {
  font-size: 30px;
  line-height: 1.4;
  white-space: pre-line;
  margin: 15px 0;
  color: #8b684c;
  letter-spacing: -0.8px;
}
.sponsor-copy > p {
  font-size: 11px;
  line-height: 1.95;
  color: #88704f;
  max-width: 380px;
  margin-bottom: 20px;
}
.support-benefits {
  display: grid;
  gap: 9px;
  margin-bottom: 23px;
}
.support-benefits > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #b08e61;
}
.support-benefits .icon {
  width: 16px;
  height: 16px;
}
.sponsor-copy .sponsor-button {
  font-size: 11px;
}
.thanks-card {
  position: relative;
  isolation: isolate;
  background: #353e3b;
  color: #88704f;
  border-radius: 15px;
  box-shadow: 0 13px 28px #69513126;
  aspect-ratio: 1.44;
  padding: 25px;
  overflow: hidden;
  transform: rotate(-3deg);
  min-width: 0;
}
.thanks-card:before,
.thanks-card:after {
  content: '';
  position: absolute;
  border: 1px solid #c6a96d33;
  border-radius: 50%;
  width: 215px;
  height: 215px;
  right: -105px;
  top: 20px;
  z-index: -1;
}
.thanks-card:after {
  width: 180px;
  height: 180px;
  right: -88px;
  top: 37px;
}
.card-brand {
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-brand img {
  width: 24px;
  height: 18px;
  filter: brightness(0) invert(89%) sepia(34%) saturate(352%) hue-rotate(342deg);
}
.card-brand strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -1px;
}
.card-brand .brand-create {
  font-size: 9px;
  color: #88704f;
  border-color: #a18d6f77;
  padding-left: 7px;
}
.card-line {
  display: block;
  width: 26px;
  height: 1px;
  background: #b49a6d;
  margin: 25px 0 14px;
}
.thanks-card > strong {
  display: block;
  max-width: 250px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.thanks-card > p {
  font-size: 9px;
  line-height: 1.9;
  color: #88704f;
  max-width: 210px;
  margin: 9px 0 19px;
}
.card-signature {
  font-size: 8px;
  color: #88704f;
  letter-spacing: 0.5px;
}
.card-flower {
  position: absolute;
  right: 21px;
  bottom: 26px;
  font-size: 56px;
  line-height: 1;
  color: #b49660;
}
.pricing-intro {
  margin: 39px 0 20px;
}
.pricing-intro h2 {
  font-size: 23px;
  margin-bottom: 8px;
}
.pricing-intro p {
  font-size: 11px;
  margin: 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.plan-card {
  position: relative;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}
.plan-card.recommended {
  border-color: #81708e;
  background: #fdfaff;
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  background: #efe0fa;
  color: #81708e;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 9px;
}
.plan-amount {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
}
.plan-amount small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  color: #81708e;
  margin-left: 4px;
}
.plan-credits {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #81708e;
  font-weight: 600;
  margin-top: 8px;
}
.plan-credits .icon {
  width: 17px;
}
.plan-card p {
  font-size: 10px;
  line-height: 1.9;
  margin: 14px 0 20px;
  min-height: 38px;
  color: #81708e;
}
.plan-card button {
  width: 100%;
  font-size: 11px;
  min-height: 40px;
  padding: 10px;
}
.pricing-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  color: #81708e;
}
.pricing-terms > .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.pricing-terms p {
  font-size: 9px;
  line-height: 1.9;
  margin: 0;
  flex: 1;
}
.pricing-terms .text-button {
  font-size: 9px;
  padding: 0;
}
.video-price-panel {
  margin-top: 35px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.video-price-panel h2 {
  font-size: 19px;
}
.video-price-panel .section-heading p {
  font-size: 10px;
}
.table-badge {
  font-size: 9px;
  padding: 5px 8px;
  background: #f8f3fc;
  border-radius: 6px;
  color: #81708e;
  white-space: nowrap;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 11px;
}
.price-table th {
  background: #faf7fd;
  color: #81708e;
  font-size: 9px;
  font-weight: 500;
  padding: 10px;
}
.price-table td {
  padding: 13px 8px;
  color: #81708e;
  border-bottom: 1px solid #f3eafa;
}
.price-table tr:last-child td {
  border: 0;
}
.price-table th:first-child,
.price-table td:first-child {
  text-align: left;
  padding-left: 15px;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding: 22px 0 29px;
  color: #81708e;
  font-size: 9px;
}
.footer-brand,
.footer > a {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-brand img {
  opacity: 0.55;
  object-fit: contain;
}
.footer > a {
  white-space: nowrap;
}
.footer > a .icon {
  width: 13px;
  height: 13px;
}

/* ── Shared dialogs and media details ── */
body.modal-open {
  overflow: hidden;
}
dialog {
  width: min(720px, calc(100vw - 44px));
  max-width: none;
  max-height: calc(100dvh - 50px);
  padding: 0;
  border: 1px solid #eee5f4;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 25px 100px #30223b26;
  overflow: hidden;
}
dialog::backdrop {
  background: #35283d70;
  backdrop-filter: blur(4px);
}
#dialog-body {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 52px);
  min-height: 0;
}
.modal-header {
  padding: 24px 27px 19px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid #f2eaf8;
  flex-shrink: 0;
}
.modal-header > div {
  flex: 1;
  min-width: 0;
}
.modal-header h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 0;
}
.modal-header p {
  font-size: 11px;
  color: #81708e;
  line-height: 1.85;
  margin: 7px 0 0;
}
.modal-close {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #f8f3fc;
  color: #81708e;
  flex: none;
}
.modal-close .icon {
  width: 17px;
  height: 17px;
}
.modal-scroll {
  padding: 25px 27px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #81708e transparent;
}
.modal-scroll > p {
  font-size: 12px;
  line-height: 1.9;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 17px 27px 20px;
  border-top: 1px solid #f2eaf8;
  flex-shrink: 0;
  background: white;
}
.modal-footer .primary-button,
.modal-footer .secondary-button,
.modal-footer .sponsor-button {
  font-size: 11px;
  min-height: 44px;
}
.modal-footer .text-button {
  margin-right: auto;
}
.media-dialog {
  width: min(840px, calc(100vw - 44px));
}
.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.8fr);
  gap: 26px;
  align-items: center;
}
.media-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: #f6f0f9;
  border-radius: 12px;
  overflow: hidden;
  min-height: 170px;
  min-width: 0;
}
.media-stage img,
.media-stage video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 53dvh;
  object-fit: contain;
  background: #f6f0f9;
}
.media-stage video {
  background: #17101e;
  aspect-ratio: 9/16;
}
.media-description h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: #81708e;
  margin-bottom: 9px;
}
.media-description p {
  font-size: 12px;
  line-height: 1.9;
  color: #81708e;
  margin-bottom: 18px;
}
.media-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 9px;
  color: #81708e;
}
.media-meta span {
  background: #f9f4fc;
  padding: 5px 8px;
  border-radius: 6px;
}
.media-status {
  font-size: 10px;
  color: #81708e;
  margin-top: 10px;
  min-height: 16px;
}
.media-error {
  text-align: center;
  padding: 24px;
  color: #81708e;
  font-size: 12px;
}
.result-dialog .media-description p {
  max-height: 210px;
  overflow-y: auto;
}
.progress-state {
  text-align: center;
  padding: 44px 20px;
}
.progress-orbit {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #f3ebfc;
  color: #81708e;
  border-radius: 22px;
  margin: 0 auto 21px;
}
.progress-orbit .icon {
  width: 30px;
  height: 30px;
  animation: pulse 1.5s infinite;
}
.progress-state h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.progress-state p {
  font-size: 12px;
}
.progress-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 25px;
}
.progress-dots i {
  width: 5px;
  height: 5px;
  background: #c3a7dd;
  border-radius: 50%;
  animation: pulse 1.3s infinite;
}
.progress-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.progress-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.saved-confirmation {
  text-align: center;
  padding: 20px 16px;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  background: #edf5ee;
  color: #81708e;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.success-mark .icon {
  width: 27px;
  height: 27px;
}
.saved-confirmation h3 {
  font-size: 20px;
  margin-bottom: 11px;
}
.saved-confirmation p {
  font-size: 12px;
  line-height: 1.9;
  max-width: 390px;
  margin: 0 auto 20px;
}
.saved-thumbnail {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  margin: 0 auto 18px;
}
.modal-field {
  display: block;
  margin-bottom: 19px;
}
.modal-field > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #ab8b70;
  margin-bottom: 8px;
}
.modal-field input {
  display: block;
  width: 100%;
  min-height: 47px;
  padding: 12px 13px;
  border: 1px solid #e8dccc;
  background: #fffcf8;
  border-radius: 10px;
  color: #917259;
  font-size: 13px;
}
.modal-field input::placeholder {
  color: #88704f;
  font-size: 12px;
}
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 10px;
  line-height: 1.9;
  color: #81708e;
  margin-top: 18px;
}
.terms-check input {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--purple);
}
.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid #f3eafa;
  font-size: 12px;
  color: #81708e;
}
.order-line strong {
  font-size: 21px;
  font-weight: 600;
  color: #81708e;
}
.checkout-credit-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--soft);
  color: #81708e;
  border-radius: 15px;
  margin-bottom: 10px;
}
.help-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 27px;
  display: grid;
  gap: 22px;
}
.help-steps li {
  display: flex;
  gap: 13px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--soft);
  color: #81708e;
  border-radius: 10px;
  flex: none;
  font-size: 12px;
}
.help-steps strong {
  font-size: 13px;
}
.help-steps p {
  font-size: 11px;
  line-height: 1.9;
  margin: 5px 0 0;
}
.profile-language-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 20px 0 25px;
}
.profile-language-list button {
  border: 1px solid var(--line);
  font-size: 11px;
}
.toast {
  position: fixed;
  left: calc(50% + 110px);
  bottom: 29px;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  background: #fffcff;
  border: 1px solid #e8dcf0;
  border-radius: 11px;
  box-shadow: 0 6px 30px #42304c14;
  color: #81708e;
  font-size: 12px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
}
.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.toast .icon {
  width: 17px;
}

/* ── Supporter checkout and advertising placement diagram ── */
.sponsor-dialog {
  width: min(780px, calc(100vw - 44px));
  border-color: #88704f;
}
.sponsor-dialog .modal-header,
.sponsor-dialog .modal-footer {
  background: #fffcf7;
  border-color: #88704f;
}
.sponsor-dialog .modal-header h2 {
  color: #9a764e;
}
.sponsor-dialog .modal-header p {
  color: #88704f;
}
.sponsor-dialog .modal-close {
  background: #f6eddf;
  color: #88704f;
}
.support-step {
  display: flex;
  gap: 6px;
  margin-top: 13px;
}
.support-step i {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: #ebdfcd;
}
.support-step i.active {
  background: #b99b74;
}
.support-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
  align-items: center;
  margin-bottom: 28px;
}
.support-intro .thanks-card {
  padding: 21px;
  transform: rotate(-2deg);
}
.support-intro .thanks-card > strong {
  font-size: 17px;
}
.support-intro .thanks-card > p {
  font-size: 8px;
  margin-bottom: 10px;
}
.support-intro .card-flower {
  font-size: 43px;
  bottom: 19px;
  right: 17px;
}
.support-intro .card-line {
  margin-top: 20px;
}
.support-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.support-benefit-list li {
  display: flex;
  gap: 10px;
}
.support-benefit-list .icon {
  width: 20px;
  color: #88704f;
  margin-top: 2px;
}
.support-benefit-list strong {
  display: block;
  font-size: 12px;
  color: #a3845c;
  font-weight: 650;
}
.support-benefit-list small {
  display: block;
  font-size: 10px;
  line-height: 1.9;
  color: #88704f;
  margin-top: 5px;
}
.support-ad-heading {
  font-size: 18px;
  color: #a4825b;
  margin-bottom: 10px;
}
.support-ad-text {
  font-size: 11px;
  color: #88704f;
  line-height: 1.9;
  margin-bottom: 19px;
}
.placement-map {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 1fr);
  gap: 18px;
  align-items: center;
  background: #fbf6ee;
  border: 1px solid #f0e2cd;
  border-radius: 14px;
  padding: 19px;
  margin-bottom: 19px;
}
.site-mini {
  padding: 8px;
  background: #fff;
  border: 1px solid #ecdfce;
  border-radius: 10px;
  box-shadow: 0 7px 18px #8e715410;
}
.site-mini-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #88704f;
  padding: 3px 2px 8px;
}
.site-mini-top strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #9f8567;
}
.site-mini-top img {
  width: 15px;
  height: 11px;
  object-fit: contain;
}
.map-hero {
  position: relative;
  aspect-ratio: 2.3;
  border: 2px solid #c6ac8d;
  border-radius: 6px;
  overflow: hidden;
}
.map-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.map-number {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  background: #a58a69;
  color: white;
  font-size: 10px;
  border-radius: 50%;
}
.mini-composer {
  margin: 7px 0;
  padding: 9px;
  background: #f8f4fb;
  border-radius: 5px;
}
.mini-composer i {
  display: block;
  width: 80%;
  height: 3px;
  background: #ece2f2;
  border-radius: 2px;
  margin-bottom: 4px;
}
.mini-composer i:last-child {
  width: 30%;
  margin-left: auto;
  background: #d8c5ea;
}
.mini-cases {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  border: 2px solid #be9c69;
  border-radius: 6px;
  padding: 5px;
}
.mini-cases img {
  width: 100%;
  aspect-ratio: 0.95;
  object-fit: cover;
  border-radius: 4px;
}
.mini-cases .map-number {
  top: -8px;
  left: -8px;
  background: #b9955c;
}
.map-notes {
  display: grid;
  gap: 17px;
}
.map-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.map-note > span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  background: #ede0c8;
  color: #88704f;
  flex: none;
  font-size: 10px;
  border-radius: 50%;
}
.map-note:last-child > span {
  background: #b9955c;
  color: white;
}
.map-note strong {
  display: block;
  font-size: 11px;
  color: #a18155;
}
.map-note small {
  display: block;
  font-size: 9px;
  line-height: 1.85;
  color: #88704f;
  margin-top: 5px;
}
.map-note em {
  display: inline-block;
  font-size: 9px;
  font-style: normal;
  color: #88704f;
  background: #f2e7d5;
  border-radius: 4px;
  padding: 2px 5px;
  margin-top: 6px;
}
.hero-quote {
  border-top: 1px solid #f2e7d9;
  padding-top: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-quote p {
  font-size: 10px;
  color: #88704f;
  line-height: 1.9;
  flex: 1;
  margin: 0;
}
.hero-quote a {
  font-size: 10px;
  color: #b3946e;
  max-width: 150px;
  flex: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sponsor-form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.sponsor-form-layout .thanks-card {
  transform: rotate(2deg);
}
.sponsor-form-layout .thanks-card > strong {
  font-size: 18px;
}
.sponsor-summary {
  padding: 20px 23px;
  background: #fcf7ee;
  border: 1px solid #eee0c9;
  border-radius: 13px;
  margin-bottom: 18px;
}
.sponsor-summary h3 {
  font-size: 12px;
  color: #b1926a;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.sponsor-summary .support-benefit-list {
  gap: 11px;
}
.sponsor-summary .support-benefit-list strong {
  font-size: 11px;
}
.sponsor-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: #88704f;
  border-top: 1px solid #eddfca;
  padding-top: 18px;
  margin-top: 17px;
}
.sponsor-total strong {
  font-size: 26px;
  color: #ac885a;
  font-weight: 650;
}
.sponsor-total small {
  font-size: 10px;
  font-weight: 500;
}
.sponsor-dialog .terms-check {
  color: #88704f;
}
.sponsor-dialog input[type='checkbox'] {
  accent-color: #a78555;
}
.sponsor-dialog .secondary-button {
  border-color: #88704f;
  color: #88704f;
}
.sponsor-success .thanks-card {
  max-width: 390px;
  margin: 10px auto 27px;
  transform: none;
}
.sponsor-success > p {
  text-align: center;
  max-width: 450px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.9;
  color: #88704f;
}
.sponsor-terms {
  font-size: 9px;
  color: #88704f;
  line-height: 1.9;
  margin: 15px 0 0;
}

/* ── Responsive application layout ── */
@media (min-width: 1550px) {
  .hero {
    height: 365px;
  }
  .hero-copy {
    padding: 40px 45px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 13px;
  }
  .sponsor-section {
    padding: 45px;
    gap: 65px;
  }
  .sponsor-copy h1 {
    font-size: 35px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding-inline: 13px;
  }
  .workspace {
    margin-left: 195px;
  }
  .topbar {
    padding-inline: 26px;
  }
  main {
    padding-inline: 26px;
  }
  .hero {
    height: 300px;
  }
  .hero-copy {
    padding: 30px;
    width: 58%;
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero p {
    font-size: 11px;
    max-width: 240px;
  }
  .composer {
    padding: 22px;
  }
  .output-settings {
    gap: 15px;
  }
  .segmented button {
    padding-inline: 8px;
  }
  .segmented small {
    display: none;
  }
  .template-grid {
    gap: 13px;
  }
  .template-content {
    padding: 13px;
  }
  .template-content h3 {
    font-size: 12px;
  }
  .sponsor-section {
    padding: 29px;
    gap: 27px;
  }
  .sponsor-copy h1 {
    font-size: 27px;
  }
  .thanks-card {
    padding: 21px;
  }
  .thanks-card > strong {
    font-size: 18px;
  }
  .thanks-card > p {
    font-size: 8px;
  }
  .card-line {
    margin-top: 20px;
  }
  .plan-card {
    padding: 22px 18px;
  }
  .toast {
    left: calc(50% + 97px);
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 175px;
    padding-inline: 11px;
  }
  .workspace {
    margin-left: 175px;
  }
  .sidebar .brand-create {
    display: none;
  }
  .side-nav button {
    font-size: 11px;
    padding: 12px 10px;
    gap: 10px;
  }
  .sidebar-tip {
    padding: 15px 12px;
  }
  .help-link,
  .lite-toggle {
    font-size: 10px;
    gap: 8px;
  }
  .sidebar-email {
    font-size: 9px;
  }
  .topbar {
    height: 74px;
    padding-inline: 23px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .workspace-name {
    font-size: 11px;
  }
  main {
    padding: 25px 23px 0;
  }
  .hero {
    height: 278px;
    border-radius: 19px;
  }
  .hero-copy {
    width: 62%;
    padding: 27px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 10px;
    max-width: 200px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .composer {
    padding: 20px;
    margin-top: 19px;
  }
  .composer-heading h2 {
    font-size: 17px;
  }
  .type-tab {
    min-width: 77px;
    padding: 8px;
    font-size: 10px;
  }
  .format-group {
    flex-basis: 100%;
  }
  .format-group small {
    display: block;
  }
  .create-button {
    min-width: 190px;
  }
  .template-grid {
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .template-image {
    aspect-ratio: 1.25;
  }
  .template-content {
    padding: 16px;
  }
  .template-content h3 {
    font-size: 14px;
  }
  .template-content p {
    font-size: 11px;
  }
  .sponsor-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sponsor-section > .thanks-card {
    max-width: 350px;
    width: 100%;
    margin: auto;
  }
  .sponsor-copy > p {
    max-width: none;
  }
  .sponsor-copy h1 {
    font-size: 30px;
  }
  .plan-grid {
    gap: 10px;
  }
  .plan-card {
    padding: 24px 13px 17px;
  }
  .plan-amount {
    font-size: 25px;
  }
  .plan-credits {
    font-size: 10px;
  }
  .plan-card p {
    font-size: 9px;
    min-height: 50px;
  }
  .plan-card button {
    font-size: 10px;
  }
  .table-badge {
    display: none;
  }
  .saved-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer {
    font-size: 8px;
  }
  .toast {
    left: calc(50% + 87px);
  }
}
@media (max-width: 700px) {
  .sidebar,
  .workspace-name {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-brand {
    display: flex;
  }
  .mobile-brand img {
    width: 29px;
    height: 22px;
  }
  .mobile-brand strong {
    font-size: 25px;
  }
  .mobile-brand .brand-create {
    display: none;
  }
  .topbar {
    height: 73px;
    padding: 0 19px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .language-trigger {
    font-size: 10px;
    gap: 5px;
    padding: 6px 3px;
    min-height: 40px;
  }
  .language-trigger .icon {
    width: 15px;
  }
  .language-trigger .icon:last-child {
    width: 12px;
  }
  .credit-balance {
    padding: 9px 10px;
    min-height: 36px;
    gap: 5px;
  }
  .credit-balance strong {
    font-size: 12px;
  }
  .credit-balance > span:not(.credit-plus) {
    display: none;
  }
  .credit-plus {
    width: 14px;
    height: 14px;
    margin-left: 1px;
  }
  .credit-balance .icon {
    width: 14px;
    height: 14px;
  }
  .avatar {
    width: 31px;
    height: 31px;
  }
  .avatar .icon {
    width: 18px;
  }
  .language-menu {
    min-width: 180px;
    right: -8px;
  }
  .language-option {
    min-height: 44px;
    font-size: 13px;
  }
  main {
    padding: 19px 19px 0;
    max-width: 580px;
  }
  .hero {
    height: 249px;
    border-radius: 18px;
  }
  .hero-copy {
    width: 59%;
    padding: 25px 22px;
  }
  .hero h1 {
    font-size: 27px;
    line-height: 1.4;
    letter-spacing: -1px;
    margin: 13px 0 11px;
  }
  .hero p {
    font-size: 10px;
    max-width: 180px;
    margin-bottom: 13px;
  }
  .hero-action {
    font-size: 10px;
    min-height: 26px;
    gap: 9px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .hero-slide {
    object-position: 66% 44%;
  }
  .hero-shade {
    background: linear-gradient(90deg, #f8ede0 0%, #f8ede0ec 20%, #f8ede0a0 45%, transparent 70%);
  }
  .hero-controls {
    right: 11px;
    bottom: 11px;
    padding: 2px 4px 2px 8px;
    gap: 4px;
  }
  .hero-dots {
    gap: 2px;
  }
  .hero-dots button {
    width: 18px;
    height: 24px;
  }
  .hero-dots button:after {
    width: 4px;
    height: 4px;
  }
  .hero-dots button.current:after {
    width: 12px;
  }
  .hero-pause {
    width: 25px;
    height: 25px;
  }
  .composer {
    padding: 20px 18px 18px;
    margin-top: 18px;
    border-radius: 18px;
  }
  .composer-heading {
    display: block;
    margin-bottom: 17px;
  }
  .composer-heading h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .creation-types {
    width: 100%;
    padding: 4px;
    gap: 4px;
  }
  .type-tab {
    width: 50%;
    min-height: 41px;
    padding: 10px;
    font-size: 12px;
  }
  .type-tab .icon {
    width: 18px;
    height: 18px;
  }
  .prompt-box {
    padding: 13px 12px 9px;
    border-radius: 10px;
  }
  textarea {
    min-height: 109px;
    font-size: 13px;
    line-height: 1.85;
  }
  .reference-actions {
    gap: 10px;
    margin-top: 5px;
  }
  .reference-button {
    font-size: 10px;
    min-height: 35px;
  }
  .idea-button {
    font-size: 9px;
    min-height: 35px;
    gap: 5px;
  }
  .output-settings {
    gap: 15px 18px;
    margin-top: 17px;
  }
  .format-group {
    flex-basis: 100%;
  }
  .format-group .segmented {
    gap: 7px;
  }
  .format-group .segmented button {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    padding: 10px 5px;
    font-size: 10px;
  }
  .format-group small {
    display: none;
  }
  .setting-group legend {
    font-size: 9px;
    margin-bottom: 7px;
  }
  .video-setting .segmented {
    gap: 6px;
  }
  .video-setting .segmented button {
    min-width: 48px;
    padding: 8px 11px;
    font-size: 10px;
    min-height: 35px;
  }
  .composer-bottom {
    gap: 10px;
    padding-top: 17px;
    margin-top: 18px;
  }
  .quote-block {
    gap: 6px;
    flex-shrink: 0;
  }
  .quote-block > .icon {
    width: 17px;
  }
  .quote-block strong {
    font-size: 10px;
  }
  .quote-block span {
    font-size: 8px;
  }
  .create-button {
    min-width: 0;
    width: 57%;
    min-height: 46px;
    padding: 12px;
    font-size: 12px;
    gap: 7px;
  }
  .create-button > .icon {
    width: 18px;
  }
  .create-button > .icon:last-child {
    width: 16px;
    margin-left: auto;
  }
  .templates-section {
    margin-top: 31px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
  }
  .section-heading h1,
  .section-heading h2 {
    font-size: 21px;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
  }
  .section-heading p {
    font-size: 10px;
    line-height: 1.9;
    max-width: 280px;
  }
  .section-heading .text-button {
    font-size: 10px;
    gap: 5px;
    padding-top: 5px;
  }
  .section-heading .text-button .icon {
    width: 15px;
  }
  .template-filters {
    gap: 7px;
    margin-bottom: 16px;
  }
  .filter {
    font-size: 10px;
    padding: 7px 16px;
    min-height: 34px;
  }
  .template-grid {
    gap: 14px 12px;
  }
  .template-card {
    border-radius: 14px;
  }
  .template-image {
    aspect-ratio: 1;
  }
  .template-type {
    left: 8px;
    top: 8px;
    font-size: 8px;
    padding: 4px 6px;
    gap: 3px;
  }
  .template-type .icon {
    width: 11px;
    height: 11px;
  }
  .template-arrow {
    right: 8px;
    bottom: 8px;
    width: 27px;
    height: 27px;
  }
  .template-arrow .icon {
    width: 15px;
  }
  .template-content {
    padding: 13px 12px 15px;
  }
  .template-content h3 {
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 6px;
  }
  .template-content p {
    font-size: 9px;
    line-height: 1.9;
  }
  .duration-chip {
    left: 8px;
    bottom: 9px;
    font-size: 8px;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    background: #fffefef5;
    border-top: 1px solid #e9def0;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 51px;
    min-width: 0;
    padding: 5px 2px;
    color: #81708e;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
  }
  .mobile-nav button.active {
    color: #81708e;
  }
  .mobile-nav button.active .icon {
    fill: #f1e5fb;
    stroke: #a077c4;
  }
  .mobile-nav .icon {
    width: 22px;
    height: 22px;
  }
  .mobile-nav span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .footer {
    margin-top: 29px;
    padding: 21px 0 calc(91px + env(safe-area-inset-bottom));
    flex-wrap: wrap;
    gap: 12px;
    font-size: 8px;
  }
  .footer-brand {
    gap: 6px;
  }
  .footer-brand img {
    width: 18px;
    height: 14px;
  }
  .footer > a {
    font-size: 9px;
    gap: 5px;
  }
  .footer > a .icon {
    width: 12px;
  }
  .sponsor-section {
    padding: 25px 22px 28px;
    gap: 31px;
    border-radius: 18px;
  }
  .supporter-kicker {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .sponsor-copy h1 {
    font-size: 28px;
    line-height: 1.45;
    margin: 14px 0;
  }
  .sponsor-copy > p {
    font-size: 11px;
  }
  .support-benefits {
    gap: 10px;
    margin-bottom: 22px;
  }
  .support-benefits > span {
    font-size: 11px;
  }
  .sponsor-section > .thanks-card {
    max-width: 330px;
  }
  .thanks-card {
    padding: 24px;
  }
  .thanks-card > strong {
    font-size: 21px;
  }
  .thanks-card > p {
    font-size: 9px;
    max-width: 220px;
  }
  .card-line {
    margin-top: 23px;
  }
  .pricing-intro {
    margin: 30px 0 19px;
  }
  .pricing-intro h2 {
    font-size: 21px;
  }
  .pricing-intro p {
    font-size: 10px;
    line-height: 1.9;
  }
  .plan-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .plan-card {
    padding: 21px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 15px;
    align-items: center;
    border-radius: 14px;
  }
  .plan-amount {
    font-size: 26px;
  }
  .plan-amount small {
    font-size: 9px;
  }
  .plan-credits {
    grid-column: 1;
    font-size: 11px;
    gap: 6px;
    margin-top: 5px;
  }
  .plan-card p {
    display: none;
  }
  .plan-card button {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    min-width: 112px;
    min-height: 43px;
    padding-inline: 14px;
  }
  .plan-badge {
    top: -9px;
    left: 19px;
    font-size: 8px;
    padding: 3px 8px;
  }
  .plan-card.recommended {
    margin-top: 6px;
  }
  .pricing-terms {
    gap: 7px;
    margin-top: 17px;
  }
  .pricing-terms p,
  .pricing-terms .text-button {
    font-size: 8px;
  }
  .pricing-terms > .icon {
    width: 12px;
    height: 12px;
  }
  .video-price-panel {
    padding: 20px 17px;
    margin-top: 26px;
    border-radius: 16px;
  }
  .video-price-panel h2 {
    font-size: 19px;
  }
  .video-price-panel .section-heading p {
    font-size: 9px;
  }
  .price-table {
    font-size: 10px;
  }
  .price-table th {
    font-size: 9px;
    padding: 9px;
  }
  .price-table td {
    padding: 12px 7px;
  }
  .saved-grid {
    gap: 13px 12px;
  }
  .saved-card .template-content {
    padding: 12px;
  }
  .saved-card time {
    font-size: 8px;
  }
  .empty-state {
    padding: 44px 20px 50px;
  }
  .empty-state h2 {
    font-size: 19px;
  }
  .empty-state p {
    font-size: 11px;
  }
  .toast {
    left: 50%;
    bottom: calc(85px + env(safe-area-inset-bottom));
    font-size: 11px;
    max-width: calc(100vw - 35px);
    width: max-content;
    padding: 12px 15px;
  }
  dialog,
  .media-dialog,
  .sponsor-dialog {
    width: 100%;
    margin: auto 0 0;
    max-height: calc(100dvh - 18px);
    border-width: 1px 0 0;
    border-radius: 23px 23px 0 0;
  }
  #dialog-body {
    max-height: calc(100dvh - 19px);
  }
  .modal-header {
    padding: 21px 21px 17px;
    gap: 15px;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  .modal-header p {
    font-size: 10px;
    line-height: 1.9;
    margin-top: 6px;
  }
  .modal-close {
    width: 30px;
    height: 30px;
  }
  .modal-scroll {
    padding: 20px 21px;
    scrollbar-width: none;
  }
  .modal-scroll::-webkit-scrollbar {
    display: none;
  }
  .modal-footer {
    padding: 15px 21px calc(17px + env(safe-area-inset-bottom));
    gap: 9px;
  }
  .modal-footer .primary-button,
  .modal-footer .secondary-button,
  .modal-footer .sponsor-button {
    min-height: 45px;
    font-size: 11px;
    padding: 12px 15px;
  }
  .modal-footer .text-button {
    font-size: 10px;
  }
  .media-layout {
    grid-template-columns: 1fr;
    gap: 19px;
    align-items: start;
  }
  .media-stage {
    min-height: 140px;
    border-radius: 11px;
  }
  .media-stage img,
  .media-stage video {
    max-height: 47dvh;
    object-fit: contain;
  }
  .media-stage video {
    aspect-ratio: auto;
  }
  .media-description h3 {
    font-size: 10px;
    margin-bottom: 7px;
  }
  .media-description p {
    font-size: 11px;
    line-height: 1.9;
    margin-bottom: 12px;
  }
  .media-meta {
    font-size: 9px;
    gap: 6px;
  }
  .media-meta span {
    padding: 4px 7px;
  }
  .media-dialog .modal-scroll {
    padding-top: 17px;
    padding-bottom: 18px;
  }
  .media-dialog .modal-footer {
    flex-wrap: nowrap;
  }
  .media-dialog .modal-footer .primary-button {
    flex: 1;
  }
  .result-dialog .modal-footer {
    flex-wrap: wrap;
  }
  .result-dialog .modal-footer .secondary-button {
    flex: 1;
  }
  .result-dialog .modal-footer .primary-button {
    flex: 1.2;
  }
  .result-dialog .modal-footer > .text-button {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-bottom: 0;
    padding-top: 4px;
  }
  .result-dialog .media-description p {
    max-height: 100px;
  }
  .progress-state {
    padding: 35px 15px;
  }
  .progress-state h3 {
    font-size: 18px;
  }
  .progress-state p {
    font-size: 11px;
  }
  .saved-confirmation {
    padding: 20px 8px;
  }
  .saved-confirmation h3 {
    font-size: 20px;
  }
  .saved-confirmation p {
    font-size: 11px;
  }
  .modal-field {
    margin-bottom: 18px;
  }
  .modal-field > span {
    font-size: 11px;
  }
  .modal-field input {
    font-size: 14px;
  }
  .support-intro {
    grid-template-columns: 1fr;
    gap: 19px;
    margin-bottom: 27px;
  }
  .support-intro .thanks-card {
    order: 2;
    max-width: 330px;
    width: 100%;
    justify-self: center;
    padding: 23px;
  }
  .support-intro .thanks-card > strong {
    font-size: 20px;
  }
  .support-intro .thanks-card > p {
    font-size: 9px;
  }
  .support-intro .card-flower {
    font-size: 54px;
    bottom: 23px;
    right: 22px;
  }
  .support-benefit-list {
    gap: 15px;
  }
  .support-ad-heading {
    font-size: 18px;
  }
  .support-ad-text {
    font-size: 11px;
  }
  .placement-map {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 17px;
  }
  .site-mini {
    max-width: 340px;
    width: 100%;
    justify-self: center;
  }
  .map-notes {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .map-note {
    gap: 6px;
  }
  .map-note strong {
    font-size: 10px;
  }
  .map-note small,
  .map-note em {
    font-size: 8px;
  }
  .hero-quote {
    display: block;
  }
  .hero-quote p {
    font-size: 10px;
    margin-bottom: 9px;
  }
  .hero-quote a {
    font-size: 10px;
    max-width: none;
  }
  .sponsor-dialog .modal-footer {
    flex-wrap: nowrap;
  }
  .sponsor-dialog .modal-footer .sponsor-button {
    flex: 1;
  }
  .sponsor-dialog .modal-footer > .text-button {
    font-size: 11px;
    flex: none;
  }
  .sponsor-form-layout {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .sponsor-form-layout .thanks-card {
    order: -1;
    max-width: 330px;
    width: 100%;
    margin: 0 auto 15px;
    aspect-ratio: 1.6;
    transform: rotate(1deg);
  }
  .sponsor-form-layout .thanks-card > strong {
    font-size: 20px;
  }
  .sponsor-form-layout .thanks-card > p {
    font-size: 9px;
    margin-bottom: 12px;
  }
  .sponsor-form-layout .card-line {
    margin-top: 17px;
  }
  .sponsor-summary {
    padding: 19px;
  }
  .sponsor-total strong {
    font-size: 24px;
  }
  .sponsor-success .thanks-card {
    padding: 24px;
  }
  .sponsor-success .thanks-card > strong {
    font-size: 21px;
  }
  .sponsor-success > p {
    font-size: 11px;
  }
  .sponsor-terms {
    font-size: 9px;
  }
  .help-steps strong {
    font-size: 12px;
  }
  .order-line {
    font-size: 11px;
  }
  .order-line strong {
    font-size: 20px;
  }
}
@media (max-width: 374px) {
  .topbar {
    padding-inline: 14px;
  }
  .topbar-actions {
    gap: 7px;
  }
  .mobile-brand {
    gap: 5px;
  }
  .mobile-brand strong {
    font-size: 23px;
  }
  .mobile-brand img {
    width: 25px;
    height: 19px;
  }
  .language-trigger {
    font-size: 9px;
    gap: 4px;
  }
  .avatar {
    display: none;
  }
  main {
    padding: 15px 14px 0;
  }
  .hero {
    height: 232px;
  }
  .hero-copy {
    padding: 23px 19px;
    width: 64%;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 9px;
  }
  .composer {
    padding: 18px 15px;
  }
  .composer-heading h2 {
    font-size: 17px;
  }
  .create-button {
    width: 53%;
    font-size: 11px;
  }
  .create-button > .icon:last-child {
    display: none;
  }
  .template-grid {
    gap: 12px 10px;
  }
  .template-content {
    padding: 11px;
  }
  .template-content h3 {
    font-size: 11px;
  }
  .template-content p {
    font-size: 8px;
  }
  .mobile-nav button {
    font-size: 8px;
  }
  .sponsor-copy h1 {
    font-size: 25px;
  }
  .sponsor-section {
    padding: 23px 19px;
  }
  .thanks-card > strong {
    font-size: 19px;
  }
  .thanks-card {
    padding: 22px;
  }
  .modal-header,
  .modal-scroll,
  .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
.lite-mode .hero-slide {
  transition: none;
}
.lite-mode .mobile-nav,
.lite-mode dialog::backdrop {
  backdrop-filter: none;
}

/* ── Copy fitting, card typography and supporter details ── */
@media (max-width: 700px) {
  .hero-copy {
    width: 70%;
  }
  .hero h1 {
    font-size: 25px;
    line-height: 1.4;
  }
  .hero p {
    max-width: 185px;
    font-size: 10px;
  }
  .hero-shade {
    background: linear-gradient(90deg, #f8ede0 0%, #f8ede0ef 23%, #f8ede0a0 48%, transparent 76%);
  }
  html {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 374px) {
  .hero-copy {
    width: 72%;
  }
  .hero h1 {
    font-size: 23px;
  }
  .hero p {
    font-size: 9px;
  }
}
.sponsor-button {
  color: #fff8e9;
}
.thanks-card {
  color: #e9d5ab;
}
.thanks-card > p {
  color: #c4b69b;
}
.card-signature {
  color: #b3a68f;
}
.card-brand .brand-create {
  color: #bfb096;
}
.support-benefits-intro {
  margin-bottom: 26px;
}
.support-benefits-intro .support-benefit-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.support-benefits-intro .support-benefit-list li {
  display: block;
}
.support-benefits-intro .support-benefit-list .icon {
  margin: 0 0 8px;
}
.support-benefits-intro .support-benefit-list strong {
  font-size: 11px;
}
.support-benefits-intro .support-benefit-list small {
  font-size: 9px;
  line-height: 1.85;
}
@media (max-width: 700px) {
  .support-benefits-intro {
    margin-bottom: 23px;
  }
  .support-benefits-intro .support-benefit-list {
    gap: 13px;
  }
  .support-benefits-intro .support-benefit-list strong {
    font-size: 10px;
  }
  .support-benefits-intro .support-benefit-list small {
    font-size: 8px;
    line-height: 1.8;
  }
  .support-benefits-intro .support-benefit-list .icon {
    width: 18px;
    height: 18px;
    margin-bottom: 7px;
  }
}
.map-hero img {
  object-position: 65% 7%;
}
@media (max-width: 700px) {
  .template-content h3 {
    font-size: 14px;
  }
  .template-content p {
    font-size: 11px;
  }
  .template-type {
    font-size: 9px;
  }
  .filter {
    font-size: 11px;
  }
  .mobile-nav button {
    font-size: 10px;
  }
  .language-trigger {
    font-size: 11px;
  }
  .hero p {
    font-size: 11px;
  }
  .hero-action {
    font-size: 11px;
  }
  textarea {
    font-size: 14px;
  }
  .reference-button {
    font-size: 11px;
  }
  .idea-button {
    font-size: 10px;
  }
  .setting-group legend {
    font-size: 10px;
  }
  .format-group .segmented button {
    font-size: 12px;
  }
  .video-setting .segmented button {
    font-size: 11px;
  }
  .quote-block strong {
    font-size: 12px;
  }
  .quote-block span {
    font-size: 9px;
  }
  .support-benefits-intro .support-benefit-list strong {
    font-size: 11px;
  }
  .support-benefits-intro .support-benefit-list small {
    font-size: 10px;
  }
  .map-note strong {
    font-size: 11px;
  }
  .map-note small,
  .map-note em {
    font-size: 10px;
  }
  .terms-check {
    font-size: 11px;
  }
  .sponsor-terms {
    font-size: 10px;
  }
  .footer {
    font-size: 9px;
  }
  .footer > a {
    font-size: 10px;
  }
  .section-heading p {
    font-size: 11px;
  }
}
@media (max-width: 374px) {
  .hero h1 {
    font-size: 23px;
  }
  .hero p {
    font-size: 10px;
  }
  .template-content h3 {
    font-size: 13px;
  }
  .template-content p {
    font-size: 10px;
  }
  .mobile-nav button {
    font-size: 9px;
  }
  .language-trigger {
    font-size: 10px;
  }
  .video-setting .segmented button {
    padding: 8px 10px;
  }
}
@media (max-width: 700px) {
  html[lang='pt'] .hero h1 {
    font-size: 23px;
  }
  html[lang='en'] .hero h1 {
    font-size: 24px;
  }
}
@media (max-width: 374px) {
  html[lang='pt'] .hero h1,
  html[lang='en'] .hero h1 {
    font-size: 21px;
  }
  .hero-copy {
    width: 74%;
  }
}
.sponsor-form-layout .thanks-card > strong.long-name,
.sponsor-success .thanks-card > strong.long-name {
  font-size: 14px;
  line-height: 1.55;
}
.profile-lite {
  display: flex;
  width: 100%;
  margin: 0 0 22px;
}
.profile-lite[aria-pressed='true'] {
  background: #f5eefb;
  border-color: #cfb6e7;
}

/* ── Expandable supporter section and template search ── */

.sponsor-section {
  display: block;
  position: relative;
  padding: 33px 36px 40px;
  overflow: hidden;
  transition: height 0.3s ease;
  overflow-anchor: none;
}
.sponsor-expanded {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 45px;
}
.sponsor-compact {
  display: none;
}
.sponsor-toggle {
  position: absolute;
  right: 17px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  align-items: center;
  color: #927451;
  padding: 5px 7px;
  min-height: 28px;
  font-size: 10px;
}
.sponsor-toggle .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}
.sponsor-section.collapsed {
  padding: 22px 27px;
  min-height: clamp(145px, var(--support-fold-height, 170px), 220px);
  display: flex;
  align-items: center;
}
.sponsor-section.collapsed .sponsor-expanded {
  display: none;
}
.sponsor-section.collapsed .sponsor-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-right: 30px;
}
.sponsor-section.collapsed .sponsor-toggle {
  top: 12px;
  bottom: auto;
  right: 12px;
}
.sponsor-section.collapsed .sponsor-toggle .icon {
  transform: none;
}
.compact-heart {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 17px;
  background: #f1e3ce;
  color: #a5865c;
}
.compact-heart .icon {
  width: 23px;
  height: 23px;
}
.compact-copy {
  flex: 1;
  min-width: 0;
  position: relative;
  padding-right: 205px;
}
.compact-copy h2 {
  font-size: 21px;
  color: #846444;
  margin: 0 0 7px;
  line-height: 1.45;
}
.compact-facts {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9c7d54;
}
.compact-facts strong {
  font-size: 13px;
  font-weight: 650;
}
.compact-copy p {
  font-size: 10px;
  color: #9e8465;
  line-height: 1.8;
  margin: 6px 0 0;
}
.compact-copy .sponsor-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  min-height: 43px;
}
.sponsor-section.collapsed .compact-copy .sponsor-button:active {
  transform: translateY(-50%);
}
.template-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 19px;
}
.template-toolbar .template-filters {
  margin-bottom: 0;
}
.template-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 7px 11px;
  max-width: 240px;
  min-width: 0;
}
.template-search .icon {
  width: 15px;
  height: 15px;
  color: #a990ba;
}
.template-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 10px;
  color: #846b96;
  line-height: 1.8;
}
.template-search:focus-within {
  border-color: #b59ad3;
  box-shadow: 0 0 0 3px #f2eaf9;
}
.template-search input::placeholder {
  color: #aa94b7;
}
.template-empty {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 13px;
  font-size: 12px;
}
.simulation-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  margin: 17px 0 0;
  border-radius: 9px;
  background: #f7f3fb;
  color: #9e83b2;
  font-size: 10px;
  line-height: 1.8;
}
.simulation-note .icon {
  width: 15px;
  height: 15px;
}
.sponsor-dialog .simulation-note {
  background: #f9f1e5;
  color: #a08460;
}
.sim-result-label {
  font-size: 9px;
  color: #9b83aa;
  border: 1px solid #e9dff0;
  padding: 3px 7px;
  border-radius: 5px;
}
.funding-options {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}
.funding-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 17px;
  background: #faf7fd;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: left;
  color: #9b7bb1;
}
.funding-option strong {
  font-size: 18px;
  color: #7d5b97;
}
.funding-option span {
  font-size: 12px;
}
.funding-option:hover {
  border-color: #bba0d7;
  background: #f3ecfa;
}
.activity-panel {
  margin-top: 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 23px;
}
.activity-panel h2 {
  font-size: 18px;
  margin-bottom: 13px;
}
.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid #f1eaf6;
}
.activity-row span {
  font-size: 11px;
  color: #9e86b0;
}
.activity-row time {
  display: block;
  font-size: 9px;
  color: #b29dbf;
  margin-top: 2px;
}
.activity-row strong {
  font-size: 12px;
  color: #8a6c9e;
  font-weight: 600;
}
.profile-reset {
  display: block;
  font-size: 11px;
  margin-top: 22px;
  color: #a591b3;
  padding: 9px 0;
}
.sponsor-dialog .modal-footer .sponsor-button {
  white-space: normal;
}
.payment-busy .icon {
  animation: pulse 1s infinite;
}
@media (max-width: 900px) {
  .sponsor-expanded {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .sponsor-expanded > .thanks-card {
    width: 100%;
    max-width: 350px;
    margin: auto;
  }
  .compact-copy {
    padding-right: 0;
  }
  .compact-copy .sponsor-button {
    position: static;
    transform: none;
    margin-top: 12px;
  }
  .sponsor-section.collapsed .compact-copy .sponsor-button:active {
    transform: none;
  }
  .compact-heart {
    align-self: flex-start;
    margin-top: 6px;
  }
  .sponsor-section.collapsed {
    padding: 21px 25px;
  }
  .compact-copy h2 {
    font-size: 20px;
  }
  .compact-copy p {
    display: none;
  }
  .template-search {
    max-width: 200px;
  }
}

/* ── Creation controls: shared typography, alignment and reference gallery ── */

.composer button,
.credit-balance,
.language-trigger {
  font-family: inherit;
  letter-spacing: normal;
  line-height: 1.25;
}
.composer {
  border-color: #e5ddef;
  box-shadow: 0 5px 20px #33234303;
}
.creation-types {
  background: #f5f2f9;
}
.type-tab {
  font-size: 13px;
  font-weight: 600;
  color: #7c7389;
}
.type-tab.active {
  color: #6843c6;
  background: #fff;
  box-shadow: 0 2px 10px #49336b08;
}
.prompt-box {
  background: #fdfcfe;
  border-color: #e8e0f1;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.prompt-box:focus-within {
  border-color: #b39ae0;
  box-shadow: 0 0 0 3px #7a50d408;
}
.prompt-box textarea {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: #484052;
  letter-spacing: normal;
  resize: none;
  scrollbar-width: thin;
  scrollbar-color: #d9cfe6 transparent;
  padding-right: 4px;
}
.prompt-box textarea::placeholder {
  color: #aaa0b4;
  opacity: 1;
}
.prompt-box textarea::-webkit-scrollbar {
  width: 4px;
}
.prompt-box textarea::-webkit-scrollbar-thumb {
  background: #d9cfe6;
  border-radius: 8px;
}
.prompt-box textarea::-webkit-scrollbar-track {
  background: transparent;
}
.prompt-box textarea::-webkit-scrollbar-button {
  display: none;
}
.reference-button,
.idea-button {
  font-size: 12px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  line-height: 1.25;
  color: #8d7e9d;
  border-radius: 6px;
}
.reference-button:hover,
.idea-button:hover {
  color: #6843c6;
}
.reference-count {
  font-size: 0.82em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  color: #a79ab6;
}
.is-full .reference-count {
  color: #6843c6;
}
.reference-button[aria-busy='true'] {
  opacity: 0.6;
}
.segmented button {
  font-size: 12px;
  font-weight: 500;
  color: #8a7d98;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  border-color: #e8e0f1;
  box-shadow: none;
}
.segmented button.selected {
  color: #6843c6;
  background: #f5f0fc;
  border-color: #b8a0e0;
  box-shadow: inset 0 0 0 0.25px #b8a0e0;
}
.setting-group legend {
  font-size: 11px;
  font-weight: 500;
  color: #95889f;
  line-height: 1.3;
}
.segmented button span {
  line-height: 1.25;
}
.create-button {
  font-size: 14px;
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  align-items: center;
  justify-content: stretch;
  gap: 9px;
  font-weight: 650;
  background: #7850d3;
  line-height: 1.25;
  white-space: nowrap;
}
.create-button > .icon:last-child {
  margin: 0;
}
.create-button > span {
  line-height: 1.25;
  text-align: center;
}
.quote-block strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  color: #897496;
}
.quote-block span {
  line-height: 1.5;
}
.credit-balance {
  height: 37px;
  min-height: 37px;
  padding: 0 12px;
  gap: 7px;
  white-space: nowrap;
  background: #f3edfc;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
}
.credit-balance strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.credit-balance > .icon {
  width: 16px;
  height: 18px;
}
.credit-plus {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: none;
  line-height: 1;
  padding: 0;
}
.credit-plus > .icon {
  width: 12px;
  height: 12px;
}
.reference-gallery {
  display: flex;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 2px 0;
  min-width: 0;
}
.reference-item {
  position: relative;
  min-width: 0;
  flex: 0 1 106px;
}
.reference-open {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 4px;
  background: #f3edf9;
  border: 1px solid #e9dff1;
  border-radius: 9px;
  text-align: left;
  min-height: 44px;
}
.reference-open img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 5px;
  flex: none;
}
.reference-open span {
  font-size: 9px;
  color: #94839f;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  padding-right: 7px;
}
.reference-remove {
  position: absolute;
  right: -3px;
  top: -5px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e5d9ef;
  color: #8e7b9c;
  box-shadow: 0 1px 4px #5a3c7120;
}
.reference-remove .icon {
  width: 11px;
  height: 11px;
}
.reference-stage {
  min-height: 0 !important;
}
.reference-filename {
  font-size: 11px;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  color: #9a89a6;
}

/* ── Mobile creation layout and short-screen adjustments ── */

@media (max-width: 700px) {
  .topbar {
    height: 56px;
    padding-inline: 15px;
  }
  .mobile-brand strong {
    font-size: 24px;
  }
  .mobile-brand img {
    width: 27px;
    height: 21px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .credit-balance {
    height: 35px;
    min-height: 35px;
    padding: 0 9px;
    gap: 6px;
  }
  .credit-balance strong {
    font-size: 13px;
  }
  .credit-plus {
    width: 16px;
    height: 16px;
  }
  .avatar {
    width: 29px;
    height: 29px;
  }
  .language-trigger {
    min-height: 36px;
    font-size: 11px;
    font-weight: 600;
  }
  .language-trigger .icon {
    width: 14px;
  }
  .language-trigger .icon:last-child {
    width: 10px;
  }
  main {
    padding: 12px 15px 0;
    max-width: 600px;
  }
  .hero {
    height: clamp(122px, 21svh, 168px);
    border-radius: 15px;
  }
  .hero-copy {
    padding: 17px 19px;
    width: 70%;
  }
  .eyebrow {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  .hero h1 {
    font-size: 23px;
    line-height: 1.25;
    margin: 7px 0 7px;
    letter-spacing: -0.9px;
  }
  .hero p {
    font-size: 10px;
    line-height: 1.7;
    max-width: 187px;
    margin: 0;
  }
  .hero-action {
    display: none;
  }
  .hero-controls {
    right: 9px;
    bottom: 9px;
    padding: 1px 3px 1px 7px;
  }
  .hero-dots button {
    width: 16px;
    height: 22px;
  }
  .hero-pause {
    width: 23px;
    height: 23px;
  }
  .hero-pause .icon {
    width: 11px;
    height: 11px;
  }
  .hero-shade {
    background: linear-gradient(90deg, #f8ede0 0%, #f8ede0ed 23%, #f8ede075 49%, transparent 75%);
  }
  .hero-slide {
    object-position: 65% 10%;
  }
  .composer {
    padding: 13px 14px;
    margin-top: 12px;
    border-radius: 16px;
  }
  .composer-heading {
    margin-bottom: 10px;
    display: block;
  }
  .composer-heading h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    margin: 0;
  }
  .creation-types {
    padding: 3px;
    height: 36px;
    border-radius: 9px;
  }
  .type-tab {
    min-height: 30px;
    padding: 6px;
    font-size: 12px;
    gap: 6px;
  }
  .type-tab .icon {
    width: 16px;
    height: 16px;
  }
  .prompt-box {
    padding: 10px 11px 6px;
  }
  .prompt-box textarea {
    font-size: 16px;
    line-height: 1.5;
    min-height: 69px;
    max-height: 170px;
  }
  .reference-actions {
    margin-top: 4px;
    gap: 9px;
  }
  .reference-button,
  .idea-button {
    min-height: 28px;
    padding: 3px 0;
  }
  .reference-button,
  .idea-button {
    font-size: 11px;
  }
  .reference-button .icon,
  .idea-button .icon {
    width: 15px;
    height: 15px;
  }
  .attachment {
    margin-top: 7px;
  }
  .attachment img {
    width: 29px;
    height: 29px;
  }
  .attachment span {
    max-width: 170px;
  }
  .output-settings {
    margin-top: 11px;
    gap: 9px 17px;
  }
  .setting-group legend {
    font-size: 10px;
    margin-bottom: 5px;
  }
  .format-group .segmented {
    gap: 6px;
  }
  .format-group .segmented button {
    min-height: 32px;
    padding: 7px 5px;
    font-size: 12px;
  }
  .shape.portrait {
    width: 8px;
    height: 12px;
  }
  .shape.square {
    width: 10px;
    height: 10px;
  }
  .shape.landscape {
    width: 13px;
    height: 8px;
  }
  .video-setting .segmented {
    gap: 5px;
  }
  .video-setting .segmented button {
    min-height: 32px;
    min-width: 43px;
    font-size: 12px;
    padding: 6px 9px;
  }
  .composer-bottom {
    margin-top: 12px;
    padding-top: 11px;
    gap: 10px;
  }
  .create-button {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
    width: 58%;
  }
  .quote-block strong {
    font-size: 12px;
  }
  .quote-block span {
    font-size: 9px;
  }
  .quote-block > .icon {
    width: 16px;
  }
  .form-error {
    margin-top: 8px;
    font-size: 10px;
  }
  .templates-section {
    margin-top: 25px;
  }
  .section-heading h1,
  .section-heading h2 {
    font-size: 20px;
  }
  .template-toolbar {
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  .template-toolbar .template-filters {
    gap: 6px;
  }
  .filter {
    font-size: 10px;
    min-height: 32px;
    padding: 7px 13px;
  }
  .template-search {
    flex: 1;
    min-width: 125px;
    max-width: none;
    padding: 7px 9px;
    border-radius: 8px;
  }
  .template-search input {
    font-size: 10px;
  }
  .template-search .icon {
    width: 14px;
    height: 14px;
  }
  .template-grid {
    gap: 13px 11px;
  }
  .template-content h3 {
    font-size: 13px;
  }
  .template-content p {
    font-size: 10px;
  }
  .template-image {
    aspect-ratio: 1.05;
  }
  .mobile-nav {
    padding-top: 5px;
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
  }
  .mobile-nav button {
    min-height: 47px;
    gap: 4px;
    font-size: 9px;
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  .footer {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .sponsor-section {
    padding: 24px 21px 37px;
  }
  .sponsor-expanded {
    gap: 26px;
  }
  .sponsor-copy h1 {
    font-size: 27px;
  }
  .sponsor-section.collapsed {
    padding: 21px;
    min-height: clamp(170px, var(--support-fold-height, 205px), 235px);
  }
  .sponsor-section.collapsed .sponsor-compact {
    padding-right: 0;
    gap: 13px;
  }
  .compact-heart {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }
  .compact-heart .icon {
    width: 20px;
    height: 20px;
  }
  .compact-copy h2 {
    font-size: 19px;
    max-width: 250px;
    margin-bottom: 8px;
  }
  .compact-facts {
    font-size: 11px;
    gap: 7px;
  }
  .compact-facts strong {
    font-size: 12px;
  }
  .compact-copy .sponsor-button {
    font-size: 10px;
    min-height: 36px;
    padding: 9px 13px;
    margin-top: 12px;
  }
  .sponsor-toggle,
  .sponsor-section.collapsed .sponsor-toggle {
    right: 10px;
    top: auto;
    bottom: 7px;
    font-size: 9px;
    min-height: 28px;
  }
  .sponsor-section.collapsed .sponsor-toggle {
    bottom: 6px;
  }
  .pricing-intro {
    margin-top: 25px;
  }
  .activity-panel {
    padding: 20px 17px;
  }
  .activity-panel h2 {
    font-size: 17px;
  }
  .simulation-note {
    font-size: 10px;
    padding: 9px 11px;
  }
  .funding-option strong {
    font-size: 18px;
  }
  .funding-option span {
    font-size: 11px;
  }
  .modal-footer .primary-button,
  .modal-footer .secondary-button {
    font-size: 11px;
  }
  .profile-reset {
    font-size: 11px;
  }
  html[lang='pt'] .hero h1,
  html[lang='en'] .hero h1 {
    font-size: 21px;
  }
}
@media (max-width: 374px) {
  .topbar {
    padding-inline: 12px;
    height: 54px;
  }
  main {
    padding: 10px 12px 0;
  }
  .hero-copy {
    padding: 15px 16px;
    width: 73%;
  }
  .hero h1 {
    font-size: 21px;
  }
  .hero p {
    font-size: 9px;
    max-width: 171px;
  }
  .composer {
    padding: 12px;
    margin-top: 10px;
  }
  .output-settings {
    gap: 8px 13px;
  }
  .video-setting .segmented button {
    min-width: 40px;
    padding: 6px 8px;
  }
  .template-search {
    flex-basis: 100%;
    min-height: 34px;
  }
  .template-toolbar {
    gap: 10px;
  }
  .sponsor-copy h1 {
    font-size: 25px;
  }
  .compact-copy h2 {
    font-size: 17px;
  }
  .compact-heart {
    width: 32px;
    height: 32px;
  }
  .sponsor-section.collapsed {
    padding: 19px;
    min-height: clamp(170px, var(--support-fold-height, 205px), 235px);
  }
  html[lang='pt'] .hero h1,
  html[lang='en'] .hero h1 {
    font-size: 19px;
  }
}
@media (max-width: 700px) and (max-height: 650px) {
  .topbar {
    height: 50px;
  }
  main {
    padding-top: 9px;
  }
  .hero {
    height: 112px;
  }
  .hero-copy {
    padding: 12px 16px;
    width: 73%;
  }
  .eyebrow {
    display: none;
  }
  .hero h1 {
    font-size: 21px;
    margin: 0 0 5px;
    line-height: 1.2;
  }
  .hero p {
    font-size: 9px;
    line-height: 1.5;
    max-width: 177px;
  }
  .hero-controls {
    bottom: 6px;
    right: 7px;
  }
  .composer {
    padding: 10px 12px;
    margin-top: 9px;
  }
  .composer-heading {
    margin-bottom: 8px;
  }
  .creation-types {
    height: 33px;
  }
  .type-tab {
    min-height: 27px;
    padding: 5px;
  }
  .prompt-box {
    padding: 9px 10px 4px;
  }
  .prompt-box textarea {
    min-height: 56px;
    font-size: 16px;
  }
  .reference-actions {
    margin-top: 2px;
  }
  .reference-button,
  .idea-button {
    min-height: 25px;
  }
  .output-settings {
    margin-top: 9px;
    gap: 7px 13px;
  }
  .setting-group legend {
    font-size: 9px;
    margin-bottom: 4px;
  }
  .format-group .segmented button {
    min-height: 30px;
    padding: 6px 5px;
  }
  .video-setting .segmented button {
    min-height: 29px;
    padding: 5px 8px;
  }
  .composer-bottom {
    margin-top: 9px;
    padding-top: 9px;
  }
  .create-button {
    min-height: 38px;
    padding: 8px 10px;
  }
  .mobile-nav button {
    min-height: 44px;
    font-size: 8px;
  }
  .mobile-nav .icon {
    width: 19px;
    height: 19px;
  }
  .quote-block span {
    font-size: 8px;
  }
  html[lang='en'] .hero h1,
  html[lang='pt'] .hero h1 {
    font-size: 19px;
  }
}
@media (max-width: 700px) {
  .prompt-box textarea {
    height: 69px;
  }
}
@media (max-width: 700px) and (min-height: 651px) and (max-height: 740px) {
  .hero-copy {
    padding: 14px 19px;
  }
  .hero h1 {
    font-size: 22px;
    margin: 5px 0;
  }
  .hero p {
    font-size: 9px;
    line-height: 1.6;
    max-width: 200px;
  }
  html[lang='en'] .hero h1,
  html[lang='pt'] .hero h1 {
    font-size: 20px;
  }
}
@media (max-width: 700px) and (max-height: 650px) {
  .prompt-box textarea {
    height: 56px;
  }
}
@media (max-width: 700px) and (min-height: 651px) and (max-height: 740px) {
  .hero .eyebrow {
    display: block;
    line-height: 1.2;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: calc(56px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
}
@media (max-width: 700px) and (max-height: 650px) {
  .topbar {
    height: calc(50px + env(safe-area-inset-top));
  }
}

/* ── Reference gallery density and hero image positioning ── */
@media (max-width: 700px) {
  .reference-gallery {
    gap: 7px;
  }
  .reference-item {
    flex: 1;
    max-width: 106px;
  }
  .reference-button,
  .idea-button {
    gap: 5px;
  }
  .reference-open span {
    font-size: 8px;
  }
  .reference-open {
    gap: 4px;
  }
  .hero-slide {
    object-position: 65% 20%;
  }
  .hero-dots button {
    width: 14px;
  }
  .hero-controls {
    padding-left: 6px;
  }
  .credit-plus > .icon {
    width: 11px;
    height: 11px;
  }
}
@media (min-width: 701px) {
  .hero-slide {
    left: auto;
    right: 0;
    width: min(84%, 900px);
    object-position: 65% 35%;
  }
}
@media (max-width: 700px) and (max-height: 650px) {
  .hero-slide {
    left: auto;
    right: 0;
    width: 78%;
    object-position: 65% 35%;
  }
}
@media (min-width: 701px) {
  .hero-slides > picture:first-child .hero-slide {
    object-position: 65% 12%;
  }
  .hero-slides > picture:nth-child(4) .hero-slide {
    object-position: 65% 18%;
  }
}

/* ── Collapsed supporter letter and keepsake card ── */

.hero-slides > picture {
  display: contents;
}
.template-image img:not([src]) {
  visibility: hidden;
}
.sponsor-section.collapsed {
  padding: 0;
  min-height: 0;
  display: block;
  background: linear-gradient(120deg, #fcf9f2, #f6f0e5);
  border: 1px solid #e6dac6;
  box-shadow: 0 4px 22px #68533807;
}
.sponsor-section.collapsed .sponsor-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  grid-template-areas: 'main card' 'footer card';
  gap: 15px 25px;
  padding: 23px 29px 20px;
  width: 100%;
  align-items: center;
}
.compact-main {
  grid-area: main;
  min-width: 0;
}
.compact-kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #a58a65;
  line-height: 1.4;
  margin-bottom: 7px;
}
.compact-main h2 {
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  font-weight: 600;
  color: #3f4a42;
  margin: 0 0 7px;
}
.compact-main p {
  font-size: 11px;
  line-height: 1.7;
  color: #9b876d;
  margin: 0;
  max-width: 500px;
}
.compact-keepsake {
  grid-area: card;
  position: relative;
  overflow: hidden;
  align-self: center;
  width: 146px;
  height: 119px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3f4d43, #2f3c35);
  color: #eddbb8;
  padding: 13px 15px;
  transform: rotate(4deg);
  box-shadow:
    0 8px 16px #3c3e3320,
    inset 0 0 0 1px #f4dfb313;
  isolation: isolate;
  pointer-events: none;
}
.compact-keepsake::before,
.compact-keepsake::after {
  content: '';
  position: absolute;
  right: -62px;
  bottom: -34px;
  width: 135px;
  height: 135px;
  border: 1px solid #d7bb8630;
  border-radius: 50%;
  z-index: -1;
}
.compact-keepsake::after {
  width: 112px;
  height: 112px;
  right: -50px;
  bottom: -22px;
}
.keepsake-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 1;
}
.keepsake-brand img {
  filter: brightness(0) saturate(100%) invert(91%) sepia(13%) saturate(493%);
  width: 20px;
  height: 15px;
}
.keepsake-brand b {
  font-weight: 700;
  letter-spacing: -0.7px;
}
.keepsake-rule {
  display: block;
  width: 18px;
  height: 1px;
  background: #c9a970;
  margin: 13px 0 9px;
}
.compact-keepsake > strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
}
.keepsake-signature {
  position: absolute;
  left: 15px;
  bottom: 11px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #baa986;
}
.keepsake-flower {
  position: absolute;
  right: 14px;
  bottom: 11px;
  font-size: 28px;
  line-height: 1;
  color: #bf9e65;
}
.compact-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e8dece;
  padding-top: 12px;
  min-width: 0;
}
.compact-amount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.compact-amount strong {
  font-size: 20px;
  line-height: 1.25;
  color: #766044;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.compact-amount > span {
  font-size: 11px;
  color: #9b8565;
  line-height: 1.4;
}
.compact-footer .sponsor-button {
  position: static;
  transform: none;
  min-height: 38px;
  padding: 10px 15px;
  font-size: 11px;
  line-height: 1.25;
  gap: 8px;
  background: #846540;
  box-shadow: 0 2px 5px #6e522d0a;
  white-space: nowrap;
  border-radius: 9px;
}
.compact-footer .sponsor-button:hover {
  background: #755835;
}
.compact-footer .sponsor-button:active {
  transform: translateY(1px);
}
.compact-footer .sponsor-button .icon {
  width: 14px;
  height: 14px;
}
.sponsor-section.collapsed > .sponsor-toggle {
  position: static;
  inset: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 29px;
  padding: 5px 12px;
  border-top: 1px solid #e9dfd0;
  background: #fff9;
  color: #ae9678;
  font-size: 9px;
  line-height: 1.4;
  gap: 5px;
  border-radius: 0;
}
.sponsor-section.collapsed > .sponsor-toggle .icon {
  width: 12px;
  height: 12px;
  transform: none;
}
@media (max-width: 900px) {
  .sponsor-section.collapsed .sponsor-compact {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 13px 20px;
    padding: 21px 24px 18px;
  }
  .compact-keepsake {
    width: 112px;
    height: 113px;
    padding: 12px;
  }
  .compact-main h2 {
    font-size: 21px;
  }
  .compact-main p {
    font-size: 11px;
  }
  .compact-footer {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .compact-keepsake {
    grid-row: 1;
  }
  .compact-amount {
    gap: 9px;
  }
  .keepsake-signature {
    left: 12px;
  }
}
@media (max-width: 700px) {
  .sponsor-section.collapsed .sponsor-compact {
    grid-template-columns: minmax(0, 1fr) 86px;
    grid-template-areas: 'main card' 'footer footer';
    gap: 13px 15px;
    padding: 18px 18px 15px;
  }
  .compact-main h2 {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.3px;
    margin-bottom: 7px;
  }
  .compact-main p {
    display: block;
    font-size: 11px;
    line-height: 1.7;
  }
  .compact-kicker {
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
  }
  .compact-keepsake {
    width: 86px;
    height: 101px;
    padding: 10px;
    transform: rotate(4deg);
    border-radius: 7px;
  }
  .keepsake-brand {
    font-size: 13px;
    gap: 4px;
  }
  .keepsake-brand img {
    width: 17px;
    height: 13px;
  }
  .keepsake-rule {
    margin: 13px 0 10px;
    width: 13px;
  }
  .compact-keepsake > strong {
    font-size: 11px;
    line-height: 1.4;
  }
  .keepsake-signature {
    left: 10px;
    bottom: 9px;
    font-size: 5px;
    letter-spacing: 0.5px;
  }
  .keepsake-flower {
    font-size: 22px;
    right: 9px;
    bottom: 10px;
  }
  .compact-footer {
    gap: 10px;
    padding-top: 12px;
  }
  .compact-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .compact-amount strong {
    font-size: 19px;
  }
  .compact-amount > span {
    font-size: 11px;
  }
  .compact-footer .sponsor-button {
    font-size: 11px;
    padding: 10px 13px;
    min-height: 40px;
    gap: 7px;
  }
  .sponsor-section.collapsed > .sponsor-toggle {
    font-size: 10px;
    min-height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sponsor-section {
    transition: none;
  }
  .compact-keepsake {
    transform: none;
  }
}

/* ── Intrinsic-ratio image, video and reference viewer ── */

.media-dialog {
  width: min(900px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
}
.media-dialog .modal-scroll {
  scrollbar-gutter: stable;
}
.media-dialog .media-layout {
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 26px;
}
.media-dialog .media-stage {
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: 100%;
  justify-self: center;
  aspect-ratio: auto;
  background: transparent;
  border-radius: 10px;
}
.media-dialog .media-stage img,
.media-dialog .media-stage video {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}
.media-dialog .media-stage video {
  background: #17101e;
}
.media-dialog .media-description {
  min-width: 0;
  max-height: var(--media-detail-height, none);
  overflow-y: auto;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: #d9cfe6 transparent;
}
.media-dialog .media-description p {
  max-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d9cfe6 transparent;
}
.media-dialog .media-description h3 {
  line-height: 1.5;
}
.media-dialog .media-status:empty {
  display: none;
}
.media-dialog .modal-footer button {
  white-space: normal;
  line-height: 1.4;
  text-align: center;
}
.media-dialog .reference-stage {
  margin-inline: auto;
}
.media-dialog .reference-filename {
  text-align: center;
  line-height: 1.6;
  max-height: 52px;
  overflow-y: auto;
  margin-top: 16px;
}
.media-dialog .media-stage.media-failed {
  height: auto;
  min-height: 96px;
  aspect-ratio: auto;
  background: #faf7fc;
}
.media-dialog .media-error {
  margin: 0;
}
@media (min-width: 701px) and (max-height: 500px) {
  .media-dialog {
    max-height: calc(100dvh - 24px);
  }
  .media-dialog #dialog-body {
    max-height: calc(100dvh - 26px);
  }
  .media-dialog .modal-header {
    padding: 12px 20px 10px;
  }
  .media-dialog .modal-header h2 {
    font-size: 17px;
  }
  .media-dialog .modal-header p {
    margin-top: 3px;
    line-height: 1.5;
  }
  .media-dialog .modal-scroll {
    padding: 14px 20px;
  }
  .media-dialog .modal-footer {
    padding: 10px 20px 12px;
  }
}
@media (max-width: 700px) {
  .media-dialog {
    width: 100%;
    max-height: calc(100dvh - 18px);
  }
  .media-dialog .media-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .media-dialog .modal-scroll {
    padding: 16px 20px;
  }
  .media-dialog .media-description {
    width: 100%;
    max-width: 560px;
    justify-self: center;
  }
  .media-dialog .media-description h3 {
    margin: 0 0 5px;
  }
  .media-dialog .media-description p {
    font-size: 12px;
    line-height: 1.7;
    max-height: 62px;
    margin: 0 0 10px;
  }
  .media-dialog .modal-header {
    padding: 17px 20px 14px;
  }
  .media-dialog .modal-header h2 {
    font-size: 19px;
    line-height: 1.4;
  }
  .media-dialog .modal-header p {
    margin-top: 4px;
    line-height: 1.6;
  }
  .media-dialog .modal-footer {
    padding: 13px 20px calc(14px + env(safe-area-inset-bottom));
  }
  .media-dialog .modal-footer .primary-button,
  .media-dialog .modal-footer .secondary-button {
    min-height: 44px;
    padding: 10px 12px;
  }
}
