/* Quiet surfaces, readable controls, and a shorter route to the moment. */
:root{--muted:#62695f;--line:#d9dbd0;--green:#314b3e;--paper:#f7f5ee}
.site-header{background:var(--paper)}
.nav-link{min-height:44px;font-size:13px}
.prototype-pill{min-height:44px}
.workspace{padding-top:36px;padding-bottom:28px}
.steps{font-size:11px;margin-bottom:36px}
.step-number{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;font-size:10px}
.step.active .step-number{background:var(--green);color:#fff;border-color:var(--green)}
.step.complete .step-number{background:#e4e9dd;border-color:#c4cdbb}
.step.active{color:var(--green)}
.intro{font-size:14px;line-height:1.8;max-width:440px}
.eyebrow,.question-count,.meaning-label{font-size:10px}
.input-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px;gap:4px;border:1px solid var(--line);background:#ebece3;border-radius:12px;margin-bottom:18px}
.input-tab{justify-content:center;min-height:46px;padding:10px 4px;font-size:12px;border-radius:8px;gap:6px;white-space:normal;text-align:center}
.input-tab.active{background:#fffdf7;color:var(--green);box-shadow:0 2px 6px #2630260c}
.input-tab.active:after{display:none}
.dropzone{height:170px;border-radius:12px;background:#fffdf780;padding:16px;gap:12px}
.dropzone strong{font-size:14px;font-weight:500}
.dropzone>span{font-size:11px;line-height:1.6;text-align:center}
.dropzone .icon{width:30px;height:30px;color:var(--green)}
.input-hint{font-size:11px;line-height:1.7}
.field-label{font-size:13px}
.language-switch{border-radius:10px;padding:4px}
.language-switch button{min-height:40px;font-size:12px;border-radius:7px;padding:8px 14px}
.primary-button{min-height:52px;border-radius:10px;font-size:14px;font-weight:500;box-shadow:0 3px 8px #2630260d}
.primary-button:disabled{opacity:1;color:#707b6b;background:#e2e6d9;border-color:#d8dfce;box-shadow:none}
.demo-link,.plain-link,.regenerate{min-height:44px;font-size:12px}
.demo-link{margin-top:10px;max-width:100%}
.text-panel textarea{border-radius:12px;min-height:180px;background:#fffdf7;font-size:17px;padding:18px}
.text-panel .counter{font-size:11px}
.voice-panel{border-radius:12px;padding:26px 16px;background:#fffdf780}
.voice-panel p{font-size:12px}
.record-button{min-height:48px;font-size:14px}
.option{min-height:60px;font-size:14px;border-radius:10px;background:#fffdf780}
.option[aria-pressed=true]{border-color:var(--green);background:#e5ecdf}
.custom-answer summary,.reading summary{min-height:44px;padding-top:12px;padding-bottom:12px;font-size:13px;line-height:1.6}
.custom-answer input{font-size:16px;border-radius:10px}
.back-button{font-size:12px;min-height:44px;margin-bottom:14px}
.context-summary{font-size:12px;min-height:48px}
.subtle-note,.prototype-note{font-size:11px}
.result-title{font-size:14px;letter-spacing:0}
.poem{padding:28px 24px;border:1px solid var(--line);border-radius:12px;background:#fffdf7;font-size:clamp(23px,2.2vw,32px);line-height:1.9;overflow-wrap:anywhere}
.meaning{font-size:14px;line-height:1.85}
.reading{font-size:13px}
.icon-button{min-width:48px;min-height:52px;border-radius:10px}
.saved-card{border-radius:12px}
.saved-card-foot{font-size:11px;flex-wrap:wrap}
.saved-card-foot button{min-width:44px;min-height:44px;font-size:12px}
.saved-poem{min-width:0}
.saved-poem p{overflow-wrap:anywhere}
.collection-empty{border-radius:12px;background:#fffdf780}
.collection-empty p{font-size:14px}
.asset-item{border-radius:8px;font-size:12px;padding:4px}
.asset-name{min-height:44px}
.asset-item .remove{min-width:44px;min-height:44px;font-size:20px}
.workspace-footer{font-size:11px;gap:14px;flex-wrap:wrap}
.workspace-footer button{min-height:44px;font-size:11px}
.modal-close{display:grid;place-items:center;min-width:44px;min-height:44px;margin-top:-7px;border:1px solid var(--line);border-radius:50%;flex-shrink:0}
dialog{border-radius:16px}
#steps{scroll-margin-top:100px}
@media(min-width:901px){
 main{grid-template-columns:minmax(300px,.9fr) minmax(500px,1.1fr)}
 .landscape{min-height:calc(100svh - 91px)}
 .landscape>img{object-position:52% 50%}
 .workspace{padding-left:clamp(32px,5vw,90px);padding-right:clamp(32px,5vw,90px)}
 #screen,.steps,.workspace-footer{width:100%;max-width:530px;margin-left:auto;margin-right:auto}
}
@media(max-width:900px){
 .site-header{height:76px;padding:0 24px;gap:16px}
 .site-header nav{gap:22px;margin-right:0}
 .prototype-pill{position:static;color:var(--muted);background:transparent;font-size:9px;padding:8px 12px}
 main{display:flex;flex-direction:column;min-height:calc(100svh - 76px)}
 .landscape{height:190px;min-height:190px;width:100%}
 .landscape>img{object-position:50% 51%}
 .landscape:after{background:linear-gradient(90deg,#18231e80,#18231e00),linear-gradient(0deg,#18231e55,transparent)}
 .landscape-top{left:28px;top:27px}
 .vertical-japanese{font-size:16px;letter-spacing:5px}
 .landscape-kicker,.landscape-foot,.small-rule{display:none}
 .landscape-bottom{left:70px;bottom:28px;right:24px}
 .landscape-bottom p{font-size:32px;line-height:1.2;margin-bottom:12px}
 .landscape-bottom>span{max-width:none;font-size:12px;line-height:1.6}
 .workspace{width:100%;max-width:620px;min-height:0;margin:auto;padding:30px 28px 24px}
 .steps{margin-bottom:28px;font-size:11px}
 .step-divider{max-width:none;margin:0 12px}
 h1{font-size:40px}
 body:not([data-stage=gather]) .landscape{display:none}
 .workspace-footer{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);flex-direction:row;align-items:center}
}
@media(max-width:540px){
 .site-header{height:70px;padding:0 18px;gap:10px;position:sticky;top:0;z-index:3;box-shadow:0 2px 12px #26302608}
 .brand>span{font-size:26px}.brand{gap:7px}.enso{width:28px;height:28px}
 .brand-kanji{display:none}
 .site-header nav{gap:4px;margin-left:auto}
 .nav-link{font-size:12px;padding:10px 8px;border-radius:8px}
 .nav-link.active{background:#e8ecdf}
 .nav-link.active:after{display:none}
 #collection-count{display:inline-flex;font-size:10px;height:18px;min-width:18px}
 .prototype-pill{display:none}
 main{min-height:calc(100svh - 70px)}
 .landscape{height:150px;min-height:150px}
 .landscape-top{top:22px;left:22px}
 .vertical-japanese{font-size:14px;letter-spacing:4px}
 .landscape-bottom{left:56px;bottom:24px;right:20px}
 .landscape-bottom p{font-size:28px;margin:0}
 .landscape-bottom>span{display:none}
 .workspace{padding:24px 20px max(20px,env(safe-area-inset-bottom))}
 .steps{font-size:11px;margin-bottom:26px;letter-spacing:0}
 .step{gap:6px}.step-number{width:24px;height:24px}.step-divider{margin:0 8px}
 .eyebrow{font-size:9px;margin-bottom:14px}
 h1{font-size:clamp(31px,8.6vw,40px);line-height:1.2;margin-bottom:16px}
 .intro{font-size:14px;line-height:1.75;margin-bottom:24px}
 .input-tab{font-size:12px;gap:5px;min-height:46px}
 .input-tab .icon{width:16px;height:16px}
 .dropzone{height:156px}.dropzone strong{font-size:14px}.dropzone>span{font-size:11px}
 .language-row{margin:20px 0}.language-switch button{padding:8px 12px}
 .option{font-size:13px;padding:15px 12px}
 .reflection-question{font-size:28px}
 .result-topline{flex-wrap:wrap;gap:14px;margin-bottom:20px}
 .result-topline .eyebrow{font-size:9px;letter-spacing:1px}
 .result-topline .language-switch button{min-height:40px;padding:8px 12px}
 .poem{padding:24px 16px;font-size:clamp(22px,6.3vw,29px);line-height:1.9;margin:18px 0 24px}
 .poem[lang=ja]{font-size:25px;letter-spacing:2px}
 .result-actions{grid-template-columns:minmax(0,1fr) 48px 48px;gap:8px}
 .result-actions .primary-button{font-size:12px;gap:7px;padding:10px 6px}
 .collection-heading{align-items:flex-end;gap:12px}.collection-heading h1{font-size:32px}
 .saved-card-content{grid-template-columns:72px minmax(0,1fr)}.saved-card img{width:72px}.saved-poem{padding:14px}.saved-poem p{font-size:16px}
 .workspace-footer{font-size:11px;gap:0;align-items:flex-start;flex-direction:column}
 .workspace-footer button{font-size:11px}
 dialog{padding:22px;width:calc(100vw - 24px);max-height:calc(100svh - 24px)}
 .modal-top h2{font-size:26px}
 #toast{font-size:13px;line-height:1.6}
}
@media(max-width:359px){
 .site-header{padding:0 12px}.nav-link{font-size:11px;padding:10px 6px}.brand>span{font-size:24px}.enso{width:24px}
 #collection-count{display:none}.workspace{padding-left:16px;padding-right:16px}
 .input-tab{font-size:11px;gap:4px}.input-tab .icon{width:14px}
 .option-list{grid-template-columns:1fr}
 .field-label{font-size:12px}
}
@media(max-width:540px){.poem{font-size:clamp(18px,5vw,26px);padding:24px 16px}.poem[lang=ja]{font-size:25px}}
