html { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #e8eee9;
  font: 14px Inter, system-ui, sans-serif;
}
body:has(dialog[open]) { overflow: hidden; }
button, textarea, select, input { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid #2b6557;
  outline-offset: 2px;
}
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-x: clip;
  color: #253a38;
  --ink: #253a38;
  --muted: #495e59;
  --accent: #264d4d;
  --line: rgba(36, 68, 64, .15);
  --glass: rgba(246, 250, 247, .68);
}

.ambient, .ambient-photo, .ambient-wash { position: fixed; inset: 0; pointer-events: none; }
.ambient { z-index: -1; overflow: hidden; background: #bac8bf; }
.ambient-photo {
  top: -12%; left: -12%; width: 124%; height: 124%;
  object-fit: cover;
  filter: blur(12px) saturate(.93);
  opacity: 0;
  visibility: hidden;
  transition: opacity 520ms ease, visibility 0s linear 520ms;
}
.ambient-photo.is-active {
  opacity: .91;
  visibility: visible;
  transition-delay: 0s;
}
.ambient-wash {
  background: linear-gradient(155deg, rgba(245, 249, 245, .68) 4%, rgba(241, 248, 245, .35) 57%, rgba(238, 246, 242, .67));
}

.shelf-content { max-width: 1120px; margin: 0 auto; padding: 16px 26px 52px; }
.studio-bar, .deck-navigation, .workspace-link, .blank-button {
  border: 1px solid rgba(255, 255, 255, .75);
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 10px 32px rgba(20, 45, 40, .09);
}
.studio-bar {
  min-height: 61px; padding: 6px 10px 6px 17px; border-radius: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.brand, .top-actions { display: flex; align-items: center; gap: 10px; }
.brand { white-space: nowrap; font-weight: 750; font-size: 18px; letter-spacing: -.5px; }
.brand-mark {
  display: block; flex: none; width: 36px; height: 36px;
  border-radius: 12px; background: #2d5150;
}
.history-link, .balance {
  min-height: 44px; padding: 0 12px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; white-space: nowrap;
}
.balance { gap: 5px; background: rgba(255, 255, 255, .66); box-shadow: inset 0 0 0 1px rgba(37, 58, 56, .1); }
.balance-value { font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.wallet-unit { color: var(--muted); font-size: 12px; }

.shelf-screen { text-align: center; padding: 34px 0 29px; }
.shelf-title {
  font-family: Georgia, serif;
  font-size: 50px; line-height: 1.15; font-weight: 700; letter-spacing: -.055em;
}
.shelf-subtitle { margin-top: 9px; color: var(--muted); font-size: 14px; }
.deck {
  width: 100%; max-width: 614px; height: 385px; margin: 18px auto 2px;
  position: relative; isolation: isolate;
}
.style-card {
  position: absolute; top: 8px; left: 50%; display: block; overflow: hidden;
  width: 246px; height: 356px; margin-left: -123px; border-radius: 27px;
  border: 1px solid rgba(255, 255, 255, .86);
  background: #849b91; box-shadow: 0 16px 32px rgba(31, 53, 47, .25);
  transform-origin: 50% 43%;
  transition: transform 540ms cubic-bezier(.2, .82, .22, 1), opacity 390ms ease, box-shadow 450ms ease;
}
.style-card-left { z-index: 1; transform: translate(-119px, -6px) rotate(-11deg) scale(.84); }
.style-card-right { z-index: 1; transform: translate(119px, -6px) rotate(11deg) scale(.84); }
.style-card-center {
  z-index: 2; transform: translate(0, 0) scale(1);
  box-shadow: 0 24px 42px rgba(27, 54, 54, .29), 0 0 0 3px rgba(255, 255, 255, .32);
}
.style-card-back { z-index: 0; transform: translate(0, -18px) scale(.71); opacity: 0; pointer-events: none; }
.style-photo, .style-card-wash { display: block; width: 100%; height: 100%; }
.style-photo, .image-preview, .personal-image { object-fit: cover; }
.style-card-wash {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16, 27, 25, .65), transparent 39%);
}
.style-card-title {
  position: absolute; bottom: 17px; left: 17px; right: 13px; color: #fffaf0;
  text-shadow: 0 1px 8px rgba(14, 25, 22, .6); font-weight: 700; font-size: 17px;
  text-align: left; opacity: 0; transform: translateY(5px);
  transition: opacity 130ms ease, transform 260ms ease;
}
.style-card-center .style-card-title { opacity: 1; transform: translateY(0); transition-delay: 150ms; }
.shelf-details { width: 100%; max-width: 392px; margin: 0 auto; }
.deck-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 29px; min-height: 70px; padding: 4px 10px; }
.deck-arrow, .editor-close, .wallet-close {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  flex: none; border-radius: 50%; background: rgba(255, 255, 255, .72);
  font-size: 30px; line-height: 1;
}
.deck-current { display: grid; min-width: 0; }
.deck-label {
  grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(5px);
  transition: opacity 180ms ease, transform 260ms ease;
}
.deck-label.is-active { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.template-name { font-size: 19px; font-weight: 760; line-height: 1.26; }
.template-style { color: var(--muted); font-size: 12px; }
.shelf-position { margin: 7px 0 10px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.shelf-actions { display: flex; gap: 9px; }
.make-template, .blank-button {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  min-height: 50px; padding: 0 17px; border-radius: 29px; font-size: 14px; font-weight: 700;
}
.make-template { flex: 1; color: #fffaf0; background: var(--accent); box-shadow: 0 8px 21px rgba(24, 58, 58, .22); }
.blank-button { color: var(--accent); }

.workspace-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  max-width: 392px; margin: 20px auto 0;
}
.workspace-link {
  min-height: 49px; width: 100%; min-width: 0; border-radius: 25px; padding: 0 12px;
  display: flex; gap: 5px; align-items: center; justify-content: flex-start; white-space: nowrap;
}
.workspace-link .section-title { font-size: 13px; }
.link-detail { color: var(--muted); font-size: 11px; }
.link-arrow { margin-left: auto; font-size: 20px; line-height: 1; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-summary-tail { display: flex; align-items: center; gap: 9px; }
.fold-arrow {
  display: inline-block; flex: none; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 290ms cubic-bezier(.2, .82, .22, 1);
}
.fold-arrow.is-expanded { transform: rotate(225deg) translate(-1px, -1px); }
.section-title { font-size: 15px; font-weight: 740; }
.muted, .empty, .job-meta, .entry-time { color: var(--muted); font-size: 12px; }
.empty { padding-top: 10px; }
.history-empty { padding: 2px 0 14px; }
.job-fold {
  display: grid; grid-template-rows: 0fr; opacity: 0; pointer-events: none;
  transition: grid-template-rows 320ms cubic-bezier(.2, .82, .22, 1), opacity 240ms ease;
}
.job-fold.is-expanded { grid-template-rows: 1fr; opacity: 1; pointer-events: auto; }
.fold-clip { min-height: 0; overflow: hidden; }
.job { border-top: 1px solid var(--line); }
.job-summary {
  width: 100%; text-align: left; min-height: 57px; padding: 7px 4px 7px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.job-main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.job-title { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 670; }
.job-status { color: #325b4f; font-size: 12px; font-weight: 700; white-space: nowrap; }
.job-details {
  padding: 10px 12px; margin: 1px 0 10px; border-radius: 13px;
  background: rgba(255, 255, 255, .48);
}
.job-prompt { display: block; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 6px; }
.progress { height: 4px; margin-top: 9px; border-radius: 5px; background: rgba(49, 90, 79, .15); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 5px; background: #477668; transition: width 320ms ease; }

.editor-overlay, .wallet-overlay, .history-overlay, .personal-overlay,
.editor-scrim, .wallet-scrim, .history-scrim, .personal-scrim { position: fixed; inset: 0; }
.editor-overlay { z-index: 5; }
.history-overlay, .personal-overlay { z-index: 7; }
.wallet-overlay { z-index: 8; }
.editor-scrim, .wallet-scrim, .history-scrim, .personal-scrim {
  background: rgba(23, 44, 41, .24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: scrim-in 330ms ease both;
}
.editor-panel, .wallet-panel, .library-panel {
  position: absolute;
  background: rgba(244, 250, 246, .93);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 20px 64px rgba(24, 47, 44, .27);
  color: var(--ink);
  --panel-x: 0px;
  animation: panel-in 365ms cubic-bezier(.2, .82, .22, 1) both;
}
.editor-panel {
  top: 3vh; bottom: 3vh; width: calc(100% - 32px); max-width: 610px; left: 50%;
  --panel-x: -50%;
  transform: translateX(-50%); border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column;
}
.is-closing .editor-scrim, .is-closing .wallet-scrim, .is-closing .history-scrim, .is-closing .personal-scrim { animation: scrim-out 230ms ease both; }
.is-closing .editor-panel, .is-closing .wallet-panel, .is-closing .library-panel {
  animation: panel-out 230ms cubic-bezier(.42, 0, .6, 1) both;
  pointer-events: none;
}
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrim-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes panel-in {
  from { transform: translate(var(--panel-x), 28px) scale(.985); opacity: 0; }
  to { transform: translate(var(--panel-x), 0) scale(1); opacity: 1; }
}
@keyframes panel-out {
  from { transform: translate(var(--panel-x), 0) scale(1); opacity: 1; }
  to { transform: translate(var(--panel-x), 20px) scale(.985); opacity: 0; }
}
.editor-heading {
  display: flex; align-items: center; flex: none; gap: 9px;
  padding: 13px 17px 12px 19px; border-bottom: 1px solid var(--line);
}
.editor-heading-text { flex: 1; min-width: 0; }
.editor-kicker { font-size: 12px; color: var(--muted); }
.editor-title { font-size: 26px; line-height: 1.25; font-weight: 740; }
.editor-wallet { min-height: 42px; border-radius: 23px; padding: 0 10px; background: rgba(255, 255, 255, .72); color: var(--accent); white-space: nowrap; font-size: 12px; }
.editor-close, .wallet-close { font-size: 22px; color: var(--accent); }
.editor-body { flex: 1; min-height: 0; width: 100%; overflow-y: auto; }
.editor-group { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sample-video { width: 100%; max-height: 245px; border-radius: 15px; margin-top: 8px; background: #203433; }
.prompt {
  display: block; width: 100%; height: 85px; min-height: 78px; margin-top: 7px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .68);
  color: var(--ink); line-height: 1.65; font: inherit; font-size: 13px;
}
.placeholder { color: var(--muted); }
.image-scroll { margin-top: 8px; width: 100%; overflow-x: auto; }
.image-list { display: flex; gap: 8px; align-items: flex-start; }
.image-item { flex: 0 0 82px; position: relative; }
.image-preview { display: block; width: 82px; height: 60px; border-radius: 11px; background: #d5e2d9; }
.image-remove {
  position: absolute; top: 2px; right: 2px; border-radius: 50%; width: 25px; height: 25px;
  color: #fff; background: rgba(21, 44, 37, .77); font-size: 15px;
}
.image-replace { min-height: 36px; width: 100%; border-radius: 10px; color: var(--accent); font-size: 12px; }
.media-button {
  flex: 0 0 80px; height: 60px; border: 1px dashed #8fa99d; border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--accent); background: rgba(255, 255, 255, .48); font-size: 12px;
}
.audio-add { min-height: 37px; padding: 0 9px; color: var(--accent); font-size: 12px; font-weight: 700; border-radius: 18px; background: rgba(255, 255, 255, .65); }
.audio-empty { margin-top: 4px; }
.audio-item { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.audio-item + .audio-item { border-top: 1px solid var(--line); }
.audio-play { width: 40px; height: 36px; flex: none; border-radius: 18px; color: var(--accent); background: rgba(255, 255, 255, .79); }
.audio-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.audio-replace, .audio-remove { min-width: 42px; min-height: 42px; color: var(--accent); font-size: 12px; }
.audio-remove { font-size: 20px; }
.spec-group { border-bottom: 0; }
.spec-line { display: flex; align-items: center; gap: 11px; margin-top: 7px; }
.spec-label { min-width: 33px; color: var(--muted); font-size: 12px; }
.choices { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.option {
  padding: 0 11px; min-height: 35px; border-radius: 19px; font-size: 12px;
  color: var(--muted); background: rgba(255, 255, 255, .65);
}
.option.selected { color: #fffdf4; background: #3b6260; font-weight: 740; }
button[disabled] { opacity: .5; }
.editor-footer { flex: none; padding: 11px 17px 13px; background: rgba(250, 253, 249, .76); border-top: 1px solid var(--line); }
.generate-bar { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.quote { display: flex; flex-direction: column; gap: 3px; }
.quote-spec { font-size: 13px; font-weight: 750; }
.quote-balance { color: var(--muted); font-size: 12px; }
.form-notice, .low-balance { color: #8b3e46; }
.form-notice { font-size: 12px; margin: 0 0 7px; }
.editor-tools { display: flex; gap: 7px; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.save-template, .editor-records {
  min-height: 37px; padding: 0 11px; border-radius: 20px; color: var(--accent);
  font-size: 12px; font-weight: 700; background: rgba(229, 240, 233, .81);
}
.editor-records { margin-left: auto; }
.submission-receipt, .personal-notice {
  padding: 6px 9px; margin-bottom: 7px; border-radius: 9px;
  color: #355b4f; background: rgba(224, 238, 228, .77); font-size: 12px;
}
.primary {
  display: flex; gap: 9px; min-height: 47px; align-items: center; justify-content: center;
  padding: 0 13px; border-radius: 26px; background: var(--accent); color: #fffaf0;
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.primary-cost { border-left: 1px solid rgba(255, 255, 255, .36); padding-left: 9px; font-size: 12px; }

.wallet-panel {
  top: 6vh; right: 20px; width: calc(100% - 40px); max-width: 365px; max-height: 88vh;
  overflow: auto; padding: 16px 17px 22px; border-radius: 29px;
}
.wallet-title { font-size: 24px; font-weight: 750; }
.wallet-total { padding: 12px 0; }
.wallet-balance { font-size: 48px; font-weight: 760; letter-spacing: -.04em; }
.wallet-buy {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  min-height: 48px; width: 100%; padding: 0 13px; border-radius: 24px;
  background: var(--accent); color: #fffaf0; font-size: 13px; font-weight: 700;
}
.wallet-history-title { margin: 15px 0 4px; }
.wallet-entry { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.entry-info { display: flex; flex-direction: column; gap: 3px; }
.entry-label { font-size: 13px; }
.entry-amount { font-size: 14px; font-weight: 740; white-space: nowrap; }
.entry-gain { color: #276b4e; }

.library-panel {
  top: 10vh; left: 50%; width: calc(100% - 34px); max-width: 510px; max-height: 80vh;
  --panel-x: -50%; transform: translateX(-50%); border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column;
}
.library-heading {
  padding: 12px 15px 10px 17px; flex: none; display: flex;
  align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line);
}
.library-title { display: block; font-weight: 740; font-size: 22px; line-height: 1.3; }
.library-count { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.library-close {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .72);
  color: var(--accent); font-size: 22px;
}
.library-body { max-height: 61vh; flex: 1; min-height: 0; padding: 0 15px; overflow-y: auto; }
.library-body .job:first-child { border-top: 0; }
.library-footer { flex: none; padding: 9px 15px 12px; border-top: 1px solid var(--line); }
.new-template {
  min-height: 45px; width: 100%; border-radius: 24px;
  color: #fffaf0; background: var(--accent); font-size: 14px; font-weight: 700;
}
.personal-empty, .history-empty { padding: 14px 0; }
.personal-item {
  display: flex; align-items: center; width: 100%; gap: 10px; padding: 9px 0;
  text-align: left; border-bottom: 1px solid var(--line); min-height: 69px;
}
.personal-cover {
  width: 49px; height: 49px; flex: none; border-radius: 11px; overflow: hidden; background: #d9e9df;
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.personal-image { width: 100%; height: 100%; }
.personal-item-copy { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.personal-item-title { font-weight: 730; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.personal-meta, .personal-use { color: var(--muted); font-size: 11px; white-space: nowrap; }
.personal-use { font-weight: 700; }

@media (max-width: 600px) {
  .shelf-content { padding: 12px 13px 36px; }
  .studio-bar { min-height: 54px; padding: 4px 5px 4px 10px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 10px; }
  .top-actions { gap: 2px; }
  .balance, .history-link { padding: 0 8px; min-height: 42px; }
  .shelf-screen { padding: 28px 0 10px; }
  .shelf-title { font-size: 38px; }
  .shelf-subtitle { font-size: 13px; }
  .deck { height: 318px; max-width: 358px; margin-top: 19px; }
  .style-card { top: 5px; width: 194px; height: 292px; margin-left: -97px; border-radius: 23px; }
  .style-card-left { transform: translate(-77px, -4px) rotate(-11deg) scale(.79); }
  .style-card-right { transform: translate(77px, -4px) rotate(11deg) scale(.79); }
  .style-card-title { bottom: 13px; left: 13px; font-size: 15px; }
  .shelf-details { max-width: 346px; }
  .deck-navigation { min-height: 61px; }
  .template-name { font-size: 18px; }
  .workspace-links { margin-top: 20px; max-width: 346px; }
  .editor-panel { top: 5vh; bottom: 0; left: 0; width: 100%; max-width: none; --panel-x: 0px; transform: none; border-radius: 26px 26px 0 0; }
  .editor-heading { padding: 10px 10px 10px 14px; }
  .editor-group { padding: 10px 13px; }
  .editor-footer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .wallet-panel { right: 10px; width: calc(100% - 20px); }
  .library-panel {
    top: auto; bottom: 0; left: 0; width: 100%; max-width: none; max-height: 83vh;
    --panel-x: 0px; transform: none; border-radius: 26px 26px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@media (max-width: 350px) {
  .style-card-left { transform: translate(-63px, -4px) rotate(-10deg) scale(.8); }
  .style-card-right { transform: translate(63px, -4px) rotate(10deg) scale(.8); }
  .style-card { width: 174px; margin-left: -87px; }
  .history-link { padding: 0 4px; }
  .brand-mark { width: 25px; height: 25px; border-radius: 8px; }
  .workspace-link { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-photo, .style-card, .style-card-title, .deck-label, .job-fold, .fold-arrow, .progress-fill {
    transition-duration: 1ms; transition-delay: 0s;
  }
  .editor-scrim, .wallet-scrim, .editor-panel, .wallet-panel,
  .history-scrim, .personal-scrim, .library-panel,
  .is-closing .editor-scrim, .is-closing .wallet-scrim, .is-closing .editor-panel, .is-closing .wallet-panel,
  .is-closing .history-scrim, .is-closing .personal-scrim, .is-closing .library-panel {
    animation-duration: 1ms;
  }
}

.preview-note { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.site-footer { margin: 22px auto 0; text-align: center; }
.site-footer .preview-note { margin: 0 0 6px; }
.footer-links, .account-actions { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.footer-links { justify-content: center; }
.footer-links a { color: var(--ink, #253a38); font-size: 12px; text-underline-offset: 3px; }
.utility-retry { align-self: flex-start; margin: 0 17px 12px; }
.checkout-link { display: inline-block; margin-top: 12px; color: var(--accent); text-underline-offset: 3px; }
.site-notice {
  position: fixed; z-index: 2; bottom: 20px; left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 30px); padding: 10px 15px; border: 1px solid var(--line);
  border-radius: 20px; text-align: center; background: #f8fff8; box-shadow: 0 6px 24px #253a3826;
}
dialog { margin: 0; padding: 0; position: fixed !important; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: rgba(23, 44, 41, .24); backdrop-filter: blur(6px); animation: scrim-in 300ms ease both; }
dialog.is-closing { animation: panel-out 220ms cubic-bezier(.42, 0, .6, 1) both; }
dialog.is-closing::backdrop { animation: scrim-out 220ms ease both; }
.editor-panel { max-height: calc(100% - 6vh); }
.editor-form { min-height: 0; display: flex; flex-direction: column; flex: 1; }
.prompt { resize: vertical; }
.settings-fields { display: flex; gap: 10px; margin-top: 8px; }
.settings-fields label { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.settings-fields select, .utility-form input {
  display: block; width: 100%; min-height: 36px; margin-top: 4px; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: 11px; background: #ffffffa8;
}
.image-view { display: block; }
.wallet-packs { display: grid; gap: 8px; margin: 15px 0 8px; }
.wallet-buy { text-align: left; }
.utility-body { padding: 15px 17px; }
.utility-body p { margin-bottom: 10px; }
.utility-notice { padding: 0 17px 10px; }
.utility-form { display: grid; gap: 12px; }
.utility-form p { margin-bottom: 0; }
.utility-form button[type="submit"] { justify-self: start; }
.utility-form label { color: var(--muted); }
.utility-form input { min-height: 44px; }
.preview-image { display: block; width: 100%; max-height: 65vh; object-fit: contain; }
.job-status.failed { color: #8b3e46; }
.job-status.queued, .job-status.running { color: #62501f; }
.form-notice { color: #8b3e46; }
@media (max-width: 600px) {
  .editor-panel { max-height: 95vh; max-height: 95dvh; }
  .utility-panel { max-height: 83dvh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  dialog::backdrop, dialog.is-closing { animation-duration: 1ms; }
}

.information-page {
  width: min(740px, calc(100% - 28px)); margin: 24px auto; padding: clamp(18px, 4vw, 38px);
  color: #253a38; background: #f6faf6; border: 1px solid #fff; border-radius: 28px;
  box-shadow: 0 20px 55px rgba(24, 47, 44, .12); line-height: 1.55;
}
.information-page a { color: #264d4d; text-underline-offset: 3px; }
.information-page h1 { font: 700 clamp(32px, 7vw, 50px)/1.2 Georgia, serif; margin: 12px 0 10px; }
.information-page h2 { font-size: 19px; margin: 16px 0 6px; }
.information-page p { margin: 0 0 10px; }
.information-page .footer-links { justify-content: flex-start; margin-top: 22px; }
.info-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.info-pack { border: 1px solid #d5e3da; background: #fff; border-radius: 18px; padding: 12px 16px; }
.info-pack h2 { margin: 0 0 5px; }
.info-pack p { margin: 0; }
