/* Shared navigation, visible press states, and keyboard focus. */
:root{--kp-control-shadow:#cfe4d9;--kp-sticky-top:calc(68px + env(safe-area-inset-top,0px))}
html{scroll-padding-top:var(--kp-sticky-top)}
button,a[href]{touch-action:manipulation}
button:not(:disabled):focus-visible,a[href]:focus-visible{outline:3px solid #23866c;outline-offset:4px}
button:not(:disabled).is-pressed,a[href].is-pressed{transform:translateY(3px) scale(.985)!important;filter:brightness(.93);box-shadow:inset 0 2px 4px #17493626!important}
.ps-back,.pr-back,.kp-nav-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:46px;min-height:46px;padding:10px;border:1px solid #d4e7dc;border-radius:15px;background:#fff;color:#28755e;box-shadow:0 3px 0 #dbe8e0;text-decoration:none}
.ps-back svg,.pr-back svg,.kp-nav-icon svg{display:block;flex:0 0 24px;width:24px;height:24px;max-width:none;pointer-events:none}
.ps-top{height:var(--kp-sticky-top);min-height:var(--kp-sticky-top);padding-left:16px;padding-right:16px;border-bottom:1px solid #e0ebe3}
.ps-back{flex:0 0 46px;width:46px;height:46px}
.ps-progress{min-width:0}.ps-count{min-width:48px;font-size:13px;color:#486b59}
.fx-head,.fx-card,.ps-question-card{scroll-margin-top:calc(var(--kp-sticky-top) + 12px)}
.fx-button,.fx-primary,.fx-secondary{transition:transform .08s ease,box-shadow .08s ease,background-color .08s ease;box-shadow:0 3px 0 var(--kp-control-shadow);-webkit-tap-highlight-color:rgba(35,134,108,.16)}
.fx-record-btn{box-shadow:0 3px 0 #e7cfc5}
.fx-button:not(:disabled):active,.fx-primary:not(:disabled):active,.fx-secondary:not(:disabled):active{transform:translateY(3px) scale(.985);box-shadow:inset 0 2px 4px #17493626}
.fx-button:disabled,.fx-primary:disabled{opacity:.45;cursor:default;box-shadow:none}
.fx-record-btn.is-recording{background:#b94f43;color:#fff;box-shadow:0 3px 0 #943d34}
.fx-record-btn[aria-busy="true"]{background:#f8e8dc;color:#975c3e}
.fx-daily-dock .fx-daily-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.fx-daily-nav .fx-nav-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:50px;min-height:50px;margin:0;padding:10px 12px;border:1px solid #cce4d7;border-radius:16px;background:#e8f5ed;color:#26745c;font-size:15px;font-weight:850;line-height:1.3;box-shadow:0 3px 0 #cddfd2}
.fx-daily-dock .fx-controls .fx-button{min-height:48px;border-radius:16px}
.fx-daily-dock .fx-record{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.fx-daily-dock .fx-record button{min-height:48px;margin:0;flex:1 1 150px;max-width:350px}
.fx-daily-dock .fx-record p{flex:1 0 100%;min-height:32px;margin:3px 0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.fx-daily-dock .fx-record [hidden]{display:none!important}
.fx-follow-actions>.fx-button{min-height:48px}
@media(prefers-reduced-motion:reduce){button,a{transition:none!important}}

.fx-record-btn{color:#934d3b}.fx-primary{background:linear-gradient(110deg,#167b61,#216e57)}

.fx-orb.fx-xiaoyin{width:104px;height:104px;background:transparent}.fx-xiaoyin>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:24px}

/* Stable session header: one position indicator, clear native SVG back icon. */
.ps-top .ps-progress{display:none!important}
.ps-top .ps-count{margin-left:auto;min-width:64px;font-size:15px}
.ps-top .ps-back,.pr-top .pr-back{width:46px;height:46px;min-width:46px;min-height:46px;padding:10px;border:1px solid #c8dfd1;border-radius:15px;background:#fff;color:#28755e;box-shadow:0 3px 0 #dbe8e0}
.ps-choice:disabled.is-correct,.ps-choice:disabled.is-wrong{opacity:1}
.ps-choice:disabled:not(.is-correct):not(.is-wrong){opacity:1}
.ps-top .ps-back:active,.pr-top .pr-back:active{transform:translateY(3px);box-shadow:inset 0 2px 4px #17493626}
/* Only the daily phrase screen uses the condensed header. */
body:has(.is-daily-session) .ps-top{height:calc(env(safe-area-inset-top) + 52px);min-height:calc(env(safe-area-inset-top) + 52px)}

.kp-story-back{gap:8px}.kp-story-back svg{width:24px;height:24px;flex:0 0 24px}
.fx-choice:disabled.is-right,.fx-choice:disabled.is-wrong{opacity:1}
.fx-follow-actions>[hidden]{display:none!important}
.fx-follow-actions>.fx-record-btn:has(+[hidden]){grid-column:1/-1}
.fx-daily-dock .fx-nav-button:disabled{opacity:.45;box-shadow:none;cursor:default}

/* Keep acknowledgement visible when an answer locks its button immediately. */
button.is-pressed,a[href].is-pressed{transform:translateY(4px) scale(.975)!important;filter:brightness(.88)!important;box-shadow:inset 0 3px 5px #17493635!important}
