/* Dedicated voice surface; native dialog provides focus containment/inert background. */
html.ptt-open { overflow: hidden; }
#hayato-ptt { color: #163331; background: #f4f6ef; border: 0; padding: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; font-family: "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif; }
#hayato-ptt::backdrop { background: #f4f6ef; }
#hayato-ptt [hidden] { display: none !important; }
#hayato-ptt *, #hayato-ptt *::before, #hayato-ptt *::after { box-sizing: border-box; }
#hayato-ptt button, #hayato-ptt select, #hayato-ptt textarea { font: inherit; }
#hayato-ptt button, #hayato-ptt select, #hayato-ptt .ptt-file { min-height: 44px; border: 1px solid #cbd6ce; border-radius: 12px; color: #163331; background: #fffdf7; padding: 10px 16px; cursor: pointer; box-shadow: none; }
#hayato-ptt button:disabled, #hayato-ptt select:disabled { cursor: default; opacity: .5; }
#hayato-ptt :focus-visible { outline: 3px solid #287765; outline-offset: 4px; }
#hayato-ptt .ptt-shell { height: 100%; display: flex; flex-direction: column; padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
#hayato-ptt .ptt-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1120px, 100%); margin: 0 auto; }
#hayato-ptt .ptt-eyebrow { font-size: 10px; letter-spacing: .2em; color: #55736c; font-weight: 700; }
#hayato-ptt h2 { font-size: 17px; font-weight: 600; margin: 6px 0; }
#hayato-ptt .ptt-close { border-color: transparent; background: transparent; font-size: 13px; }
#hayato-ptt .ptt-main { flex: 1; min-height: 0; overflow-y: auto; width: min(650px, 100%); margin: auto; text-align: center; padding: 20px 4px; }
#hayato-ptt .ptt-orb { width: 168px; height: 168px; margin: 8px auto 20px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, #fffefa 4%, #dbead8 38%, #9fc8b7 75%, #669783); box-shadow: inset -8px -12px 20px #699c8e40, 0 16px 52px #30604b14; transform: scale(calc(1 + var(--ptt-level, 0) * .08)); transition: transform .1s; }
#hayato-ptt .ptt-orb-core { display: flex; align-items: center; gap: 6px; }
#hayato-ptt .ptt-orb i { height: 18px; width: 5px; border-radius: 6px; background: #366958; }
#hayato-ptt .ptt-orb i:nth-child(2), #hayato-ptt .ptt-orb i:nth-child(4) { height: 32px; }
#hayato-ptt .ptt-orb i:nth-child(3) { height: 48px; }
#hayato-ptt[data-state="recording"] .ptt-orb { background: radial-gradient(circle at 35% 28%, #fff6d9, #f4c59e 55%, #ce8f6f); }
#hayato-ptt[data-state="speaking"] .ptt-orb i { animation: ptt-speaking 1.3s ease-in-out infinite alternate; }
#hayato-ptt[data-state="speaking"] .ptt-orb i:nth-child(even) { animation-delay: .4s; }
#hayato-ptt .ptt-mic { display: inline-block; background: #e5ece1; color: #466454; border-radius: 20px; font-size: 11px; letter-spacing: .07em; padding: 5px 12px; }
#hayato-ptt[data-state="recording"] .ptt-mic { color: #853717; background: #fce1ca; }
#hayato-ptt h3 { margin: 16px 0 10px; font-weight: 500; font-size: clamp(20px, 4vw, 27px); line-height: 1.6; }
#hayato-ptt p { line-height: 1.85; }
#hayato-ptt .ptt-subtitle { color: #536960; font-size: 13px; margin: 0 0 18px; }
#hayato-ptt .ptt-privacy { max-width: 500px; margin: 24px auto; font-size: 13px; text-align: left; color: #4f625c; }
#hayato-ptt .ptt-privacy button { display: block; margin: 20px auto 0; }
#hayato-ptt .ptt-primary { background: #204f43; color: #fff; border-color: #204f43; }
#hayato-ptt .ptt-user { color: #597067; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
#hayato-ptt .ptt-reply { font-size: 17px; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; margin: 24px auto; }
#hayato-ptt .ptt-error { background: #fff0e6; border: 1px solid #dfb29c; padding: 12px; border-radius: 12px; color: #793e28; }
#hayato-ptt .ptt-recovery, #hayato-ptt .ptt-actions, #hayato-ptt .ptt-tools, #hayato-ptt .ptt-download { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0; }
#hayato-ptt .ptt-draft { background: #fffdf9; border: 1px solid #d4ddd2; border-radius: 20px; padding: 20px; margin-top: 20px; text-align: left; }
#hayato-ptt .ptt-draft label { font-size: 13px; }
#hayato-ptt .ptt-draft small { color: #61746a; margin-left: 8px; }
#hayato-ptt textarea { display: block; width: 100%; margin: 10px 0; padding: 12px; border: 1px solid #c5d1c8; border-radius: 10px; background: white; color: #18392f; resize: vertical; min-height: 90px; }
#hayato-ptt audio { width: 100%; margin: 8px 0; }
#hayato-ptt .ptt-photo, #hayato-ptt .ptt-camera { text-align: center; margin-top: 16px; }
#hayato-ptt .ptt-photo img, #hayato-ptt .ptt-camera video { width: 100%; max-height: 330px; object-fit: contain; border-radius: 12px; background: #e1e8de; }
#hayato-ptt .ptt-download button { font-size: 12px; border: none; text-decoration: underline; background: transparent; padding: 8px; }
#hayato-ptt .ptt-footer { flex-shrink: 0; width: min(650px, 100%); margin: auto auto 0; text-align: center; }
#hayato-ptt .ptt-preferences { display: flex; gap: 18px; justify-content: center; align-items: center; font-size: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
#hayato-ptt .ptt-preferences select { border: none; background: transparent; padding: 6px; }
#hayato-ptt .ptt-hold { width: min(370px, 100%); min-height: 72px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border-radius: 100px; background: #204f43; color: white; border: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#hayato-ptt .ptt-hold svg { width: 23px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.8; }
#hayato-ptt[data-state="recording"] .ptt-hold { background: #914c2f; }
#hayato-ptt .ptt-help { font-size: 11px; color: #607568; max-width: 430px; margin: 10px auto; }
/* Reserve this row so the send tap stays at the same position as start. */
#hayato-ptt .ptt-cancel-slot { display: grid; min-height: 52px; }
#hayato-ptt .ptt-cancel-slot [hidden] { display: block !important; visibility: hidden; }
#hayato-ptt .ptt-file { position: relative; overflow: hidden; font-size: 13px; display: inline-flex; align-items: center; }
#hayato-ptt .ptt-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
#hayato-ptt .ptt-file:focus-within { outline: 3px solid #287765; outline-offset: 4px; }
#hayato-ptt .ptt-tools button { font-size: 13px; background: transparent; }
#hayato-ptt .ptt-footnote { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 10px; color: #597064; margin-top: 16px; }
@keyframes ptt-speaking { from { transform: scaleY(.6); } to { transform: scaleY(1.2); } }
@media (max-width: 480px) { #hayato-ptt .ptt-shell { padding-left: 18px; padding-right: 18px; } #hayato-ptt .ptt-orb { width: 125px; height: 125px; margin-top: 0; } #hayato-ptt .ptt-main { padding-top: 16px; } #hayato-ptt .ptt-draft { padding: 14px; } }
@media (max-height: 600px) { #hayato-ptt .ptt-orb { width: 84px; height: 84px; margin-bottom: 10px; } #hayato-ptt .ptt-main { padding: 10px 0; } #hayato-ptt h3 { margin: 8px 0; } }
@media (prefers-reduced-motion: reduce) { #hayato-ptt *, #hayato-ptt *::before { animation: none !important; transition: none !important; } }
/* Override the legacy global light theme only inside this dedicated dialog. */
#hayato-ptt .ptt-hold, #hayato-ptt .ptt-hold * { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
#hayato-ptt .ptt-hold * { pointer-events:none; }
@media (max-height: 480px) { #hayato-ptt .ptt-shell { height: auto; min-height: 100%; } #hayato-ptt .ptt-main { overflow: visible; flex: auto; } }
