@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Zen+Maru+Gothic:wght@500;700&display=swap");

:root {
  --bg-1: #fffaf0;
  --bg-2: #fff2cc;
  --bg-3: #ffe6b3;
  --ink: #2e2a25;
  --ink-soft: #5e564f;
  --red: #db3a34;
  --gold: #f5b800;
  --orange: #ff8a00;
  --blue: #1b6dd1;
  --mint: #1e9b70;
  --panel: rgba(255, 253, 246, 0.92);
  --line: #f1d7a2;
  --shadow: 0 16px 34px rgba(121, 79, 9, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(219, 58, 52, 0.12) 0 8%, transparent 9%),
    radial-gradient(circle at 92% 16%, rgba(27, 109, 209, 0.12) 0 7%, transparent 8%),
    radial-gradient(circle at 16% 84%, rgba(30, 155, 112, 0.12) 0 9%, transparent 10%),
    linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -140px;
  right: -90px;
  background: radial-gradient(circle, rgba(245, 184, 0, 0.44) 0%, rgba(245, 184, 0, 0) 70%);
  animation: floatBlob 8s ease-in-out infinite;
}

body::after {
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(219, 58, 52, 0.3) 0%, rgba(219, 58, 52, 0) 70%);
  animation: floatBlob 9.5s ease-in-out infinite reverse;
}

body > * {
  position: relative;
  z-index: 1;
}

header {
  margin: 14px 16px 0;
  padding: 16px 18px 14px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(122deg, var(--red) 0%, #f34a1d 42%, var(--gold) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 78%, rgba(255, 255, 255, 0.36) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 32%, rgba(255, 255, 255, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 72%, rgba(255, 255, 255, 0.42) 0 2px, transparent 3px);
  opacity: 0.7;
}

header::after {
  content: "夢を楽しむデータラボ";
  position: relative;
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.95;
}

h1 {
  margin: 0;
  font-size: clamp(19px, 2.3vw, 28px);
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(96, 20, 0, 0.28);
}

h2, h3 {
  font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", sans-serif;
}

a {
  color: #005db5;
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: #0f3f7a;
  text-decoration: underline;
}

.cards {
  display: grid;
  gap: 12px;
  padding: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--panel);
  border-radius: 18px;
  padding: 13px 14px 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(103, 75, 20, 0.11);
  backdrop-filter: blur(1px);
  animation: riseIn 0.5s ease both;
}

.card h2 {
  margin: 0 0 9px;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: #7f2b1c;
}

.card h3 {
  margin: 0 0 7px;
  font-size: 15px;
  color: #8f3d17;
}

.card p {
  margin: 4px 0;
  line-height: 1.6;
}

.nums {
  font-weight: 800;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 0.18em;
  color: #b3362f;
}

.ad-placeholder,
.ad-embed {
  margin: 12px 16px;
  border-radius: 14px;
  border: 1px solid #e3c06d;
  background: linear-gradient(145deg, #fff8e2 0%, #fff2cc 100%);
  box-shadow: 0 8px 18px rgba(110, 84, 33, 0.12);
}

.ad-placeholder {
  padding: 16px;
  text-align: center;
  color: #8c651f;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ad-embed {
  padding: 10px;
  overflow: auto;
}

.ad-embed iframe,
.ad-embed img {
  max-width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

input,
textarea,
select,
button {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #e4c790;
  background: #fffdf6;
  color: var(--ink);
  padding: 9px 10px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #f0a91d;
  box-shadow: 0 0 0 3px rgba(240, 169, 29, 0.22);
}

button {
  border: none;
  background: linear-gradient(120deg, #ff7c3f 0%, #e94e2f 45%, #d93934 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

code {
  background: #fff4d4;
  border: 1px solid #efcf86;
  color: #704d0f;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ecd1a2;
  border-radius: 11px;
  overflow: hidden;
  background: #fffdf8;
}

th,
td {
  border-bottom: 1px solid #f0debc;
  border-right: 1px solid #f5e7c9;
  padding: 7px 8px;
  font-size: 13px;
  text-align: left;
}

th:last-child,
td:last-child {
  border-right: none;
}

tr:last-child td {
  border-bottom: none;
}

th {
  font-size: 12px;
  color: #75470e;
  background: linear-gradient(180deg, #fff0d0 0%, #ffe8bf 100%);
}

.prize-table {
  margin-top: 7px;
}

.prize-table th,
.prize-table td {
  font-size: 12px;
}

.prize-table th {
  text-align: center;
}

.prize-table td:nth-child(2),
.prize-table td:nth-child(3) {
  text-align: right;
}

.tabs {
  margin: 14px 16px 12px;
}

.tab-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tab-button {
  width: auto;
  min-width: 88px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid #e0c17d;
  background: linear-gradient(180deg, #fff6df 0%, #ffe9bd 100%);
  color: #8b3e00;
  font-weight: 800;
}

.tab-button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #0069d7 0%, #1e84de 42%, #11a5d7 100%);
  box-shadow: 0 8px 16px rgba(9, 75, 142, 0.32);
}

#lottery-navigation .tab-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.tab-content .card {
  flex: 1 1 330px;
  margin: 0;
}

.tab-content .card:nth-child(2) { animation-delay: 0.05s; }
.tab-content .card:nth-child(3) { animation-delay: 0.1s; }
.tab-content .card:nth-child(4) { animation-delay: 0.15s; }
.tab-content .card:nth-child(5) { animation-delay: 0.2s; }
.tab-content .card:nth-child(6) { animation-delay: 0.25s; }
.tab-content .card:nth-child(7) { animation-delay: 0.3s; }
.tab-content .card:nth-child(8) { animation-delay: 0.35s; }

.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-table th,
.stat-table td {
  text-align: left;
}

.text-right {
  text-align: right;
}

.links a {
  display: inline-block;
  margin-right: 12px;
}

.detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}

.note {
  font-size: 12px;
  color: #7a6b5a;
  margin-top: 4px;
}

small {
  color: #7f6a49;
}

ul {
  margin: 6px 0;
  padding-left: 20px;
}

pre {
  border-radius: 12px;
}

@media (max-width: 780px) {
  header {
    margin-top: 10px;
    border-radius: 14px;
  }

  .tabs,
  .ad-placeholder,
  .ad-embed {
    margin-left: 10px;
    margin-right: 10px;
  }

  .card {
    border-radius: 14px;
    padding: 11px 11px 12px;
  }

  .nums {
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  body::before,
  body::after {
    animation: none !important;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.hero {
  margin: 16px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(130deg, #d6432f 0%, #ff7c2e 42%, #f0b400 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(124, 67, 15, 0.18);
}

.hero-small { padding: 16px 20px; }
.hero h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); }
.hero-copy { margin: 8px 0 0; max-width: 720px; line-height: 1.6; }
.hero-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.shell {
  padding: 0 16px 24px;
  display: grid;
  gap: 14px;
}

.panel,
.ad-slot {
  background: rgba(255, 253, 246, 0.92);
  border: 1px solid #f1d7a2;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(126, 87, 25, 0.08);
}

.panel h2,
.panel h3 { margin-top: 0; }
.card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.lottery-card,
.info-card,
.mini-card,
.list-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #f1ddab;
  border-radius: 18px;
  padding: 14px;
}

.lottery-card.wide { grid-column: 1 / -1; }
.stack-form,
.stack-list { display: grid; gap: 10px; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.hidden { display: none; }

.tab-content .play-zone,
.tab-content .forecast-review,
.tab-content .analysis-context { flex-basis: 100%; }
.play-zone { border: 2px solid #e9ad31; background: linear-gradient(135deg, #fffef7, #fff1c8); }
.play-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.play-heading h2 { font-size: clamp(23px, 4vw, 32px); margin: 4px 0; }
.eyebrow { color: #8b461b; font-weight: 800; margin: 0; letter-spacing: .08em; }
.entry-badge { padding: 8px 14px; border-radius: 999px; background: #eee5d5; color: #604a27; font-weight: 800; }
.entry-badge.open { background: #1d6846; color: #fff; }
.forecast-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; margin: 12px 0; background: #fff9e9; border: 1px solid #edd69d; border-radius: 14px; }
.method-note { display: block; margin-top: 6px; line-height: 1.6; color: #5b503c; font-size: 12px; }
.forecast-pick .method-note { flex-basis: 100%; }
.number-chips { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.number-chip { display: inline-grid; place-items: center; min-width: 35px; min-height: 35px; padding: 3px; border: 1px solid #dfb650; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #fff, #ffe290); font-weight: 800; color: #503810; }
.number-chip.matched, .bingo-cell.matched { background: #1c704c; color: #fff; border-color: #1c704c; }
.number-chip.bonus { border: 2px dashed #d46317; }
.number-chip.matched small, .bingo-cell.matched small { color: #fff; }
.bingo-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: min(100%, 310px); margin: 14px 0; }
.bingo-cell { display: grid; place-items: center; gap: 2px; padding: 9px; background: #fff8df; border: 1px solid #d9b95f; border-radius: 11px; min-height: 68px; }
.bingo-cell small { font-size: 10px; color: #775a29; }
.bingo-cell strong { font-size: 25px; }
.bingo-cell.free, .bingo-pick-cell.free { display: grid; place-items: center; background: linear-gradient(135deg, #d44a27, #ef990f); color: #fff; font-weight: 900; }
.bingo-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-width: 720px; margin: 16px 0; }
.bingo-pick-cell { min-width: 0; margin: 0; padding: 8px; border: 1px solid #d9b95f; border-radius: 12px; display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; background: #fffdf5; }
.bingo-pick-cell legend { font-size: 12px; padding: 0 4px; font-weight: 800; }
.lotto-picker { display: flex; flex-wrap: wrap; gap: 7px; max-width: 760px; margin: 16px 0; }
.prediction-entry .pick-option { display: inline-flex; position: relative; margin: 0; width: auto; }
.pick-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-option span { display: grid; place-items: center; min-width: 38px; min-height: 38px; border: 1px solid #d1b66c; border-radius: 50%; background: #fff; color: #49340e; font-size: 14px; font-weight: 800; cursor: pointer; }
.pick-option input:checked + span { background: #1d6846; color: #fff; border-color: #1d6846; box-shadow: 0 2px 7px #1d684635; }
.pick-option input:focus-visible + span { outline: 3px solid #196cbe; outline-offset: 2px; }
.pick-option input:disabled + span { opacity: .5; cursor: default; }
.entry-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.entry-actions button, .draw-lookup button { width: auto; }
.entry-profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.prediction-entry button[type="submit"] { max-width: 430px; margin-top: 10px; }
.prediction-entry input[name="numbers"] { font-size: 22px; letter-spacing: .06em; max-width: 720px; }
.entry-result { font-weight: 700; color: #215b3c; }
.score-strip { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 0; }
.score-strip span { background: #fff5d9; padding: 10px 16px; border-radius: 12px; }
.score-strip strong { font-size: 23px; color: #8a4012; margin-left: 6px; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.table-scroll table { min-width: 560px; }
.forecast-review details { margin-top: 12px; }
.forecast-review summary { cursor: pointer; color: #155e49; font-weight: 800; padding: 10px 0; }
.draw-lookup { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 14px 0; }
.draw-lookup label { max-width: 180px; }
.draw-lookup button { margin-bottom: 8px; }

@media (max-width: 520px) {
  .bingo-picker { gap: 5px; }
  .bingo-pick-cell { padding: 5px 3px; gap: 3px; }
  .bingo-pick-cell .pick-option span { min-width: 26px; min-height: 30px; font-size: 12px; }
  .score-strip { gap: 7px; }
  .score-strip span { padding: 8px; }
  .score-strip strong { font-size: 20px; }
}

@media (max-width: 760px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy {
    font-size: 14px;
  }
}

html { scroll-padding-top: 16px; }
.tab-content .round-overview,
.tab-content .notebook,
.tab-content .analysis-studio,
.tab-content .advanced-data { flex-basis: 100%; min-width: 0; }
#lottery-page > .round-overview,
#lottery-page > .notebook,
#lottery-page > .analysis-studio,
#lottery-page > .play-zone,
#lottery-page > .forecast-review,
#lottery-page > .analysis-context { margin: 14px 16px; }
.round-overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; background: linear-gradient(125deg, #fffdf6, #fff0bd); }
.round-overview h2 { font-size: clamp(23px, 3vw, 32px); }
.overview-numbers { font-size: clamp(25px, 4vw, 38px); font-weight: 800; color: #a23822; letter-spacing: .07em; }
.overview-next { border-left: 1px solid #e3cd91; padding: 8px 0 8px 24px; }
.overview-next h3 { margin-top: 10px; font-size: 22px; }
.overview-action { display: inline-block; margin-top: 9px; padding: 10px 17px; color: #fff; border-radius: 10px; background: #236348; }
.overview-action:hover { color: #fff; background: #184c35; }
.studio-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #e8d6a2; padding-top: 12px; }
.studio-nav a { padding: 7px 13px; border: 1px solid #dbc58f; border-radius: 999px; background: #fffdf5; font-size: 13px; }
.studio-heading { display: flex; gap: 16px; justify-content: space-between; align-items: start; flex-wrap: wrap; }
.studio-heading h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 3px; }
.secondary-button { background: #fffdf6; color: #614a26; border: 1px solid #d5bc7a; box-shadow: none; }
.notebook-refresh { width: auto; min-width: 120px; }
.notebook { background: linear-gradient(140deg, #fffef7, #f1f8ee); }
.notebook-empty { padding: 17px; border: 1px dashed #b9c9aa; border-radius: 13px; background: #fffefa; margin-top: 12px; }
.notebook-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; padding: 12px 0; color: #35533d; }
.notebook-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.notebook-card { padding: 14px; border: 1px solid #d4dcbd; background: #fffffa; border-radius: 13px; overflow-wrap: anywhere; }
.notebook-card.celebration { border: 2px solid #d3a829; background: radial-gradient(ellipse at top right, #ffe9a0, #fffef5 65%); }
.notebook-card-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; }
.notebook-numbers { font-size: 25px; font-weight: 800; letter-spacing: .05em; color: #27593d; }
.waiting-label { display: inline-block; border-radius: 999px; padding: 5px 9px; background: #f5edcf; color: #705923; font-size: 12px; }
.notebook-comment { white-space: pre-wrap; }
.notebook details { margin-top: 14px; }
.notebook summary, .advanced-data > summary { cursor: pointer; padding: 8px 0; font-weight: 800; color: #714823; }
.match-meter { width: 100%; height: 8px; background: #eee7cf; border-radius: 999px; overflow: hidden; margin: 9px 0 4px; }
.match-meter span { display: block; height: 100%; background: linear-gradient(90deg, #55a47b, #d6ac27); }
.analysis-studio { background: linear-gradient(125deg, #fffef9, #fff7dd); border-top: 4px solid #d7892c; }
.analysis-period { min-width: 170px; }
.analysis-status { min-height: 1.4em; }
.analysis-scope { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; padding: 11px 14px; margin: 4px 0 20px; background: #f7edd2; border-radius: 11px; font-size: 13px; }
.analysis-scope strong { font-size: 22px; color: #854818; }
.analysis-scope a { margin-left: auto; }
.studio-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 24px; align-items: start; }
.number-lab { min-width: 0; }
.heat-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; color: #675337; margin: 13px 0; }
.heat-legend i { display: inline-block; width: 105px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #fff6dc, #e99a38); }
.heat-legend small { flex-basis: 100%; }
.heat-row { margin: 12px 0; }
.heat-row > strong { display: block; font-size: 13px; margin-bottom: 6px; }
.heat-row-numbers { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.heat-number { --heat: 0%; width: 100%; min-width: 0; padding: 9px 3px; border: 1px solid #d8bd82; border-radius: 10px; color: #503719; background: #fff8e4; background: color-mix(in srgb, #e99a38 var(--heat), #fff8e4); letter-spacing: 0; box-shadow: none; }
.heat-number strong, .heat-number small { display: block; }
.heat-number strong { font-size: 20px; }
.heat-number small { font-size: 10px; font-weight: 500; }
.heat-number:hover { filter: none; transform: translateY(-2px); border-color: #7d5724; }
.heat-number.selected { border-color: #1c6244; background: #1f6848; color: #fff; box-shadow: 0 0 0 2px #b8d1ba; }
.heat-number:focus-visible { outline: 3px solid #196cbe; outline-offset: 2px; }
.heat-number:disabled { opacity: .4; cursor: default; }
.set-heatmap { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 7px; }
.bingo-heatmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.bingo-heat-cell { padding: 10px; border: 1px solid #ddc288; border-radius: 12px; background: #fffcf3; min-width: 0; }
.bingo-heat-cell > strong { display: block; font-size: 12px; margin-bottom: 8px; }
.bingo-heat-cell > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.bingo-heat-free { display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #cf5927, #e5a622); color: white; font-size: 22px; font-weight: 800; }
.candidate-tray { position: sticky; top: 16px; padding: 17px; border: 1px solid #d9c48b; border-radius: 15px; background: #fff4cd; }
.candidate-preview { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.candidate-preview strong { display: grid; place-items: center; min-width: 39px; height: 42px; border-radius: 10px; background: #fffdf3; border: 1px solid #dfc275; font-size: 23px; color: #744012; }
.candidate-description { font-size: 13px; }
.candidate-tray button { margin: 9px 0 0; }
.candidate-tray .note { margin-top: 12px; }
.distribution-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid #ead8a7; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
.analysis-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.analysis-metrics span { padding: 10px; border: 1px solid #e2d09a; border-radius: 10px; background: #fffaf0; font-size: 12px; }
.analysis-metrics strong { display: block; font-size: 25px; color: #8f4519; }
.sum-chart { margin: 0; }
.sum-chart svg { width: 100%; display: block; }
.chart-label { font: 12px 'M PLUS Rounded 1c', sans-serif; fill: #6f593c; }
.sum-chart figcaption, .chart-data summary { font-size: 11px; color: #6f593c; }
.chart-data summary { cursor: pointer; margin-top: 10px; }
.chart-data table { min-width: 0; }
.independence-note { padding: 12px; margin-top: 18px !important; border-left: 3px solid #80a083; background: #f3f6e9; font-size: 12px; color: #4f6148; }
.legacy-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: start; padding-top: 10px; }
.legacy-grid > .card { flex: 1 1 330px; min-width: 0; }
.grade-bars { display: grid; gap: 7px; max-width: 550px; margin: 15px 0; }
.grade-bars > div { display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 12px; }
.grade-bars i { height: 13px; border-radius: 999px; background: linear-gradient(90deg, #d99132 var(--grade-width), #f3ead6 var(--grade-width)); }
@media (max-width: 900px) {
  .studio-workbench { grid-template-columns: minmax(0, 1fr); }
  .candidate-tray { position: static; }
  .distribution-block { grid-template-columns: minmax(0, 1fr); }
  .set-heatmap { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .round-overview { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .overview-next { padding: 12px 0 0; border-left: 0; border-top: 1px solid #e3cd91; }
  .overview-numbers { font-size: 25px; }
  .heat-row-numbers { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .set-heatmap { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .heat-number { padding: 7px 2px; }
  .heat-number strong { font-size: 18px; }
  .bingo-heatmap { gap: 5px; }
  .bingo-heat-cell { padding: 6px 4px; }
  .bingo-heat-cell > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .bingo-heat-cell .heat-number strong { font-size: 17px; }
  .analysis-period { width: 100%; }
  .analysis-scope a { margin-left: 0; }
  .grade-bars > div { grid-template-columns: 100px minmax(0, 1fr) 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
