/* A separate landscape stage; the existing journal retains its own layout. */
.galgame-active { background: #172b30; }
.galgame-active .app-shell, .galgame-active .app-shell.rail-collapsed { display: block; height: 100dvh; }
.galgame-active .side-rail, .galgame-active .topbar, .galgame-active .mobile-nav, .galgame-active .mobile-nav-toggle { display: none; }
.galgame-active .main-stage { height: 100dvh; padding: 0; background: #172b30; }
.gal-view.active { display: flex; padding: 0; gap: 0; overflow: hidden; animation: none; }
.gal-stage { --gal-ink: #304a4c; --gal-teal: #3b7977; position: relative; isolation: isolate; width: 100%; height: 100%; overflow: hidden; color: var(--gal-ink); background: #8ca8ab; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; container-type: size; }
.gal-stage [hidden] { display: none !important; }
.gal-stage button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gal-stage button:focus-visible { outline: 3px solid #d0ad64; outline-offset: 4px; }
.gal-scenery { position: absolute; inset: 0; z-index: -3; background: url('./assets/galgame-harbor.png') center 54% / cover; transition: background-position 1s; }
.gal-stage[data-place="lighthouse"] .gal-scenery { background-position: 80% center; transform: scale(1.1); }
.gal-stage[data-place="bookshop"] .gal-scenery { background-position: 20% center; transform: scale(1.08); }
.gal-light { position: absolute; inset: 0; pointer-events: none; z-index: -1; background: linear-gradient(180deg, #1d383b6b, transparent 20%, transparent 65%, #132a3052), linear-gradient(90deg, #f3c98c18, transparent 55%); }
.gal-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: max(24px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) 20px max(32px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #fffdf4; text-shadow: 0 1px 9px #203a3e80; }
.gal-top-left, .gal-top-right { display: flex; align-items: center; gap: 20px; }
.gal-round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffff70; color: #fffdf4; background: #29464826; backdrop-filter: blur(12px); font-size: 25px !important; transition: background .2s; }
.gal-round:hover { background: #29464870; }
.gal-chapter > span { display: block; font-size: 11px; letter-spacing: 3px; }
.gal-chapter i { padding-left: 12px; margin-left: 9px; border-left: 1px solid #ffffff70; font-style: normal; font-size: 8px; letter-spacing: 2px; opacity: .8; }
.gal-chapter strong { display: block; margin-top: 7px; font-size: 12px; font-weight: 400; letter-spacing: 2px; }
.gal-chapter b { margin-left: 13px; font-size: 16px; font-weight: 500; }
.gal-location { display: flex; align-items: center; gap: 13px; margin-right: 100px; }
.gal-sun { font-size: 29px; color: #f9dfaa; }
.gal-location strong { display: block; font-size: 13px; font-weight: 500; letter-spacing: 2px; }
.gal-location small { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 10px; letter-spacing: 1px; color: #fff9e3da; }
.gal-location i { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.gal-prototype { font-size: 10px; letter-spacing: 2px; opacity: .8; }
.gal-cast { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.gal-person { position: absolute; bottom: -8%; height: 99%; aspect-ratio: .75; overflow: hidden; transform-origin: bottom center; transition: filter .6s, transform .6s; filter: brightness(.86) saturate(.83); }
.gal-person img { display: block; position: absolute; height: 100%; width: 200%; max-width: none; user-select: none; }
.gal-person-left { left: 6%; }
.gal-person-right { right: 5%; }
.gal-person-right img { right: 0; }
.gal-person.is-speaking { filter: brightness(1.03) saturate(1); transform: translateY(-5px); }
.gal-scene-caption { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); text-align: center; color: #fffdf4; text-shadow: 0 2px 12px #264346b0; pointer-events: none; }
.gal-scene-caption > span { font-size: 10px; letter-spacing: 5px; }
.gal-scene-caption i { display: block; width: 1px; height: 38px; background: #fff8dd9c; margin: 14px auto; }
.gal-scene-caption p { margin: 0; font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: 14px; letter-spacing: 4px; writing-mode: vertical-rl; margin-inline: auto; line-height: 1.9; }
.gal-bottom { position: absolute; bottom: 24px; left: 6%; right: 6%; z-index: 6; filter: drop-shadow(0 12px 24px #142c382b); }
.gal-speaker-line { height: 44px; display: flex; align-items: center; gap: 17px; position: relative; margin-left: 27px; }
.gal-speaker { min-width: 180px; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 0 32px; background: #487e7c; color: #fffef3; border-radius: 10px 16px 0 0; letter-spacing: 4px; font-size: 18px; box-shadow: inset 0 1px #ffffff6b; }
.gal-speaker span { font-family: Georgia, serif; font-size: 10px; letter-spacing: 2px; opacity: .7; }
.gal-speaker-note { color: #fffdf2; font-size: 10px; letter-spacing: 2px; text-shadow: 0 1px 6px #243f46; }
.gal-hide { margin-left: auto; margin-right: 16px; width: 32px; height: 28px; border: 0; border-radius: 15px 15px 0 0; background: #fffaf2d6; color: #547371; }
.gal-dialogue { position: relative; display: block; width: 100%; text-align: left; min-height: clamp(125px, 18cqh, 185px); border: 1px solid #fff8e7; border-bottom: 0; border-radius: 14px 14px 0 0; padding: 24px 44px 40px; color: #314b4b; background: linear-gradient(105deg, #fffcf3f7, #f8faf5ed 55%, #f5fcf9eb); backdrop-filter: blur(20px); }
.gal-dialogue::before { content: ''; position: absolute; inset: 8px 8px 0; border: 1px solid #9ebdb751; border-bottom: 0; border-radius: 9px 9px 0 0; pointer-events: none; }
.gal-dialogue-text { font-size: clamp(16px, 1.35vw, 21px); line-height: 2; letter-spacing: 1.5px; font-weight: 400; }
.gal-next { position: absolute; bottom: 14px; right: 29px; display: flex; align-items: center; gap: 12px; color: #558d88; }
.gal-next small { font-size: 10px; letter-spacing: 2px; }
.gal-next b { font-size: 12px; animation: gal-blink 2s infinite; }
.gal-toolbar { display: flex; align-items: center; gap: 22px; height: 54px; background: #f4f8f0f0; padding: 0 29px; border: 1px solid #fffaec; border-top: 1px solid #88a8a329; border-radius: 0 0 12px 12px; backdrop-filter: blur(20px); }
.gal-tools-main, .gal-tools-reading { display: flex; align-items: center; gap: 28px; }
.gal-toolbar button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; position: relative; border: 0; background: transparent; color: #54716e; font-size: 12px; letter-spacing: 1px; white-space: nowrap; transition: color .2s, transform .2s; }
.gal-toolbar button:hover { color: #ba8360; transform: translateY(-1px); }
.gal-toolbar svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gal-phone-tool > i { display: grid; place-items: center; position: absolute; top: -1px; left: 11px; width: 13px; height: 13px; border-radius: 50%; background: #d78d78; color: #fff; font-size: 8px; font-style: normal; }
.gal-toolbar-divider { height: 17px; width: 1px; background: #57776b33; }
.gal-key-hint { color: #92a49a; font-size: 9px; letter-spacing: 2px; }
.gal-tools-reading { margin-left: auto; gap: 24px; }
.gal-choice-list { position: absolute; z-index: 7; left: 50%; bottom: 35%; transform: translateX(-50%); width: min(460px, 58%); display: grid; gap: 12px; }
.gal-choice-list button { padding: 16px 24px; border: 1px solid #fffae1c9; color: #335b59; background: #fbfbf0eb; backdrop-filter: blur(18px); border-radius: 4px 16px 4px 16px; box-shadow: 0 6px 26px #213c3e28; letter-spacing: 2px; font-size: 14px; transition: background .2s, transform .2s; }
.gal-choice-list button:hover { background: #4e827d; color: #fff9ea; transform: translateX(5px); }
.gal-restore { position: absolute; z-index: 7; right: 30px; bottom: 24px; border: 1px solid #ffffff80; background: #f7f9f0e8; color: #426c69; padding: 10px 20px; border-radius: 24px; font-size: 12px !important; }
.gal-restore span { margin-left: 10px; }
.gal-overlay { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; padding: 22px; }
.gal-overlay-backdrop { position: absolute; inset: 0; border: 0; background: #183e425c; backdrop-filter: blur(7px); }
.gal-panel { position: relative; width: min(580px, 90%); max-height: 85%; display: flex; flex-direction: column; border: 1px solid #fff9e6; border-radius: 22px; background: #f9faf2f7; box-shadow: 0 22px 100px #142d3a40; overflow: hidden; }
.gal-panel > header { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px 18px; border-bottom: 1px solid #5b7b6d25; flex-shrink: 0; }
.gal-panel header span { font-size: 9px; letter-spacing: 3px; color: #7c978d; }
.gal-panel h2 { margin: 7px 0 0; font-size: 22px; font-weight: 500; letter-spacing: 3px; }
.gal-panel-close { border: 1px solid #7c978d40; background: transparent; border-radius: 50%; width: 32px; height: 32px; color: #68847b; font-size: 22px !important; }
.gal-panel-content { overflow: auto; padding: 22px 30px 28px; font-size: 13px; line-height: 1.8; }
.gal-panel-note { margin: 0 0 18px; font-size: 11px; color: #87988e; letter-spacing: 1px; }
.gal-bag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gal-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 10px 14px; border: 1px solid #78968b30; border-radius: 12px; background: #fffdf5; color: #4b7166; }
.gal-item span { font-size: 30px; line-height: 1.4; }
.gal-item b { font-weight: 500; font-size: 12px; }
.gal-item small { font-size: 10px; color: #97a397; }
.gal-item-description { margin-top: 15px; min-height: 38px; padding: 12px 15px; border-radius: 9px; background: #e8eee4; color: #638070; font-size: 12px; }
.gal-phone-header { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #75928126; padding-bottom: 13px; }
.gal-contact-avatar { display: grid; place-items: center; width: 38px; height: 38px; background: #d3e4db; border-radius: 14px; font-size: 16px; color: #618578; }
.gal-phone-header small { display: block; font-size: 10px; color: #879c8e; }
.gal-bubbles { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; }
.gal-bubble { max-width: 86%; width: fit-content; background: #e6eee2; padding: 10px 15px; border-radius: 0 13px 13px 13px; font-size: 12px; }
.gal-bubble.mine { align-self: flex-end; border-radius: 13px 0 13px 13px; background: #57827b; color: #fffdf1; }
.gal-message-form { display: flex; gap: 9px; }
.gal-message-form input { min-width: 0; flex: 1; border: 1px solid #8ca69555; border-radius: 8px; padding: 10px; background: #fffef9; color: #35534b; font: inherit; }
.gal-panel-primary { border: 0; padding: 10px 17px; border-radius: 8px; color: #fffaf0; background: #55837b; font-size: 12px !important; }
.gal-map-art { position: relative; height: 205px; overflow: hidden; border-radius: 14px; background: #c8e3df; border: 1px solid #fffdf2; }
.gal-map-island { position: absolute; inset: 16px 50px; background: #e9e6c9; border: 8px solid #b5d0ad; border-radius: 65% 38% 44% 31%; transform: rotate(-12deg); box-shadow: 0 0 0 12px #a8d4cf, 0 0 0 22px #bbdeda; }
.gal-map-art button { position: absolute; border: 1px solid #fffdf1; padding: 7px 10px; color: #426c61; background: #fffbedee; border-radius: 7px; font-size: 11px; box-shadow: 0 3px 12px #56796f24; }
.gal-map-art button:nth-of-type(1) { left: 19%; bottom: 23%; }
.gal-map-art button:nth-of-type(2) { left: 36%; top: 27%; }
.gal-map-art button:nth-of-type(3) { right: 12%; top: 43%; }
.gal-map-art button.current { background: #4e7c71; color: #fff8e6; }
.gal-map-info { margin: 15px 0 0; color: #6c887b; font-size: 12px; }
.gal-log-entry { border-bottom: 1px solid #6d927828; padding: 12px 0; }
.gal-log-entry b { display: block; color: #5b8374; font-size: 11px; font-weight: 500; }
.gal-log-entry p { margin: 5px 0 0; font-size: 12px; }
.gal-setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #8ba18d24; }
.gal-setting input { accent-color: #5a8275; max-width: 50%; }
.gal-setting small { display: block; font-size: 10px; color: #8ba18d; }
.gal-notification { position: absolute; z-index: 30; top: 100px; left: 50%; transform: translate(-50%, -10px); padding: 12px 24px; border: 1px solid #fffce6; border-radius: 30px; background: #f7faf0ed; color: #517468; box-shadow: 0 4px 24px #25433826; font-size: 12px; letter-spacing: 1px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.gal-notification.visible { opacity: 1; transform: translate(-50%, 0); }
.gal-orientation-note { display: none; }
.gal-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.gal-particles i { position: absolute; left: 12%; top: 34%; width: 4px; height: 4px; border-radius: 50%; background: #fff8d6a0; box-shadow: 0 0 12px #fff8d6; animation: gal-drift 12s linear infinite; }
.gal-particles i:nth-child(2) { left: 26%; top: 58%; animation-delay: -3s; }
.gal-particles i:nth-child(3) { left: 44%; top: 22%; animation-delay: -8s; }
.gal-particles i:nth-child(4) { left: 62%; top: 62%; animation-delay: -5s; }
.gal-particles i:nth-child(5) { left: 78%; top: 43%; animation-delay: -10s; }
.gal-particles i:nth-child(6) { left: 88%; top: 28%; animation-delay: -1s; }
@keyframes gal-drift { 0% { transform: translate(0, 0); opacity: 0; } 25%, 75% { opacity: .8; } 100% { transform: translate(90px, -100px); opacity: 0; } }
@keyframes gal-blink { 50% { opacity: .35; transform: translateY(2px); } }
@media (min-aspect-ratio: 2/1) { .gal-person { height: 112%; bottom: -21%; }.gal-scene-caption { top: 25%; } }
@media (max-width: 1000px) {
  .gal-top { padding: 16px 22px; gap: 12px; }.gal-top-left { gap: 12px; }.gal-location { margin-right: 0; }.gal-prototype, .gal-key-hint { display: none; }
  .gal-bottom { left: 4%; right: 4%; bottom: max(14px, env(safe-area-inset-bottom)); }.gal-person-left { left: 0; }.gal-person-right { right: 0; }
  .gal-toolbar { gap: 16px; padding: 0 22px; }.gal-tools-main { gap: 20px; }.gal-tools-reading { gap: 20px; }.gal-dialogue { padding: 21px 30px 34px; }
}
@media (max-width: 720px) { .mobile-nav { grid-template-columns: repeat(5, 1fr); } }
@media (max-height: 540px) and (orientation: landscape) {
  .gal-top { padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); }.gal-round { width: 32px; height: 32px; font-size: 22px !important; }.gal-chapter > span { font-size: 8px; letter-spacing: 2px; }.gal-chapter i { font-size: 6px; }.gal-chapter strong { margin-top: 5px; font-size: 9px; }.gal-chapter b { font-size: 12px; }.gal-location strong { font-size: 10px; }.gal-location small { font-size: 8px; }.gal-sun { font-size: 23px; }
  .gal-person { height: 110%; bottom: -21%; }.gal-person-left { left: 8%; }.gal-person-right { right: 6%; }.gal-bottom { left: max(5%, env(safe-area-inset-left)); right: max(5%, env(safe-area-inset-right)); bottom: max(9px, env(safe-area-inset-bottom)); }
  .gal-speaker-line { height: 29px; gap: 12px; margin-left: 17px; }.gal-speaker { min-width: 123px; padding: 0 20px; font-size: 13px; gap: 9px; letter-spacing: 3px; border-radius: 7px 12px 0 0; }.gal-speaker span { font-size: 8px; }.gal-speaker-note { font-size: 8px; letter-spacing: 1px; }.gal-hide { height: 23px; }
  .gal-dialogue { min-height: 88px; padding: 15px 27px 29px; border-radius: 10px 10px 0 0; }.gal-dialogue-text { font-size: 13px; line-height: 1.8; letter-spacing: 1px; }.gal-next { bottom: 9px; right: 22px; }.gal-next small { font-size: 8px; }.gal-next b { font-size: 9px; }
  .gal-toolbar { height: 36px; padding: 0 21px; }.gal-toolbar button { font-size: 10px; height: 30px; gap: 6px; }.gal-toolbar svg { width: 15px; height: 15px; }.gal-tools-main { gap: 23px; }.gal-tools-reading { gap: 22px; }.gal-toolbar-divider { height: 12px; }
  .gal-scene-caption { top: 26%; }.gal-scene-caption > span { font-size: 7px; letter-spacing: 3px; }.gal-scene-caption i { height: 18px; margin: 9px auto; }.gal-scene-caption p { font-size: 10px; letter-spacing: 2px; }
  .gal-choice-list { bottom: 45%; width: min(370px, 50%); gap: 8px; }.gal-choice-list button { padding: 9px 15px; font-size: 11px; }
  .gal-panel { max-height: 94%; width: min(520px, 83%); }.gal-panel > header { padding: 12px 22px 10px; }.gal-panel h2 { font-size: 17px; margin-top: 3px; }.gal-panel-content { padding: 14px 22px; }.gal-map-art { height: 140px; }.gal-notification { top: 66px; padding: 9px 20px; font-size: 10px; }
}
/* Portrait phones keep an actual landscape canvas, with a rotate hint beneath. */
@media (orientation: portrait) and (max-width: 720px) {
  .gal-view.active { justify-content: center; background: #203537; }
  .gal-stage { flex: none; height: auto; aspect-ratio: 16/10; width: 100%; }
  .gal-top { padding: 10px 12px; }.gal-round { width: 25px; height: 25px; font-size: 18px !important; }.gal-top-left { gap: 8px; }.gal-top-right { gap: 0; }.gal-chapter > span { font-size: 7px; letter-spacing: 1px; }.gal-chapter i, .gal-location, .gal-speaker-note { display: none; }.gal-chapter strong { margin-top: 4px; font-size: 8px; letter-spacing: 1px; }.gal-chapter b { font-size: 9px; margin-left: 7px; }
  .gal-person { height: 103%; bottom: -17%; }.gal-person-left { left: 4%; }.gal-person-right { right: 2%; }.gal-scene-caption { top: 25%; }.gal-scene-caption > span { font-size: 6px; letter-spacing: 2px; }.gal-scene-caption i { height: 12px; margin: 6px auto; }.gal-scene-caption p { display: none; }
  .gal-bottom { left: 3%; right: 3%; bottom: 7px; }.gal-speaker-line { height: 22px; margin-left: 12px; }.gal-speaker { min-width: 88px; padding: 0 12px; font-size: 10px; gap: 7px; letter-spacing: 2px; border-radius: 6px 9px 0 0; }.gal-speaker span { font-size: 6px; }.gal-hide { height: 21px; width: 26px; margin-right: 7px; }
  .gal-dialogue { min-height: 66px; padding: 9px 16px 19px; border-radius: 7px 7px 0 0; }.gal-dialogue::before { inset: 5px 5px 0; border-radius: 4px 4px 0 0; }.gal-dialogue-text { font-size: 10px; line-height: 1.8; letter-spacing: .4px; }.gal-next { bottom: 5px; right: 13px; gap: 7px; }.gal-next small { font-size: 6px; letter-spacing: 1px; }.gal-next b { font-size: 7px; }
  .gal-toolbar { height: 29px; padding: 0 12px; gap: 9px; border-radius: 0 0 7px 7px; }.gal-toolbar button { height: 27px; font-size: 8px; gap: 3px; letter-spacing: 0; }.gal-toolbar svg { width: 12px; height: 12px; }.gal-tools-main, .gal-tools-reading { gap: 10px; }.gal-toolbar-divider { height: 11px; }.gal-phone-tool > i { top: 1px; left: 7px; width: 10px; height: 10px; font-size: 6px; }
  .gal-choice-list { bottom: 47%; width: 59%; gap: 5px; }.gal-choice-list button { padding: 6px 10px; font-size: 8px; letter-spacing: .5px; border-radius: 3px 10px 3px 10px; }
  .gal-overlay { padding: 7px; }.gal-panel { width: 88%; max-height: 96%; border-radius: 12px; }.gal-panel > header { padding: 9px 14px; }.gal-panel header span { font-size: 6px; letter-spacing: 2px; }.gal-panel h2 { font-size: 13px; margin-top: 3px; }.gal-panel-close { width: 25px; height: 25px; font-size: 18px !important; }.gal-panel-content { padding: 10px 14px; font-size: 10px; }.gal-panel-note { font-size: 8px; margin-bottom: 8px; }.gal-item { padding: 8px 4px; gap: 3px; }.gal-item span { font-size: 20px; }.gal-item b { font-size: 9px; }.gal-item small { font-size: 8px; }.gal-item-description { margin-top: 8px; padding: 7px 10px; font-size: 9px; min-height: 25px; }.gal-notification { top: 43px; padding: 6px 12px; font-size: 8px; white-space: nowrap; }
  .gal-map-art { height: 103px; }.gal-map-art button { font-size: 8px; padding: 4px 7px; }.gal-map-island { inset: 10px 40px; }.gal-map-info, .gal-bubble, .gal-log-entry p { font-size: 9px; }.gal-phone-header { padding-bottom: 7px; }.gal-contact-avatar { width: 25px; height: 25px; font-size: 11px; }.gal-phone-header small { font-size: 8px; }.gal-bubbles { padding: 9px 0; gap: 6px; }.gal-bubble { padding: 5px 9px; }.gal-message-form input { padding: 6px; }.gal-panel-primary { padding: 6px 10px; font-size: 9px !important; }.gal-setting { padding: 9px 0; }.gal-setting small { font-size: 8px; }
  .gal-orientation-note { display: flex; flex-direction: column; align-items: center; gap: 17px; margin: 34px 15px 0; color: #bdcfc4; font-size: 11px; letter-spacing: 1px; text-align: center; }.gal-orientation-note button { border: 1px solid #adc6b740; border-radius: 24px; padding: 10px 22px; background: #ffffff08; color: #dfebdf; font-size: 11px; letter-spacing: 2px; }
}
@media (prefers-reduced-motion: reduce) { .gal-stage *, .gal-stage *::before { animation: none !important; transition: none !important; } }

/* Persistent roleplay input, following the message / composer separation in ST. */
.gal-dialogue { min-height: clamp(108px, 14cqh, 142px); padding-top: 20px; padding-bottom: 34px; }
.gal-dialogue-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.gal-dialogue:has(.gal-dialogue-text) { max-height: 24cqh; overflow-y: auto; }
.gal-composer { display: flex; align-items: center; gap: 20px; padding: 11px 28px 10px; background: #f5f9f2f5; border: 1px solid #fff9e8; border-top: 1px solid #88a8a329; border-bottom: 0; backdrop-filter: blur(20px); }
.gal-input-wrap { min-width: 0; flex: 1; }
.gal-input-wrap textarea { display: block; width: 100%; min-height: 23px; max-height: 14cqh; resize: none; padding: 2px 0; border: 0; outline: 0; box-shadow: none; background: transparent; color: #344f47; font: inherit; font-size: 14px; line-height: 1.55; letter-spacing: .7px; scrollbar-width: thin; }
.gal-input-wrap textarea:focus-visible { outline: none; }
.gal-composer:focus-within { background: #fffdf4f7; box-shadow: inset 3px 0 #6e9f8f; }
.gal-input-wrap textarea::placeholder { color: #9ba89b; }
.gal-input-hint { display: block; margin-top: 3px; color: #a1afa2; font-size: 8px; letter-spacing: 1px; }
.gal-send, .gal-stop { flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 86px; min-height: 37px; padding: 0 18px; border: 1px solid #49796f; border-radius: 9px; background: #56877c; color: #fffdef; font-size: 12px !important; letter-spacing: 2px; }
.gal-send:disabled { opacity: .46; cursor: default; }
.gal-send:not(:disabled):hover { background: #3c7167; }
.gal-send svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linejoin: round; }
.gal-stop { color: #a26c51; background: #f3e9d9; border-color: #dcc7ac; }
.gal-stop i { width: 9px; height: 9px; background: currentColor; border-radius: 2px; }
.is-generating .gal-input-hint { color: #b1835b; }
.gal-choice-list { bottom: calc(var(--gal-bottom-height, 285px) + 42px); }
.gal-log-entry p { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (pointer: coarse) {
  .gal-composer .gal-input-wrap textarea { font-size: 16px; }
  }
@media (max-width: 1000px) { .gal-composer { padding-inline: 21px; gap: 16px; }}
@media (max-height: 540px) and (orientation: landscape) {
  .gal-dialogue { min-height: 64px; max-height: 23cqh; padding: 11px 27px 23px; }
  .gal-composer { padding: 6px 21px; gap: 13px; }.gal-input-wrap textarea { min-height: 20px; font-size: 12px; }.gal-input-hint { display: none; }.gal-send, .gal-stop { min-height: 29px; min-width: 65px; padding: 0 12px; gap: 7px; font-size: 10px !important; border-radius: 7px; }.gal-send svg { width: 13px; height: 13px; }
  .gal-choice-list { bottom: calc(var(--gal-bottom-height, 160px) + 22px); }
}
@media (orientation: portrait) and (max-width: 720px) {
  .gal-dialogue { min-height: 52px; max-height: 23cqh; padding: 7px 16px 16px; }
  .gal-composer { padding: 5px 11px; gap: 8px; }.gal-recipient > span, .gal-input-hint { display: none; }.gal-input-wrap textarea { min-height: 16px; padding: 1px 0; font-size: 10px; letter-spacing: 0; }.gal-send, .gal-stop { min-width: 41px; min-height: 23px; padding: 0 7px; font-size: 8px !important; gap: 4px; letter-spacing: 0; border-radius: 5px; }.gal-send svg { width: 11px; height: 11px; }.gal-stop i { width: 6px; height: 6px; }
  .gal-choice-list { bottom: calc(var(--gal-bottom-height, 136px) + 13px); }
}
