/* One consistent control row, anchored below the main type tester. */
.result-mode .specimen-surface{display:flex;flex-direction:column;gap:28px;padding:32px;border-radius:28px}
/* A textarea clips at its padding box, so with leading under 1 the tops of the
   first line's capitals (and accents) were cut off, and slanted letters lost
   the ink that reaches left of where the line starts (an italic M or D).
   Padding in em grows with the type size; the matching negative margin keeps
   the text where it was, and the box reaches out into the surface's padding.
   The right edge stays put, so the measure and the resize grip don't move. */
.result-mode .specimen-surface #previewText{flex:1;width:calc(100% + .2em);margin:-.22em 0 -.1em -.2em;padding:.22em 0 .1em .2em;min-height:340px;background:transparent}
/* Under 700px app.js fits the tester's type to its clientWidth, which counts
   padding. Keep the box's width there so the type keeps its size; the room
   on the left comes out of the measure instead. */
@media(max-width:700px){.result-mode .specimen-surface #previewText{width:100%}}
/* The specimen textareas clip the same way (overflow hidden, 2px of default
   padding), and a slanted last letter can lean out on the right too. They
   grow by the room on both sides, so they wrap as before. */
.result-mode .reading-sample textarea,
.result-mode .display-specimen textarea{width:calc(100% + .32em);margin-left:-.2em;margin-right:-.12em;padding-left:calc(2px + .2em);padding-right:calc(2px + .12em)}
/* specimen-studio.js shrinks the display sample's type once its clientWidth
   is under 1000px, which happens below 1200px windows. Keep its width there,
   as with the tester on phones. */
@media(max-width:1199px){.result-mode .display-specimen textarea{width:100%}}
.result-mode .specimen-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:12px;width:100%;margin:0;padding:0}
.result-mode .specimen-toolbar>.size-control,
.result-mode .specimen-toolbar>.specimen-leading,
.result-mode .specimen-toolbar>.specimen-kerning{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;max-width:none;height:52px;min-height:52px;margin:0;border:0;border-radius:100px;background:#f1f1f2;color:#606064;font:500 13px Inter,sans-serif}
.result-mode .specimen-toolbar>.size-control,
.result-mode .specimen-toolbar>.specimen-leading,
.result-mode .specimen-toolbar>.specimen-kerning{padding:0 18px;gap:12px}
.result-mode .specimen-toolbar .size-control>span,
.result-mode .specimen-toolbar .specimen-leading>span,
.result-mode .specimen-toolbar .specimen-kerning>span{font-size:13px;flex:none;color:inherit}
.result-mode .specimen-toolbar input[type=range]{width:0;flex:1;min-width:24px;height:24px;margin:0;accent-color:#222}
.result-mode .specimen-toolbar output{flex:0 0 38px;text-align:right;font-size:13px;font-variant-numeric:tabular-nums;color:#333}
.result-mode .specimen-toolbar>.specimen-kerning{order:3}
@media(max-width:800px){
 .result-mode .specimen-surface{padding:20px;border-radius:24px;gap:24px}
 .result-mode .specimen-surface #previewText{min-height:300px}
 .result-mode .specimen-toolbar{grid-template-columns:minmax(0,1fr);gap:10px}
}
