/* Sound like you, the tone card (26 October 2026, after Chris called the old one "tacky": "make the tone slider WAY
   better", premium). One white card in the site's card style: the language switch, the reply you wrote, the reply in
   their language, and a wide tone track with a white thumb that is dragged or tapped between Casual, Polite and
   Formal. No gradients, no colour boxes; type does the work. tone2.js drives it. */
.tone2{position:relative;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(32px,6vw,88px);align-items:center;
 margin:clamp(40px,5vw,64px) 0 0;padding:clamp(28px,4.4vw,56px);border-radius:28px;background:#fff;
 box-shadow:0 0 0 1px #03376d0d,0 30px 60px -44px #03376d47;font-family:Figtree,Respond,Arial,sans-serif;color:#17191C}

/* The language switch: a quiet segmented control, its white thumb sliding to the language picked. */
.t2-langs{position:relative;display:inline-flex;padding:3px;border-radius:999px;background:#F1F3F6;isolation:isolate}
.t2-langs button{position:relative;z-index:1;border:0;background:none;margin:0;padding:0 16px;height:34px;border-radius:999px;font:500 14px/34px Figtree,Respond,Arial,sans-serif;
 letter-spacing:-.005em;color:#6B717B;cursor:pointer;transition:color 200ms ease;-webkit-tap-highlight-color:transparent}
.t2-langs button[aria-checked="true"]{color:#17191C}
.t2-langs button:focus-visible{outline:2px solid #2884ff;outline-offset:2px}
.t2-lang-thumb{position:absolute;z-index:0;top:3px;left:0;height:34px;border-radius:999px;background:#fff;
 box-shadow:0 0 0 .5px rgba(23,25,28,.06),0 1px 2px rgba(23,25,28,.06),0 3px 10px rgba(23,25,28,.06);will-change:transform,width}

/* The words on the left; the language and the tone on the right (stacked under them on a phone). */
.t2-controls{display:flex;flex-direction:column;align-items:stretch;gap:20px}
.t2-controls .t2-langs{align-self:flex-start}
.t2-src{margin:0;font-size:16px;line-height:24px;letter-spacing:-.005em;color:#6B717B}
.t2-out{position:relative;margin:8px 0 0;font-size:clamp(26px,3.2vw,38px);line-height:1.18;font-weight:500;letter-spacing:-.022em;color:#17191C;text-wrap:balance}
.t2-out:lang(ja){font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Noto Sans JP",Meiryo,sans-serif;letter-spacing:0;font-weight:600}
.t2-out:lang(ko){font-family:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;letter-spacing:-.01em;font-weight:600}
.t2-word{display:inline-block;white-space:pre}
.t2-ghost{position:absolute;pointer-events:none;white-space:pre}
.t2-ruler{position:absolute;visibility:hidden;pointer-events:none;left:0;top:0}

/* The tone: the app's liquid slider (liquid-slider.js, its own styles in play.css) under Casual, Polite and Formal,
   with a bigger thumb and its bar in the language switch's grey (Chris, 26 October 2026). */
.t2-tone{display:flex;flex-direction:column;gap:12px}
.t2-ends{display:grid;grid-template-columns:repeat(3,1fr);font-size:14px;font-weight:500;letter-spacing:-.005em;color:#8A9099;user-select:none;-webkit-user-select:none}
.t2-ends span{cursor:pointer;transition:color 200ms ease}
.t2-ends span:nth-child(2){text-align:center}
.t2-ends span:last-child{text-align:right}
.t2-ends span.is-on{color:#17191C}
.tone2 .liquid-track{background:#F1F3F6}

@media(max-width:900px){
 .tone2{display:flex;flex-direction:column;align-items:stretch;gap:0}
 .t2-controls{display:contents}
 .t2-langs{order:1}
 .t2-words{order:2;margin-top:28px}
 .t2-tone{order:3;margin-top:28px}
}
@media(max-width:700px){
 .tone2{border-radius:24px}
 .t2-langs button{padding:0 12px;font-size:13.5px}
 .t2-src{font-size:15px;line-height:22px}
}
@media(prefers-reduced-motion:reduce){.t2-langs button{transition:none}}
