/* Main page, account, login, bookmarks, test setup */

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.tile { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; min-width: 0; transition: border-color .15s, transform .08s; }
.tile:hover { border-color: var(--muted); }
.tile:active { transform: translateY(1px); }
.tile .tile-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tile .tile-kicker { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile .tile-title { font-weight: 600; font-size: 17px; line-height: 1.3; text-wrap: balance; }
.tile .tile-sub { font-size: 14px; color: var(--muted); }
.tile .tile-go { color: var(--muted); font-size: 20px; }
.tile.hero { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tile.hero .tile-kicker, .tile.hero .tile-sub, .tile.hero .tile-go { color: color-mix(in srgb, var(--surface) 70%, transparent); }
.tile.hero .tile-title { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.tile .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; flex: none; background: var(--surface-2); border: 1px solid var(--line); }
.tile.hero .icon { background: color-mix(in srgb, var(--surface) 12%, transparent); border-color: transparent; }
.tile .count { font-family: var(--f-mono); font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tile.disabled { opacity: .6; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }
.skeleton { height: 92px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }

/* test setup */
.picks { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.pick { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer; }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.pick .pick-body { display: grid; min-width: 0; }
.pick .pick-title { font-weight: 500; }
.pick .pick-sub { font-size: 13px; color: var(--muted); }
.pick.all { background: transparent; border-style: dashed; }
.split { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.run-nav { display: flex; justify-content: space-between; gap: 8px; }

/* account */
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 2px; }
.stat b { font-family: var(--f-display); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 90px; }
.bars div { background: var(--line); border-radius: 3px 3px 0 0; min-height: 3px; position: relative; }
.bars div i { position: absolute; inset: auto 0 0 0; background: var(--good); border-radius: 3px 3px 0 0; }
.bars-legend { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.lec-rows { display: grid; gap: 10px; }
.lec-row { display: flex; align-items: center; gap: 12px; }
.lec-row .t { flex: 1; min-width: 0; }
.lec-row .t b { display: block; font-weight: 500; }
.lec-row .t span { font-size: 13px; color: var(--muted); }
table.board { width: 100%; border-collapse: collapse; font-size: 15px; }
table.board th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 8px; }
table.board td { padding: 10px 8px; border-top: 1px solid var(--line); }
table.board td.n { font-family: var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
table.board th.n { text-align: right; }
table.board tr.me td { background: var(--accent-soft); }
table.board td.nick { overflow-wrap: anywhere; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 220px; padding: 11px 12px; font-size: 16px; }
.inline-form .btn { font-size: 15px; padding: 11px 16px; }
.danger-zone { display: flex; gap: 10px; flex-wrap: wrap; }
.support { display: flex; gap: 14px; align-items: center; }
.support p { margin: 0; flex: 1; }

/* login */
.login { max-width: 460px; width: 100%; margin: 0 auto; }
.steps { display: flex; gap: 6px; }
.steps i { height: 4px; flex: 1; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--accent); }
