:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #203a2e;
  background: #fafbf8;
  --ink: #203a2e;
  --muted: #607b6f;
  --line: #e6ebdf;
  --accent: #3eac7a;
  --white: #fff;
  font-synthesis: none;
  color-scheme: light;
}
[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #4abe89;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #8dd6b5;
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.mast {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}
.mast-inner,
.workspace {
  width: min(1256px, calc(100% - 88px));
  margin: auto;
}
.mast-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark,
.text-action,
.quiet {
  border: 0;
  background: transparent;
  color: var(--ink);
}
.wordmark {
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: 0.015em;
}
.wordmark img {
  width: 36px;
  height: 36px;
}
.mast-actions {
  display: flex;
  gap: 23px;
  align-items: center;
}
.text-action,
.quiet {
  font-size: 14px;
  color: #526f62;
}
.text-action:hover,
.quiet:hover {
  color: var(--accent);
}
.runtime {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #527b69;
  background: #f2f5ed;
  border-radius: 30px;
  padding: 6px 11px;
}
.runtime.online::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #4a9c84;
  border-radius: 50%;
}
.workspace {
  padding-bottom: 44px;
}
.journey {
  display: flex;
  align-items: center;
  margin: 30px 0 28px;
  gap: 15px;
  flex-wrap: wrap;
}
.step {
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6d857a;
  font-size: 14px;
}
.step:disabled {
  opacity: 1;
  color: #84978e;
}
.step-num {
  font:
    600 12px/1.8 ui-monospace,
    monospace;
  border: 1px solid #cdddd6;
  min-width: 24px;
  border-radius: 20px;
  color: inherit;
}
.step.active {
  font-weight: 700;
  color: #3faf7d;
}
.step.active .step-num {
  background: #3ca777;
  color: white;
  border-color: transparent;
}
.step.done .step-num {
  color: #42b17f;
  background: #f1f5ec;
  border-color: transparent;
}
.step-line {
  width: 31px;
  height: 1px;
  background: #dbe1d3;
}
.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 34%);
  gap: clamp(30px, 4.5vw, 82px);
  align-items: start;
  padding: clamp(20px, 3.4vw, 48px) 0 28px;
}
.entry-copy {
  padding: 0 0 0 4px;
}
.entry-title {
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.16;
  text-wrap: balance;
}
.entry-copy .subtitle {
  font-size: 16px;
  line-height: 1.75;
  color: #617c70;
  margin: 14px 0 27px;
}
.entry-form label,
.editor label {
  display: block;
  font-size: 14px;
  font-weight: 630;
  color: #365245;
}
.entry-form label + label,
.editor label + label {
  margin-top: 16px;
}
.entry-form input,
.entry-form textarea,
.editor input,
.editor textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid #cddfd7;
  border-radius: 9px;
  background: white;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.6;
  display: block;
  margin-top: 7px;
}
.entry-form textarea,
.editor textarea {
  resize: vertical;
  min-height: 82px;
}
.entry-form small {
  color: #7a9086;
  font-weight: 400;
}
.entry-form .form-foot {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 21px 0 9px;
  flex-wrap: wrap;
}
.hint,
.feedback,
.privacy {
  font-size: 13px;
  line-height: 1.65;
  color: #658074;
}
.feedback {
  margin-top: 8px;
}
.feedback:empty {
  display: none;
}
.error {
  color: #ad3541 !important;
}
.primary,
.secondary {
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 650;
}
.primary {
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 2px 4px #389b6e15;
}
.primary:hover:not(:disabled) {
  background: #40b27f;
}
.secondary {
  background: white;
  color: #375849;
  border: 1px solid #d8dfce;
}
.secondary:hover {
  background: #f7f9f5;
}
.form-foot .quiet {
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: #bbd8cb;
  text-underline-offset: 4px;
}
.showcase-pane { min-width: 0; margin-top: 4rem; }
.tour-jump { display: none; }
.demo-tour {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd6c4;
  border-radius: 18px;
  padding: 19px;
  background: #fffef7;
  box-shadow: 0 3px 0 #e3e8da;
}
.demo-tour h2 { font-size: 19px; margin: 0 40px 16px 0; color: #294e3a; }
.tour-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
.tour-steps button {
  display: grid; justify-items: center; align-content: start; gap: 4px;
  font: inherit; font-size: 12px; color: #4a6754; background: transparent;
  border: 0; border-bottom: 2px solid #dfe6d6; padding: 4px 1px 7px;
}
.tour-steps b { border-radius: 5px; padding: 1px 6px; background: #eef2e4; }
.tour-steps [aria-pressed=true] { border-color: #387556; color: #214f39; font-weight: 700; }
.tour-steps [aria-pressed=true] b { background: #2f684d; color: white; }
.tour-scene {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  min-height: 190px; margin: 10px 0; padding: 14px;
  border-radius: 10px; background: #f0f4e8; color: #304f3d; overflow-wrap: anywhere;
}
.tour-product { display:flex; align-items:center; gap:10px; }
.tour-cup { width:46px; height:48px; flex:none; image-rendering:pixelated; }
.tour-demo-field { display:grid; gap:3px; min-width:0; flex:1; }
.tour-scene small { font-size:12px; color:#526955; }
.tour-line { display:grid; min-width:0; line-height:1.5; }
.tour-line > span { grid-area:1/1; }
.tour-line-copy { opacity:0; pointer-events:none; user-select:none; }
.tour-ink { position:relative; }
.tour-line.is-typing .tour-ink::after { content:""; border-inline-start:2px solid #287247; margin-inline-start:1px; }
.tour-demo-field .tour-line,.tour-question { background:#fffef8; border:1px solid #d9e2d2; border-radius:7px; padding:6px 9px; }
.tour-demo-field .tour-line { font-size:14px; }
.tour-demo-field .is-typing,.tour-question:has(.is-typing) { border-color:#6a9e7a; }
.tour-scene p,.tour-prompt { margin:0; font-size:14px; line-height:1.6; }
.tour-people,.tour-seats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:2px; }
.tour-people canvas,.tour-seats .jury-figure { width:100%; max-width:44px; image-rendering:pixelated; }
.tour-seats .jury-figure { display:block; line-height:0; }
.tour-seats canvas { width:100%; }
.tour-people canvas { opacity:0; }
.tour-people .has-arrived { opacity:1; }
.tour-traits,.tour-totals { display:flex; flex-wrap:wrap; gap:4px 8px; }
.tour-traits > span,.tour-totals > span { background:#fffdf4; border-radius:6px; padding:2px 6px; font-size:12px; }
.tour-traits > span { display:inline-flex; align-items:center; gap:5px; border:1px solid #c9d7c4; }
.tour-traits > span::before { content:""; width:13px; height:13px; border:1px solid #94ab97; border-radius:3px; }
.tour-traits .is-selected { color:#21503a; background:#dfefdc; border-color:#9ebfa1; }
.tour-traits .is-selected::before { content:"✓"; background:#37694b; border-color:#37694b; color:white; text-align:center; font:bold 11px/13px sans-serif; }
.tour-result { display:grid; gap:4px; }
.tour-totals b { margin-right:4px; }
.tour-question { display:flex; align-items:baseline; gap:7px; text-align:start; color:inherit; font:inherit; font-size:13px; }
.tour-next { position:relative; align-self:flex-end; margin:4px 10px 6px 0; padding:6px 12px; max-width:100%; border:1px solid #28583d; border-radius:7px; background:#326447; color:white; box-shadow:0 2px 0 #214632; line-height:1.45; font-family:inherit; font-size:13px; font-weight:600; }
.tour-next:disabled { opacity:.52; }
.tour-next.is-pressed,.tour-next:active { transform:translateY(2px); background:#204a32; box-shadow:0 0 0 4px #b8d7bd; }
.tour-pointer { position:absolute; right:8px; bottom:-11px; width:16px; height:21px; pointer-events:none; filter:drop-shadow(0 1px 1px #38583f); opacity:0; }
.tour-pointer::before,.tour-pointer::after { content:""; position:absolute; inset:0; background:#214533; clip-path:polygon(0 0,98% 56%,58% 59%,76% 90%,55% 100%,38% 68%,12% 94%); }
.tour-pointer::after { background:white; transform:scale(.74); transform-origin:43% 55%; }
.tour-generation:not([hidden]) { display:grid; gap:5px; }
.tour-generation img { display:block; width:100%; height:auto; max-height:142px; object-fit:contain; image-rendering:pixelated; }
.tour-generation-caption { display:flex; justify-content:space-between; align-items:baseline; gap:6px; font-size:13px; }
.tour-generation-caption span { white-space:nowrap; font-variant-numeric:tabular-nums; }
.tour-generation progress { width:100%; height:7px; accent-color:#326447; }
.tour-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.tour-play { border:1px solid #bfd0bb; border-radius:8px; color:#2b573e; background:#fffef7; padding:6px 10px; font:inherit; font-size:13px; font-weight:600; }
.tour-footer .text-action { display:inline-flex; align-items:center; gap:4px; font-size:13px; }
.tour-footer canvas { width:30px; height:auto; image-rendering:pixelated; }
@media(max-width:700px) {
  .showcase-pane { margin:0; }
  .tour-jump { display:inline-block; padding-inline:4px; font-size:13px; }
}
.entry-frame {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  color: #678779;
  margin: 18px 0 0;
  padding: 17px 0;
  font-size: 13px;
}
.shield {
  font-weight: bold;
  color: #337d70;
}
.page-heading {
  margin: 25px 0 22px;
}
.page-heading .back {
  margin-bottom: 14px;
}
.page-heading h1 {
  font-size: clamp(30px, 3.5vw, 43px);
  letter-spacing: -0.048em;
}
.page-heading p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}
.back {
  font: inherit;
  font-size: 14px;
  color: #3e9d72;
  background: transparent;
  border: 0;
  padding: 0;
}
.heading-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin: 15px 0;
}
.q-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.72fr);
  gap: 22px;
  align-items: start;
}
.q-box,
.q-side,
.running-box {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
}
.block-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.block-heading h2,
.q-side h2 {
  font-size: 19px;
  letter-spacing: -0.035em;
}
.block-heading small,
.q-kicker {
  font-size: 13px;
  color: #688075;
}
.q-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid #ebefe6;
  padding: 16px 0;
}
.q-index {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 7px;
  background: #f6f8f2;
  color: #399f71;
}
.q-body {
  min-width: 0;
  flex: 1;
}
.q-body h3 {
  font-size: 16px;
  line-height: 1.6;
}
.q-body details {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: #607b6f;
}
.q-body summary {
  cursor: pointer;
}
.q-body details p {
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.item-actions button {
  font-size: 13px;
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  background: #f7f9f3;
  color: #4b7160;
}
.q-side {
  background: #f5f7f1;
  border-color: #e7eddf;
}
.q-side p {
  line-height: 1.7;
  color: #537063;
  font-size: 14px;
  margin-top: 8px;
}
.q-side .primary {
  margin-top: 17px;
  width: 100%;
}
.q-box .q-item, .pv-trait-slots .pv-tag-row, .q-slot.empty {
  margin-block: 9px;
  border: 1px solid #d9e4d6;
  border-radius: 12px;
  padding: 13px;
}
.q-slot.empty {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-style: dashed;
  color: #68796b;
  background: #fafbf6;
  font-size: 14px;
}
.q-slot.available {
  color: #236446;
  border-color: #90b69c;
  background: #f3f8ef;
  font-weight: 650;
}
.q-suggestions:empty { display: none; }
.q-suggestions:not(:empty) { margin-bottom: 14px; }
.capacity {
  display: inline-block;
  border-radius: 9px;
  padding: 4px 10px;
  background: #edf4e8;
  color: #346347;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.capacity.full { background: #285c44; color: white; }
.capacity-note { margin: 4px 0 12px; color: #325d45; font-size: 14px; }
.recommendation-remaining { display:inline-block; margin-inline-start:.55em; font-size:.78em; font-weight:500; }
.recommendation-heading .ai-action { max-width:100%; white-space:normal; }
.recommendation-heading { flex-wrap: wrap; }
.recommendation-title { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.pv-card > .ai-action { margin-bottom:12px; }
.suggest {
  font-size: 15px;
  text-align: left;
  width: 100%;
  border: 0;
  border-top: 1px solid #ebefe4;
  background: transparent;
  padding: 12px 0;
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.suggest span:last-child {
  color: var(--accent);
  font-size: 13px;
  flex: none;
}
.running-box {
  max-width: 700px;
  margin: 55px auto;
  padding: 38px;
}
.running-box h1 {
  font-size: 32px;
  margin-bottom: 11px;
}
.running-box p {
  color: var(--muted);
  line-height: 1.7;
}
.running-box progress {
  accent-color: var(--accent);
  width: 100%;
  height: 13px;
  margin: 20px 0 8px;
}
.generation-scene:not(:empty) {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #cbd7c7;
  border-radius: 12px;
}
.generation-scene img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.editor {
  padding: 24px;
  max-width: min(530px, calc(100% - 28px));
  width: 100%;
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
}
.editor::backdrop {
  background: #22443563;
}
.editor-head,
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.editor-actions {
  justify-content: flex-end;
  margin: 18px 0 0;
}
.close {
  border: 0;
  background: #f5f7f1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
}
.editor .hint {
  margin-top: 14px;
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 8px;
}
.demo-head span {
  font-size: 13px;
  color: #617c70;
}
.fallback-preview {
  height: 330px;
  background: radial-gradient(ellipse at 70% 25%, #3d8f6a, #1c4432 80%);
  color: white;
  border-radius: 20px;
  padding: 28px;
}
.fallback-preview h2 {
  font-size: 24px;
}
.fallback-preview p {
  margin-top: 10px;
}
.analysis-note {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e9eee1;
  border-radius: 7px;
  color: #428a6a;
  background: #f8faf5;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .mast-inner,
  .workspace {
    width: calc(100% - 42px);
  }
  .entry-layout {
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 35%);
  }
  .q-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(210px, 0.7fr);
  }
}
@media (max-width: 700px) {
  .mast-inner,
  .workspace {
    width: calc(100% - 32px);
  }
  .mast-inner {
    height: 58px;
  }
  .wordmark {
    font-size: 20px;
  }
  .wordmark img {
    width: 30px;
    height: 30px;
  }
  .mast-actions {
    gap: 9px;
  }
  .text-action {
    font-size: 13px;
  }
  .runtime {
    font-size: 12px;
    padding: 4px 7px;
  }
  .journey {
    margin: 20px 0 12px;
    gap: 7px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .step {
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
  }
  .step-line {
    width: 9px;
    flex-shrink: 1;
  }
  .step-num {
    min-width: 20px;
    font-size: 11px;
  }
  .entry-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 15px 0 10px;
  }
  .entry-title {
    font-size: 38px;
  }
  .entry-copy {
    padding: 0;
  }
  .entry-copy .subtitle {
    margin: 8px 0 19px;
    font-size: 15px;
  }
  .entry-form .form-foot {
    margin: 15px 0 8px;
  }
  .entry-form label + label {
    margin-top: 12px;
  }
  .q-layout {
    grid-template-columns: 1fr;
  }
  .q-box,
  .q-side,
  .running-box {
    padding: 17px;
  }
  .running-box {
    margin: 20px 0;
  }
  .q-side {
    order: 2;
  }
  .demo-head {
    margin: 8px 0;
  }
  .editor {
    padding: 18px;
  }
}
@media (min-width: 701px) and (max-height: 825px) {
  .journey {
    margin-top: 21px;
    margin-bottom: 18px;
  }
  .entry-layout {
    padding-top: 10px;
  }
  .entry-copy .subtitle {
    margin-bottom: 19px;
  }
}
.journey[hidden], #cloud-fields[hidden] { display: none; }
.model-action { border: 1px solid #b7c9c6; border-radius: 18px; padding: 6px 12px; }
#provider { width: 100%; padding: 10px; font: inherit; border: 1px solid #cbdad3; border-radius: 8px; background: white; }
#cloud-fields { margin-top: 16px; }
#cloud-fields a { font-size: .85rem; color: #205c64; }
.history-head,.history-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.history-head .primary { flex-shrink: 0; }
.history-row { background: white; border: 1px solid #dce2e5; border-radius: 12px; padding: 16px 20px; margin: 10px 0; }
.history-row h2 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.history-row p { margin-bottom: 0; }
.history-row .delete-round { color: #9a4439; }
.history-row .delete-round:hover { background: #fff0eb; }
.editor .delete-confirm { background: #a33c30; color: white; }
.editor .delete-confirm:hover { background: #863026; }
@media(max-width:680px) {
  .history-row { align-items: flex-start; flex-direction: column; }
  .mast-actions { display: flex; gap: 7px; }
  .mast-actions button { font-size: 12px; white-space: nowrap; }
  .model-action { padding: 5px 7px; }
}
:root { --ink:#243d32; --muted:#58685f; --line:#daddcf; --accent:#236448; color:var(--ink); background:#f9f8f1; }
.mast {background:#fffef8;}
.entry-title {line-height:1.2;}
.entry-form input,.entry-form textarea {background:#fffefb;}
.entry-form .primary,.history-head .primary {border-radius:12px;}
.model-action {background:#f1f5ea;}
.pixel-person { display:block; width:52px; height:auto; flex:none; image-rendering:pixelated; }
.model-choices {display:grid;gap:10px;}
.model-choice {border:1px solid #d3ddcd;padding:13px;text-align:left;border-radius:10px;background:#fffef6;color:#234735;}
.model-choice[aria-pressed="true"] {border-color:#48896a;background:#eef6e6;}
.respondent-motion {display:flex;align-items:center;gap:12px;min-height:60px;margin-top:14px;color:#3f604c;font-weight:600;}
.respondent-motion .pixel-person {width:62px;}
@media(prefers-reduced-motion:no-preference){.respondent-motion .pixel-person{animation:arrive .35s ease-out;}@keyframes arrive{from{transform:translateX(8px);opacity:.35;}to{transform:none;opacity:1;}}}

.motion-person {min-width:0;display:grid;gap:4px;}
.motion-person small {font-size:12px;color:var(--muted);font-weight:500;}
.motion-traits {margin:2px 0;display:flex;flex-wrap:wrap;gap:4px 6px;}
.motion-traits div {display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;background:#eef3e8;border-radius:6px;padding:3px 6px;font-size:12px;overflow-wrap:anywhere;max-width:100%;}
.motion-traits dt {color:#536358;font-weight:500;}
.motion-traits dd {margin:0;}

.action-icon {
  width: 1.08em;
  height: 1.08em;
  margin-inline-end: .4em;
  vertical-align: -.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
button.icon-close {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #355748;
  background: #f0f5ee;
}
.icon-close .action-icon {width: 18px; height: 18px; margin: 0;}
.product-image {margin-top: 16px; border: 1px solid #dce8db; background: #f8fbf6; padding: 12px 14px; border-radius: 12px;}
.image-heading, .image-actions {display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.image-heading {justify-content: space-between; font-size: 14px; color: #365245;}
.image-heading small {font-weight: normal;}
.image-content {display: grid; grid-template-columns: minmax(64px, 23%) 1fr; gap: 12px; margin-top: 12px;}
.image-content img, .rv-material .product-photo {object-fit: contain; max-width: 100%; max-height: 220px; border-radius: 8px;}
.image-content img {width: 100%; background: white;}
.image-content textarea {min-height: 60px;}
.image-actions {margin-top: 6px;}
.product-image .hint {margin: 6px 0 0; font-size: 12px;}

.account-card { max-width: 480px; margin: 9vh auto; }
.account-link { display: inline-block; text-decoration: none; }
.ops-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr)); gap:24px; align-items:start; }
.ops-user { display:grid; gap:8px; padding:12px 0; }
.checkout-qr { display:block; width:min(200px,100%); margin:12px auto; background:white; }

.local-copy { white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }

.product-guide {display:grid;gap:.65rem;margin:1rem 0;padding:1rem;border-radius:12px;background:#f2f7ef;overflow-wrap:anywhere}
.product-guide[hidden] {display:none}
.product-guide h2 {font-size:1.1rem}
.product-guide h3 {font-size:.95rem}
.product-guide p,.entry-form .product-guide label {margin:0}
button.ai-action {background:#edf7ee;border:1px solid #b4d8bb;color:#205c40}
button.ai-action:hover {background:#e0f1e3}
button.ai-action .action-icon {color:#287d51}
.entry-copy > .back {margin-bottom:.75rem}

.ops-heading,.ops-nav,.ops-search,.ops-pager{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.ops-heading{justify-content:space-between}.ops-heading a,.ops-pager a,.ops-scroll a,.ops-form a{color:#186549;font-weight:650}.ops-nav{border-bottom:1px solid #cedad2;gap:.3rem;margin:1rem 0 1.5rem}.ops-nav a{padding:.65rem .9rem;color:#345547;text-decoration:none}.ops-nav [aria-current]{border-bottom:3px solid #237152;font-weight:750}.ops-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:1rem;margin-bottom:2rem}.ops-metrics>div,.ops-scroll{background:white;border:1px solid #d6e1d9;border-radius:14px}.ops-metrics>div{padding:1rem 1.25rem}.ops-metrics strong{display:block;font-size:1.85rem;color:#206348;font-variant-numeric:tabular-nums}.ops-scroll{overflow:auto}.ops-scroll table{width:100%;border-collapse:collapse}.ops-scroll th,.ops-scroll td{text-align:left;padding:.75rem .85rem;border-bottom:1px solid #e5ebe6;white-space:nowrap}.ops-scroll th{background:#edf3eb}.ops-search{align-items:end;margin:1rem 0}.ops-search label{display:grid;gap:.3rem;font-size:.9rem}.ops-pager{margin:1rem 0}.ops-form{max-width:540px}.ops-detail blockquote{border-left:3px solid #a6ceba;padding-left:.8rem;margin:.5rem 0;color:#365547}.ops-detail section{border-top:1px solid #d6e2d9}.ops-detail p,.ops-detail blockquote{overflow-wrap:anywhere}
.character-icon {display:inline-block;position:relative;vertical-align:middle;width:32px;height:28px;flex:none;margin-inline-end:.36em;pointer-events:none}
.character-icon canvas.pixel-person {position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}
.character-icon svg {position:absolute;top:8%;left:53%;width:42%;height:31%;fill:none;stroke:#1c513b;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.character-guide svg {top:0;left:53%;width:40%;height:47%;stroke:#88501d;filter:drop-shadow(0 0 2px #ffdfa1)}
button.back {background:#ecf5e7;border:1px solid #afcaaa;border-radius:12px;color:#184a36;font-weight:750;padding:5px 14px 5px 6px}
button.back:hover {background:#dbecd4;border-color:#739a76}
button.back .character-icon,button.ai-action .character-icon {width:43px;height:37px}
.thinking-status {display:flex;align-items:center;gap:8px;padding:9px 13px;margin:.6rem 0;background:#f0f7ea;color:#29563f;border-radius:12px;font-size:.9rem;font-weight:650}
.thinking-status .character-icon {width:50px;height:43px;margin:0}
.thought-dots {display:inline-flex;gap:3px;align-self:flex-start;margin:0 3px 0 -6px;padding:5px 6px;border-radius:9px 9px 9px 1px;background:white}
.thought-dots i {width:4px;height:4px;background:#488660;border-radius:50%}
@media(prefers-reduced-motion:no-preference){
 .thinking-status .character-icon {animation:ponder 1.6s ease-in-out infinite}
 .thought-dots i {animation:thought 1.2s ease-in-out infinite}
 .thought-dots i:nth-child(2){animation-delay:.15s}.thought-dots i:nth-child(3){animation-delay:.3s}
 @keyframes ponder{50%{transform:translateY(-2px) rotate(-4deg)}}
 @keyframes thought{50%{opacity:.35;transform:translateY(-2px)}}
}
.history-list .history-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 20px;padding:18px 22px;border-color:#d8e2d8;border-radius:18px}
.round-meta,.overview-legend,.overview-key,.overview-title {display:flex;align-items:center}
.round-meta,.overview-legend {flex-wrap:wrap;gap:5px 12px}
.round-meta {margin-top:6px;color:#586e63;font-size:.82rem}
.round-status {background:#e9f2e7;border-radius:6px;padding:3px 7px;font-weight:650}
.round-overview {grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px 22px;border-top:1px solid #e1e9dd;padding-top:12px}
.overview-title {gap:.55rem;align-items:baseline;font-size:.9rem;line-height:1.45;overflow-wrap:anywhere}
.overview-title b {font:700 .72rem/1.4 ui-monospace,monospace;color:#356e55}
.overview-meter {display:flex;gap:2px;overflow:hidden;height:7px;background:#edf1e9;border-radius:5px;margin:8px 0}
.overview-meter i {flex-basis:0}
.overview-legend {font-size:.71rem;color:#42594e;gap:3px 10px}
.overview-key {gap:4px}.overview-key i {height:7px;width:7px;border-radius:2px}
.round-overview :is(i) {background:var(--tone,#98aba0)}
.tone-positive,.tone-option1 {--tone:#56a67e}.tone-mixed,.tone-option2 {--tone:#b7d9a0}.tone-negative,.tone-option3 {--tone:#db846b}.tone-unknown {--tone:#a7bcc4}
.tone-option4 {--tone:#af7486}.tone-option5 {--tone:#808abb}.tone-option6 {--tone:#779b69}.tone-option7 {--tone:#aa866c}.tone-option8 {--tone:#7b93a0}
@media(max-width:760px){.history-list .history-row{grid-template-columns:minmax(0,1fr);padding:16px}.history-row .action-row{grid-row:auto;flex-wrap:wrap}.round-overview{grid-row:2}}
.language-picker {position:relative;z-index:10;flex:none}
.language-trigger,.language-list button {font:inherit;color:#284e3e;border:0;cursor:pointer}
.language-trigger {padding:.42rem .65rem;border:1px solid #cbdacb;border-radius:9px;background:#f5f8f0;font-size:.84rem;white-space:nowrap}
.language-list {position:absolute;inset-inline-end:0;top:calc(100% + 5px);min-width:130px;padding:5px;background:white;border:1px solid #cfddce;border-radius:12px;box-shadow:0 6px 20px #173c281c}
.language-list button {display:block;width:100%;padding:.5rem .7rem;background:white;text-align:start;border-radius:7px}
.language-list button:is(:hover,[aria-pressed=true]) {background:#e6f2e4}
@media(max-width:760px){.mast-inner{height:auto;min-height:58px;flex-wrap:wrap;gap:5px;padding-block:6px}.mast-actions{flex-wrap:wrap;gap:4px 8px}.wordmark .character-icon,.mast-actions .character-icon{width:22px;height:20px}.journey{flex-wrap:wrap;justify-content:flex-start}.step{white-space:normal}}
.overview-title b {flex:none;white-space:nowrap;background:#edf4e9;padding:1px 5px;border-radius:4px}
.overview-title span {min-width:0}
.overview-legend {font-size:.77rem}
@media(min-width:761px){.round-overview{grid-auto-rows:auto}.overview-question{display:grid;grid-template-rows:subgrid;grid-row:span 3;gap:5px}.overview-meter{margin:1px 0}.overview-legend{align-content:start}}
@media(max-width:760px){
 .mast-inner:has(.mast-actions){display:grid;grid-template-columns:1fr auto auto;gap:3px 10px}
 .mast-actions{display:contents}
 .mast-inner #brand{grid-column:1/3;grid-row:1;justify-self:start}
 .mast-actions .language-picker{grid-column:3;grid-row:1;justify-self:end}
 .mast-actions #history-nav,.mast-actions #sample-nav,.mast-actions #runtime{grid-row:2;justify-self:start}
 .mast-actions #runtime{justify-self:end}
 .history-head{display:grid;grid-template-columns:1fr auto;gap:6px 10px;margin:18px 0}
 .history-head .page-heading{display:contents}
 .history-head h1,.history-head>.primary{grid-row:1}
 .history-head .page-heading p{grid-row:2;grid-column:1/-1;margin:0;font-size:.86rem}
}
