/* Site pages around the question player. Colors and fonts come from the tokens in lab.css.
   Study-manual layout: navy header, paper page, one column, rules instead of cards. */
.site-head {
  background: var(--header); color: var(--header-ink);
  border-top: 3px solid var(--btn); border-bottom: 0;
}
.site-head .wrap { padding-block: 0; }
.head-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand cta" "nav nav";
  align-items: center; gap: 8px 16px; padding-block: 10px 12px;
}
.site-head .brand { grid-area: brand; text-decoration: none; color: var(--header-ink); justify-self: start; }
.site-head .brand span { color: var(--header-ink); }
.head-bar > #nav-cta { grid-area: cta; }
.site-nav { grid-area: nav; display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; gap: 6px 18px; margin: 0; font-size: 14px; }
.site-nav a { color: var(--header-muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--header-ink); }
.site-nav a[aria-current="page"] { color: var(--header-ink); font-weight: 600; border-bottom-color: var(--btn); }
.site-head a.btn.primary { color: var(--btn-ink); background: var(--btn); border-color: var(--btn); }
a.btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
a.btn.primary { color: var(--btn-ink); }
@media (min-width: 960px) {
  .head-bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav cta"; padding-block: 0; column-gap: 28px; }
  .site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; }
  .site-head .brand, .site-nav a, .head-bar > #nav-cta { padding-block: 14px; }
}

.preview-bar { background: var(--accent-soft); font-size: 13px; }
.preview-bar .wrap { padding-block: 8px; }

main.site { display: flex; flex-direction: column; gap: 40px; padding-block: 28px 16px; }
@media (max-width: 620px) { main.site { gap: 32px; padding-block: 20px 8px; } }
.site h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 600; line-height: 1.2; letter-spacing: 0; margin: 0 0 12px; text-wrap: balance; }
.site h2 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: 0; margin: 0 0 12px; text-wrap: balance; }
.site h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.lede { font-size: 17px; color: var(--ink); max-width: 62ch; margin: 0 0 16px; }
.section-intro { color: var(--muted); max-width: 68ch; margin: 0 0 14px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.source { font-size: 13px; color: var(--muted); max-width: 70ch; margin: 10px 0 0; }
.home h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.small { font-size: 13px; color: var(--muted); }

/* Homepage: exam cover sheet, not a marketing hero */
.mast { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); gap: 28px 36px; align-items: start; }
@media (max-width: 900px) { .mast { grid-template-columns: minmax(0, 1fr); } }
/* Homepage picture: a Security+ style simulation. Light applet on purpose, in both color schemes. */
.exam-sim {
  margin: 0; min-width: 0; border: 1px solid #9a9a9a; background: #f3f3f3; color: #1a1a1a;
  font-family: "Segoe UI", Arial, sans-serif; color-scheme: light;
}
.sim-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 8px; background: #e4e4e4; border-bottom: 1px solid #b5b5b5; font-size: 12px; font-weight: 600; }
.sim-reset { border: 1px solid #8d8d8d; background: #f7f7f7; padding: 1px 10px; font-weight: 400; }
.sim-stem { margin: 0; padding: 8px 10px 0; font-size: 13px; line-height: 1.4; }
.sim-canvas { padding: 8px 10px 12px; }
.sim-bin { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 8px; background: #fff; border: 1px solid #c8c8c8; }
.sim-bin li { border: 1px solid #222; background: #fff; padding: 3px 8px; font-size: 12px; line-height: 1.3; box-shadow: 1px 1px 0 #ccc; }
.sim-spine { display: flex; flex-direction: column; align-items: center; }
.sim-line { display: block; width: 2px; height: 12px; background: #222; }
.sim-cloudwrap { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; }
.sim-cloud { width: 72px; height: 42px; display: block; }
.sim-drop, .sim-box { width: min(100%, 300px); }
.sim-drop { border: 1px dashed #666; background: #fff; padding: 5px 8px; font-size: 12px; line-height: 1.35; text-align: center; }
.sim-drop b, .sim-box > b { display: block; font-size: 12px; }
.sim-box { border: 1px solid #222; background: #fafafa; padding: 8px; }
.sim-box > b { text-align: center; margin-bottom: 6px; }
.sim-drops { display: flex; flex-direction: column; gap: 6px; }
.sim-hosts { display: flex; justify-content: center; gap: 14px; margin: 0 0 8px; }
.sim-pc, .sim-srv { display: block; position: relative; }
.sim-pc { width: 26px; height: 18px; border: 2px solid #222; background: #fff; }
.sim-pc::before { content: ""; position: absolute; left: 7px; top: 16px; width: 8px; height: 0; border-bottom: 2px solid #222; }
.sim-pc::after { content: ""; position: absolute; left: 4px; top: 18px; width: 14px; height: 0; border-bottom: 2px solid #222; }
.sim-srv { width: 18px; height: 26px; border: 2px solid #222; background: linear-gradient(#222, #222) 3px 5px / 10px 2px no-repeat, linear-gradient(#222, #222) 3px 11px / 10px 2px no-repeat, linear-gradient(#222, #222) 3px 17px / 10px 2px no-repeat, #fff; }
.sim-note { margin: 0; padding: 8px 10px 10px; border-top: 1px solid #ddd; font-family: var(--sans); font-size: 12px; color: #444; }
.exam-sim .more { margin: 8px 10px 10px; font-size: 14px; font-family: var(--sans); }

.weights { width: 100%; border-collapse: collapse; font-size: 15px; }
.weights th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
.weights td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.weights td:first-child { font-weight: 600; }
.weights .mono { font-family: var(--mono); font-weight: 500; color: var(--accent); margin-right: 8px; }
.weights .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; width: 4.5rem; padding-right: 0; }
.weights .share { width: 11rem; }
.bar { display: block; width: 11rem; max-width: 100%; height: 10px; background: color-mix(in srgb, var(--ink) 22%, var(--bg)); }
.bar span { display: block; height: 100%; background: var(--ink); }
.bar .p12 { width: 12%; } .bar .p18 { width: 18%; } .bar .p20 { width: 20%; } .bar .p22 { width: 22%; } .bar .p28 { width: 28%; }
@media (max-width: 640px) {
  .weights .share { width: auto; }
  .weights th:nth-child(2), .weights td.share { display: none; }
}

.exam-day { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.exam-day li { padding: 12px 0; border-bottom: 1px solid var(--line); max-width: 68ch; }
.exam-day li strong { font-weight: 600; }

.reading { list-style: none; margin: 0; padding: 0; }
.reading li { border-bottom: 1px solid var(--line); }
.reading a { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 2px 16px; padding: 12px 0; color: inherit; text-decoration: none; }
.reading a:hover .article-title { color: var(--accent); }
.reading time { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.reading .article-title { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.home a:not(.btn) { color: var(--accent); text-underline-offset: 2px; }
.home .reading a { color: inherit; text-decoration: none; }
.home .reading a:hover .article-title { color: var(--accent); text-decoration-color: var(--accent); }
.reading .article-desc { grid-column: 2; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) {
  .reading a { grid-template-columns: minmax(0, 1fr); }
  .reading .article-desc { grid-column: 1; }
}
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; }
@media (max-width: 720px) { .access { grid-template-columns: minmax(0, 1fr); } }
.access ul { margin: 0 0 14px; padding-left: 1.15em; }
.access li { margin: 0 0 6px; }

/* Task types: a specification list, one row per kind */
.types { list-style: none; padding: 0; margin: 0; }
.types li {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 18px; row-gap: 2px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line); background: none;
}
.types p { grid-column: 2; margin: 0; font-size: 14px; color: var(--muted); }
.types .tag { grid-row: 1 / span 2; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.types h3 { grid-column: 2; margin: 0; }
@media (max-width: 560px) {
  .types li { grid-template-columns: minmax(0, 1fr); }
  .types .tag { grid-row: auto; }
  .types h3, .types p { grid-column: 1; }
}

/* Objective sample */
.obj-sample { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; max-width: 64ch; font-size: 14px; }
.obj-sample p { margin: 0; }
.obj-sample p + p { margin-top: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.facts b { font-weight: 600; }

/* Security+ hub */
.domain-block { display: flex; flex-direction: column; gap: 8px; }
.domain-block + .domain-block { margin-top: 28px; }
.domain-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.domain-head .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.domain-head .count { font-size: 13px; color: var(--muted); margin-left: auto; }
.q-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.q-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: inherit; text-decoration: none; }
a.q-item:hover { border-color: var(--accent); }
.q-item .q-title { font-weight: 500; }
.q-item .q-meta { font-size: 13px; color: var(--muted); grid-column: 1; }
.q-item .q-meta .mono { font-family: var(--mono); font-size: 12px; }
.badge { grid-column: 2; grid-row: 1 / span 2; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 2px; white-space: nowrap; }
.badge.free { background: var(--ok-soft); color: var(--ok); }
.badge.paid { background: var(--code-bg); color: var(--muted); }
.q-item.locked { background: none; }
@media (max-width: 520px) { .q-item { grid-template-columns: minmax(0, 1fr); } .badge { grid-column: 1; grid-row: auto; justify-self: start; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; } }
.plan { border: 1px solid var(--line); border-radius: 3px; padding: 20px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border-color: var(--btn); border-top: 3px solid var(--btn); }
.plan .price { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan .btn { justify-content: center; }
.plan .btn[disabled], .btn[disabled] { background: var(--code-bg); color: var(--muted); border-color: var(--line); opacity: 1; cursor: not-allowed; }
.faq { display: flex; flex-direction: column; gap: 14px; max-width: 68ch; }
.faq h3 { margin-bottom: 2px; }
.faq p { margin: 0; color: var(--muted); font-size: 14px; }

/* Unlock */

/* Player page: the rail and panel sit under the site header */
.play-wrap { padding-block: 20px 8px; }

.site-foot { border-top: 1px solid var(--line); margin-top: 8px; }
.site-foot .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 18px 28px; font-size: 13px; color: var(--muted); }
.site-foot p { margin: 0; max-width: 78ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Account page: status box, Clerk sign-in and next steps */
[hidden] { display: none !important; }
.claim { max-width: 460px; border: 1px solid var(--line); background: var(--panel); border-radius: 3px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.claim.bad { border-color: var(--bad); }
.claim p { margin: 0; }
.account-area { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.account-area #user-button:empty, .account-area #sign-in:empty { display: none; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Articles */
.article-index { max-width: 72ch; }
.article-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.article-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: inherit; text-decoration: none; }
a.article-item:hover { border-color: var(--accent); }
.article-date { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.article-title { font-weight: 600; font-size: 17px; }
.article-desc { color: var(--muted); font-size: 14px; line-height: 1.5; }
.article-kicker { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.post { max-width: 72ch; font-size: 16px; line-height: 1.65; }
.post h2 { margin-top: 32px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 20px; }
.post h3 { margin-top: 22px; }
.post p { margin: 0 0 14px; }
.post ul, .post ol { margin: 0 0 16px; padding-left: 1.3em; }
.post li { margin: 0 0 6px; }
.post li:last-child { margin-bottom: 0; }
.post a { color: var(--accent); text-underline-offset: 2px; }
.post code { font-family: var(--mono); font-size: 0.88em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
.post pre { margin: 0 0 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; overflow-x: auto; }
.post pre code { background: none; padding: 0; font-size: 12.5px; }
.post .table-wrap { overflow-x: auto; margin: 0 0 16px; }
.post table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; min-width: 520px; }
.post th, .post td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post th { font-size: 12px; color: var(--muted); font-weight: 600; }
.post .more { margin-top: 28px; }

/* Privacy page: lists, and the preview's marked blanks the owner fills in. */
.privacy ul { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.privacy .article-kicker { color: var(--muted); }
mark.todo { background: var(--bad-soft); color: var(--bad); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.todo-box { background: var(--bad-soft); color: var(--ink); border: 1px solid var(--bad); border-radius: 6px; padding: 10px 14px; margin-bottom: 20px; font-size: 14px; }

/* Header account spot: Clerk's avatar menu when signed in (and a stand-in for it in the preview). */
.nav-user { display: inline-flex; align-items: center; min-width: 28px; min-height: 28px; }
.nav-user[hidden] { display: none; }
.nav-user.demo { position: relative; }
.nav-user.demo summary { list-style: none; cursor: pointer; border-radius: 50%; }
.nav-user.demo summary::-webkit-details-marker { display: none; }
.nav-user .avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 11px/1 var(--sans); letter-spacing: 0.02em; }
.nav-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); }
.nav-menu span { padding: 6px 8px; border-radius: 6px; color: var(--ink); }
.nav-menu small { padding: 6px 8px 2px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 4px; }

/* Your progress */
.pg { display: flex; flex-direction: column; gap: 18px; max-width: 1040px; }
.pg h1 { margin: 0; text-wrap: balance; }
.pg .lede { margin: 0; }
.pg h2 { font-size: 17px; margin: 0; text-wrap: balance; }
.pg-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pg-small { font-size: 13px; color: var(--muted); margin: 0; }
.pg-demo { margin: 0; font-size: 13px; color: var(--muted); padding: 8px 12px; border: 1px dashed var(--line); border-radius: 3px; }
.pg-next { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 3px; background: var(--accent-soft); border: 1px solid var(--accent); }
.pg-next h2 { font-size: 20px; }
.pg-next p { margin: 0; }
.pg-next .pg-label { color: var(--accent); }
.pg-next .cta-row { margin-top: 6px; }
.pg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .pg-stats { grid-template-columns: minmax(0, 1fr); } }
.pg-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; min-width: 0; }
.pg-stat b { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .pg-grid { grid-template-columns: minmax(0, 1fr); } }
.pg-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pg-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; min-width: 0; }
.pg-card p { margin: 0; }
.pg-doms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pg-dom { display: grid; grid-template-columns: minmax(0, 1fr) 130px 130px; gap: 6px 14px; align-items: end; font-size: 14px; }
@media (max-width: 560px) { .pg-dom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pg-dom-name { grid-column: 1 / -1; } }
.pg-dom-name b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.pg-dom-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pg-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent); vertical-align: 1px; }
.score-bar.quiz span { background: var(--accent); }
.score-bar.quiz.low span { background: var(--bad); }
.pg-objs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-objs li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; font-size: 14px; }
.pg-objs b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.pg-objs .pg-small { grid-column: 2; }
.pg-bars { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: stretch; height: 150px; }
.pg-bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pg-bar-num { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-bar-col { flex: 1; width: 100%; max-width: 34px; display: flex; align-items: flex-end; background: var(--code-bg); border-radius: 5px; overflow: hidden; }
.pg-bar-col span { display: block; width: 100%; border-radius: 5px; background: var(--accent); }
.pg-bar.exam .pg-bar-col span { background: var(--ok); }
.pg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.pg-key { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.pg-key.exam { background: var(--ok); margin-left: 6px; }
.pg-note { flex-basis: 100%; color: var(--ink); font-size: 13px; }
.pg-plan .cta-row { margin-top: 2px; }
.pg-foot { max-width: 70ch; }

/* Leaderboard */
.lb-mount { display: flex; flex-direction: column; gap: 18px; }
.lb-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; }
.lb-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; max-width: 460px; }
.lb-field select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--ink); min-width: 0; width: 100%; }
.lb-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--panel); }
.lb-seg button { font: inherit; font-size: 14px; padding: 8px 14px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.lb-seg button + button { border-left: 1px solid var(--line); }
.lb-seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lb-board .scroll { margin: 0; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-table caption { text-align: left; font-weight: 600; padding-bottom: 10px; text-wrap: balance; }
.lb-table th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.lb-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.lb-table .num { text-align: right; white-space: nowrap; }
.lb-table .rank { width: 2.5em; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.lb-table tbody tr:nth-child(-n+3) .rank { color: var(--accent); font-weight: 500; }
.lb-table .name { overflow-wrap: anywhere; }
.lb-table tr.you td { background: var(--accent-soft); }
.lb-table .lb-mine tr td { border-top: 2px dashed var(--line); }
.lb-table .lb-rep { text-align: right; width: 1%; white-space: nowrap; }
.lb-empty { color: var(--muted); text-align: center; padding: 24px 8px !important; }
.linkish { font: inherit; font-size: 13px; padding: 2px 4px; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkish:hover { color: var(--ink); }
.lb-name-form { display: flex; flex-direction: column; gap: 6px; }
.lb-name-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-name-row input { flex: 1 1 160px; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); }
.lb-name-row .btn[disabled] { opacity: 0.5; cursor: default; }
.lb-msg { margin: 0; font-size: 13px; color: var(--muted); }
.lb-msg.ok { color: var(--ok); }
.lb-msg.bad { color: var(--bad); }
.lb-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lb-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lb-admin { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.lb-acts { display: inline-flex; gap: 4px; margin-left: 6px; }

/* Solve-time toast on the play page */
.toast { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(520px, calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 40px 12px 16px; border-radius: 3px;
  background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.toast p { margin: 0; flex: 1 1 220px; }
.toast a { color: var(--bg); font-weight: 600; }
.toast-x { position: absolute; top: 6px; right: 8px; font: inherit; font-size: 18px; line-height: 1; padding: 4px 6px; border: 0; background: none; color: var(--bg); cursor: pointer; opacity: 0.75; }
.toast[hidden] { display: none; }
