:root{--bg:#F6F1E8;--surface:#FFFFFF;--paper:#FFFCF7;--primary:#A94B3F;--primary-pressed:#8F3E34;--primary-soft:#F0DEDA;--ink:#2A2420;--muted:#6B625A;--subtle:#766B62;--line:#DFD6C8;--sage:#536B58;--sage-soft:#E6EBE2;--ochre:#C3944C;--sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;--serif:"Songti SC","STSong","SimSun","Noto Serif CJK SC",serif;color-scheme:light}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{background:#E3DDD3;color:var(--ink);font-family:var(--sans);font-size:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100dvh;padding:24px;gap:14px;-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:default;background:var(--line);color:var(--muted)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--primary);outline-offset:4px}h1,h2,h3,p{margin:0}svg{display:block}[hidden]{display:none!important}
.device{display:flex;flex-direction:column;width:390px;height:min(844px,calc(100dvh - 100px));min-height:480px;position:relative;background:var(--bg);border:1px solid #C9BEB0;border-radius:36px;overflow:hidden}.prototype-note{font-size:11px;color:var(--muted);line-height:1.6;text-align:center}.prototype-note a{text-decoration:underline;text-underline-offset:3px}.system-chrome{flex:0 0 94px}.status-bar{height:50px;display:flex;justify-content:space-between;align-items:flex-end;padding:0 28px 9px;font-size:14px;font-weight:600}.status-icons{display:flex;align-items:center;gap:6px}.status-icons svg{width:18px;height:13px}.battery{width:22px;height:11px;border:1px solid var(--ink);border-radius:3px;position:relative;padding:2px}.battery:before{content:"";display:block;height:5px;width:14px;background:var(--ink);border-radius:1px}.battery:after{content:"";position:absolute;width:2px;height:4px;background:var(--ink);top:2.5px;right:-4px;border-radius:1px}.native-nav{height:44px;display:flex;align-items:center;justify-content:center;position:relative}.native-title{max-width:calc(100% - 192px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:500}.nav-back{position:absolute;left:8px;top:0;width:44px;height:44px;display:grid;place-items:center}.nav-back svg{width:20px;height:20px}.wechat-capsule{position:absolute;right:12px;width:80px;height:30px;border:1px solid var(--line);border-radius:16px;display:flex;align-items:center;justify-content:space-evenly;background:var(--paper)}.wechat-dots{font-size:19px;line-height:1;margin-top:-7px}.wechat-divider{height:15px;width:1px;background:var(--line)}.wechat-ring{width:13px;height:13px;border:1.5px solid var(--ink);border-radius:50%;display:grid;place-items:center}.wechat-ring:after{content:"";width:5px;height:5px;background:var(--ink);border-radius:50%}
.page{flex:1;min-height:0;overflow:auto;padding:20px 24px;scrollbar-width:none}.page::-webkit-scrollbar{display:none}.home-indicator{flex:0 0 24px;display:flex;align-items:center;justify-content:center}.home-indicator:after{content:"";display:block;width:120px;height:4px;border-radius:4px;background:var(--ink)}.eyebrow{font-size:11px;line-height:1.6;color:var(--primary);font-weight:500}.section-heading{font-size:15px;line-height:1.5;font-weight:500}.icon{width:20px;height:20px;flex:0 0 auto}.avatar{width:38px;height:38px;border-radius:50%;background:#EBD9BA;display:grid;place-items:center;font-size:16px;flex:0 0 auto}.action-footer{flex-shrink:0;padding:16px 24px;background:var(--bg);border-top:1px solid var(--line)}.btn-primary,.btn-secondary{min-height:52px;border-radius:12px;padding:12px 18px;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:500;font-size:15px;width:100%;border:1px solid transparent}.btn-primary{background:var(--primary);color:white}.btn-primary:hover,.btn-primary:active{background:var(--primary-pressed)}.btn-secondary{background:transparent;border-color:var(--line);color:var(--ink)}.btn-secondary:hover{background:var(--paper)}.text-button{min-height:44px;min-width:44px;border:0;padding:8px;background:transparent;color:var(--muted)}.brand-symbol{width:23px;height:23px;color:var(--primary);flex:0 0 auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.toast{position:absolute;bottom:128px;left:24px;right:24px;text-align:center;background:var(--ink);color:var(--paper);padding:12px 16px;border-radius:10px;font-size:12px;z-index:20;line-height:1.6}
.home-page{display:flex;flex-direction:column;padding-top:24px}.brand-line{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px}.brand-line:after{content:"";height:1px;width:36px;background:var(--line);margin-left:5px}.home-intro{position:relative;padding:25px 0 28px}.home-intro h1{font-family:var(--serif);font-weight:400;font-size:34px;line-height:1.5;position:relative;z-index:1}.home-intro h1 em{font-style:normal;color:var(--primary)}.home-intro p{color:var(--muted);font-size:13px;line-height:1.8;margin-top:14px;max-width:24em}.home-intro:after{content:"”";position:absolute;right:0;top:9px;font-family:Georgia,serif;font-size:112px;line-height:1;color:var(--primary-soft)}.home-foot{margin-top:auto;padding:24px 0 6px;display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);line-height:1.6}.home-foot svg{width:13px;height:13px}
.setup-page{padding-top:18px}.setup-heading{margin-top:10px;font-size:29px;font-family:var(--serif);font-weight:400;line-height:1.5}.situation{margin:19px 0 26px;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:flex-start;gap:12px}.situation h2{font-size:13px;font-weight:500;margin:0 0 5px}.situation p{font-size:12px;line-height:1.8;color:var(--muted)}.situation p+p{margin-top:4px;color:var(--subtle)}.goal-fieldset{border:0;padding:0;margin:0;min-width:0}.goal-fieldset legend{padding:0;margin-bottom:14px;font-size:15px;font-weight:500}.goal-option{display:block;position:relative;margin-top:10px;cursor:pointer}.goal-option:first-of-type{margin-top:0}.goal-option input{position:absolute;left:17px;top:20px;width:18px;height:18px;margin:0;accent-color:var(--primary);z-index:1}.goal-copy{display:block;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:17px 14px 17px 46px;min-height:80px}.goal-copy strong{display:block;font-size:14px;font-weight:400;line-height:1.6}.goal-copy small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.6}.goal-option input:checked + .goal-copy{border-color:var(--primary);background:var(--primary-soft)}.goal-option input:checked + .goal-copy strong{font-weight:500}.goal-option input:focus-visible{outline-offset:5px}.setup-expect{display:flex;gap:7px;margin:22px 0 0;font-size:11px;color:var(--muted);line-height:1.7}.setup-expect svg{width:15px;height:15px;margin-top:2px;flex-shrink:0}.footer-caption{display:flex;justify-content:flex-end;font-size:11px;line-height:1.6;color:var(--muted);margin-bottom:11px}
@media(max-width:430px){body{padding:0;gap:0;background:var(--bg)}.device{width:100%;height:100dvh;min-height:0;border:0;border-radius:0}.prototype-note{display:none}.home-indicator{flex-basis:max(24px,env(safe-area-inset-bottom))}}
body.embedded{padding:0;gap:0;background:var(--bg)}body.embedded .device{width:100%;height:100dvh;min-height:0;border:0;border-radius:0}body.embedded .prototype-note{display:none}
@media(max-width:350px){.page{padding-left:20px;padding-right:20px}.home-intro h1{font-size:29px}.goal-copy strong{font-size:13px}.goal-copy{padding-left:43px;padding-right:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.situation .situation-role { margin-top: 6px; font-size: 11px; color: var(--subtle); }

.setup-page .setup-heading { margin-top: 7px; }
.setup-page .situation { margin: 14px 0 18px; padding-block: 13px; }
.setup-page .goal-copy { min-height: 72px; padding-block: 13px; }
.setup-page .goal-option input { top: 16px; }

.opening-details {
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.opening-details summary {
  display: block;
  padding-bottom: 11px;
  cursor: pointer;
  list-style: none;
}
.opening-details summary::-webkit-details-marker { display: none; }
.opening-details summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.opening-summary-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.opening-edit { color: var(--primary); font-weight: 500; white-space: nowrap; }
.opening-edit span:last-child, .opening-details[open] .opening-edit span:first-child { display: none; }
.opening-details[open] .opening-edit span:last-child { display: inline; }
.opening-preview {
  display: block;
  padding-left: 9px;
  border-left: 2px solid var(--primary-soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.opening-details[open] summary { padding-bottom: 0; }
.opening-details[open] .opening-preview { display: none; }
.opening-details textarea {
  display: block;
  width: 100%;
  min-height: 66px;
  max-height: 140px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.opening-details p { margin: 6px 0 11px; font-size: 11px; line-height: 1.6; color: var(--subtle); }
.opening-reset { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--primary); font-size: 12px; }
.setup-footer-caption { justify-content: space-between; gap: 8px; }
.setup-footer-caption [data-practice-duration] { white-space: nowrap; }
.setup-status:not(:empty) { margin-top: 9px; color: var(--primary); font-size: 12px; }
