/* Vitorr Typing Master — modern shared UI. Presentation only. */
:root{--tmp-ink:#101828;--tmp-muted:#667085;--tmp-line:rgba(148,163,184,.22);--tmp-blue:#2563eb;--tmp-indigo:#4f46e5;--tmp-violet:#7c3aed;--tmp-cyan:#06b6d4;--tmp-green:#16a34a;--tmp-amber:#f59e0b;--tmp-card:rgba(255,255,255,.88);--tmp-shadow:0 24px 70px rgba(30,41,59,.10)}
body{background:radial-gradient(circle at 10% 8%,rgba(34,211,238,.13),transparent 25%),radial-gradient(circle at 88% 16%,rgba(124,58,237,.14),transparent 29%),linear-gradient(180deg,#f8fbff 0%,#eef4ff 48%,#f8fafc 100%)!important;color:var(--tmp-ink);min-height:100vh}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(rgba(99,102,241,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(99,102,241,.035) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,black,transparent 72%);z-index:-1}
.tmp-wrap,.wrap,.page-wrap{max-width:1180px!important;margin:auto!important;padding:92px 16px 56px!important}
.tmp-app-nav{position:static!important;top:auto!important;left:auto!important;right:auto!important;z-index:auto!important;width:100%!important;max-width:none!important;height:auto!important;margin:0 0 20px!important;padding:0!important;clear:both!important;transform:none!important;pointer-events:auto!important}
.tmp-app-nav__inner{display:flex;gap:6px;align-items:center;overflow-x:auto;overflow-y:hidden;padding:7px 2px 10px!important;background:transparent!important;border:0!important;border-bottom:1px solid rgba(148,163,184,.28)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:0!important;scrollbar-width:none}
.tmp-app-nav__inner::-webkit-scrollbar{display:none}.tmp-app-nav a{flex:0 0 auto;text-decoration:none;color:#475467;font-size:13px;font-weight:800;padding:9px 12px;border-radius:12px;transition:.2s ease}.tmp-app-nav a:hover,.tmp-app-nav a.is-active{color:#fff;background:linear-gradient(135deg,var(--tmp-blue),var(--tmp-indigo) 55%,var(--tmp-violet));box-shadow:0 8px 18px rgba(79,70,229,.22);transform:translateY(-1px)}
.hero,.card,.metric,.page-card,.box,.cert{border:1px solid rgba(255,255,255,.76)!important;background:var(--tmp-card)!important;box-shadow:var(--tmp-shadow)!important;backdrop-filter:blur(16px);border-radius:26px!important}
.hero{position:relative;overflow:hidden;padding:34px!important;background:linear-gradient(135deg,rgba(239,246,255,.95),rgba(245,243,255,.94) 48%,rgba(236,254,255,.92))!important}.hero:before{content:"";position:absolute;width:330px;height:330px;border-radius:50%;right:-125px;top:-170px;background:linear-gradient(135deg,rgba(37,99,235,.25),rgba(124,58,237,.19));filter:blur(4px)}.hero:after{content:"⌨";position:absolute;right:42px;bottom:18px;font-size:112px;opacity:.07;transform:rotate(-8deg)}
.hero h1,.page-title,.card h1{letter-spacing:-.035em;color:#101828}.hero h1{max-width:790px;font-size:clamp(36px,5.4vw,62px)!important;line-height:1.02;margin:12px 0 16px!important}.hero .muted{max-width:820px;font-size:17px}.muted,.page-subtitle{color:var(--tmp-muted)!important}
.card,.page-card{padding:24px!important;margin-bottom:16px!important}.card h2{font-size:21px;letter-spacing:-.02em;margin-top:0}.card p,.page-card p{line-height:1.65}
.grid{gap:14px!important}.metric{position:relative;overflow:hidden;padding:20px!important;min-height:102px;transition:.2s ease}.metric:hover{transform:translateY(-3px);box-shadow:0 26px 55px rgba(30,41,59,.13)!important}.metric:after{content:"";position:absolute;right:-24px;bottom:-38px;width:100px;height:100px;border-radius:50%;background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(124,58,237,.16))}.metric strong{font-size:31px!important;letter-spacing:-.04em;color:#111827}.metric:nth-child(2) strong{color:#4f46e5}.metric:nth-child(3) strong{color:#0891b2}.metric:nth-child(4) strong{color:#16a34a}
.btn,.pill{min-height:42px;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;padding:10px 15px!important;border-radius:13px!important;font-weight:850!important;letter-spacing:-.01em;text-decoration:none;transition:.18s ease;cursor:pointer}.btn:hover,.pill:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(37,99,235,.14)}.btn.primary,.btn:not(.secondary){border:0!important}.primary,.btn{background:linear-gradient(135deg,var(--tmp-blue),var(--tmp-indigo) 56%,var(--tmp-violet))!important;color:#fff!important}.pill,.btn.secondary,.actions .btn:not(.primary){background:rgba(255,255,255,.84)!important;color:#344054!important;border:1px solid rgba(148,163,184,.28)!important}.actions{gap:9px!important}
.progress{height:12px!important;padding:2px;background:#e8eef8!important;border-radius:999px!important}.progress i{border-radius:999px;background:linear-gradient(90deg,#22c55e,#06b6d4,#4f46e5,#7c3aed)!important;box-shadow:0 2px 12px rgba(79,70,229,.22)}
.path{gap:10px!important}.step{position:relative;border:1px solid rgba(148,163,184,.20)!important;background:linear-gradient(180deg,#fff,rgba(248,250,252,.88))!important;border-radius:17px!important;padding:17px 11px!important;box-shadow:0 8px 20px rgba(15,23,42,.045);color:#344054}.step:before{content:"✓";display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0 auto 9px;border-radius:9px;background:linear-gradient(135deg,#dbeafe,#ede9fe);color:#4f46e5;font-size:13px}
.layout{gap:18px!important}.layout>aside.card{position:sticky;top:138px;height:max-content;max-height:calc(100vh - 160px)}.list{gap:8px!important}.item{border:1px solid rgba(148,163,184,.22)!important;background:rgba(248,250,252,.72)!important;border-radius:14px!important;padding:11px 12px!important;transition:.18s ease}.item:hover{border-color:#a5b4fc!important;background:#fff!important;transform:translateX(2px)}.item.done{background:linear-gradient(135deg,#ecfdf5,#f0fdf4)!important;border-color:#86efac!important}.item.active{outline:none!important;background:linear-gradient(135deg,#eef2ff,#f5f3ff)!important;border-color:#818cf8!important;box-shadow:0 0 0 3px rgba(99,102,241,.09)}
.practice,.target,.box:first-of-type{border:1px solid rgba(148,163,184,.22)!important;background:linear-gradient(180deg,rgba(248,250,252,.96),rgba(241,245,249,.86))!important;border-radius:18px!important}.practice,.target{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;letter-spacing:.01em;color:#1f2937;box-shadow:inset 0 1px 0 #fff}.input,textarea{background:rgba(255,255,255,.92)!important;border:2px solid #dbe4f0!important;border-radius:18px!important;outline:none!important;box-shadow:inset 0 1px 2px rgba(15,23,42,.03);transition:.2s ease}.input:focus,textarea:focus{border-color:#818cf8!important;box-shadow:0 0 0 5px rgba(99,102,241,.11)!important;background:#fff!important}
.stats{gap:10px!important}.pill,.stat{border-color:rgba(148,163,184,.24)!important}.stat{background:linear-gradient(180deg,#fff,#f8fafc)!important;border-radius:16px!important;box-shadow:0 8px 18px rgba(15,23,42,.04)}.stat strong{letter-spacing:-.035em}.badge{border-radius:13px!important}.keyboard{gap:7px!important}.key{min-width:38px;text-align:center;border:1px solid #cbd5e1!important;border-bottom-width:3px!important;border-radius:10px!important;background:linear-gradient(180deg,#fff,#f1f5f9)!important;box-shadow:0 3px 7px rgba(15,23,42,.07)}.key.target{background:linear-gradient(180deg,#fef3c7,#fde68a)!important;border-color:#f59e0b!important;color:#92400e}
.barrow{gap:11px!important}.bar{height:12px!important;padding:2px;background:#e7edf6!important}.bar i{border-radius:999px;background:linear-gradient(90deg,#06b6d4,#4f46e5,#7c3aed)!important}.badge{box-shadow:0 7px 16px rgba(245,158,11,.10)}
.tmp-kicker{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid rgba(99,102,241,.16);border-radius:999px;background:rgba(255,255,255,.72);font-size:12px;font-weight:900;letter-spacing:.08em;color:#4f46e5}.tmp-kicker:before{content:"●";font-size:9px;color:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.10);border-radius:50%}
.tmp-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}.tmp-feature{padding:16px;border-radius:18px;border:1px solid rgba(148,163,184,.18);background:rgba(255,255,255,.56)}.tmp-feature b{display:block;margin-bottom:5px}.tmp-feature span{font-size:13px;color:#667085}.tmp-feature i{font-style:normal;font-size:22px;display:block;margin-bottom:9px}
.tmp-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}.tmp-section-head h2{margin-bottom:2px}.tmp-section-head .muted{font-size:14px}
.tmp-status{display:inline-flex;align-items:center;gap:7px;font-weight:800;font-size:13px;color:#027a48;background:#ecfdf3;border:1px solid #abefc6;padding:7px 10px;border-radius:999px}
@media(max-width:900px){.tmp-feature-grid{grid-template-columns:1fr 1fr}.layout>aside.card{position:relative;top:auto;max-height:none}.tmp-app-nav{top:62px}}
@media(max-width:800px){.tmp-wrap,.wrap,.page-wrap{padding-top:86px!important}.tmp-app-nav{position:relative;top:auto;margin:0 auto -76px;padding-top:78px}.hero{padding:25px!important}.hero:after{font-size:80px;right:20px}.hero h1{font-size:clamp(34px,11vw,50px)!important}.grid{grid-template-columns:1fr 1fr!important}.path{grid-template-columns:1fr 1fr!important}}
@media(max-width:540px){.tmp-wrap,.wrap,.page-wrap{padding-left:11px!important;padding-right:11px!important}.card,.page-card{padding:18px!important;border-radius:21px!important}.hero{padding:22px!important}.grid,.tmp-feature-grid,.path{grid-template-columns:1fr!important}.metric{min-height:88px}.actions .btn,.actions .pill{width:100%}.practice,.target{font-size:18px!important;line-height:1.75!important;padding:14px!important}.input,textarea{font-size:18px!important}.tmp-app-nav{padding:0!important}.tmp-app-nav a{font-size:12px;padding:8px 10px}}


/* ===== Typing Engine v5: live character feedback ===== */
.typing-live-shell{margin-top:14px}
.typing-live-target{
    min-height:150px;padding:22px;border:1px solid rgba(99,102,241,.18);
    border-radius:18px;background:rgba(255,255,255,.72);font-size:1.14rem;
    line-height:2;letter-spacing:.015em;white-space:pre-wrap;overflow-wrap:anywhere;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8)
}
.typing-live-target .tc{border-radius:4px;transition:background .08s,color .08s}
.typing-live-target .tc.correct{color:#087f5b;background:rgba(16,185,129,.10)}
.typing-live-target .tc.wrong{color:#c92a2a;background:rgba(239,68,68,.15);text-decoration:underline;text-decoration-thickness:2px}
.typing-live-target .tc.current{background:rgba(79,70,229,.16);box-shadow:inset 2px 0 0 #4f46e5}
.typing-live-target .tc.pending{color:#64748b}
.typing-live-input{
    width:100%;min-height:145px;margin-top:14px;padding:18px;border:2px solid rgba(99,102,241,.18);
    border-radius:18px;background:#fff;color:#0f172a;font:inherit;line-height:1.7;resize:vertical;
    outline:none;transition:.2s ease;box-sizing:border-box
}
.typing-live-input:focus{border-color:#6366f1;box-shadow:0 0 0 4px rgba(99,102,241,.11)}
.typing-live-input:disabled{background:#f8fafc;cursor:not-allowed}
.typing-live-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.typing-live-metric{padding:12px 14px;border:1px solid rgba(148,163,184,.22);border-radius:14px;background:rgba(255,255,255,.72)}
.typing-live-metric b{display:block;font-size:1.2rem;color:#111827}.typing-live-metric small{color:#64748b;font-weight:700}
.typing-progress-track{height:7px;background:#e8eaf6;border-radius:999px;overflow:hidden;margin-top:12px}
.typing-progress-fill{height:100%;width:0;background:linear-gradient(90deg,#4f46e5,#7c3aed,#06b6d4);border-radius:inherit;transition:width .12s linear}
@media(max-width:700px){.typing-live-metrics{grid-template-columns:repeat(2,1fr)}.typing-live-target{font-size:1rem;padding:16px;min-height:125px}}


/* ===== Typing Engine v6: remaining practice modes ===== */
.typing-action-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}
.typing-secondary-btn{padding:10px 14px;border-radius:999px;border:1px solid rgba(99,102,241,.18);background:#fff;color:#334155;font-weight:800;cursor:pointer}
.typing-secondary-btn:hover{background:#f8fafc}
.typing-result-good{padding:12px 14px;border-radius:14px;background:#ecfdf5;color:#065f46;font-weight:800}
.typing-result-bad{padding:12px 14px;border-radius:14px;background:#fff1f2;color:#9f1239;font-weight:800}
