.language-switch { display:flex; align-items:center; justify-content:center; gap:6px; min-height:40px; padding:6px 9px; border:1px solid #8eb8b75c; border-radius:3px; background:#11201dcc; color:#99afac; font:700 12px/1 "Crossroad Latin",sans-serif; cursor:pointer; flex:none; }
.language-switch i { font-style:normal; opacity:.5; }
.language-switch .is-active { color:#9ceadd; }
.language-switch:focus-visible { outline:2px solid #9ceadd; outline-offset:3px; }
.module-nav .language-switch { order:1; margin-left:auto; }
body[data-module-screen="investigation"] .case-files-link,body[data-module-screen="my-view"] .case-files-link { order:2; margin-left:0; }
body[data-module-screen="investigation"] .module-exit,body[data-module-screen="my-view"] .module-exit { order:3; }
.share-dialog-header .language-switch,.case-dialog header .language-switch { margin-left:auto; background:transparent; border-color:#658a7d66; color:#777e72; }
.share-dialog-header .language-switch .is-active,.case-dialog header .language-switch .is-active { color:#186e62; }
.share-dialog-header .language-switch:focus-visible,.case-dialog header .language-switch:focus-visible { outline-color:#186e62; }
.case-dialog header { gap:12px; align-items:center; }
.observer-label span { display:inline-block; margin-left:10px; font:500 12px/1.4 "Yu Gothic UI","Meiryo",sans-serif; letter-spacing:.07em; color:#bed8ce; }
.selection-guide,.reinvestigate-note { margin:0 0 10px; font:400 13px/1.65 "Yu Gothic UI","Meiryo",sans-serif; color:#bee0d5; }
.reinvestigate-note { padding-left:10px; border-left:2px solid #95d5c5; color:#dee9d5; }
.take-field textarea:disabled { cursor:not-allowed; opacity:.65; }
.case-actions .case-reinvestigate { flex:1 0 100%; padding:9px; border-color:#8daca0; background:#dae5d5; font-size:12px; }
.share-x span:last-child { font:inherit; }
.shared-view { min-height:100svh; box-sizing:border-box; padding:100px 24px 40px; background:radial-gradient(ellipse at 50% 20%,#34413a,#142322 70%); text-align:center; }
.shared-intro h1 { margin:8px 0 10px; color:#f3eddf; font-size:clamp(24px,4vw,34px); }
.shared-intro>p:last-child { font-size:14px; color:#cbd7ca; }
.shared-view canvas { display:block; width:min(100%,480px); height:auto; margin:25px auto; box-shadow:0 18px 45px #0005; }
.shared-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; max-width:700px; margin:auto; }
.shared-actions button { min-height:46px; font-size:13px; }
.shared-actions .quiet-button { color:#d4e4d5; }
#shared-error { color:#f0d5b0; padding:45px 10px; }
body[data-module-screen="shared-view"] .module-nav { display:flex; color:#d9edf0; background:#142322e6; }
body[data-module-screen="shared-view"] .module-nav .module-name,body[data-module-screen="shared-view"] .back-to-scenes { display:none; }
body[data-module-screen="shared-view"] .case-files-link { order:2; margin-left:0; }
body[data-module-screen="shared-view"] .module-exit { order:3; }
/* Keep the three navigation controls square and aligned to one height. */
body .module-nav :is(.language-switch,.case-files-link,.module-exit) {
  height:52px;
  min-height:52px;
  border-radius:0;
}
body .module-nav .language-switch { width:52px; flex:0 0 52px; padding-inline:2px; gap:2px; }
body .module-nav .module-exit { width:52px; flex:0 0 52px; }
body[data-module-screen="scene-select"] .module-nav {
  position:fixed;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  height:76px;
  padding:12px 18px;
}
body[data-module-screen="scene-select"] .module-nav :is(.language-switch,.case-files-link,.module-exit) {
  position:static;
  top:auto;
  right:auto;
  left:auto;
}
body[data-module-screen="scene-select"] .module-nav .case-files-link { order:2; margin-left:0; }
body[data-module-screen="scene-select"] .module-nav .module-exit { order:3; }
@media(max-width:760px) {
  body[data-module-screen="investigation"] .compose { overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
  body[data-module-screen="investigation"] .back-to-scenes strong,body[data-module-screen="my-view"] .back-to-scenes strong { display:none; }
  .module-nav .language-switch { min-height:36px; padding:6px 8px; }
  body .module-nav :is(.language-switch,.case-files-link,.module-exit) { height:44px; min-height:44px; }
  body .module-nav .language-switch { width:44px; flex-basis:44px; padding-inline:1px; gap:1px; font-size:11px; }
  body .module-nav .module-exit { width:44px; flex-basis:44px; }
  body[data-module-screen="scene-select"] .module-nav { height:64px; padding:10px; gap:6px; }
  .observer-label span { font-size:11px; }
  .selection-guide,.reinvestigate-note { font-size:12px; margin-bottom:7px; }
  .share-dialog-header { gap:8px; }
  .share-dialog-header .language-switch { padding:6px; gap:4px; }
  .share-dialog-header h2 { font-size:18px; }
  .shared-view { padding:86px 16px 30px; }
  .shared-actions { flex-direction:column; }
  .shared-actions button { width:100%; }
}
@media(max-width:760px) and (max-height:620px) {
  body[data-module-screen="investigation"][data-investigation-state="look"] .image-frame,
  body[data-module-screen="investigation"][data-investigation-state="mark"] .image-frame { width:min(100%,calc(20svh * 1.77644)); }
}
