:root {
  --paper: #f4f3ed;
  --ink: #18211f;
  --muted: #6d756f;
  --line: #d7dbd0;
  --lime: #d8f35b;
  --lime-soft: #eef6cf;
  --white: #fff;
  --surface: #fafbf7;
  --radius: 20px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --display: 'Arial', 'Helvetica Neue', var(--sans);
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 14px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 50; left: 16px; top: 12px; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.mobile-break { display: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button { border: 0; background: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
button, a { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea { transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s; }
:focus-visible { outline: 3px solid #6a8a13; outline-offset: 4px; }
input, textarea { min-width: 0; }
textarea { display: block; resize: vertical; }
svg, img { max-width: 100%; }
svg { flex-shrink: 0; }
button svg { vertical-align: middle; }
[hidden], .experiment[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.45; }
ul { padding-left: 1.3em; }
::selection { color: var(--ink); background: var(--lime); }

.topbar { min-height: 90px; display: flex; align-items: center; gap: 24px; padding: 20px clamp(24px, 5vw, 84px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--lime); font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1; }
.brand-mark > span { position: absolute; top: 6px; right: 4px; font-size: 12px; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-text { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.25; }
.brand-text small { display: block; margin-top: 4px; font-size: 9px; font-family: var(--mono); font-weight: 400; letter-spacing: .19em; }
.header-note { margin: 0 auto 0 0; padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.outline, .secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; gap: 8px; padding: 10px 17px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; }
.outline:hover, .secondary:hover { background: #e8ebe1; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 47px; padding: 12px 23px; border: 1px solid var(--ink); border-radius: 999px; color: var(--white); background: var(--ink); font-weight: 700; font-size: 13px; line-height: 1.5; text-align: center; }
.primary:hover { background: #33433d; }
.primary:active, .send-btn:active { transform: scale(.97); }
.text-btn { padding: 9px 0; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.text-btn:hover { color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 50%; background: white; }

.shell { width: min(1370px, 100%); margin: 0 auto; padding: 57px clamp(24px, 5vw, 72px) 0; }
.intro { position: relative; padding-bottom: 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .15em; line-height: 1.5; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #78a33e; }
h1 { margin: 0 0 17px; font-size: clamp(30px, 3.2vw, 48px); font-weight: 800; letter-spacing: -.065em; line-height: 1.38; }
h1 em, h1 span { font-style: normal; background: linear-gradient(transparent 68%, var(--lime) 0); }
.intro > p { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.95; }
.demo-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 18px; padding: 7px 11px; border: 1px solid #d5dcc0; border-radius: 6px; color: #66704f; background: #edf0e4; font-size: 10px; line-height: 1.6; }
.demo-pill > span:first-child { font-family: var(--mono); font-size: 16px; }
.demo-pill > span:last-child { color: #71795f; }
.load-error, .noscript { margin: 18px 0; padding: 14px 16px; border: 1px solid #d8a795; border-radius: 10px; color: #8a4632; background: #f9ece7; font-size: 12px; }
.noscript { margin-inline: 20px; }

.sample-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin: 0 0 26px; }
.sample-nav > [role='tablist'] { display: contents; }
.sample-tab { position: relative; min-width: 0; min-height: 130px; padding: 17px 17px 16px; border: 1px solid var(--line); border-radius: 12px; background: transparent; text-align: left; }
.sample-tab:hover { border-color: #8c9887; background: #eceee5; }
.sample-tab[aria-selected='true'], .sample-tab.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.tab-number { display: block; margin-bottom: 13px; font: 11px/1 var(--mono); color: var(--muted); letter-spacing: .05em; }
.sample-tab[aria-selected='true'] .tab-number, .sample-tab.is-active .tab-number { color: var(--lime); }
.tab-title { display: block; padding-right: 13px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.tab-detail { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); line-height: 1.5; }
.sample-tab[aria-selected='true'] .tab-detail, .sample-tab.is-active .tab-detail { color: #bec9bf; }
.tab-arrow { position: absolute; right: 15px; top: 16px; font-size: 18px; font-family: var(--display); line-height: 1; }
.sample-tab[aria-selected='true'] .tab-arrow { color: var(--lime); }

.experiment { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); overflow: hidden; min-height: 616px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.experiment-note { display: flex; flex-direction: column; align-items: flex-start; padding: 34px 27px 28px; border-right: 1px solid var(--line); }
.section-kicker { display: block; margin-bottom: 13px; font: 10px/1.5 var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.experiment-note h2 { max-width: 11em; margin: 0 0 20px; font-size: clamp(23px, 2.2vw, 31px); font-weight: 800; letter-spacing: -.06em; line-height: 1.5; }
.experiment-note > p { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.95; }
.benefit-list { list-style: none; margin: 0 0 23px; padding: 0; width: 100%; }
.benefit-list li { position: relative; padding: 10px 0 10px 19px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.8; }
.benefit-list li::before { content: '✓'; position: absolute; left: 0; color: #5c7c28; }
.sample-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.sample-tags > * { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.favorite-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: 100%; margin-top: auto; padding: 9px 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 11px; font-weight: 700; }
.favorite-btn:hover { background: var(--lime-soft); }
.favorite-btn[aria-pressed='true'], .favorite-btn.selected, .favorite-btn.is-active { background: var(--lime); }
.experiment-index { margin-top: 22px; font: 10px/1.5 var(--mono); letter-spacing: .1em; color: #8b938a; }
.prototype { min-width: 0; background: #fff; }
.proto-header { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 67px; padding: 16px 28px; border-bottom: 1px solid #e6e9e1; }
.proto-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 12px; line-height: 1.5; }
.proto-brand svg { width: 20px; height: 20px; }
.small-mark { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--lime); color: var(--ink); font: 700 15px/1 var(--display); }
.proto-brand > span:first-child:only-child { display: inline-block; }
.proto-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: #7b8479; font: 9px/1.4 var(--mono); letter-spacing: .04em; }
.proto-status::before { content: ''; height: 5px; width: 5px; border-radius: 50%; background: #91b54f; }
.proto-content { padding: 28px; }
.proto-content > :last-child { margin-bottom: 0; }
.fine-print { margin: 13px 0 0; color: #818a7f; font-size: 10px; line-height: 1.8; }
.chat-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 7px; }

.chat-log { display: flex; flex-direction: column; gap: 20px; min-height: 215px; max-height: 385px; overflow-y: auto; overscroll-behavior-y: contain; padding: 0 6px 16px 0; scrollbar-width: thin; scrollbar-color: #d7decf transparent; }
.message { display: flex; align-items: flex-start; gap: 10px; min-width: 0; animation: rise-in .3s ease both; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; background: var(--lime); font-family: var(--display); font-size: 12px; font-weight: 700; }
.avatar svg { width: 18px; height: 18px; }
.bubble { max-width: min(90%, 570px); min-width: 0; padding: 14px 18px; border-radius: 0 15px 15px; background: #f0f3ec; font-size: 12px; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; }
.bubble p { margin-bottom: 9px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble strong { font-weight: 700; }
.message.user { justify-content: flex-end; }
.message.user .avatar { order: 2; color: white; background: var(--ink); }
.message.user .bubble { border-radius: 15px 0 15px 15px; background: #ecf3d7; }
.suggestion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.suggestion { min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: left; font-size: 11px; line-height: 1.7; }
.suggestion:hover { border-color: #8ea267; background: #f5f9eb; }
.chat-form { display: flex; align-items: flex-end; gap: 9px; padding: 8px; margin-top: 17px; border: 1px solid #cbd3c3; border-radius: 14px; background: white; }
.chat-form:focus-within { border-color: #6f894a; box-shadow: 0 0 0 3px #ebf1e2; }
.chat-form textarea { width: 100%; min-height: 47px; max-height: 160px; padding: 12px 9px; border: 0; outline: 0; resize: vertical; background: transparent; font-size: 12px; line-height: 1.8; }
.chat-form textarea::placeholder { color: #9ba395; }
.send-btn { display: grid; place-items: center; flex-shrink: 0; min-width: 45px; min-height: 45px; padding: 10px 13px; border-radius: 9px; color: var(--white); background: var(--ink); font-size: 11px; }
.send-btn:hover { background: #3b4f38; }
.send-btn svg { width: 18px; height: 18px; }

.step-track { display: flex; align-items: stretch; gap: 8px; margin-bottom: 28px; }
.step-track > span { flex: 1; min-width: 0; padding: 0 1px 10px; border-bottom: 3px solid #dfe4ed; color: #929cac; font-size: 10px; line-height: 1.6; }
.step-track > span.active { border-color: #526d9c; color: #3f5986; font-weight: 700; }
.step-track > span.done { border-color: #a8bad7; color: #758caf; }
.step-description { margin: -9px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.step-caption { margin: 0 0 10px; font: 10px/1.5 var(--mono); color: #7e8b72; letter-spacing: .1em; }
.proto-content h3 { font-size: 22px; letter-spacing: -.04em; margin-bottom: 19px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 23px 0; }
.choice { display: flex; flex-direction: column; align-items: flex-start; min-height: 123px; padding: 18px; border: 1px solid #dce1d3; border-radius: 12px; text-align: left; background: #fff; }
.choice:hover { background: #f7faef; border-color: #a8b68f; }
.choice.selected, .choice[aria-pressed='true'] { border-color: #718541; box-shadow: inset 0 0 0 1px #718541; background: var(--lime-soft); }
.choice-icon { margin-bottom: 9px; color: #61763d; font: 20px/1.2 var(--display); }
.choice-icon svg { width: 24px; height: 24px; }
.choice strong { font-size: 12px; }
.choice small { margin-top: 6px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.step-actions .primary:only-child { margin-left: auto; }
.result-card { padding: 24px; border: 1px solid #ceddac; border-radius: 14px; background: #f2f7e6; animation: rise-in .3s ease both; }
.result-eyebrow { margin-bottom: 13px; color: #718441; font: 10px/1.5 var(--mono); letter-spacing: .1em; }
.result-card h3 { margin-bottom: 13px; }
.result-card p, .result-card ul { font-size: 12px; }
.result-card li { margin-bottom: 5px; }
.result-card .primary { margin-top: 12px; }

.budget-layout { display: grid; grid-template-columns: minmax(140px, .75fr) minmax(0, 1.35fr); gap: 20px; }
.budget-choices { display: flex; flex-direction: column; gap: 8px; }
.budget-option { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 83px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: white; text-align: left; }
.budget-option:hover { border-color: #8eaa6a; }
.budget-option.selected, .budget-option[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.budget-label { font: 600 20px/1.5 var(--display); letter-spacing: -.03em; }
.budget-option small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.budget-option.selected small { color: #bcc8b8; }
.budget-result { min-width: 0; padding: 24px; border-radius: 14px; background: #f3f6ea; }
.scope-label { display: inline-block; margin-bottom: 15px; font: 10px/1.5 var(--mono); color: #758551; letter-spacing: .08em; }
.budget-result h3 { margin-bottom: 14px; font-size: 24px; }
.budget-result > p { color: #65705e; font-size: 11px; line-height: 1.95; }
.priority-list { list-style: none; padding: 0; margin: 18px 0; }
.priority-list li { position: relative; padding: 10px 0 10px 19px; border-top: 1px solid #dce3ce; font-size: 11px; }
.priority-list li::before { content: '+'; position: absolute; left: 0; font-weight: 700; color: #7b8e50; }
.price-note { padding-top: 15px; border-top: 1px solid #dce3ce; font-size: 10px !important; }
.priority-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.budget-layout + .step-caption { margin-top: 25px; }
#budget-memo { margin-top: 17px; }
.priority-options label { display: inline-flex; align-items: center; gap: 7px; min-height: 39px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 10px; cursor: pointer; }
.priority-options input { width: 15px; height: 15px; margin: 0; accent-color: #728344; }
.priority-options label:has(input:checked) { border-color: #aabb83; background: #f2f7e4; }

.planner-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; }
.planner-input label { display: block; margin-bottom: 11px; font-size: 12px; font-weight: 700; }
.planner-input textarea { width: 100%; min-height: 190px; padding: 15px; border: 1px solid #cdd6c2; border-radius: 12px; background: #fff; font-size: 12px; line-height: 1.9; }
.planner-input textarea::placeholder { color: #8d9884; }
.example-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.example-tags button { min-height: 32px; padding: 5px 8px; border-radius: 5px; background: #eef2e7; font-size: 9px; text-align: left; }
.example-tags button:hover { background: #e0ebcd; }
.planner-input > .primary { width: 100%; margin-top: 22px; }
.brief-paper { position: relative; min-width: 0; min-height: 400px; padding: 22px; border: 1px solid #e0e4d8; border-radius: 2px 2px 14px 2px; background: #fbfcf7; box-shadow: 4px 4px 0 #f0f1e9; }
.paper-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 23px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font: 9px/1.5 var(--mono); letter-spacing: .07em; color: var(--muted); }
.brief-paper h3 { margin-bottom: 22px; font-size: 17px; }
.brief-section { margin-bottom: 17px; }
.brief-section h4 { margin: 0 0 6px; color: #687a4b; font-size: 10px; font-weight: 700; }
.brief-section p { margin-bottom: 0; font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-line; }
.empty-brief { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 265px; color: #97a18b; text-align: center; font-size: 11px; }
.empty-brief svg { width: 34px; height: 34px; margin-bottom: 14px; opacity: .7; }
.empty-brief > span { display: block; margin-bottom: 14px; font-size: 34px; font-weight: 400; color: #b0a3c0; }
.paper-footer { margin: 24px 0 0; padding-top: 13px; border-top: 1px dashed #d2d9c6; color: #869078; font-size: 9px; line-height: 1.8; }

.experiment[data-theme='lab'] .prototype { background: #f1f4e8; }
.experiment[data-theme='lab'] .proto-header { border-color: #dde3d1; }
.experiment[data-theme='lab'] .proto-content { display: grid; grid-template-columns: minmax(140px, .75fr) minmax(0, 1.4fr); gap: 24px; align-items: start; padding-top: 38px; }
.lab-scene { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 295px; isolation: isolate; }
.lab-orbit { position: absolute; width: min(100%, 185px); aspect-ratio: 1; border: 1px solid #c7d0b5; border-radius: 50%; z-index: -1; }
.lab-orbit::before { content: ''; position: absolute; inset: -16px; border: 1px dashed #d8dfcb; border-radius: 50%; }
.lab-orbit::after { content: ''; position: absolute; width: 10px; height: 10px; left: 12%; top: 12%; border: 2px solid #eef4dd; border-radius: 50%; background: #98ad62; }
.lab-flask { width: min(150px, 85%); filter: drop-shadow(0 14px 9px #23301315); }
.lab-character-label { margin-top: 20px; padding: 5px 10px; border: 1px solid #cbd6b9; border-radius: 999px; color: #718256; background: #f8faef; font: 9px/1.5 var(--mono); letter-spacing: .06em; }
.lab-body { min-width: 0; }
.lab-prompt { margin-bottom: 10px; color: #7c8b63; font: 10px/1.5 var(--mono); letter-spacing: .09em; }
.lab-body h3 { font-size: 23px; }
.lab-topics { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 19px; }
.lab-topics button { padding: 8px 12px; min-height: 38px; border: 1px solid #c7d4b3; border-radius: 999px; background: #fff; font-size: 10px; }
.lab-topics button:hover, .lab-topics button.selected { border-color: #69813d; background: var(--lime); }
.lab-answer { padding: 18px; border: 1px solid #d3ddbf; border-radius: 13px; background: #fff; }
.answer-label { display: block; margin-bottom: 10px; color: #79904e; font-size: 9px; letter-spacing: .06em; }
.lab-answer p { margin-bottom: 0; font-size: 12px; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; }
.lab-answer .lab-question { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #e3e8d9; color: #718256; font-size: 10px; }
.lab-form { display: flex; gap: 7px; margin-top: 16px; }
.lab-form input { flex: 1; width: 100%; min-height: 44px; padding: 11px; border: 1px solid #cbd6bc; border-radius: 9px; background: #fff; font-size: 12px; }
.lab-form button { flex-shrink: 0; min-height: 44px; padding: 10px 13px; border-radius: 9px; color: var(--white); background: var(--ink); font-size: 11px; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.comparison-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 0; margin-top: 8px; border-bottom: 1px solid var(--line); }
.comparison-summary p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.comparison-summary p strong { color: var(--ink); }
.comparison-summary > button { flex-shrink: 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: min(1370px, 100%); margin: 0 auto; padding: 25px clamp(24px, 5vw, 72px) 37px; color: #88907f; font: 9px/1.8 var(--mono); letter-spacing: .04em; }
.site-footer p { margin: 0; }
.site-footer a { font-family: var(--sans); font-size: 10px; text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

dialog { width: min(850px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 30px; border: 1px solid #d4dbcb; border-radius: 20px; color: var(--ink); background: var(--surface); box-shadow: 0 25px 100px #0c1d1a26; overflow-y: auto; }
dialog::backdrop { background: #14201975; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dialog-heading h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.04em; }
.dialog-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.dialog-heading > .dialog-close { flex-shrink: 0; font-size: 21px; line-height: 1; }
.comparison-table { overflow-x: auto; scrollbar-width: thin; }
.comparison-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 11px; text-align: left; }
.comparison-table th { padding: 10px; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: 10px; font-weight: 500; }
.comparison-table tbody th { border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table tbody th button { padding: 0; border: 0; background: none; text-align: left; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.9; }
.comparison-table td { padding: 15px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.9; }
.comparison-table td:first-child { min-width: 115px; font-weight: 700; }
.comparison-table button { padding: 6px 10px; border: 1px solid #c5d0b1; border-radius: 6px; background: white; font-size: 10px; }
.comparison-table button:hover { background: var(--lime-soft); }
.pick-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; background: var(--lime); font-size: 9px; white-space: nowrap; }
.memo-content pre { max-height: 50dvh; overflow-y: auto; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--sans); font-size: 12px; line-height: 1.95; }
.memo-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.inquiry-fields { display: grid; gap: 9px; margin-top: 24px; }
.inquiry-fields label { margin-top: 10px; font-size: 14px; font-weight: 700; }
.inquiry-fields label span { margin-left: 8px; color: #7c4329; font-size: 11px; }
.inquiry-fields input, .inquiry-fields textarea { width: 100%; padding: 12px 14px; border: 1px solid #bfcab4; border-radius: 10px; background: white; font-size: 16px; line-height: 1.65; }
.inquiry-fields textarea { min-height: 240px; }
.inquiry-note { color: #56634c; font-size: 13px; line-height: 1.9; }
.inquiry-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 15px; border-radius: 10px; background: #eaf0e1; font-size: 13px; line-height: 1.9; }
.inquiry-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; accent-color: #344a34; }
.inquiry-consent a { text-decoration: underline; text-underline-offset: 3px; }
.inquiry-error { color: #982b20; line-height: 1.8; font-size: 13px; }
.inquiry-review-details { margin: 20px 0; font-size: 14px; }
.inquiry-review-details dt { margin-top: 12px; color: #68725d; font-size: 12px; }
.inquiry-review-details dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.inquiry-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
#inquiry-success { padding: 15px 0; line-height: 1.9; }
#inquiry-receipt { overflow-wrap: anywhere; }
#memo-dialog [hidden] { display: none !important; }
#memo-dialog .memo-actions button { min-height: 48px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 40px); transform: translateX(-50%); padding: 13px 20px; border: 1px solid #ffffff20; border-radius: 12px; color: white; background: #18211ff2; box-shadow: 0 8px 30px #18211f1a; font-size: 12px; line-height: 1.7; text-align: center; }

/* Five visual directions share a familiar interaction structure. */
.sample-tab[data-theme='guide'][aria-selected='true'] { background: #405d8b; border-color: #405d8b; }
.sample-tab[data-theme='budget'][aria-selected='true'] { background: #95553d; border-color: #95553d; }
.sample-tab[data-theme='planner'][aria-selected='true'] { background: #735a89; border-color: #735a89; }
.sample-tab[data-theme='lab'][aria-selected='true'] { background: #15291f; border-color: #15291f; }
.sample-tab[data-theme='guide'][aria-selected='true'] .tab-number,
.sample-tab[data-theme='guide'][aria-selected='true'] .tab-arrow { color: #d1e0ff; }
.sample-tab[data-theme='budget'][aria-selected='true'] .tab-number,
.sample-tab[data-theme='budget'][aria-selected='true'] .tab-arrow { color: #ffe0bd; }
.sample-tab[data-theme='planner'][aria-selected='true'] .tab-number,
.sample-tab[data-theme='planner'][aria-selected='true'] .tab-arrow { color: #f1dcff; }
.sample-tab[data-theme='guide'][aria-selected='true'] .tab-detail,
.sample-tab[data-theme='budget'][aria-selected='true'] .tab-detail,
.sample-tab[data-theme='planner'][aria-selected='true'] .tab-detail { color: #f0edf0; }

.experiment[data-theme='guide'] .prototype { background: #f8faff; }
.experiment[data-theme='guide'] .proto-header { border-color: #dfe7f4; background: #eef3fc; }
.experiment[data-theme='guide'] .proto-status { color: #6780a3; }
.experiment[data-theme='guide'] .proto-status::before { background: #7d9ed0; }
.experiment[data-theme='guide'] .step-caption,
.experiment[data-theme='guide'] .choice-icon { color: #5977a6; }
.experiment[data-theme='guide'] .choice { border-color: #d5deed; background: #fff; }
.experiment[data-theme='guide'] .choice:hover { border-color: #91a9cc; background: #f0f5fd; }
.experiment[data-theme='guide'] .choice.selected { border-color: #6986b5; background: #e9f0fd; box-shadow: inset 0 0 0 1px #6986b5; }
.experiment[data-theme='guide'] .primary { border-color: #405d8b; background: #405d8b; }
.experiment[data-theme='guide'] .primary:hover { background: #314c75; }
.experiment[data-theme='guide'] .result-card { border-color: #c9d6ed; background: #edf3fe; }
.experiment[data-theme='guide'] .result-eyebrow { color: #5573a1; }
.experiment[data-theme='guide'] .favorite-btn.selected { background: #dbe7fc; }
.experiment[data-theme='guide'] .benefit-list li::before { color: #5977a6; }

.experiment[data-theme='budget'] .prototype { background: #fffcf8; }
.experiment[data-theme='budget'] .proto-header { border-color: #eedfce; background: #f7eee4; }
.experiment[data-theme='budget'] .proto-status { color: #9b725d; }
.experiment[data-theme='budget'] .proto-status::before { background: #c38f72; }
.experiment[data-theme='budget'] .step-caption { color: #9b674d; }
.experiment[data-theme='budget'] .budget-option { border-color: #e8d8c8; }
.experiment[data-theme='budget'] .budget-option:hover { border-color: #ba8c6a; }
.experiment[data-theme='budget'] .budget-option.selected { border-color: #95553d; background: #95553d; }
.experiment[data-theme='budget'] .budget-option.selected small { color: #f5dfd3; }
.experiment[data-theme='budget'] .budget-result { background: #f6eade; }
.experiment[data-theme='budget'] .scope-label { color: #996447; }
.experiment[data-theme='budget'] .budget-result > p { color: #8b6c57; }
.experiment[data-theme='budget'] .priority-list li,
.experiment[data-theme='budget'] .price-note { border-color: #e4cdb8; }
.experiment[data-theme='budget'] .priority-list li::before { color: #a56d46; }
.experiment[data-theme='budget'] .priority-options label { border-color: #e4d8cc; }
.experiment[data-theme='budget'] .priority-options input { accent-color: #95553d; }
.experiment[data-theme='budget'] .priority-options label:has(input:checked) { border-color: #c9a287; background: #f8eade; }
.experiment[data-theme='budget'] .primary { border-color: #95553d; background: #95553d; }
.experiment[data-theme='budget'] .primary:hover { background: #7d412c; }
.experiment[data-theme='budget'] .favorite-btn.selected { background: #efd5bd; }
.experiment[data-theme='budget'] .benefit-list li::before { color: #a56d46; }

.experiment[data-theme='planner'] .prototype { background: #fcfaff; }
.experiment[data-theme='planner'] .proto-header { border-color: #e6deee; background: #f2edf7; }
.experiment[data-theme='planner'] .proto-status { color: #8e779e; }
.experiment[data-theme='planner'] .proto-status::before { background: #a187b8; }
.experiment[data-theme='planner'] .planner-input textarea { border-color: #d7cce3; background: #fff; }
.experiment[data-theme='planner'] .example-tags button { color: #786584; background: #eee6f5; }
.experiment[data-theme='planner'] .example-tags button:hover { background: #e0d2ec; }
.experiment[data-theme='planner'] .primary { border-color: #735a89; background: #735a89; }
.experiment[data-theme='planner'] .primary:hover { background: #5b426f; }
.experiment[data-theme='planner'] .brief-paper { border-color: #e1d9e9; background: #fff; box-shadow: 4px 4px 0 #eee6f5; }
.experiment[data-theme='planner'] .brief-section h4 { color: #87679d; }
.experiment[data-theme='planner'] .paper-footer { border-color: #dacee4; }
.experiment[data-theme='planner'] .favorite-btn.selected { background: #e5d8f0; }
.experiment[data-theme='planner'] .benefit-list li::before { color: #87679d; }

.experiment[data-theme='lab'] .prototype { color: #eff3e6; background: #172a21; }
.experiment[data-theme='lab'] .proto-header { border-color: #3b4e40; background: #1d3227; }
.experiment[data-theme='lab'] .proto-status { color: #bbc9a8; }
.experiment[data-theme='lab'] .proto-status::before { background: var(--lime); }
.experiment[data-theme='lab'] .proto-content { background-image: radial-gradient(#c5d99e14 .7px, transparent .7px); background-size: 18px 18px; }
.experiment[data-theme='lab'] .lab-orbit { border-color: #5b7049; }
.experiment[data-theme='lab'] .lab-orbit::before { border-color: #45603d; }
.experiment[data-theme='lab'] .lab-orbit::after { border-color: #172a21; background: var(--lime); }
.experiment[data-theme='lab'] .lab-character-label { border-color: #4b633b; background: #22372a; color: #c7d7b1; text-align: center; }
.experiment[data-theme='lab'] .lab-character-label strong { display: inline-block; margin-top: 2px; font-family: var(--sans); font-size: 10px; font-weight: 600; }
.experiment[data-theme='lab'] .lab-prompt { color: var(--lime); }
.experiment[data-theme='lab'] .lab-topics button { color: #d9e4cb; border-color: #4a6040; background: #263e2d; }
.experiment[data-theme='lab'] .lab-topics button:hover,
.experiment[data-theme='lab'] .lab-topics button.selected { color: #172a21; border-color: var(--lime); background: var(--lime); }
.experiment[data-theme='lab'] .lab-answer { color: #e6efdb; border-color: #4e643f; background: #213b2a; }
.experiment[data-theme='lab'] .answer-label { color: #c0d7a0; }
.experiment[data-theme='lab'] .lab-question { border-color: #455c37; color: #b0c797; }
.experiment[data-theme='lab'] .lab-form input { color: #eff4e7; border-color: #516746; background: #20382a; }
.experiment[data-theme='lab'] .lab-form input::placeholder { color: #9daf8b; }
.experiment[data-theme='lab'] .lab-form button { color: #18211f; background: var(--lime); }
.experiment[data-theme='lab'] .lab-form button:hover { background: #e5fb8c; }
.experiment[data-theme='lab'] .fine-print,
.experiment[data-theme='lab'] .lab-actions .text-btn { color: #a8ba98; }
.experiment[data-theme='lab'] .lab-actions .text-btn:hover { color: var(--lime); }
.experiment[data-theme='lab'] .prototype :focus-visible { outline-color: var(--lime); }

@keyframes rise-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }

@media (min-width: 1200px) {
  .intro { padding-right: 245px; }
  .intro .demo-pill { position: absolute; right: 0; top: 0; max-width: 210px; padding: 12px 14px; }
}

@media (max-width: 1000px) {
  .shell { padding: 38px 28px 0; }
  .topbar { padding-inline: 28px; }
  .site-footer { padding-inline: 28px; }
  .sample-tab { padding: 14px 12px; min-height: 124px; }
  .tab-title { font-size: 12px; }
  .tab-detail { font-size: 9px; }
  .experiment { grid-template-columns: minmax(185px, .68fr) minmax(0, 1.8fr); }
  .experiment-note { padding: 27px 20px; }
  .experiment-note h2 { font-size: 24px; }
  .proto-header { padding-inline: 22px; }
  .proto-content { padding: 22px; }
  .planner-layout { grid-template-columns: minmax(0, 1fr); }
  .planner-input textarea { min-height: 120px; }
  .brief-paper { min-height: 220px; }
  .empty-brief { min-height: 120px; }
  .experiment[data-theme='lab'] .proto-content { grid-template-columns: minmax(0, 1fr); gap: 7px; padding-top: 20px; }
  .lab-scene { min-height: 180px; }
  .lab-orbit { width: 130px; }
  .lab-flask { width: 105px; }
  .lab-character-label { margin-top: 6px; }
}

@media (max-width: 760px) {
  .topbar { min-height: 74px; padding: 16px 22px; gap: 16px; }
  .brand { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; font-size: 16px; }
  .brand-text { font-size: 13px; }
  .brand-text small { font-size: 8px; }
  .header-note { display: none; }
  #compare-open { margin-left: auto; min-height: 38px; padding: 8px 12px; font-size: 10px; }
  .shell { padding: 32px 22px 0; }
  .intro { padding-bottom: 26px; }
  h1 { font-size: 34px; }
  .intro > p { font-size: 12px; }
  .sample-nav { gap: 7px; margin-bottom: 19px; }
  .sample-tab { min-height: 110px; padding: 11px 9px; }
  .tab-title { padding-right: 0; font-size: 11px; }
  .tab-number { margin-bottom: 11px; font-size: 9px; }
  .tab-detail { display: none; }
  .tab-arrow { top: 11px; right: 8px; font-size: 14px; }
  .experiment { grid-template-columns: minmax(0, 1fr); min-height: auto; border-radius: 16px; }
  .experiment-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 18px; padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-kicker { grid-column: 1 / -1; margin-bottom: 8px; }
  .experiment-note h2 { max-width: none; margin-bottom: 12px; font-size: 24px; }
  .experiment-note > p { grid-column: 1 / -1; margin-bottom: 16px; font-size: 11px; }
  .benefit-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px 18px; margin-bottom: 15px; }
  .benefit-list li { padding-block: 0; border: 0; font-size: 10px; }
  .sample-tags { grid-column: 1; margin: 0; align-self: center; }
  .favorite-btn { grid-column: 2; grid-row: 5; width: auto; align-self: center; margin-top: 0; padding: 8px 13px; min-height: 38px; font-size: 10px; }
  .experiment-index { display: none; }
  .proto-content { padding: 24px; }
  .proto-header { min-height: 60px; padding: 15px 24px; }
  .chat-log { min-height: 195px; }
  .planner-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .planner-input textarea { min-height: 165px; }
  .brief-paper { min-height: 340px; }
  .experiment[data-theme='lab'] .proto-content { grid-template-columns: minmax(120px, .8fr) minmax(0, 1.5fr); gap: 20px; padding-top: 26px; }
  .lab-scene { min-height: 240px; }
  .lab-flask { width: 125px; }
  .comparison-summary { padding-block: 22px; }
  .site-footer { padding: 23px 22px 30px; }
}

@media (max-width: 520px) {
  .topbar { gap: 9px; padding: 14px 18px; }
  .brand-text { font-size: 12px; }
  .brand-text small { font-size: 7px; letter-spacing: .14em; }
  .brand-mark { width: 31px; height: 31px; }
  #compare-open { padding: 8px 11px; font-size: 10px; }
  .shell { padding: 29px 18px 0; }
  .eyebrow { margin-bottom: 13px; font-size: 9px; letter-spacing: .1em; }
  h1 { font-size: clamp(27px, 8vw, 35px); letter-spacing: -.065em; line-height: 1.4; }
  .intro h1 span { display: block; width: max-content; max-width: 100%; }
  .intro > p { font-size: 11px; }
  .demo-pill { margin-top: 15px; padding: 6px 8px; font-size: 9px; }
  .mobile-break { display: block; }
  .sample-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .sample-tab { min-height: 97px; padding: 12px 13px; border-radius: 9px; }
  .sample-tab:last-child { grid-column: 1 / -1; min-height: 84px; }
  .tab-number { margin-bottom: 8px; font-size: 9px; }
  .tab-title { font-size: 12px; line-height: 1.6; }
  .tab-detail { display: block; font-size: 9px; }
  .tab-arrow { display: block; top: 13px; right: 12px; }
  .experiment-note { padding: 20px 19px; gap: 0 10px; }
  .experiment-note h2 { grid-column: 1 / -1; font-size: 23px; }
  .experiment-note > p { line-height: 1.9; }
  .sample-tags { gap: 4px; }
  .sample-tags > * { font-size: 8px; padding: 4px 6px; }
  .favorite-btn { padding-inline: 10px; font-size: 9px; }
  .proto-header { min-height: 56px; padding: 14px 18px; }
  .proto-brand { gap: 6px; font-size: 11px; }
  .proto-status { font-size: 8px; gap: 4px; }
  .proto-content { padding: 21px 17px; }
  .avatar { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }
  .message { gap: 8px; }
  .bubble { padding: 12px 13px; font-size: 11px; line-height: 1.9; }
  .chat-log { gap: 16px; max-height: 345px; min-height: 180px; padding-right: 0; }
  .suggestion-grid { gap: 6px; }
  .suggestion { padding: 10px; font-size: 10px; border-radius: 8px; }
  .chat-form { padding: 6px; gap: 5px; border-radius: 11px; }
  .chat-form textarea { padding: 10px 7px; font-size: 16px; min-height: 46px; line-height: 1.5; }
  .chat-form textarea::placeholder { font-size: 11px; }
  .send-btn { min-width: 42px; min-height: 42px; padding: 8px; }
  .fine-print { font-size: 9px; }
  .proto-content h3 { font-size: 20px; }
  .step-track { gap: 6px; margin-bottom: 23px; }
  .step-track > span { font-size: 9px; padding-bottom: 8px; }
  .step-description { font-size: 11px; }
  .choice-grid { gap: 8px; margin-block: 18px; }
  .choice { padding: 14px 12px; min-height: 123px; }
  .choice strong { font-size: 11px; }
  .choice small { font-size: 9px; }
  .step-actions { margin-top: 22px; }
  .primary, .secondary { min-height: 44px; padding: 10px 16px; font-size: 11px; }
  .result-card { padding: 19px 16px; }
  .result-card p, .result-card ul { font-size: 11px; }
  .budget-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .budget-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .budget-option { min-height: 80px; padding: 12px; }
  .budget-label { font-size: 18px; }
  .budget-option small { font-size: 9px; }
  .budget-result { padding: 20px; }
  .budget-result h3 { font-size: 23px; }
  .priority-options { gap: 6px; margin-top: 15px; }
  .priority-options label { padding: 8px; font-size: 9px; }
  .planner-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .planner-input textarea { min-height: 150px; padding: 13px; font-size: 16px; line-height: 1.8; }
  .planner-input textarea::placeholder { font-size: 12px; }
  .planner-input > .primary { margin-top: 17px; }
  .example-tags button { min-height: 34px; font-size: 10px; }
  .brief-paper { min-height: 290px; padding: 21px; }
  .empty-brief { min-height: 185px; }
  .experiment[data-theme='lab'] .proto-content { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 16px; }
  .lab-scene { min-height: 170px; }
  .lab-flask { width: 103px; }
  .lab-orbit { width: 125px; }
  .lab-character-label { margin-top: 4px; font-size: 8px; }
  .lab-body h3 { font-size: 22px; }
  .lab-answer { padding: 16px; }
  .lab-answer p { font-size: 11px; }
  .lab-form input { font-size: 16px; }
  .lab-form input::placeholder { font-size: 11px; }
  .comparison-summary { flex-direction: column; align-items: flex-start; gap: 14px; }
  .comparison-summary > button { align-self: flex-end; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; padding-inline: 18px; font-size: 8px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 28px); padding: 21px 17px; border-radius: 16px; }
  .dialog-heading { gap: 12px; }
  .dialog-heading h2 { font-size: 21px; }
  .dialog-heading p { font-size: 10px; }
  .dialog-heading .icon-btn { width: 35px; height: 35px; flex-shrink: 0; }
  .comparison-table table { min-width: 530px; font-size: 10px; }
  .memo-content pre { padding: 15px; font-size: 11px; }
  .memo-actions { justify-content: stretch; gap: 8px; }
  .memo-actions > button { flex: 1; }
  .toast { font-size: 11px; bottom: max(17px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Keep the researcher conversation visible across follow-up questions. */
.lab-answer { max-height: 420px; overflow-y: auto; overscroll-behavior-y: contain; }
.lab-turn + .lab-turn { border-top: 1px solid currentColor; margin-top: 20px; padding-top: 20px; }

.guide-topics { margin-bottom: 20px; border-bottom: 1px solid #d8ded3; padding-bottom: 14px; }
.guide-topics summary { cursor: pointer; font-size: 12px; font-weight: 600; min-height: 32px; padding-block: 7px; }
.guide-topic-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.guide-topic { min-height: 44px; border: 1px solid #d8ded3; border-radius: 10px; padding: 10px 12px; background: #f5f7ef; color: #293830; text-align: left; font-size: 12px; line-height: 1.6; }
.guide-topic:hover { background: #eaf0db; border-color: #8d9b72; }
.guide-topic:focus-visible, .guide-topics summary:focus-visible { outline: 2px solid #637d33; outline-offset: 3px; }
@media (max-width: 520px) {
  .guide-topics { margin-bottom: 16px; }
  .guide-topics summary { font-size: 11px; }
  .guide-topic { padding: 9px; font-size: 11px; }
}

/* The first consultation guide collects visual preferences without a separate account. */
.consultation-entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.consultation-entry button { min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #cbd3c3; border-radius: 10px; background: #f5f8ec; text-align: left; font-size: 12px; font-weight: 700; line-height: 1.65; overflow-wrap: anywhere; }
.consultation-entry button:hover { border-color: #7d925b; background: #eaf1d9; }
.site-preferences { min-width: 0; margin-bottom: 22px; }
.preference-details { min-width: 0; border: 1px solid #cfd8c3; border-radius: 14px; background: #fafcf6; overflow: hidden; }
.preference-details > summary { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 15px 17px; cursor: pointer; list-style: none; }
.preference-details > summary::-webkit-details-marker { display: none; }
.preference-details > summary::before { content: ''; width: 7px; height: 7px; flex-shrink: 0; border-right: 1.5px solid #536a39; border-bottom: 1.5px solid #536a39; transform: rotate(-45deg); transition: transform .18s; }
.preference-details[open] > summary { border-bottom: 1px solid #dce3d2; }
.preference-details[open] > summary::before { transform: rotate(45deg); }
.preference-summary-title { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.preference-count { flex-shrink: 0; margin-left: auto; padding: 3px 7px; border: 1px solid #d4ddc8; border-radius: 99px; color: #50623e; background: #eef3e4; font-size: 10px; line-height: 1.6; white-space: nowrap; }
.preference-body { min-width: 0; padding: 18px; }
.preference-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 21px; }
.preference-step { min-width: 0; min-height: 44px; padding: 8px 5px; border: 1px solid #d9dfd0; border-radius: 8px; color: #63705c; background: #fff; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.preference-step:hover { border-color: #8b9f71; background: #f1f6e8; }
.preference-step[aria-current='step'] { border-color: #607747; color: #fff; background: #3e523b; font-weight: 700; }
.proto-content .preference-heading h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.55; letter-spacing: -.025em; }
.preference-heading p { margin-bottom: 17px; color: #65715e; font-size: 11px; line-height: 1.8; }
.preference-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.preference-option { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 122px; padding: 15px 13px; border: 1px solid #d4dccb; border-radius: 11px; background: #fff; text-align: left; }
.preference-option:hover { border-color: #8a9e6e; background: #f6f9ef; }
.preference-option[aria-pressed='true'] { border-color: #677e46; box-shadow: inset 0 0 0 1px #677e46; background: #eef5db; }
.preference-option[aria-pressed='true']::after { content: '✓'; position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #fff; background: #526c39; font-size: 11px; font-weight: 700; line-height: 1; }
.option-label { display: block; max-width: 100%; margin-top: 9px; font-size: 12px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.option-detail { display: block; max-width: 100%; margin-top: 3px; color: #65715e; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.preference-swatch { display: block; width: 45px; height: 31px; max-width: 100%; border: 1px solid #bfc7b6; border-radius: 7px; background: var(--swatch, #f0f2e8); }
.preference-swatch.swatch-auto { background: linear-gradient(125deg, #ddd4c5, #b5c9c1 34%, #c9c6db 68%, #e0d3bc); }
.font-sample { display: flex; align-items: center; min-height: 32px; max-width: 100%; padding-right: 16px; font-size: 23px; line-height: 1.35; overflow-wrap: anywhere; }
.font-serious { font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', Georgia, serif; font-weight: 600; }
.font-normal { font-family: Arial, Helvetica, var(--sans); font-weight: 400; }
.font-pop { font-family: 'Hiragino Maru Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; font-weight: 900; letter-spacing: .035em; }
.menu-diagram { display: flex; gap: 4px; width: 76px; height: 42px; max-width: 100%; padding: 5px; border: 1px solid #c4ceba; border-radius: 5px; background: #f7f9f3; }
.menu-diagram .menu-bar { display: block; width: 15px; flex-shrink: 0; border-radius: 2px; background: #82956a; }
.menu-diagram .menu-content { display: block; flex: 1; min-width: 0; border-radius: 2px; background: #dfe7d4; }
.menu-right { flex-direction: row-reverse; }
.menu-center { flex-direction: column; }
.menu-center .menu-bar { align-self: center; width: 41px; max-width: 100%; height: 7px; }
.menu-none .menu-bar { display: none; }
.menu-auto { align-items: center; justify-content: center; border-style: dashed; }
.menu-auto .menu-bar, .menu-auto .menu-content { display: none; }
.menu-auto::before { content: 'おまかせ'; color: #66765b; font-size: 9px; line-height: 1.4; }
.column-diagram { display: grid; grid-template-columns: 1fr; gap: 4px; width: 76px; height: 42px; max-width: 100%; padding: 5px; border: 1px solid #c4ceba; border-radius: 5px; background: #f7f9f3; }
.column-diagram i { display: block; min-width: 0; border-radius: 2px; background: #b1c299; }
.columns-1 i:not(:first-child) { display: none; }
.columns-2 { grid-template-columns: 1fr 1fr; }
.columns-2 i:nth-child(n+3) { display: none; }
.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.columns-auto { place-items: center; border-style: dashed; }
.columns-auto i { display: none; }
.columns-auto::before { content: 'おまかせ'; color: #66765b; font-size: 9px; line-height: 1.4; }
.preference-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.preference-custom label { width: 100%; color: #58664f; font-size: 11px; line-height: 1.7; }
.preference-custom input { flex: 1 1 150px; width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid #cbd4c1; border-radius: 8px; background: #fff; font-size: 16px; line-height: 1.5; }
.preference-custom input::placeholder { color: #7b8773; font-size: 11px; }
.preference-custom button { min-width: 60px; min-height: 44px; padding: 10px 13px; border: 1px solid #879a72; border-radius: 8px; background: #f0f5e6; font-size: 11px; font-weight: 700; line-height: 1.6; }
.preference-custom button:hover { background: #e4edcf; }
.preference-selection-list { margin: 19px 0 0; padding: 12px 14px; border: 1px solid #dce3d2; border-radius: 9px; background: #fff; }
.preference-selection-list dl { margin: 0; }
.preference-selection-list > div, .preference-selection-list dl > div { display: grid; grid-template-columns: minmax(60px, .8fr) minmax(0, 1.8fr); gap: 8px; padding-block: 6px; }
.preference-selection-list dt { margin: 0; color: #65715e; font-size: 10px; font-weight: 400; line-height: 1.7; }
.preference-selection-list dd { min-width: 0; margin: 0; color: #2f402c; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.preference-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.preference-actions > button { min-width: 0; flex: 1 1 125px; min-height: 44px; padding: 11px 13px; font-size: 11px; overflow-wrap: anywhere; }
.preference-progress-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 15px; margin-top: 8px; }
.preference-progress-actions .text-btn { min-height: 44px; font-size: 10px; }
.preference-live { margin: 10px 0 0; color: #4e663c; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.preference-live:empty { display: none; }
.site-preferences button:focus-visible, .preference-details > summary:focus-visible, .consultation-entry button:focus-visible { outline: 3px solid #657f3c; outline-offset: 3px; }
.preference-details > summary:focus-visible { outline-offset: -4px; }

@media (max-width: 520px) {
  .consultation-entry { gap: 7px; margin-bottom: 15px; }
  .consultation-entry button { padding: 10px; font-size: 11px; }
  .site-preferences { margin-bottom: 18px; }
  .preference-details > summary { min-height: 55px; padding: 12px; gap: 8px; }
  .preference-summary-title { font-size: 11px; }
  .preference-count { padding-inline: 6px; font-size: 9px; }
  .preference-body { padding: 14px 12px; }
  .preference-steps { gap: 4px; margin-bottom: 17px; }
  .preference-step { padding: 8px 3px; font-size: 9px; }
  .proto-content .preference-heading h3 { margin-bottom: 6px; font-size: 16px; }
  .preference-heading p { margin-bottom: 14px; font-size: 10px; }
  .preference-options { gap: 7px; }
  .preference-option { min-height: 116px; padding: 12px 10px; }
  .preference-option[aria-pressed='true']::after { top: 7px; right: 7px; width: 17px; height: 17px; font-size: 10px; }
  .option-label { font-size: 11px; }
  .option-detail { font-size: 9px; }
  .font-sample { min-height: 30px; font-size: 21px; }
  .preference-selection-list { padding: 10px; margin-top: 15px; }
  .preference-selection-list > div, .preference-selection-list dl > div { grid-template-columns: minmax(56px, .8fr) minmax(0, 1.7fr); gap: 7px; }
  .preference-selection-list dt { font-size: 9px; }
  .preference-selection-list dd { font-size: 10px; }
  .preference-actions { margin-top: 15px; }
  .preference-actions > button { flex-basis: 100px; padding-inline: 10px; font-size: 10px; }
  .preference-live { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .preference-details > summary::before { transition: none; }
}

/* Budget choices keep common ranges and a precise amount in the same guide. */
.chat-budget { min-width: 0; margin: 0 0 22px; border: 1px solid #cfd8c3; border-radius: 14px; background: #fafcf6; overflow: hidden; }
.chat-budget > summary, .chat-budget details > summary { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 15px 17px; cursor: pointer; list-style: none; }
.chat-budget > summary::-webkit-details-marker, .chat-budget details > summary::-webkit-details-marker { display: none; }
.chat-budget > summary::before, .chat-budget details > summary::before { content: ''; width: 7px; height: 7px; flex-shrink: 0; border-right: 1.5px solid #536a39; border-bottom: 1.5px solid #536a39; transform: rotate(-45deg); transition: transform .18s; }
.chat-budget[open] > summary, .chat-budget details[open] > summary { border-bottom: 1px solid #dce3d2; }
.chat-budget[open] > summary::before, .chat-budget details[open] > summary::before { transform: rotate(45deg); }
.budget-summary-title { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.budget-current { flex-shrink: 0; max-width: 50%; margin-left: auto; padding: 3px 8px; border: 1px solid #d4ddc8; border-radius: 99px; color: #50623e; background: #eef3e4; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; text-align: center; }
.chat-budget-body { min-width: 0; padding: 17px 18px 18px; }
.budget-context { margin: 0 0 14px; color: #59684f; font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.chat-budget-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chat-budget-option { position: relative; min-width: 0; min-height: 48px; padding: 11px 29px 11px 12px; border: 1px solid #d4dccb; border-radius: 10px; background: #fff; text-align: left; font-size: 12px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.chat-budget-option:hover { border-color: #8a9e6e; background: #f2f7e8; }
.chat-budget-option[aria-pressed='true'] { border-color: #607747; box-shadow: inset 0 0 0 1px #607747; color: #24351c; background: #e9f2cf; }
.chat-budget-option[aria-pressed='true']::after { content: '✓'; position: absolute; top: 50%; right: 9px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: #526c39; transform: translateY(-50%); font-size: 10px; font-weight: 700; line-height: 1; }
.chat-budget-custom { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #dce3d2; }
.chat-budget-custom label { grid-column: 1 / -1; min-width: 0; color: #58664f; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.chat-budget-custom input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid #cbd4c1; border-radius: 8px; background: #fff; font-size: 16px; line-height: 1.5; }
.chat-budget-custom input::placeholder { color: #7b8773; font-size: 12px; }
.chat-budget-custom .budget-unit { color: #58664f; font-size: 11px; white-space: nowrap; }
.chat-budget-custom button { min-width: 60px; min-height: 44px; padding: 10px 13px; border: 1px solid #879a72; border-radius: 8px; background: #f0f5e6; font-size: 11px; font-weight: 700; line-height: 1.6; }
.chat-budget-custom button:hover { background: #e4edcf; }
.chat-budget-custom small { grid-column: 1 / -1; color: #6d7964; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.chat-budget-live { margin: 11px 0 0; color: #4e663c; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.chat-budget-live:empty { display: none; }
.chat-budget button:focus-visible, .chat-budget > summary:focus-visible, .chat-budget details > summary:focus-visible { outline: 3px solid #657f3c; outline-offset: 3px; }
.chat-budget > summary:focus-visible, .chat-budget details > summary:focus-visible { outline-offset: -4px; }

@media (max-width: 520px) {
  .chat-budget { margin-bottom: 18px; }
  .chat-budget > summary, .chat-budget details > summary { min-height: 55px; padding: 12px; gap: 8px; }
  .budget-summary-title { font-size: 11px; }
  .budget-current { padding-inline: 6px; font-size: 9px; }
  .chat-budget-body { padding: 14px 12px; }
  .budget-context { margin-bottom: 12px; font-size: 10px; }
  .chat-budget-options { gap: 7px; }
  .chat-budget-option { min-height: 46px; padding: 10px 26px 10px 9px; font-size: 11px; }
  .chat-budget-option[aria-pressed='true']::after { right: 7px; width: 16px; height: 16px; }
  .chat-budget-custom { gap: 7px; margin-top: 14px; padding-top: 13px; }
  .chat-budget-custom label { font-size: 10px; }
  .chat-budget-custom button { padding-inline: 10px; font-size: 10px; }
  .chat-budget-live { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-budget > summary::before, .chat-budget details > summary::before { transition: none; }
}

