:root {
  --blue:#4c8ac2;
  --sky:#4ab1df;
  --ink:#28343d;
  --muted:#64727a;
  --line:#d4dadd;
  --paper:#fff;
  --bg:#f2f4f5;
  --red:#b62828;
  --red-bg:#fff0f0;
  --amber:#805300;
  --amber-bg:#fff7df
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:#252a2d;
  font:15px Arial,Helvetica,sans-serif
}
.top-space {
  height:36px;
  background:#dceaf3;
  border-bottom:1px solid #cadce7
}
.exam-bar {
  height:40px;
  background:#303234;
  color:white;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 11px;
  font-size:12px
}
.exam-bar strong {
  color:#fff2a2
}
.identity-bar {
  min-height:76px;
  padding:10px 18px;
  background:#f7f9fa;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line)
}
.identity-main {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap
}
.identity-main h1 {
  font-size:21px;
  margin:0;
  color:#34434c
}
.identity-main p {
  margin:0;
  color:var(--muted)
}
.group-tag {
  background:var(--sky);
  color:white;
  padding:9px 17px;
  font-weight:bold
}
.avatar {
  height:56px;
  width:56px;
  border:1px solid #becbd1;
  display:grid;
  place-items:center;
  background:#e4edf2;
  font-size:32px
}
.section-bar {
  min-height:42px;
  background:white;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 17px 6px 22px
}
.section-bar strong {
  color:#4d565d
}
.attempt-picker {
  font-size:13px;
  display:flex;
  align-items:center;
  gap:8px
}
.attempt-picker select {
  max-width:min(55vw,430px);
  padding:7px;
  border:1px solid #aeb8bd;
  background:white
}
.blue-strip {
  height:39px;
  background:var(--blue);
  color:white;
  padding:10px 11px;
  font-size:17px;
  font-weight:bold
}
.page-content {
  padding:13px;
  max-width:1680px;
  margin:0 auto;
  min-height:calc(100vh - 230px)
}
.result-layout {
  display:grid;
  grid-template-columns:clamp(120px,13vw,180px) minmax(0,1fr) clamp(120px,13vw,180px);
  gap:20px;
  align-items:start
}
.result-ad-stack{display:flex;flex-direction:column;gap:18px;min-width:0}
.result-ad-stack[hidden]{display:none!important}
.result-layout.no-ads {
  grid-template-columns:minmax(0,1fr)
}
.result-main {
  min-width:0
}
.result-ad-slot {
  width:100%;
  min-height:420px;
  margin:0 auto
}
.empty-state {
  max-width:680px;
  margin:50px auto;
  background:white;
  border:1px solid var(--line);
  padding:26px;
  text-align:center
}
.empty-state h2 {
  margin-top:0;
  color:#34434c
}
.empty-state p {
  line-height:1.6;
  color:var(--muted)
}
.attempt-meta {
  margin:0 0 10px;
  color:var(--muted);
  font-size:13px
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(150px,1fr));
  gap:10px;
  margin-bottom:12px
}
.metric {
  background:var(--paper);
  border:1px solid var(--line);
  padding:13px 15px;
  min-height:110px;
  display:flex;
  flex-direction:column;
  gap:5px
}
.metric span {
  font-weight:bold;
  color:#54626a;
  font-size:13px
}
.metric strong {
  font-size:28px;
  color:#31424d
}
.metric small {
  font-size:12px;
  color:var(--muted)
}
.content-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px
}
.panel {
  background:white;
  border:1px solid var(--line);
  padding:14px;
  margin-bottom:12px;
  min-width:0
}
.panel-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #e4e8ea;
  padding-bottom:8px;
  margin-bottom:12px
}
.panel-heading h2 {
  font-size:17px;
  margin:0;
  color:#394a54
}
.panel-heading>span {
  color:var(--muted);
  font-size:12px
}
.mistake-totals {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px
}
.mistake-totals>div {
  background:#f5f8f9;
  padding:9px;
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:4px
}
.mistake-totals b {
  font-size:21px;
  color:#354954
}
.mistake-totals span {
  font-size:12px;
  color:var(--muted)
}
.rule-note {
  font-size:12px;
  line-height:1.55;
  color:#5c666b;
  background:#f7f9fa;
  padding:9px;
  margin:10px 0
}
.mistake-list {
  padding-left:26px;
  margin:0;
  max-height:250px;
  overflow:auto
}
.mistake-list li {
  padding:5px 6px;
  font-size:13px;
  line-height:1.45;
  border-bottom:1px solid #f0f1f2
}
.mistake-list li.full {
  border-left:3px solid var(--red)
}
.mistake-list li.half {
  border-left:3px solid #d69a16
}
.badge {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.04em;
  padding:3px 5px;
  margin-right:6px;
  border-radius:2px
}
.badge.full {
  color:var(--red);
  background:var(--red-bg)
}
.badge.half {
  color:var(--amber);
  background:var(--amber-bg)
}
.no-mistakes {
  padding:12px;
  color:#517052;
  background:#eff8ef;
  font-size:13px
}
.panel-copy {
  font-size:12px;
  line-height:1.5;
  color:var(--muted)
}
.key-list {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:10px 0 14px
}
.key-chip {
  background:#edf5fa;
  border:1px solid #c4dce8;
  color:#36596b;
  padding:5px 8px;
  font-size:13px;
  border-radius:3px
}
.key-chip b {
  font-size:16px;
  margin-right:4px
}
.key-chip small {
  color:#667b86
}
.pair-list {
  font-size:12px;
  color:#4d5960;
  line-height:1.6;
  margin:8px 0 14px
}
.hands-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px
}
.hand-block h3 {
  font-size:12px;
  color:#57666e;
  margin:0 0 8px
}
.hand {
  min-height:139px;
  background:#f6f8f9;
  border:1px solid #e0e5e7;
  border-radius:8px;
  padding:9px 5px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:4px
}
.finger {
  height:100px;
  width:18%;
  min-width:40px;
  max-width:68px;
  background:#e0e8ec;
  border:1px solid #bdcbd1;
  border-radius:14px 14px 7px 7px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-around;
  text-align:center;
  padding:4px 2px;
  color:#42535d;
  font-size:9px
}
.finger:nth-child(2),.finger:nth-child(4) {
  height:119px
}
.finger:nth-child(3) {
  height:132px
}
.finger.thumb {
  height:66px;
  transform:rotate(-27deg);
  transform-origin:bottom center;
  margin:0 4px 0 0
}
.right-hand .finger.thumb {
  transform:rotate(27deg)
}
.finger b {
  font-size:9px
}
.finger span {
  font-size:9px;
  line-height:1.3
}
.finger small {
  font-size:8px;
  color:#6d7a81
}
.finger.active {
  background:#f9c96a;
  border-color:#c48c18;
  color:#362600;
  box-shadow:0 0 0 2px #ffe8ae
}
.finger-summary {
  font-size:12px;
  color:var(--muted);
  margin:10px 0 0
}
.text-review {
  margin-top:1px
}
.text-columns {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.text-columns>div {
  min-width:0
}
.text-columns h3 {
  font-size:13px;
  color:#53616a;
  margin:0 0 6px
}
.text-columns pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:260px;
  overflow:auto;
  background:#fafbfb;
  border:1px solid #e0e5e7;
  padding:10px;
  margin:0;
  font:13px/1.55 Consolas,monospace
}
.footer {
  background:#627e8b;
  color:#fff;
  text-align:center;
  padding:6px;
  font-size:11px
}
@media(max-width:900px) {
  .result-layout {
  grid-template-columns:minmax(0,1fr) 190px;
  gap:12px
}
  .metrics {
  grid-template-columns:repeat(2,1fr)
}
.content-grid {
  grid-template-columns:1fr
}

}
@media(max-width:560px) {
  .result-layout {
  grid-template-columns:1fr
}
  .result-ad-slot {
  width:min(100%,300px);
  min-height:250px
}
  .page-content {
  padding:8px
}
.identity-main {
  gap:8px
}
.identity-main h1 {
  font-size:18px
}
.identity-main p {
  width:100%
}
.section-bar {
  padding:8px 10px;
  align-items:flex-start;
  gap:8px;
  flex-direction:column
}
.attempt-picker select {
  max-width:85vw
}
.metrics {
  grid-template-columns:1fr 1fr;
  gap:6px
}
.metric {
  padding:10px;
  min-height:98px
}
.metric strong {
  font-size:23px
}
.mistake-totals {
  gap:4px
}
.mistake-totals>div {
  padding:7px 2px
}
.hands-layout {
  gap:6px
}
.finger {
  min-width:0;
  font-size:8px
}
.finger span {
  font-size:7px
}
.text-columns {
  grid-template-columns:1fr
}

}


