/* ── HOME-led visual system ───────────────────────────────────────────────
   WOVE HOME itself remains untouched. These rules carry its visual grammar
   into LIVE and RESULT: one wordmark, one type hierarchy, one quiet surface. */
#phone{
  --cawasu-bg:#ececea;
  --cawasu-paper:#f7f5f0;
  --cawasu-ink:#2b2b2b;
  --cawasu-soft:#7f837f;
  --cawasu-line:rgba(0,0,0,.14);
  --cawasu-mint:#35d8b6;
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif!important;
  color:var(--cawasu-ink);
}
#phone button,#phone textarea{font-family:inherit!important}
#phone .cawasuWordmark{
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif!important;
  font-size:17px!important;
  line-height:1!important;
  font-weight:600!important;
  letter-spacing:.18em!important;
  color:var(--cawasu-ink)!important;
  white-space:nowrap;
}

/* Shared application chrome */
#phone>.topbar{
  min-height:62px!important;
  padding:0 24px!important;
  background:rgba(236,236,234,.94)!important;
  border-bottom:1px solid var(--cawasu-line)!important;
  color:var(--cawasu-ink)!important;
  box-shadow:none!important;
  backdrop-filter:blur(14px);
}
#phone>.topbar .brand{display:flex!important;align-items:center!important}
#phone>.topbar .brandMark,#phone>.topbar .brand em{display:none!important}
#phone>.topbar .voiceToggle{
  width:36px!important;height:36px!important;border-radius:50%!important;
  background:rgba(255,255,255,.42)!important;border:1px solid var(--cawasu-line)!important;
  box-shadow:none!important;color:var(--cawasu-ink)!important;
}

/* LIVE / VOICE */
#playScreen.liveInstrument{
  background:
    radial-gradient(circle at 12% 38%,rgba(53,216,182,.055),transparent 27%),
    linear-gradient(180deg,#f7f5f0 0%,#ececea 100%)!important;
  color:var(--cawasu-ink)!important;
}
#playScreen.liveInstrument .liveChrome{
  min-height:54px!important;height:54px!important;padding:0 20px!important;
  border-bottom:1px solid var(--cawasu-line)!important;
  background:rgba(247,245,240,.78)!important;
  box-shadow:none!important;backdrop-filter:blur(13px);
}
#playScreen.liveInstrument .liveBrand{
  display:flex!important;align-items:center!important;gap:8px!important;
  font-size:0!important;letter-spacing:0!important;
}
#playScreen.liveInstrument .liveBrand small{
  margin:0!important;font-size:8px!important;line-height:1!important;font-weight:500!important;
  letter-spacing:.14em!important;color:var(--cawasu-soft)!important;
}
#playScreen.liveInstrument .liveBack{
  width:34px!important;height:34px!important;border-color:var(--cawasu-line)!important;
  background:rgba(255,255,255,.36)!important;color:var(--cawasu-ink)!important;
  box-shadow:none!important;
}
#playScreen.liveInstrument .liveMeta,
#playScreen.liveInstrument .customerTag,
#playScreen.liveInstrument .aiHudLive,
#playScreen.liveInstrument .sceneCount,
#playScreen.liveInstrument .turnState,
#playScreen.liveInstrument .liveMetric{
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif!important;
}
#playScreen.liveInstrument .liveMeta{font-size:8px!important;line-height:1.2!important;letter-spacing:.12em!important;color:var(--cawasu-soft)!important}
#playScreen.liveInstrument .liveMeta b{font-size:10px!important;font-weight:600!important;letter-spacing:.11em!important;color:var(--cawasu-ink)!important}
#playScreen.liveInstrument .customerTag{font-size:9px!important;font-weight:600!important;letter-spacing:.13em!important;color:#707570!important}
#playScreen.liveInstrument .customerLine{
  font-family:"Yu Mincho","Hiragino Mincho ProN","Hiragino Mincho Pro",serif!important;
  font-weight:400!important;letter-spacing:-.035em!important;line-height:1.52!important;
  color:#202120!important;text-wrap:pretty;
}
#phone.voice-mode #playScreen.liveInstrument .speech,
#phone.voice-only #playScreen.liveInstrument .speech{
  max-height:none!important;overflow:visible!important;scrollbar-width:none!important;
  border-bottom-color:var(--cawasu-line)!important;
}
#phone.voice-mode #playScreen.liveInstrument .customerLine,
#phone.voice-only #playScreen.liveInstrument .customerLine{font-size:clamp(16px,4.35vw,19px)!important}
#playScreen.liveInstrument .visualizer{filter:saturate(.82)!important}
#playScreen.liveInstrument .visualizer::before,
#playScreen.liveInstrument .visualizer::after{border-color:rgba(43,43,43,.10)!important}
#playScreen.liveInstrument .choice,
#playScreen.liveInstrument .customReplyBtn{
  background:rgba(255,255,252,.72)!important;border-color:var(--cawasu-line)!important;
  box-shadow:none!important;color:var(--cawasu-ink)!important;
}
#playScreen.liveInstrument .choiceNode{
  font-family:"Times New Roman",serif!important;font-weight:400!important;
  background:rgba(247,245,240,.96)!important;border-color:rgba(43,43,43,.17)!important;
  color:var(--cawasu-ink)!important;box-shadow:0 5px 13px rgba(43,43,43,.08)!important;
}

/* RESULT — reflection, not a second design system */
#reviewScreen{
  background:
    radial-gradient(circle at 88% 12%,rgba(53,216,182,.05),transparent 26%),
    var(--cawasu-bg)!important;
  color:var(--cawasu-ink)!important;
}
#reviewScreen .resultPoster,#reviewScreen .resultFlowPanel,#reviewScreen .reviewDetails{
  background:rgba(255,255,252,.72)!important;border-color:var(--cawasu-line)!important;
  box-shadow:none!important;
}
#reviewScreen .resultPosterBrand{display:flex!important;align-items:center!important;gap:9px!important;font-family:inherit!important}
#reviewScreen .resultPosterBrand span{font-size:8px!important;font-weight:500!important;letter-spacing:.14em!important;color:var(--cawasu-soft)!important}
#reviewScreen .reflexStageLabel,#reviewScreen .resultTelemetryCaption,
#reviewScreen .flowEyebrow,#reviewScreen .flowMeta,#reviewScreen .trajectoryMeta,
#reviewScreen .trajectoryLegend{
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif!important;
  color:var(--cawasu-soft)!important;
}
#reviewScreen .resultMirrorLine{
  font-family:"Yu Mincho","Hiragino Mincho ProN","Hiragino Mincho Pro",serif!important;
  font-size:clamp(27px,7.5vw,38px)!important;line-height:1.3!important;font-weight:400!important;
  letter-spacing:-.045em!important;color:var(--cawasu-ink)!important;max-width:720px!important;text-wrap:balance;
}
#reviewScreen .flowTitle,#reviewScreen .reviewDetails summary{
  font-family:"Yu Mincho","Hiragino Mincho ProN","Hiragino Mincho Pro",serif!important;
  font-weight:400!important;letter-spacing:-.025em!important;color:var(--cawasu-ink)!important;
}
#reviewScreen .resultTelemetryItem{background:rgba(236,236,234,.72)!important;border-color:var(--cawasu-line)!important}
#reviewScreen .resultTelemetryItem strong{
  font-family:"Times New Roman",serif!important;font-weight:400!important;letter-spacing:-.04em!important;
  color:var(--cawasu-ink)!important;text-shadow:none!important;
}

/* TRAINING feedback appears as a brief instrument toast, then yields the stage. */
#phone.training-mode[data-screen="play"] #choiceImpact.show{
  position:fixed!important;left:16px!important;right:16px!important;bottom:74px!important;
  z-index:172!important;margin:0!important;padding:11px 13px!important;
  border:1px solid rgba(43,43,43,.13)!important;border-radius:14px!important;
  background:rgba(250,249,245,.96)!important;
  box-shadow:0 16px 38px rgba(34,36,33,.14)!important;
  backdrop-filter:blur(16px);animation:choiceImpactToastIn .28s ease both!important;
}
@keyframes choiceImpactToastIn{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:430px){
  #phone>.topbar{min-height:56px!important;padding-inline:18px!important}
  #playScreen.liveInstrument .liveChrome{height:50px!important;min-height:50px!important;padding-inline:14px!important}
  #playScreen.liveInstrument .liveBack{width:30px!important;height:30px!important}
  #phone .cawasuWordmark{font-size:16px!important}
  #phone.voice-mode #playScreen.liveInstrument .speech,
  #phone.voice-only #playScreen.liveInstrument .speech{padding-top:8px!important;padding-bottom:10px!important}
  #phone.voice-only #playScreen.liveInstrument .choices{gap:5px!important}
  #phone.voice-only #playScreen.liveInstrument .choice{
    min-height:58px!important;padding:7px 28px 7px 54px!important;border-radius:12px!important;
  }
  #phone.voice-only #playScreen.liveInstrument .choiceNode{
    left:8px!important;width:34px!important;height:34px!important;font-size:11px!important;
  }
  #phone.voice-only #playScreen.liveInstrument .choiceText{font-size:11px!important;line-height:1.38!important}
  #phone.voice-only #playScreen.liveInstrument .customReplyPanel{width:100%!important;max-width:none!important;margin-top:5px!important}
  #reviewScreen .reflexStage{padding:24px 20px!important}
  #reviewScreen .resultTelemetry{padding:20px!important}
}


/* Product 8.1: authoritative HOME → TRAINING / VOICE → RESULT rules.
   Historical layout stays in index.html; add final product changes here. */
#phone{--cawasu-soft:#646a65;--cawasu-action:#243f37;--cawasu-radius:16px}
#phone button:focus-visible,#phone summary:focus-visible,#phone textarea:focus-visible{outline:3px solid #21856f!important;outline-offset:3px!important}
#phone[data-screen="play"] #bottomNav{display:none!important}
#phone[data-screen="play"] #playScreen.liveInstrument{min-height:100svh!important;padding-bottom:0!important}
#phone[data-screen="play"] #playScreen .sceneWrap{min-height:var(--visual-vh,100svh)!important;height:auto!important;padding:0 16px 18px!important;gap:0!important}
#playScreen .liveChrome{order:0!important;grid-template-columns:36px 1fr auto!important;width:100%!important}
#playScreen .liveBrand{gap:5px!important;flex-wrap:wrap;align-content:center}
#playScreen .liveBrand small{font-size:8px!important;letter-spacing:.04em!important}
#playScreen .liveMeta{font-size:8px!important}
#playScreen .contextChip{display:none!important}
#playScreen .speech{order:1!important;margin:0!important;padding:16px 2px 14px!important;max-height:none!important;overflow:visible!important}
#phone[data-screen="play"] #playScreen .customerLine{font-size:18px!important;line-height:1.6!important;letter-spacing:.01em!important;min-height:0!important;color:#30332f!important}
#playScreen .speechHead{margin-bottom:9px!important}
#phone[data-screen="play"] #playScreen .hero{order:2!important;min-height:110px!important;height:110px!important;margin:0 -16px!important}
#phone[data-screen="play"] #playScreen .aiHudPressure{width:84px!important;height:84px!important;left:26px!important;top:13px!important}
#phone[data-screen="play"] #playScreen .aiHudPressure strong{font-size:28px!important;color:#237c68!important;font-weight:500!important}
#phone[data-screen="play"] #playScreen .aiHudLive{display:none!important}
#phone[data-screen="play"] #playScreen .sceneCount{top:12px!important;right:17px!important;font-size:9px!important}
#phone[data-screen="play"] #playScreen .liveMetrics{right:17px!important;bottom:12px!important;width:175px!important;gap:5px!important}
#phone[data-screen="play"] #playScreen .liveMetric b{font-size:25px!important}
#playScreen .waveRow{order:3!important}
#phone.training-mode #playScreen .waveRow{display:none!important}
#playScreen .sceneFact{order:4!important;font-size:11px;line-height:1.5;padding:9px 10px;margin:8px 0 3px;border-left:2px solid #2caf90;background:rgba(255,255,255,.4);color:#515952}
#playScreen .sceneFact[hidden]{display:none!important}
#playScreen #decisionTension{order:5!important;position:static!important;margin:8px 0!important;padding:8px 10px!important;font-size:11px!important;line-height:1.45!important;border-left:2px solid #9bdacb!important;background:transparent!important}
#playScreen #decisionTension b{display:none!important}
#playScreen #turnState{order:6!important;margin:2px 0 8px!important;padding:0!important;font-size:10px!important;line-height:1.4!important;letter-spacing:0!important;min-height:14px!important}
#phone.training-mode #playScreen .choices{order:7!important;background:transparent!important;border:0!important;gap:7px!important}
#phone.training-mode #playScreen .choice{min-height:64px!important;padding:10px 25px 10px 58px!important;border-radius:14px!important;box-shadow:none!important}
#phone.training-mode #playScreen .choiceNode{left:10px!important;width:35px!important;height:35px!important;font-size:12px!important;box-shadow:none!important}
#phone.training-mode #playScreen .spokenChoice{font-size:12px!important;line-height:1.5!important;color:#303731!important}
#playScreen .choices.response-done{display:none!important}
#playScreen .aiAssistWrap{order:8!important;margin-top:12px!important;width:100%!important}
#playScreen .aiAssistBtn{min-height:50px!important;border-radius:16px!important;box-shadow:0 7px 20px rgba(200,122,74,.1)!important}
#playScreen .otherPanel{order:10!important;width:100%!important;max-width:none!important}
#playScreen .otherPanel.is-submitting{opacity:.65}
#playScreen .aiAssistPanel.show{position:fixed!important;left:12px!important;right:12px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;top:auto!important;max-height:calc(100dvh - 32px)!important;width:auto!important;max-width:440px!important;margin:0 auto!important;overflow:auto!important;border-radius:20px!important;background:#fffaf5!important;box-shadow:0 0 0 100vmax rgba(32,35,30,.18),0 18px 60px rgba(32,35,30,.2)!important;padding:18px!important;z-index:250!important}
#playScreen .aiAssistTop{display:flex!important;gap:10px!important;align-items:center!important}
#playScreen #aiAssistClose{flex:none;border:0;border-radius:50%;width:32px;height:32px;background:#eee9e1;font-size:21px;color:#4d5149;cursor:pointer}
#playScreen .aiAssistStatus{font-size:9px!important;line-height:1.4!important;margin-left:auto!important}
#playScreen #aiAssistBody{display:flex;flex-direction:column;gap:8px}
#playScreen .aiAssistSayLabel{order:0;margin-top:12px;color:#8b571f!important}
#playScreen .aiAssistSuggestion{order:1;font-size:19px!important;line-height:1.6!important;padding:10px 0!important;background:transparent!important;border:0!important;box-shadow:none!important}
#playScreen .aiAssistCue{order:2!important;font-size:12px!important;line-height:1.5!important;border:0!important;background:#f0efe8!important;color:#51564c!important;padding:9px 11px!important;margin:0!important}
#playScreen .aiAssistNext{order:3!important;font-size:12px!important;margin:0!important}
#playScreen .aiAssistAvoid{order:4!important;font-size:12px!important;margin:0!important}
#playScreen .aiAssistAction.primary{background:#263e35!important;color:#fff!important;border:0!important}
#playScreen .aiAssistAction{min-height:46px!important;border-radius:11px!important;font-size:12px!important}
#phone.voice-only #playScreen.liveInstrument .choices,#phone.voice-only #playScreen #decisionTension{display:none!important}
#phone.voice-only #playScreen.liveInstrument .waveRow{display:flex!important;height:56px!important;margin:12px 0!important;border:0!important}
#phone.voice-only #playScreen #wave{height:48px!important}
#phone.voice-only #playScreen #otherPanel{order:7!important;display:flex!important;margin:8px 0 0!important;padding:14px!important;min-height:185px!important;border-radius:18px!important;background:rgba(255,255,252,.75)!important}
#phone.voice-only #playScreen #otherPanel:before{content:"自分の声で返す";font:500 12px/1.4 inherit;color:#4a6659;margin:0 0 10px}
#phone.voice-only #playScreen #freeText{min-height:65px!important;max-height:130px!important;font-size:16px!important;line-height:1.5!important}
#phone.voice-only #playScreen .softBtn{min-height:52px!important;font-size:13px!important;padding:10px!important}
#phone.voice-only #playScreen #micBtn{font-size:17px!important;min-width:42%!important;background:#243f37!important;color:#fff!important}
#phone.voice-only #playScreen #speechHint{font-size:10px!important;line-height:1.5!important;margin-top:9px!important}
#phone.voice-only #playScreen .micReadyBadge{font-size:9px!important;color:#4f655a!important}
#phone.voice-only #playScreen #aiAssistWrap{display:block!important;margin-top:16px!important}
#phone.voice-only #playScreen .micReadyBadge{display:flex!important}
#voiceChoiceFallback{display:none;margin:10px 0 0;padding:8px;border:0;background:transparent;color:#426051;font-size:11px;text-decoration:underline;cursor:pointer}
#phone.voice-only #voiceChoiceFallback{display:block}
#resultHome{background:transparent;border:0;font-size:20px;color:#465b4d;cursor:pointer;padding:5px 12px 5px 0}
#reviewScreen .resultPosterBrand{flex-wrap:nowrap!important}
#reviewScreen .nextPlayPanel .flowMeta{display:none!important}
#reviewScreen .decisiveHero{box-shadow:none!important;background:transparent!important;border-radius:0!important}
#reviewScreen .nextPlayPanel .flowTitle{font-size:21px!important}
#phone.voice-only.thinking-pressure #playScreen .aiHudPressure{box-shadow:0 0 0 7px rgba(221,151,101,.16)!important}
#phone[data-screen="review"]>.topbar{display:none!important}
#reviewScreen{padding:12px 12px 26px!important;background:var(--cawasu-bg)!important}
#reviewScreen .resultPoster{min-height:0!important;border-radius:18px!important;margin:0 0 10px!important}
#reviewScreen .resultPosterTop{padding:17px 18px!important}
#reviewScreen .decisiveHero{display:block!important;padding:16px 18px 12px!important;border:0!important}
#reviewScreen .decisiveHeroLabel{font-size:10px!important;color:#5d655d!important;letter-spacing:.04em!important}
#reviewScreen .decisiveQuote{font-family:"Yu Mincho",serif!important;font-size:20px!important;line-height:1.6!important;color:#2d342e!important;margin:13px 0 10px!important}
#reviewScreen .decisiveImpact{font-size:12px!important;line-height:1.5!important;color:#526353!important;margin:0!important}
#reviewScreen .resultPosterFoot{padding:7px 18px 12px!important}
#reviewScreen .resultFlow{gap:10px!important}
#reviewScreen .nextPlayPanel{order:0!important;padding:17px!important}
#reviewScreen .flowTitle{font-size:22px!important;line-height:1.35!important}
#reviewScreen .flowHead{margin-bottom:9px!important;padding:0!important}
#reviewScreen .nextPlayIntro{font-size:11px!important;margin:9px 0!important}
#reviewScreen .nextActionList{display:grid!important;grid-template-columns:1fr!important;gap:0!important}
#reviewScreen .nextAction{min-height:0!important;padding:11px 5px 11px 30px!important;border:0!important;border-top:1px solid #dbdfd7!important;border-radius:0!important;background:transparent!important}
#reviewScreen .nextAction:before{font-size:13px!important;left:0!important;top:13px!important}
#reviewScreen .nextAction small{display:none!important}
#reviewScreen .nextAction strong{font-size:15px!important;margin:0 0 5px!important;line-height:1.35!important}
#reviewScreen .nextAction p{font-size:11px!important;line-height:1.6!important;margin:0!important}
#reviewScreen .nextPlayCTA{min-height:44px!important;font-size:11px!important;padding:10px!important;margin-top:8px!important;background:#263e35!important}
#reviewScreen .mhlwFrame{margin-top:12px!important;padding:0!important;background:transparent!important;border:0!important}
#reviewScreen .mhlwFrame>summary{font-size:10px;color:#687268;cursor:pointer}
#reviewScreen .trajectoryPanel{order:1!important;padding:15px!important}
#reviewScreen .reviewDetails{order:2!important}
#reviewScreen .reviewActions{order:3!important;margin:0!important}
#reviewScreen .conversationPanel{order:4!important}
#reviewScreen details>summary{cursor:pointer;list-style:none;min-height:36px}
#reviewScreen details>summary:after{content:"＋";float:right;color:#27856d}
#reviewScreen details[open]>summary:after{content:"−"}
#reviewScreen .trajectoryTitle,#reviewScreen .reviewSectionTitle b{font-size:17px!important;font-weight:500!important}
#reviewScreen .trajectoryMeta{display:none!important}
#reviewScreen .resultMirrorLine{font-size:23px!important}
@media(min-width:700px){
 #phone[data-screen="play"]{max-width:480px!important}
 #phone[data-screen="play"] #playScreen .sceneWrap{padding-inline:24px!important}
 #phone[data-screen="play"] #playScreen .speech{padding-top:24px!important}
 #phone[data-screen="play"] #playScreen .customerLine{font-size:21px!important}
 #phone[data-screen="review"]{max-width:680px!important}
 #reviewScreen .nextAction p{font-size:13px!important}
}
@media(max-height:740px){
 #phone[data-screen="play"] #playScreen .customerLine{font-size:16px!important}
 #phone[data-screen="play"] #playScreen .speech{padding-top:10px!important;padding-bottom:10px!important}
 #phone[data-screen="play"] #playScreen .hero{min-height:90px!important;height:90px!important}
 #phone[data-screen="play"] #playScreen .aiHudPressure{height:68px!important;width:68px!important;top:11px!important}
 #phone.training-mode #playScreen .choice{min-height:58px!important;padding-block:8px!important}
}
@media(prefers-reduced-motion:reduce){#phone *,#phone *:before,#phone *:after{animation:none!important;transition:none!important}}
