/* P5-29 TRANSLATE (R-1009-96). Same gloves rules as ask.css: nothing under
   18 px, every tap >= 56 px, primary >= 64 px. Device width: the two panes
   stack (what I say on top, what they hear below); a desk >= 900 px puts
   them side by side. "Show big" fills the screen with the words in 40 px. */
[hidden] { display: none !important; }
body.tr { margin: 0; background: var(--c-bg, #000); color: var(--c-text, #FFF); font: 18px/1.35 -apple-system, "Helvetica Neue", Arial, sans-serif; }
body.tr .tr-own-title { font-size: 26px; margin: 0; padding: 14px 16px 6px; }
body.tr .tr-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px 0; }
body.tr .tr-tab { min-height: 56px; margin: 0; background: #000; border: 2px solid #7A8AA0; border-radius: 12px; color: #C7C7C7; font: 800 18px/1.1 -apple-system, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; box-shadow: none; }
body.tr .tr-tab.on { border-color: #0091FF; color: #FFF; }
body.tr main { padding: 8px 16px 24px; }
body.tr .tr-warn { color: #FFB020; font-weight: 700; font-size: 18px; margin: 10px 16px; }
body.tr main .tr-warn { margin: 10px 0; }
body.tr .tr-hint { color: #A3ACB9; font-size: 18px; margin: 6px 0; }
body.tr .tr-count { white-space: nowrap; }
body.tr .tr-dirbar { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
body.tr .tr-dir { flex: 1 1 auto; font: 900 24px/1.1 -apple-system, Arial, sans-serif; color: #19E6FF; letter-spacing: .04em; }
body.tr .tr-btn { display: flex; align-items: center; justify-content: center; box-sizing: border-box; background: #000; color: #FFF; border: 2px solid #0091FF; border-radius: 14px; padding: 12px 16px; font: 800 20px/1.1 -apple-system, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; min-height: 64px; margin: 0; }
body.tr .tr-btn:disabled { border-color: #7A8AA0; color: #A3ACB9; }
body.tr .tr-swap { flex: 0 0 auto; min-width: 120px; }
body.tr .tr-panes { display: flex; flex-direction: column; gap: 14px; }
body.tr .tr-pane { border: 2px solid #7A8AA0; border-radius: 16px; padding: 12px; }
body.tr .tr-pane--hear { border-color: #19E6FF; }
body.tr .tr-label { display: block; font: 700 18px/1.2 -apple-system, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #57A9FE; margin: 0 0 8px; }
body.tr .tr-box { width: 100%; box-sizing: border-box; min-height: 132px; background: #000; border: 2px solid #C7C7C7; border-radius: 12px; padding: 12px 14px; font-size: 24px; line-height: 1.35; color: #FFF; caret-color: #19E6FF; resize: vertical; font-family: inherit; }
body.tr .tr-go { width: 100%; margin-top: 10px; min-height: 72px; font-size: 24px; border: 3px solid #3DDC84; }
body.tr .tr-out { min-height: 132px; font-size: 28px; line-height: 1.3; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
body.tr .tr-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
body.tr .tr-group { font: 700 18px/1.2 -apple-system, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #57A9FE; margin: 18px 0 8px; }
body.tr .tr-phrase { display: block; width: 100%; text-align: left; min-height: 64px; margin: 0 0 8px; background: #000; border: 2px solid #7A8AA0; border-radius: 14px; color: #FFF; padding: 10px 14px; font: 600 20px/1.3 -apple-system, Arial, sans-serif; box-shadow: none; }
body.tr .tr-bigview { position: fixed; inset: 0; z-index: 1000; background: #000; color: #FFF; display: flex; flex-direction: column; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); box-sizing: border-box; }
body.tr .tr-bigtext { flex: 1 1 auto; overflow: auto; font: 800 40px/1.25 -apple-system, Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
body.tr .tr-bignote { color: #FFB020; font-weight: 700; font-size: 20px; }
body.tr .tr-bigclose { width: 100%; flex: 0 0 auto; }
@media (min-width: 900px) {
  body.tr .tr-panes { flex-direction: row; }
  body.tr .tr-pane { flex: 1 1 0; }
  body.tr main { max-width: 1280px; margin: 0 auto; }
}
