/* v6: four visible topics, focused mobile tools, and a compact conversation. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.v6 .launchers.guest-dock{padding:0;border:0;background:transparent;box-shadow:none}
.v6 .login-launcher{display:flex;align-items:center;gap:10px;border:1px solid var(--pk-night);background:var(--pk-night);color:var(--pk-white);min-height:54px;border-radius:28px;padding:14px 21px;font-size:16px;font-weight:650;box-shadow:var(--shadow)}
.v6 .login-launcher:hover{background:var(--pk-dusk)}.v6 .login-launcher .icon{width:20px;height:20px}
.v6 #login-dialog{max-width:390px}.v6 #login-dialog p{font-size:16px}.v6 #login-dialog .note{font-size:14px}
.v6 #login-dialog .login-demo-note{font-size:13px;color:var(--pk-dusk);padding:12px;border-radius:10px;background:var(--pk-mist);margin:20px 0 16px}
.v6 .login-actions{display:grid;gap:6px}.v6 .login-actions button{width:100%;min-height:48px}
.v6 .auth-replay{display:block;margin-top:16px;padding:12px 0;font-size:13px;color:var(--pk-dusk)}
.v6 .topic-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 27px;border-bottom:1px solid var(--border)}
.v6 .topic-choice{display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;padding:12px 8px;font-size:15px;min-height:55px;color:var(--pk-dusk)}
.v6 .topic-choice[aria-pressed=true]{border-bottom-color:var(--pk-amber-btn);color:var(--pk-night);font-weight:700;background:var(--soft)}
.v6 .topic-number{font-size:12px;font-variant-numeric:tabular-nums;font-weight:500}
.v6 .page-guide{margin:27px 0 0;border-top:0}
.v6 .page-guide>summary{font-weight:500;color:var(--pk-dusk)}
.v6 .lesson-practice{margin-top:16px}
.v6 .panel-head{padding:7px 9px;min-height:58px;gap:4px;background:var(--pk-white)}
.v6 .panel-head h2{font-size:15px;margin:0}
.v6 .panel-back,.v6 .tool-switch{font-size:13px;padding:8px;white-space:nowrap}
.v6 .panel-back{margin-right:5px}
.v6 .demo-tag{font-size:11px;color:var(--pk-dusk);font-weight:400;margin-left:3px}
.v6 .chat-context{display:flex;align-items:center;gap:4px;padding:0 10px 0 17px;background:var(--pk-mist);border-bottom:1px solid var(--border);font-size:12px;color:var(--pk-dusk);min-height:42px;flex-shrink:0}
.v6 .chat-context span{flex:1}.v6 .chat-context button{padding:5px;min-width:44px;min-height:42px;font-size:20px}
.v6 .messages{padding:20px 17px;max-height:none;min-height:0;scroll-behavior:smooth}
.v6 .chat-welcome{padding:20px 0 12px;max-width:420px;margin:auto}
.v6 .welcome-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--pk-night);color:var(--pk-white);font-size:10px;font-weight:700;margin-bottom:20px}
.v6 .chat-welcome h3{font-size:23px;letter-spacing:-.4px;margin-bottom:7px}
.v6 .chat-welcome p{font-size:14px;color:var(--pk-dusk);margin-bottom:25px}
.v6 .suggestion{background:var(--pk-mist);font-size:14px;line-height:1.6;padding:12px 14px;margin:0;border-color:transparent}
.v6 .suggestion::before{content:'試問　';color:var(--pk-dusk);font-size:12px}
.v6 .composer{padding:10px 14px 11px}
.v6 .composer textarea{min-height:46px;max-height:96px;resize:none;line-height:1.5;padding:10px 12px;overflow:auto}
.v6 .composer-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:8px}
.v6 .composer .send{margin:0;width:auto;font-size:14px;padding:10px 13px;min-height:44px;white-space:nowrap}
.v6 .composer #chat-report{margin:0;font-size:12px;padding:8px 2px;min-height:44px}
.v6 .error:empty{display:none}.v6 .error{font-size:13px;line-height:1.5;margin:8px 0 0}
.v6 .user-message{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 22px auto;padding:10px 13px;border-radius:16px 16px 3px 16px;background:var(--pk-mist);width:fit-content;max-width:90%;line-height:1.65}
.v6 .answer-message{font-size:15px;line-height:1.7;margin-bottom:26px;overflow-wrap:anywhere}
.v6 .answer-message p{margin:0 0 12px;white-space:pre-wrap}.v6 .answer-message .note{font-size:12px}
.v6 .answer-steps{padding-left:23px;margin:0 0 13px;line-height:1.85}
.v6 .answer-primary{display:block;width:100%;font-size:14px;text-align:center;min-height:46px;margin:16px 0 4px}
.v6 .answer-secondary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:7px}.v6 .answer-secondary button{padding:7px 4px;color:var(--pk-dusk);font-size:13px;text-decoration:underline;text-underline-offset:4px}
.v6 .answer-cost{margin-top:12px}.v6 .feedback{display:flex;gap:8px;align-items:center;margin-top:6px;color:var(--pk-dusk)}
.v6 .feedback button{min-height:44px;padding:7px 9px;font-size:12px}.v6 .feedback-next{font-size:13px}.v6 .feedback-next p{font-size:13px}
.v6 .draft-preview{margin:10px 0;padding:12px 15px;border-left:3px solid var(--border);background:var(--pk-mist);white-space:pre-wrap;font-size:14px}
.v6 .pending-message{color:var(--pk-dusk)}
.v6 .balance-row{display:flex;justify-content:space-between;align-items:center;padding:16px;background:var(--pk-mist);border-radius:12px;margin-bottom:20px}
.v6 #chat-info-dialog .details{padding:9px 0;margin-top:20px}.v6 #chat-info-dialog .details summary{display:flex;align-items:center}.v6 #chat-info-dialog .details summary::after{content:'＋';margin-left:auto}.v6 #chat-info-dialog .details[open] summary::after{content:'−'}
.v6 #chat-info-dialog .details label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0}.v6 #chat-info-dialog input,.v6 #chat-info-dialog select{min-height:44px;font-size:16px;width:180px;max-width:65%}
.v6 #scenario-tools{padding:16px 0 0;border-top:1px solid var(--border);border-bottom:0}.v6 #scenario-tools select{max-width:none;flex:1}
.v6 .practice-lead{padding:14px 16px 12px}.v6 .practice-lead h3{font-size:17px;margin:0 0 8px}.v6 .practice-lead p{font-size:11px;margin-bottom:5px}.v6 .practice-step{min-height:0;font-size:13px}
.v6 .phone-footer{padding-top:5px;padding-bottom:8px}.v6 .phone-footer button{font-size:12px;padding:8px 3px}
.v6 .phone-wrap{overscroll-behavior:contain}.v6 .panel{max-height:calc(100dvh - 136px)}
.v6.short-view .panel{display:flex;overflow:hidden}.v6.short-view .phone-wrap{overflow:auto}.v6.short-view .messages{min-height:0;max-height:none}
@media(max-width:1023px){
 .v6 .panel,.v6 .phone-panel,.v6 .chat-panel,.v6.short-view .panel{top:var(--view-top,0px);bottom:auto;left:0;right:0;width:100%;height:var(--view-height,100dvh);max-height:none;border:0;border-radius:0;box-shadow:none;display:flex;overflow:hidden}
 .v6 .panel-head{padding-top:max(6px,env(safe-area-inset-top));padding-left:8px;padding-right:10px;min-height:57px}
 .v6 .panel-head h2{font-size:16px}.v6 .panel-back{margin-right:10px;font-size:14px}.v6 .tool-switch{font-size:14px}
 .v6 .composer{padding:10px 16px max(11px,env(safe-area-inset-bottom));flex-shrink:0}
 .v6 .messages{flex:1;min-height:0;max-height:none;padding:22px 20px}
 .v6 .chat-welcome{padding-top:23px}.v6 .chat-panel.composing .chat-context{display:none}
 .v6 .phone-wrap{padding:0;flex:1;min-height:0;overflow:auto}.v6 .phone-shell{border:0;border-radius:0;box-shadow:none;max-width:none;background:var(--pk-mist)}
 .v6 .phone-top{display:none}.v6 .phone-screen,.v6.short-view .phone-screen{height:max(350px,calc(var(--view-height,100dvh) - 216px));background-size:180% auto;background-position:50% 38%}
 .v6 .practice-lead{background:var(--pk-white);padding:10px 16px 13px}.v6 .practice-lead h3{font-size:17px;margin-bottom:6px}.v6 .progress{margin-top:9px}
 .v6 .phone-footer{background:var(--pk-white);padding:3px 16px max(5px,env(safe-area-inset-bottom))}
 .v6 .app-top{padding-left:15px;padding-right:15px}.v6 .app-brand{font-size:15px}.v6 .app-bottom{left:14px;right:14px;bottom:12px}
 .v6 .app-overlay{padding:15px}.v6 .app-dialog{max-width:460px;margin:auto}
 .v6 .answer-message,.v6 .user-message{max-width:650px}.v6 .user-message{max-width:min(90%,600px)}
 .v6 .answer-primary{max-width:420px}.v6 .chat-context{padding-left:20px}
}
@media(max-width:700px){
 .v6 .workspace{padding-top:21px}.v6 .workspace .intro{margin-bottom:21px}.v6 .workspace .intro h1{font-size:24px}
 .v6 .topic-nav{gap:0;margin-bottom:23px}.v6 .topic-choice{flex-direction:column;gap:3px;min-height:62px;font-size:14px;padding:6px 2px 9px}.v6 .topic-number{font-size:11px}
 .v6 .lesson-heading h2{font-size:18px}.v6 .workspace .player{min-height:210px}.v6 .page-guide{margin-top:20px}.v6 .page-guide>summary{font-size:13px}
 .v6 .lesson-practice{background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:14px 0 17px}.v6 .lesson-practice>div{flex-basis:100%;font-size:14px}.v6 .lesson-practice button{font-size:13px}
 .v6 .foot{margin-top:7px}.v6 #report-dialog{padding:20px}.v6 #report-text{min-height:180px}
}
@media(max-width:1023px) and (max-height:500px){
 .v6 .panel-head{min-height:50px;padding-top:3px;padding-bottom:3px}.v6 .chat-context{display:none}.v6 .messages{padding-top:14px;padding-bottom:14px}
 .v6 .chat-welcome{padding:0}.v6 .welcome-mark{display:none}.v6 .chat-welcome h3{font-size:20px}.v6 .chat-welcome p{margin-bottom:10px}
 .v6 .composer{padding-top:7px;padding-bottom:7px}.v6 .composer textarea{max-height:80px}.v6 .composer-actions{margin-top:5px}.v6 .practice-lead{padding:7px 16px}.v6 .practice-lead p{display:none}
}
