/* HAYATO Learning Studio · V361.9. Local fonts, real state, quiet motion. */
:root{--bg:#f6f7f9;--panel:#fff;--ink:#202d3c;--muted:#607080;--line:#dce2e9;--cyan:#415cdb;--blue:#415cdb;--radius:18px;color-scheme:light}
html,body{background:var(--bg);color:var(--ink)}
body{font-family:Inter,"BIZ UDPGothic","Hiragino Sans","Yu Gothic UI",Meiryo,system-ui,sans-serif;letter-spacing:.015em;line-height:1.8}
body::before{display:none}
button{background:#fff;color:#344354;border-color:var(--line);border-radius:11px;transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease}
button:hover:not(:disabled){background:#f1f4f9;border-color:#aebccc}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled{opacity:.5;cursor:default}
:is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #637af0;outline-offset:3px}
a{color:#3655c2}
textarea,input,select{color:var(--ink);background:#fff;border-color:#bdc8d4;caret-color:#415cdb}
textarea::placeholder,input::placeholder{color:#718093}
button.primary-button,.primary-button,.send-button{background:#3e58d4;color:#fff;border:1px solid #3e58d4;box-shadow:0 3px 8px #304ab41a}
button.primary-button:hover:not(:disabled),.send-button:hover:not(:disabled){background:#3048bc;color:#fff;border-color:#3048bc}
#hayato-root{max-width:1600px;padding:0 32px;overflow:hidden}
.hayato-header{height:80px;min-height:80px;background:transparent;border-bottom:1px solid #e1e5eb;padding:0 4px}
.hayato-brand{gap:11px;color:#202d3c}
.hayato-brand img{width:38px;height:38px;border:0;border-radius:11px;background:#fff}
.hayato-brand>span{font-size:19px;font-weight:750;letter-spacing:.17em}
.hayato-brand small{font-size:10px;font-weight:400;letter-spacing:.06em;margin-top:3px;color:#68778a}
.header-caption{color:#798696;font-size:9px;letter-spacing:.14em;margin-right:20px}
.account-entry{padding:7px 13px;background:#fff;border:1px solid #e0e5ec;box-shadow:0 2px 3px #20304003;min-width:110px;border-radius:12px}
.account-entry>span:first-child{font-size:12px;color:#364355}
.account-entry small{font-size:10px;color:#6b7889}
#hayato-root .hayato-layout{display:grid;grid-template-columns:230px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:32px;padding-top:0}
#hayato-root .hayato-presence{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;height:auto;min-height:0;gap:0;padding:32px 22px 16px 4px;border-right:1px solid #e1e5eb;border-bottom:0;margin:0;overflow-y:auto;scrollbar-width:thin}
.presence-caption{display:block;color:#7b8897;margin:0 0 25px}
.presence-caption .eyebrow{font-size:9px;letter-spacing:.14em}
.presence-companion{display:flex;gap:12px;align-items:center}
.studio-symbol{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:14px;background:#e7ebff;color:#4c60c7;border:1px solid #dce2fc}
.studio-symbol svg{width:30px;height:30px;stroke-width:1.6}
.studio-symbol img,.message-avatar img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit;background:#fff}
#hayato-root .presence-identity{display:flex;flex-direction:column;align-items:flex-start;text-align:left;margin:0;max-width:none;min-width:0}
#hayato-root .presence-identity h1{order:0;font-size:16px;font-weight:650;letter-spacing:.03em;line-height:1.5}
#hayato-root .presence-status{margin:4px 0 0;padding:0;border:0;background:transparent;color:#537467;font-size:11px;letter-spacing:.02em;line-height:1.5}
.presence-status::before{width:5px;height:5px;background:#40836d;box-shadow:none}
.presence-intro{font-size:11px;line-height:1.9;color:#758191;margin:19px 0 0}
#hayato-root .presence-context{width:100%;max-width:100%;margin:25px 0 0;padding:14px;border:1px solid #e0e4ed;border-radius:12px;background:#fff;box-shadow:0 2px 4px #1b304008}
#hayato-root .presence-context .eyebrow{display:block;font-size:10px;letter-spacing:.02em;color:#6a7688}
#hayato-root .presence-context p{font-size:14px;white-space:normal;line-height:1.6;font-weight:600;margin:7px 0;color:#30466a}
#hayato-root .presence-context small{font-size:10px;line-height:1.7;color:#7a8695}
.studio-guide{margin-top:38px;padding-top:25px;border-top:1px solid #e1e5eb}
.studio-guide>.eyebrow{font-size:10px;letter-spacing:.01em;color:#6c7989}
.studio-guide ol{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:24px}
.studio-guide li{display:flex;gap:12px;align-items:baseline}
.studio-guide li>span{font-size:10px;color:#8794a8;font-variant-numeric:tabular-nums}
.studio-guide b{font-size:11px;font-weight:550;display:block;color:#4e5d70}
.studio-guide small{display:block;font-size:10px;color:#748295;margin-top:3px}
#hayato-root .presence-bottom{display:flex;margin-top:auto;padding:32px 0 8px;gap:10px;letter-spacing:0;align-items:flex-start;color:#758195}
.presence-bottom p{font-size:11px;line-height:1.9;margin:0}.studio-small-mark{color:#8b96bd;font-size:20px}
#hayato-root .conversation-column{display:flex;flex-direction:column;min-height:0;min-width:0;padding-bottom:max(16px,env(safe-area-inset-bottom));position:relative}
#hayato-root .conversation-scroll{display:block;flex:1;overflow-y:auto;overflow-x:hidden;min-height:0;padding:32px max(8px,calc((100% - 800px)/2)) 24px;scroll-behavior:auto;scrollbar-color:#ccd3df transparent;scrollbar-gutter:stable}
.welcome-heading{padding:clamp(30px,7vh,80px) 0 25px;animation:studio-enter .5s ease both}
.welcome-pill{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:#65759a;letter-spacing:.025em}
.welcome-pill>span{font-size:17px;color:#7c8ac3}
.welcome-heading h2{font-size:clamp(30px,3.1vw,44px);line-height:1.55;font-weight:650;letter-spacing:.035em;margin:19px 0 21px;color:#23334a}
.welcome-heading h2 span{display:inline;color:#526ace;background:none;-webkit-text-fill-color:currentColor;white-space:normal}
#hayato-welcome h2>br{display:initial}
.welcome-heading p{font-size:13px;line-height:2;color:#748093;margin:0}
.welcome-starters{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:34px;max-width:700px}
.welcome-starters button{display:grid;grid-template-columns:1fr auto;position:relative;text-align:left;padding:19px 20px;background:#fff;border:1px solid #e1e5ed;border-radius:16px;box-shadow:0 3px 7px #27375203}
.welcome-starters button:hover{background:#fff;border-color:#a9b5e8;box-shadow:0 8px 20px #4254a30a;transform:translateY(-2px)}
.starter-icon{grid-column:1;font:500 16px ui-monospace,monospace;color:#6579bc;margin-bottom:17px}
.welcome-starters b{grid-column:1;font-size:13px;font-weight:600;color:#354761}
.welcome-starters small{grid-column:1;font-size:11px;color:#758398;margin-top:4px}
.starter-arrow{grid-column:2;grid-row:1/4;align-self:end;color:#8c98b0}
.welcome-heading .welcome-reassurance{font-size:10px;margin-top:17px;color:#808b9c}
#hayato-root .conversation-thread{padding:0;overflow:visible;max-height:none;border:0}
.conversation-messages{gap:30px}
.message{animation:none}
.message.is-new{animation:studio-enter .24s ease both}
.message-label{font-size:10px;font-weight:650;letter-spacing:.11em;color:#6a7790;margin:0 0 11px;gap:8px}
.message-label::before{display:none}
.message-avatar{width:25px;height:25px;background:#e9edfd;color:#6579bd;border:1px solid #e0e6fb;border-radius:8px;display:grid;place-items:center;font-size:12px;letter-spacing:0}
.message-text{font-size:15px;line-height:1.95;color:#344357;white-space:pre-wrap;overflow-wrap:anywhere}
.message.user{max-width:85%;background:#eaf0fa;border:1px solid #e3eaf5;border-radius:18px 18px 5px 18px;padding:12px 18px;box-shadow:none}
.message.user .message-text{color:#3a4c66;font-size:14px;line-height:1.85}
.message.local .message-text{color:#6c798b;font-size:13px}
.message-rich{white-space:normal}.message-rich p{margin:0 0 13px;white-space:pre-wrap}.message-rich>:last-child{margin-bottom:0}
.message-rich h3{font-size:15px;letter-spacing:0;margin:19px 0 8px}.message-rich :is(ol,ul){margin:10px 0 15px;padding-left:24px}.message-rich li{padding-left:4px;margin:5px 0;white-space:pre-wrap}
.message-rich code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em;background:#edf0f7;padding:2px 5px;border-radius:4px;color:#3c519b;overflow-wrap:anywhere}
.message-code{border:1px solid #dfe5ef;border-radius:12px;overflow:hidden;margin:18px 0;background:#f8f9fc}
.message-code-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e3e8f0;padding:1px 12px;color:#69758a;font-size:10px;text-transform:uppercase;background:#f0f3f9}
.message-code-head button{font-size:11px;min-height:44px;border:0;background:transparent;padding:5px 9px}
.message-code pre{margin:0;padding:16px;overflow-x:auto;white-space:pre;line-height:1.7;font-size:13px;tab-size:2}.message-code code{background:none;padding:0;color:#30456c;font-size:inherit;overflow-wrap:normal}
.copy-note{font-size:11px;color:#805b22;padding:0 14px}
.conversation-history{margin:0 0 28px;border:0;background:transparent}
.conversation-history>summary{font-size:11px;color:#7d899a;border-bottom:1px solid #e7eaf0;padding:8px 2px 12px;background:transparent}
.conversation-history[open]{border:0}.conversation-history .conversation-messages{padding:22px 0 10px}
.hayato-public-info{background:transparent;border:0;padding:0;margin-top:35px;color:#7b8796;font-size:11px}
.hayato-public-info summary{font-size:10px;color:#7b8796;min-height:44px;display:list-item;padding:10px 0}
#hayato-root .hayato-workspace{display:flex;overflow:visible;max-height:none;padding:0;gap:18px;margin:26px 0 0}
#hayato-root .hayato-workspace:empty{display:none}
.work-card,.practice-card{background:#fff;border:1px solid #dfe5ed;border-radius:18px;box-shadow:0 5px 18px #23385405;padding:22px;color:#24364f;animation:studio-enter .25s ease}
.work-card h3{font-size:17px;line-height:1.65;letter-spacing:.01em}.work-card p{color:#516177;font-size:14px;line-height:1.95}
.work-card .card-kicker{color:#637ab3;font-size:10px;letter-spacing:.06em}
.work-card .card-note{font-size:12px!important;color:#697a91!important}
.card-actions{gap:10px}.card-actions button{font-size:13px;flex-grow:0}
.video-card{padding:0;overflow:hidden}.video-copy{padding:20px 23px}.video-stage{border-radius:0;min-height:0;background:#eef1f8}.video-play{text-shadow:none;color:#2d426b}.play-disc{border:0;box-shadow:0 5px 20px #31477518}
.question-prompt,.practice-original{background:#f4f6fb;border-color:#dbe2ee}.practice-next-action{color:#355584!important;background:#eef3fc;padding:14px;border:0;border-radius:10px}
.hayato-entry-note{background:#fff;border-color:#dce4ef;margin-bottom:20px;color:#566b82}
#hayato-root .conversation-bottom{position:relative;background:var(--bg);padding:16px max(8px,calc((100% - 800px)/2)) 0}
.hayato-composer{display:flex;align-items:flex-end;gap:8px;padding:11px 11px 11px 18px;background:#fff;border:1px solid #d4dce7;border-radius:20px;box-shadow:0 6px 25px #30487208;transition:box-shadow .2s,border-color .2s}
.hayato-composer:focus-within{border-color:#9eaee3;box-shadow:0 0 0 3px #5770dc0a,0 6px 25px #30487208}
.hayato-composer textarea{min-height:44px;height:44px;max-height:156px;padding:8px 0;border:0;background:transparent;outline:0;font-size:16px;line-height:1.7;resize:none;border-radius:0;box-shadow:none!important;overflow-y:auto}
.composer-actions{gap:6px;align-self:flex-end}.composer-actions button{height:44px;min-height:44px;border-radius:12px}
.attach-button{padding:10px;width:42px;background:transparent;border:0;color:#76859b}.attach-button svg{width:22px;height:22px}
.voice-start{font-size:11px;padding:10px;background:#f0f3fb;color:#526ac2;border:0}.voice-start svg{width:21px;height:21px}.voice-start:hover:not(:disabled){background:#e6ebfc;color:#3e58ba}
.send-button{width:44px;height:44px;padding:0;border-radius:12px}
.composer-foot{font-size:9px;color:#7e8999;line-height:1.5;margin:9px 4px 0;gap:8px}.composer-foot #hayato-connection{max-width:55%}
.latest-message{position:absolute;z-index:2;top:-39px;left:50%;transform:translateX(-50%);font-size:12px;padding:6px 14px;min-height:36px;border-radius:99px;border-color:#ccd6eb;box-shadow:0 3px 10px #33456316;white-space:nowrap}
.latest-message:active:not(:disabled){transform:translateX(-50%) translateY(1px)}
.hayato-working{--working-size:28px;background:#eef2fc;border:1px solid #e0e6f5;box-shadow:none;border-radius:13px;margin:0 0 12px;padding:10px 14px;gap:12px;min-height:0}
.hayato-working::before,.working-halo,.working-orbit,.working-core,.working-flow{display:none}
.hayato-working .working-visual{width:30px;height:30px;min-height:0;flex:none}.working-particles{position:static;display:flex;align-items:center;gap:3px;height:30px}.hayato-working .working-particles i{position:static;width:4px;height:4px;background:#6b80c7;border-radius:50%;animation:studio-dot 1.4s ease-in-out infinite}.hayato-working .working-particles i:nth-child(2){animation-delay:.15s;background:#6b80c7}.hayato-working .working-particles i:nth-child(3){animation-delay:.3s;background:#6b80c7}
.hayato-working .working-heading{margin:0}.hayato-working .working-kicker{font-size:8px;color:#697daf;letter-spacing:.1em}.hayato-working .working-elapsed{color:#7c89a0;font-size:9px}
.hayato-working #hayato-working-text{font-size:12px;line-height:1.6;color:#4b6089}.hayato-working #hayato-working-note{font-size:10px;line-height:1.7;color:#72809a;margin-top:3px}
#hayato-root.waiting-long .hayato-working,.hayato-working[data-phase="long"]{background:#f1f2fb;border-color:#dce0ef}
#hayato-root.waiting-offline .hayato-working,.hayato-working[data-phase="offline"]{background:#fff8ec;border-color:#eddbb9}
.inline-notice{border:1px solid #ead4b7;background:#fff8ed;color:#795522;border-radius:13px;font-size:12px;padding:12px 14px;line-height:1.8;max-height:180px;overflow:auto}.inline-notice p{margin:0 0 7px}.inline-notice button{background:#fff2de;color:#795522;font-size:12px}
.attachment-preview{background:#edf3fc;border:1px solid #d4dfef;border-radius:13px;font-size:12px}
.hayato-dialog{background:#fff;border:1px solid #dce2ec;border-radius:22px;box-shadow:0 24px 100px #17264e30;color:#24364f}
.hayato-dialog::backdrop{background:#24324b48;backdrop-filter:blur(5px)}
.hayato-dialog .dialog-head h2{font-size:23px;letter-spacing:.01em}.hayato-dialog>p{font-size:13px;color:#637389}.media-options button,.file-button{background:#f3f5fb;color:#46618a;border-color:#dce3f0}
/* Voice is a single focused scene. Microphone bars reflect measured input. */
#hayato-ptt.ptt-dialog{background:radial-gradient(ellipse at 50% 24%,#e9edff 0,transparent 52%),#f7f8fc;color:#273753}
#hayato-ptt::backdrop{background:#f7f8fc}
#hayato-ptt .ptt-shell{padding:24px max(24px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))}
#hayato-ptt .ptt-header{width:min(1200px,100%)}
#hayato-ptt .ptt-eyebrow{color:#7586b3;font-size:10px;letter-spacing:.16em}.ptt-header-divider{padding:0 10px;color:#b3bdd5}
#hayato-ptt h2{font-size:14px;color:#576987;margin-top:4px;letter-spacing:.03em}
#hayato-ptt button,#hayato-ptt select,#hayato-ptt .ptt-file{background:#fff;color:#52627c;border-color:#dbe2ef;border-radius:12px;transition:background .16s,box-shadow .16s,transform .16s}
#hayato-ptt button:hover:not(:disabled){background:#edf1fd;border-color:#afbee8}
#hayato-ptt .ptt-close{background:#ffffffb0;border:1px solid #e0e5ef;font-size:12px;padding:9px 14px;display:flex;align-items:center;gap:13px}.ptt-close span{font-size:22px;line-height:1;font-weight:300}
#hayato-ptt .ptt-main{width:min(700px,100%);padding:26px 8px 12px;scrollbar-width:thin;scrollbar-color:#cbd4e7 transparent}
#hayato-ptt .ptt-orb{position:relative;width:150px;height:150px;background:radial-gradient(circle at 30% 24%,#fff 0,#e6eaff 25%,#b5c2fa 58%,#889cde 100%);box-shadow:inset 0 2px 10px #ffffffbd,inset -8px -12px 25px #5c73c43b,0 18px 55px #697dc429;margin:8px auto 25px;transition:background .3s,transform .1s;border:1px solid #d2dafb}
#hayato-ptt .ptt-orb::before{content:"";position:absolute;inset:-12px;border:1px solid #b8c5ef66;border-radius:50%}
#hayato-ptt .ptt-orb i{background:#617ac4;width:4px;height:7px;transition:height .1s}
#hayato-ptt .ptt-orb i:nth-child(2),#hayato-ptt .ptt-orb i:nth-child(4){height:15px}#hayato-ptt .ptt-orb i:nth-child(3){height:24px}
#hayato-ptt[data-state="recording"] .ptt-orb{background:radial-gradient(circle at 30% 24%,#fff7ed,#ffd2b5 55%,#d58c70);border-color:#edc0a3}
#hayato-ptt[data-state="recording"] .ptt-orb::before{border-color:#dea48b88}
#hayato-ptt[data-state="recording"] .ptt-orb i{background:#af6445;height:calc(8px + var(--ptt-level,0)*40px)}
#hayato-ptt[data-state="recording"] .ptt-orb i:nth-child(even){height:calc(8px + var(--ptt-level,0)*26px)}
#hayato-ptt[data-state="thinking"] .ptt-orb::before,#hayato-ptt[data-state="transcribing"] .ptt-orb::before,#hayato-ptt[data-state="starting"] .ptt-orb::before{border-top-color:#677fd1;animation:studio-rotate 2s linear infinite}
#hayato-ptt .ptt-mic{background:#e8edf9;color:#627398;font-size:10px;padding:4px 11px;border:1px solid #dfe5f3;letter-spacing:.03em}
#hayato-ptt[data-state="recording"] .ptt-mic{background:#fff0e4;color:#965231;border-color:#edc6a9}
#hayato-ptt h3{font-size:clamp(21px,3vw,28px);font-weight:600;letter-spacing:.02em;margin:14px 0 8px;color:#2c4063}
#hayato-ptt .ptt-subtitle{color:#7c8ba4;font-size:12px;line-height:1.9}
#hayato-ptt .ptt-privacy{background:#ffffffb8;border:1px solid #e0e6f2;border-radius:18px;padding:22px 25px;color:#697994;font-size:12px;line-height:1.9;max-width:560px;margin:22px auto}
.ptt-consent-heading{display:flex;align-items:center;gap:9px;margin-bottom:14px;color:#4b608b;font-size:13px}.ptt-consent-heading>span{font-size:19px;color:#7c8ecb}
#hayato-ptt .ptt-primary,#hayato-ptt .ptt-hold{background:#415dd6;border-color:#415dd6;color:#fff;box-shadow:0 4px 14px #405ac41a}
#hayato-ptt .ptt-primary:hover:not(:disabled),#hayato-ptt .ptt-hold:hover:not(:disabled){background:#314bbb;color:#fff;border-color:#314bbb}
#hayato-ptt .ptt-hold{min-height:62px;border-radius:99px;font-size:15px;width:min(330px,100%);touch-action:manipulation}
#hayato-ptt[data-state="recording"] .ptt-hold{background:#a45738;border-color:#a45738}
#hayato-ptt .ptt-user{color:#7786a0;font-size:13px;background:#edf1fb;padding:10px 16px;border-radius:13px;display:inline-block;margin:0 auto 12px}
#hayato-ptt .ptt-reply{font-size:16px;line-height:1.95;color:#3b4c68;background:#fff;border:1px solid #e2e7f1;border-radius:16px;padding:21px 24px;margin:8px auto 18px}
#hayato-ptt .ptt-draft{background:#fff;border-color:#dce4f3;padding:20px;border-radius:17px}#hayato-ptt .ptt-draft label{color:#4a5e80}#hayato-ptt .ptt-draft small{color:#8490a4}
#hayato-ptt textarea{color:#344967;background:#fafbfe;border-color:#ccd6e9;font-size:16px}
#hayato-ptt .ptt-error{background:#fff4e9;color:#87552d;border-color:#ebceb1;font-size:13px;text-align:left}
#hayato-ptt .ptt-footer{width:min(700px,100%);padding-top:8px}
#hayato-ptt .ptt-settings{position:relative;font-size:11px;color:#7989a3;margin:0 auto 10px;width:fit-content;max-width:100%}
#hayato-ptt .ptt-settings>summary{min-height:32px;padding:4px 12px;cursor:pointer}
#hayato-ptt .ptt-preferences{position:absolute;bottom:36px;left:50%;transform:translateX(-50%);width:min(320px,85vw);background:#fff;border:1px solid #d7e0ee;border-radius:14px;padding:14px;box-shadow:0 8px 40px #2c45632b;z-index:2;margin:0}
#hayato-ptt .ptt-preferences label{width:100%;text-align:left;font-size:12px}.ptt-preferences select{width:100%;max-width:100%}
#hayato-ptt .ptt-help{color:#8290a6;font-size:10px;line-height:1.75;max-width:410px;margin:9px auto}
#hayato-ptt .ptt-cancel-slot{min-height:42px}#hayato-ptt .ptt-cancel-slot button{min-height:38px;border:0;background:transparent;font-size:11px;color:#8e623e}
#hayato-ptt .ptt-tools{gap:8px;margin:8px 0}.ptt-tools button{flex:none}
#hayato-ptt .ptt-tools button,#hayato-ptt .ptt-file{font-size:11px;background:transparent;border-color:#dce3f0;padding:9px 13px;min-height:44px}
#hayato-ptt .ptt-footnote{color:#8b97aa;font-size:9px;margin-top:8px}
#hayato-ptt .ptt-recovery button,#hayato-ptt .ptt-actions button{font-size:12px}#hayato-ptt .ptt-download button{background:transparent;border:0;font-size:11px}
/* Secondary text stays readable; active editing/reply gets more room than the orb. */
.presence-intro,.studio-guide small,#hayato-root .presence-bottom,.welcome-heading p,.welcome-heading .welcome-reassurance,.welcome-starters small,.conversation-history>summary,.hayato-public-info summary,.composer-foot{color:#66758a}
.studio-guide small,.studio-guide>.eyebrow,#hayato-root .presence-context small,.welcome-heading .welcome-reassurance,.composer-foot,.hayato-public-info summary{font-size:11px}
#hayato-ptt .ptt-subtitle,#hayato-ptt .ptt-help,#hayato-ptt .ptt-footnote,#hayato-ptt .ptt-settings{color:#657592}
#hayato-ptt .ptt-help,#hayato-ptt .ptt-footnote{font-size:11px}
#hayato-ptt:is([data-state="review"],[data-state="thinking"],[data-state="speaking"],[data-state="error"]) .ptt-orb{width:76px;height:76px;margin:6px auto 22px}
#hayato-ptt:is([data-state="review"],[data-state="thinking"],[data-state="speaking"],[data-state="error"]) .ptt-subtitle{display:none}
@keyframes studio-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes studio-dot{0%,65%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}
@keyframes studio-rotate{to{transform:rotate(360deg)}}
@media(max-width:1100px){#hayato-root{padding:0 22px}#hayato-root .hayato-layout{grid-template-columns:190px minmax(0,1fr);gap:22px}#hayato-root .hayato-presence{padding-right:16px}.studio-guide small{font-size:9px}.welcome-starters{gap:10px}.welcome-starters button{padding:16px}}
@media(max-width:850px){#hayato-root{padding:0 22px}.hayato-header{height:70px;min-height:70px}.header-caption{display:none}#hayato-root .hayato-layout{display:flex;flex-direction:column;gap:0}#hayato-root .hayato-presence{flex-direction:row;align-items:center;gap:12px;min-height:66px;height:66px;padding:10px 0;border:0;border-bottom:1px solid #e5e8ee;overflow:visible;flex:none}#hayato-root .presence-caption,.presence-intro,.studio-guide,#hayato-root .presence-bottom{display:none}.studio-symbol{width:33px;height:33px;border-radius:11px}.studio-symbol svg{width:25px;height:25px}.presence-companion{gap:10px}#hayato-root .presence-identity h1{font-size:13px}#hayato-root .presence-status{font-size:10px;margin-top:1px}#hayato-root .presence-context{margin:0 0 0 auto;padding:0;border:0;background:transparent;max-width:52%;width:auto;box-shadow:none;text-align:right}#hayato-root .presence-context .eyebrow{display:none}#hayato-root .presence-context p{font-size:12px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#hayato-root .presence-context small{font-size:9px}#hayato-root .conversation-column{flex:1}#hayato-root .conversation-scroll{padding:25px 4px 20px}#hayato-root .conversation-bottom{padding:12px 0 0}.welcome-heading{padding:40px 0 22px}.welcome-heading h2{font-size:36px}.welcome-starters{max-width:none}}
@media(max-width:540px){#hayato-root{padding:0 16px}.hayato-header{height:65px;min-height:65px;padding:0}.hayato-brand img{width:32px;height:32px}.hayato-brand>span{font-size:16px;letter-spacing:.15em}.hayato-brand small{font-size:8px;margin-top:2px}.account-entry{min-width:76px;max-width:126px;padding:6px 10px;border-radius:10px}.account-entry>span:first-child{font-size:10px}.account-entry small{font-size:9px}#hayato-root .hayato-presence{height:62px;min-height:62px}#hayato-root .conversation-scroll{padding:23px 1px 18px}.welcome-heading{padding:27px 0 16px}.welcome-heading h2{font-size:30px;line-height:1.6;margin:17px 0 18px}.welcome-heading p{font-size:12px}.welcome-heading p br{display:none}.welcome-pill{font-size:10px}.welcome-starters{gap:10px;margin-top:26px}.welcome-starters button{padding:15px 12px}.welcome-starters b{font-size:11px}.welcome-starters small{font-size:10px;line-height:1.6}.starter-icon{margin-bottom:12px}.starter-arrow{display:none}.welcome-heading .welcome-reassurance{font-size:9px;line-height:1.8;margin-top:15px}.message-text{font-size:14px;line-height:1.95}.message.user .message-text{font-size:13px}.message.user{padding:10px 14px;max-width:90%}.conversation-messages{gap:25px}.message-label{font-size:9px}.message-code pre{font-size:12px;padding:14px}.work-card{padding:17px}.work-card p{font-size:13px}.work-card h3{font-size:16px}.video-card{padding:0}.video-copy{padding:18px}.hayato-composer{flex-wrap:wrap;padding:10px 10px 10px 14px;gap:2px;border-radius:18px}.hayato-composer textarea{flex:1 0 100%;width:100%;font-size:16px;min-height:40px;height:40px;padding:5px 0}.composer-actions{width:100%;justify-content:flex-end;gap:6px}.composer-actions .attach-button{margin-right:auto}.voice-start{padding:9px 12px}.voice-start span{display:inline}.composer-foot{font-size:8px;margin-top:7px;gap:6px}.composer-foot #hayato-composer-note{display:none}.composer-foot #hayato-connection{max-width:100%;margin-left:auto}#hayato-root .conversation-column{padding-bottom:max(9px,env(safe-area-inset-bottom))}.hayato-public-info{margin-top:24px}.hayato-dialog{padding:20px}.hayato-dialog .dialog-head h2{font-size:20px}#hayato-ptt .ptt-shell{padding:16px 16px max(12px,env(safe-area-inset-bottom))}#hayato-ptt .ptt-main{padding:24px 2px 10px}#hayato-ptt .ptt-orb{width:120px;height:120px;margin:7px auto 24px}#hayato-ptt .ptt-privacy{padding:18px;font-size:11px;margin-top:18px}.ptt-consent-heading{font-size:12px}#hayato-ptt .ptt-reply{padding:17px;font-size:15px}#hayato-ptt .ptt-close{font-size:10px;padding:8px 11px;gap:8px}#hayato-ptt h2{font-size:12px}#hayato-ptt .ptt-tools button,#hayato-ptt .ptt-file{padding:8px 11px;font-size:10px}}
@media(max-height:650px){#hayato-root .hayato-header{height:58px;min-height:58px}.welcome-heading{padding:15px 0}.welcome-heading h2{font-size:28px;margin:10px 0}.welcome-starters{margin-top:18px}.studio-guide{margin-top:25px}#hayato-ptt .ptt-orb{width:84px;height:84px;margin:4px auto 19px}#hayato-ptt .ptt-main{padding-top:15px}#hayato-ptt .ptt-hold{min-height:52px}#hayato-ptt .ptt-help{margin:6px auto}#hayato-ptt .ptt-subtitle{display:none}}
/* Zoom / landscape / software keyboard: let the document grow, never clip controls. */
#hayato-root.layout-reflow{overflow:visible;height:auto;min-height:var(--hayato-viewport-height,100dvh)}
#hayato-root.layout-reflow .hayato-layout{display:block}#hayato-root.layout-reflow .hayato-presence{display:none}#hayato-root.layout-reflow .conversation-column,#hayato-root.layout-reflow .conversation-scroll{display:block;height:auto;overflow:visible}#hayato-root.layout-reflow .conversation-bottom{position:static}
@media(max-width:359px){#hayato-root{padding:0 12px}.hayato-brand small{display:none}.welcome-heading h2{font-size:26px}.welcome-starters{grid-template-columns:1fr}.welcome-starters button{grid-template-columns:28px 1fr;padding:13px}.starter-icon{grid-column:1;grid-row:1/3;margin:0;align-self:center}.welcome-starters b,.welcome-starters small{grid-column:2}.composer-foot{font-size:8px}.card-actions button{width:100%}.hayato-header{flex-wrap:nowrap}#hayato-ptt .ptt-tools{gap:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep support text legible at every breakpoint, including the small-phone rules. */
.hayato-brand small,.account-entry small,.header-caption,.presence-caption .eyebrow,.presence-intro,.studio-guide small,.studio-guide>.eyebrow,.studio-guide li>span,#hayato-root .presence-context small,#hayato-root .presence-bottom,.welcome-pill,.welcome-heading p,.welcome-heading .welcome-reassurance,.welcome-starters small,.conversation-history>summary,.hayato-public-info summary,.composer-foot,.message-code-head{color:#5e6d82}
.hayato-brand small,.account-entry small{font-size:10px}
.studio-guide small,.studio-guide>.eyebrow,#hayato-root .presence-context small,.welcome-heading .welcome-reassurance,.composer-foot,.hayato-public-info summary{font-size:11px}
.welcome-starters small{font-size:11px}
#hayato-ptt .ptt-subtitle,#hayato-ptt .ptt-help,#hayato-ptt .ptt-footnote,#hayato-ptt .ptt-settings,#hayato-ptt .ptt-eyebrow,#hayato-ptt .ptt-user,#hayato-ptt .ptt-draft small{color:#5d6f8e}
#hayato-ptt .ptt-tools button,#hayato-ptt .ptt-file{font-size:12px}
#hayato-ptt[data-has-reply="true"] .ptt-orb{width:60px;height:60px;margin:2px auto 18px}
#hayato-ptt[data-has-reply="true"] .ptt-subtitle{display:none}
#hayato-ptt[data-has-reply="true"] h3[data-ptt="status"]{font-size:20px;margin:9px 0 14px}
#hayato-ptt .message-rich h3{font-size:16px;text-align:left;margin:18px 0 8px}
.video-heading{padding:20px 23px 13px}.video-heading p{margin:8px 0 0;font-size:13px}.video-heading h3{margin:5px 0 0}
.video-card .video-stage{width:min(100%,640px);margin:0 auto;border:0}
.video-card .video-stage:not(:has(iframe)){aspect-ratio:21/8;max-height:260px}
.video-copy .player-status:empty,.video-copy .player-save-status:empty{display:none}
.video-copy .card-actions{margin-top:0}.video-copy{padding:17px 23px}
@media(min-width:851px){#hayato-root .presence-caption{display:block}}
@media(min-width:851px) and (max-height:800px){.presence-intro{display:none}.studio-guide{margin-top:26px;padding-top:20px}.studio-guide ol{gap:18px}#hayato-root .presence-bottom{padding-top:20px}}
@media(max-width:540px){.hayato-brand small{font-size:9px}.composer-foot{font-size:10px}.welcome-heading .welcome-reassurance{font-size:11px}}
@media print{#hayato-root{height:auto;overflow:visible}.hayato-header,.hayato-presence,.conversation-bottom{display:none!important}#hayato-root .hayato-layout,#hayato-root .conversation-column,#hayato-root .conversation-scroll{display:block;height:auto;overflow:visible}.message-text{color:#111}}

/* V362.14: quiet, continuous motion; elapsed time is not completion progress. */
.new-chat-button{display:flex;align-items:center;gap:6px;border:1px solid #cbd5e9;background:#fff;color:#344f80;border-radius:10px;padding:10px 13px;font:inherit;font-size:12px;line-height:1.5;cursor:pointer;white-space:nowrap}
.new-chat-button>span{font-size:19px;line-height:1}.new-chat-button:hover{background:#edf3ff;border-color:#99aeda}.new-chat-button:disabled{opacity:.55;cursor:default}
.new-chat-dialog{max-width:470px}.new-chat-dialog h2{font-size:21px}.new-chat-dialog p{font-size:15px;line-height:2;color:#435777}.new-chat-dialog .card-actions{justify-content:flex-end;gap:10px;flex-wrap:wrap}
.hayato-working{--working-size:58px;grid-template-columns:58px minmax(0,1fr);padding:12px 16px;background:linear-gradient(115deg,#edf8f7,#f0f2ff 70%,#f7f3ff);border:1px solid #d5e5ef;border-radius:17px;gap:15px}
.hayato-working .working-visual{width:58px;height:58px;overflow:visible}
.hayato-working .working-halo,.hayato-working .working-orbit,.hayato-working .working-core{display:block}
.hayato-working .working-halo{background:radial-gradient(circle,#badbd966,#d4dafb33,transparent 72%);border-color:#b4d5dd88}
.hayato-working .working-halo+.working-halo{background:#daeaf733;border-color:#abc1e588}
.hayato-working .working-orbit{border-color:#6faebc transparent #9b92d4 transparent;box-shadow:none}
.hayato-working .working-orbit+.working-orbit{border-color:#9b92d4 transparent #6faebc transparent}
.hayato-working .working-core{background:radial-gradient(circle at 35% 30%,#fff,#96d4d6 40%,#8392cf);box-shadow:0 0 13px #a6cadb88}
.hayato-working .working-particles{display:none}
.hayato-working .working-kicker{color:#496580;letter-spacing:0;font-size:10px}.hayato-working .working-elapsed{color:#5b6b83;font-size:10px}
.hayato-working #hayato-working-text{font-size:13px;color:#344e76}.hayato-working #hayato-working-note{font-size:11px;color:#526480}
.working-tip{display:flex;gap:7px;align-items:baseline;border-top:1px solid #d9e3f0;margin-top:8px;padding-top:7px;font-size:11px;line-height:1.8;color:#526480}.working-tip>span:first-child{color:#7976b5;font-size:15px}
.working-tip[hidden]{display:none}
.hayato-working[data-phase="offline"] .working-visual *{animation-play-state:paused!important}
#hayato-root.page-hidden .hayato-working .working-visual *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.hayato-working .working-visual *{animation:none!important;transition:none!important}}
@media(max-width:540px){.hayato-header-meta{gap:6px}.new-chat-button{font-size:11px;padding:8px;gap:3px}.account-entry{min-width:62px;padding:8px}.hayato-working{--working-size:38px;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:10px 12px}.hayato-working .working-visual{width:38px;height:38px}.hayato-working .working-kicker,.hayato-working .working-elapsed{font-size:9px}.new-chat-dialog .card-actions{display:grid;grid-template-columns:1fr}}
