.flow-lab { max-width:1120px; margin:48px auto; padding:0 24px 48px; color:#17253d; }
.flow-eyebrow { font-size:12px; font-weight:800; letter-spacing:.13em; color:#2563eb; }
.flow-lab h1 { font-size:clamp(30px,5vw,48px); font-weight:800; line-height:1.35; margin:16px 0; }
.flow-intro { color:#64748b; line-height:1.9; margin-bottom:32px; }
.flow-panel { background:#fff; border:1px solid #dce4ef; border-radius:20px; padding:28px; margin:20px 0; box-shadow:0 6px 24px #17253d05; }
.flow-section-heading { margin-bottom:20px; }
.flow-section-heading>span { font-size:11px; font-weight:800; letter-spacing:.12em; color:#2563eb; }
.flow-lab h2 { font-size:22px; font-weight:750; margin-top:6px; }
.flow-lab h3 { font-weight:700; font-size:16px; }
.flow-presets { display:flex; gap:10px; flex-wrap:wrap; margin:18px 0; }
.flow-lab button { border:1px solid #cbd5e1; border-radius:12px; padding:10px 16px; min-height:44px; background:white; font-size:18px; font-weight:650; cursor:pointer; }
.flow-lab button:hover { background:#eff6ff; }
.flow-lab button:focus-visible,.flow-lab textarea:focus-visible { outline:3px solid #60a5fa; outline-offset:3px; }
.flow-lab button[aria-pressed=true] { background:#2563eb; color:white; border-color:#2563eb; }
.flow-lab label { display:block; font-weight:650; font-size:14px; }
.flow-lab small { display:block; font-size:12px; color:#64748b; font-weight:400; margin-top:6px; }
#flow-input { width:100%; box-sizing:border-box; border:1px solid #cbd5e1; border-radius:12px; font-size:18px; padding:12px; margin-top:8px; resize:vertical; line-height:1.7; }
.flow-muted { color:#64748b; font-size:13px; line-height:1.8; margin:12px 0; }
.flow-summary { display:grid; grid-template-columns:1fr 1.6fr; gap:12px; }
.flow-summary>div { background:#f8fafc; padding:20px; border-radius:14px; min-width:0; }
.flow-summary span { font-size:12px; color:#64748b; }
.flow-summary strong { display:block; font-size:24px; margin-top:8px; overflow-wrap:anywhere; }
#flow-codepoint { font-size:16px; line-height:1.7; max-height:120px; overflow:auto; }
#flow-character { white-space:pre-wrap; max-height:160px; overflow:auto; }
.flow-encodings,.flow-decoded-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:24px; }
.flow-encoding,.flow-decoded-grid>div { min-width:0; }
.flow-encoding-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.flow-encoding-heading h3 { font-size:20px; }
.flow-encoding-heading>span { color:#2563eb; font-size:12px; font-weight:650; }
.flow-status { font-size:12px; color:#64748b; line-height:1.7; min-height:42px; margin:8px 0 16px; overflow-wrap:anywhere; }
.flow-raw { display:block; width:100%; box-sizing:border-box; resize:vertical; background:#13213a; color:#dbeafe; border:1px solid #334155; border-radius:12px; padding:16px; margin:10px 0 20px; font:16px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace; word-break:break-all; white-space:pre-wrap; overflow-wrap:anywhere; }
.flow-hex { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; word-break:normal; }
.flow-insight { border-left:3px solid #2563eb; padding:12px 16px; margin-top:24px; background:#f8fafc; line-height:1.8; font-size:14px; }
.flow-decoded { white-space:pre-wrap; overflow-wrap:anywhere; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:12px; padding:16px; margin:12px 0; min-height:100px; max-height:220px; overflow:auto; font:18px/1.8 sans-serif; }
.flow-wrong { background:#fff7ed; border-color:#fed7aa; }
.flow-lab details { font-size:14px; line-height:1.8; }
.flow-lab summary { cursor:pointer; font-weight:650; }
.flow-lab details p { margin:12px 0; color:#64748b; }
.flow-lab a { color:#2563eb; text-decoration:underline; }
@media(max-width:700px) {
 .flow-lab { margin:24px auto; padding:0 12px 24px; }
 .flow-panel { padding:18px 16px; border-radius:16px; }
 .flow-lab h2 { font-size:19px; }
 .flow-summary,.flow-encodings,.flow-decoded-grid { grid-template-columns:1fr; }
 .flow-summary>div { padding:14px; }
 .flow-summary strong { font-size:20px; }
 .flow-status { min-height:0; }
}

.flow-select { display:block; width:100%; max-width:380px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; padding:12px; margin-top:10px; font-size:16px; color:#17253d; }
.flow-select:focus-visible { outline:3px solid #60a5fa; outline-offset:3px; }
