/* Timer */
.timer-page .page-head { margin-bottom: 12px; }
.t-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; background: var(--accent-soft); border-radius: 12px; margin-bottom: 14px; font-size: 13.5px; } .t-note .icon { margin-top: 2px; color: var(--accent2); }
.t-import { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; } .t-import > div:nth-child(2) { flex: 1; }
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.t-main { display: flex; flex-direction: column; gap: 14px; }
.t-sess { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; } .t-sess .field { min-width: 170px; flex: 1; } .sess-btns { padding-bottom: 2px; }
.t-scrcard { padding: 16px; text-align: center; } .t-scramble { font: 600 clamp(17px, 2.2vw, 26px)/1.5 ui-monospace, Menlo, monospace; letter-spacing: .02em; word-spacing: .15em; margin-bottom: 10px; } .t-scramble.long { font-size: 17px; } .t-scramble.xl { font-size: 13px; text-align: left; max-height: 220px; overflow: auto; } .t-scrbtns { justify-content: center; }
.t-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; border-radius: 20px; border: 1px solid var(--line2); background: radial-gradient(80% 90% at 50% 0%, rgba(31, 107, 255, .18), transparent 70%), var(--card-bg); user-select: none; -webkit-user-select: none; touch-action: none; cursor: pointer; outline: none; }
.t-panel:focus-visible { border-color: var(--accent2); }
.t-time { font: 800 clamp(64px, 14vw, 140px)/1 ui-monospace, 'SF Mono', Menlo, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.02em; transition: color .1s; } .t-time.hold { color: var(--bad); } .t-time.ready { color: var(--good); } .t-time.insp { color: var(--warn); } .t-time.late { color: var(--bad); } .t-time.run { color: var(--text); }
.t-warn { position: absolute; top: 16px; font-weight: 800; letter-spacing: .12em; color: var(--warn); min-height: 1em; } .t-hint { position: absolute; bottom: 14px; margin: 0; color: var(--muted); font-size: 13.5px; text-align: center; padding: 0 12px; }
.t-last { min-height: 36px; } .center-row { justify-content: center; } .t-opt { align-self: center; }
.t-tbl th { background: none; } .t-tbl td.best, .t-tbl .best { color: var(--good); font-weight: 700; } .t-tbl th:first-child { text-transform: none; font-size: 13px; color: var(--text); }
.t-side { position: sticky; top: calc(var(--nav-h) + 12px); } .t-histwrap { max-height: 480px; overflow: auto; }
.t-big { font-size: 44px; font-weight: 800; text-align: center; }
.t-active .t-stats, .t-active .t-side, .t-active .t-scrcard, .t-active .t-sess, .t-active .t-note { opacity: .12; transition: opacity .2s; pointer-events: none; }
.t-active .t-panel { min-height: 360px; }
@media (max-width: 1000px) { .t-grid { grid-template-columns: 1fr; } .t-side { position: static; } .t-panel { min-height: 240px; } }
@media (max-width: 700px) { .t-active .t-panel { min-height: 55vh; } }

/* Player area */
.psub { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 2px; scrollbar-width: none; } .psub::-webkit-scrollbar { display: none; }
.psub a { flex: none; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; } .psub a:hover { background: var(--tile); text-decoration: none; color: var(--text); } .psub a.on { background: var(--accent-soft); color: var(--accent2); }
.welcome { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; } .welcome h1 { font: italic 800 28px var(--display); margin: 0 0 4px; }
.qn { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .qn a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; background: var(--tile); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; } .qn a:hover { text-decoration: none; background: var(--accent-soft); } .qn .icon { color: var(--accent2); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; } .dash-grid > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.avatar-edit { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }
