/* Sobekhanei typing test: scoped to the existing ?tool=typing route */
.sobe-typing{padding:34px 0 64px;color:#0f172a}
.sobe-typing *{box-sizing:border-box}
.sobe-typing .st-wrap{width:min(1180px,calc(100% - 48px));margin:0 auto}
.sobe-typing .st-breadcrumb{font-size:12px;color:#64748b;margin:0 0 12px}
.sobe-typing .st-breadcrumb a{color:#2563eb}
.sobe-typing .st-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}
.sobe-typing .st-heading-copy{max-width:760px}
.sobe-typing .st-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#2563eb;font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase}
.sobe-typing .st-eyebrow:before{content:"";width:20px;height:2px;background:#2563eb;border-radius:2px}
.sobe-typing h1{font-size:34px;line-height:1.4;letter-spacing:-.5px;margin:8px 0 6px;color:#0f172a}
.sobe-typing .st-subtitle{color:#64748b;font-size:14px;line-height:1.8;margin:0}
.sobe-typing .st-language{display:flex;gap:4px;padding:4px;background:#eff6ff;border:1px solid #dbeafe;border-radius:12px;flex-shrink:0}
.sobe-typing .st-language button{border:0;background:transparent;color:#52627e;border-radius:8px;padding:9px 13px;font-size:13px;font-weight:700;min-height:38px}
.sobe-typing .st-language button.is-active{background:#2563eb;color:#fff;box-shadow:0 2px 5px #1d4ed81c}
.sobe-typing .st-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,.82fr);gap:20px;align-items:start}
.sobe-typing .st-panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:22px;box-shadow:0 5px 18px #0f172a05}
.sobe-typing .st-panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px}
.sobe-typing .st-panel-title h2{font-size:17px;margin:0;color:#0f172a}
.sobe-typing .st-panel-title span{font-size:11px;color:#64748b;background:#f1f5f9;padding:5px 9px;border-radius:6px}
.sobe-typing .st-passage{min-height:190px;max-height:275px;overflow:auto;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:19px 20px;font-family:Inter,"Noto Sans Bengali",sans-serif;font-size:21px;line-height:2.05;word-break:normal;overflow-wrap:anywhere}
.sobe-typing .st-word{border-radius:4px;padding:1px 2px;transition:background .12s,color .12s}
.sobe-typing .st-word.is-current{background:#dbeafe;color:#1d4ed8;box-shadow:inset 0 -2px #2563eb;font-weight:700}
.sobe-typing .st-word.is-correct{background:#dcfce7;color:#166534}
.sobe-typing .st-word.is-wrong{background:#fee2e2;color:#b91c1c;text-decoration:underline;text-decoration-color:#ef4444;text-decoration-thickness:1px}
.sobe-typing .st-current-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 8px}
.sobe-typing .st-current-label{font-size:12px;color:#64748b}
.sobe-typing .st-current-word{font-size:16px;font-weight:700;color:#1d4ed8;min-height:25px}
.sobe-typing .st-input-row{display:flex;gap:10px;align-items:stretch}
.sobe-typing .st-input{width:100%;min-width:0;height:52px;padding:0 15px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font:500 16px Inter,"Noto Sans Bengali",sans-serif;outline:none;transition:border-color .15s,box-shadow .15s}
.sobe-typing .st-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb18}
.sobe-typing .st-input:disabled{background:#f8fafc;color:#94a3b8;cursor:not-allowed}
.sobe-typing .st-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 17px;border:1px solid #2563eb;border-radius:10px;background:#2563eb;color:#fff;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.sobe-typing .st-btn:hover{background:#1d4ed8;border-color:#1d4ed8}
.sobe-typing .st-btn:active{transform:translateY(1px)}
.sobe-typing .st-btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.sobe-typing .st-btn.st-secondary{background:#fff;color:#1d4ed8;border-color:#cbd5e1}
.sobe-typing .st-btn.st-secondary:hover{background:#eff6ff;border-color:#bfdbfe}
.sobe-typing .st-btn.st-danger{background:#fff;color:#b91c1c;border-color:#fecaca}
.sobe-typing .st-btn.st-danger:hover{background:#fff1f2}
.sobe-typing .st-help{display:flex;align-items:center;gap:8px;color:#64748b;font-size:11px;line-height:1.7;margin:10px 0 0}
.sobe-typing .st-help kbd{display:inline-flex;align-items:center;justify-content:center;min-width:45px;padding:2px 7px;border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:5px;background:#fff;color:#334155;font:600 11px Inter,sans-serif}
.sobe-typing .st-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.sobe-typing .st-controls .st-btn{min-width:112px}
.sobe-typing .st-status{min-height:22px;margin:10px 0 0;font-size:12px;color:#64748b}
.sobe-typing .st-status.is-error{color:#b91c1c}
.sobe-typing .st-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.sobe-typing .st-stat{padding:12px 13px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;min-width:0}
.sobe-typing .st-stat-label{display:block;color:#64748b;font-size:11px;margin-bottom:5px}
.sobe-typing .st-stat-value{display:block;color:#0f172a;font-size:21px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}
.sobe-typing .st-stat-value small{font-size:10px;font-weight:600;color:#64748b}
.sobe-typing .st-progress{height:6px;background:#e2e8f0;border-radius:20px;overflow:hidden;margin-top:14px}
.sobe-typing .st-progress span{display:block;width:0;height:100%;background:#2563eb;border-radius:20px;transition:width .15s}
.sobe-typing .st-side-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}
.sobe-typing .st-side-title h2{font-size:16px;margin:0}
.sobe-typing .st-side-title span{font-size:11px;color:#64748b}
.sobe-typing .st-time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sobe-typing .st-time{min-height:42px;border:1px solid #dbeafe;border-radius:9px;background:#fff;color:#1e40af;font-size:13px;font-weight:700;cursor:pointer}
.sobe-typing .st-time:hover{background:#eff6ff}
.sobe-typing .st-time.is-active{background:#2563eb;border-color:#2563eb;color:#fff}
.sobe-typing .st-time:disabled{opacity:.5;cursor:not-allowed}
.sobe-typing .st-side-note{font-size:11px;color:#64748b;line-height:1.7;margin:12px 0 0}
.sobe-typing .st-result{margin-top:16px;padding:18px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff}
.sobe-typing .st-result[hidden]{display:none}
.sobe-typing .st-result h3{margin:0 0 6px;font-size:18px;color:#1e40af}
.sobe-typing .st-result p{margin:0 0 12px;font-size:12px;color:#52627e}
.sobe-typing .st-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sobe-typing .st-result-item{background:#fff;border:1px solid #dbeafe;border-radius:8px;padding:10px}
.sobe-typing .st-result-item small{display:block;color:#64748b;font-size:10px}
.sobe-typing .st-result-item strong{display:block;color:#0f172a;font-size:19px;margin-top:3px}
.sobe-typing .st-custom{margin-top:20px}
.sobe-typing .st-custom h2{font-size:17px;margin:0 0 5px}
.sobe-typing .st-custom>p{font-size:12px;color:#64748b;margin:0 0 13px;line-height:1.8}
.sobe-typing .st-custom textarea{display:block;width:100%;min-height:110px;padding:13px 14px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font:14px/1.9 Inter,"Noto Sans Bengali",sans-serif;resize:vertical;outline:none}
.sobe-typing .st-custom textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb18}
.sobe-typing .st-custom-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:12px}
.sobe-typing .st-check{display:inline-flex;align-items:center;gap:8px;color:#475569;font-size:12px;cursor:pointer}
.sobe-typing .st-check input{width:16px;height:16px;accent-color:#2563eb}
.sobe-typing .st-info{display:grid;grid-template-columns:1fr;gap:10px;margin-top:20px}
.sobe-typing .st-info article{padding:16px 18px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
.sobe-typing .st-info h3{font-size:14px;margin:0 0 6px}
.sobe-typing .st-info p{font-size:12px;color:#64748b;line-height:1.8;margin:0}
.sobe-typing button:focus-visible,.sobe-typing input:focus-visible,.sobe-typing textarea:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
@media(max-width:900px){.sobe-typing .st-layout{grid-template-columns:minmax(0,1fr) 280px}.sobe-typing .st-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sobe-typing{padding:25px 0 45px}.sobe-typing .st-wrap{width:calc(100% - 30px)}.sobe-typing .st-heading{display:block;margin-bottom:18px}.sobe-typing h1{font-size:27px}.sobe-typing .st-language{width:max-content;margin-top:14px}.sobe-typing .st-layout{grid-template-columns:1fr;gap:14px}.sobe-typing .st-panel{padding:16px;border-radius:13px}.sobe-typing .st-passage{font-size:18px;line-height:2;min-height:165px;padding:14px}.sobe-typing .st-input-row{flex-direction:column}.sobe-typing .st-input{height:49px}.sobe-typing .st-controls .st-btn{flex:1}.sobe-typing .st-stats{gap:8px}.sobe-typing .st-stat{padding:10px}.sobe-typing .st-stat-value{font-size:19px}.sobe-typing .st-time-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sobe-typing .st-info{grid-template-columns:1fr}.sobe-typing .st-custom-actions{align-items:flex-start}.sobe-typing .st-custom-actions .st-btn{width:100%}}
@media(prefers-reduced-motion:reduce){.sobe-typing *{scroll-behavior:auto!important;transition:none!important}}
