/* N.O.V.A. 2026 participant platform.
   Layout, type scale and components follow the information site
   (handoff/reference/globals.full.css) so both sites read as one. */

@font-face {
  font-family: Pretendard;
  src: url("fonts/PretendardVariable.302ec55f5b43.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --navy-900: #0b1733;
  --navy-800: #10214a;
  --navy-700: #17306a;
  --blue: #1a3778;
  --blue-soft: #e8edf6;
  --ink: #111a2e;
  --text: #2e3a4d;
  --muted: #5d6879;
  --line: #e2e6ed;
  --surface: #f5f7fb;
  --green: #17684c;
  --amber: #8a5300;
  --red: #b42318;
  --container: 1200px;
  --header-h: 72px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans CJK KR", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  background: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a,
button,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}
.hero :focus-visible,
.page-header :focus-visible {
  outline-color: #fff;
}
::selection {
  background: #d6e0ff;
  color: var(--navy-900);
}
h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.4;
}
strong {
  color: var(--ink);
  font-weight: 650;
}
svg {
  flex-shrink: 0;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
code {
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 1000;
  padding: 12px 22px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.button-primary {
  background: var(--navy-800);
  color: #fff;
}
.button-primary:hover:not(:disabled) {
  background: var(--blue);
}
.button-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button-secondary:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}
.button-danger {
  background: #fff;
  color: var(--red);
  border: 1px solid #efcdc8;
}
.button-danger:hover:not(:disabled) {
  border-color: var(--red);
}
.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.button-full {
  width: 100%;
}
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.button-row form {
  margin: 0;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.plain-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
}
.plain-button:hover {
  color: var(--blue);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  line-height: 1;
  white-space: nowrap;
}
.brand > span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-year {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.desktop-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--blue);
}
.desktop-nav a[aria-current="page"] {
  font-weight: 700;
}
.desktop-nav .nav-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy-800);
}
.mobile-navigation {
  display: none;
}

/* Hero (home) */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(900px 500px at 85% 20%, rgba(46, 82, 160, 0.45), transparent 70%), var(--navy-900);
}
.network-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
  background: url("network.f4664c7b7ce3.svg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%);
  mask-image: linear-gradient(to right, transparent, #000 40%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 64px;
  align-items: center;
  padding: 72px 0 80px;
}
.hero-wordmark {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.05;
  color: #fff;
}
.hero-wordmark > span {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
  color: #a9bbff;
}
.hero h1 {
  margin-top: 18px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -1px;
  color: #fff;
}
.hero-fullname {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #a9b7d8;
}
.hero-orgs {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.6;
}
.hero-orgs > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
}
.hero-orgs dt {
  color: #8fa0c6;
}
.hero-orgs dd {
  color: #dfe6f8;
}
.hero-panel {
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.hero-panel h2 {
  font-size: 15px;
  font-weight: 600;
  color: #c9d3ea;
}
.hero-panel ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.hero-panel li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-panel li:first-child {
  border-top: 0;
}
.hero-panel li > span {
  font-size: 15px;
  color: #dfe6f8;
}
.hero-panel strong {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Key facts strip */
.facts {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 0;
}
.facts-inner > div {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.facts-inner > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.facts-inner dt {
  font-size: 13px;
  color: var(--muted);
}
.facts-inner dd {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* Page header (inner pages) */
.page-header {
  color: #fff;
  background: radial-gradient(700px 300px at 90% 0%, rgba(46, 82, 160, 0.4), transparent 70%), var(--navy-900);
  padding: 48px 0 52px;
}
.page-kicker {
  display: block;
  font-size: 14px;
  color: #9fb0d8;
}
.page-kicker a:hover {
  color: #fff;
}
.page-title {
  margin-top: 10px;
}
.page-title h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}
.page-title > p {
  max-width: 640px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: #c5d0e8;
}

/* Participant sub navigation */
.workspace-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.workspace-nav .container {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.workspace-nav .container::-webkit-scrollbar {
  display: none;
}
.workspace-nav a {
  padding: 17px 0 15px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s;
}
.workspace-nav a:hover {
  color: var(--blue);
}
.workspace-nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
  border-bottom-color: var(--blue);
}

/* Content layout */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: start;
  padding: 56px 0 96px;
}
.content-layout.single {
  grid-template-columns: minmax(0, 1fr);
}
.main-content {
  min-width: 0;
}
.content-section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.content-section + .content-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.content-section > h2,
.section-heading h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.content-section > h2 {
  margin-bottom: 20px;
}
.content-section > h3 {
  margin: 32px 0 4px;
  font-size: 17px;
  font-weight: 700;
}
.content-section > p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.8;
}
.content-section > p a:not(.text-link),
.bullet-list a:not(.text-link),
.notice-box a:not(.text-link),
.alert a:not(.text-link) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-section > .text-link {
  margin-top: 20px;
}
.content-section > :last-child {
  margin-bottom: 0;
}
/* Inline code in Notion's style (warm grey chip), with blue text in place of Notion's red. */
.content-section code,
.bullet-list code,
.data-table code,
.notice-box code {
  padding: 0.2em 0.4em;
  border-radius: 4px;
  background: rgba(135, 131, 120, 0.15);
  font-size: 85%;
  color: #2a5ea3;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.section-heading + .table-wrap,
.section-heading + .empty-state,
.section-heading + .file-card {
  margin-top: 0;
}
.section-heading > span {
  font-size: 14px;
  color: var(--muted);
}
.small-copy {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.content-section > p.small-copy {
  font-size: 14px;
}
.bullet-list {
  margin: 14px 0;
  padding: 0 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
}
.bullet-list li {
  margin: 8px 0;
  padding-left: 4px;
}
.bullet-list li::marker {
  color: var(--blue);
}
.process-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.process-flow li {
  position: relative;
  padding: 22px 20px;
  border-radius: 10px;
  background: var(--surface);
}
.process-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--muted);
}
.process-flow small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.process-flow strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
}
.process-flow span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.process-flow li.current {
  background: var(--blue-soft);
}
.process-flow li.current strong {
  color: var(--navy-800);
}
.step-list {
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step-list > li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 2px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.step-list > li::before {
  grid-row: span 3;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}
.step-list > li > * {
  grid-column: 2;
}
.step-list strong {
  display: block;
  font-size: 16px;
}
.step-list p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.step-list .button,
.step-list .text-link {
  justify-self: start;
  margin-top: 10px;
}
.action-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.action-list > div {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.action-list code {
  min-width: 96px;
  padding: 0;
  background: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 2;
  color: var(--blue);
}
.action-list strong {
  display: block;
  font-size: 16px;
}
.action-list p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.criteria-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.criteria-list > div {
  padding: 22px;
  border-radius: 10px;
  background: var(--surface);
}
.criteria-list small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.criteria-list h3 {
  margin-top: 8px;
  font-size: 18px;
  color: var(--ink);
}
.criteria-list p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.notice-box {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.notice-box strong {
  display: block;
  margin-bottom: 2px;
}
.notice-box p + p {
  margin-top: 6px;
}
.content-section > .notice-box:first-child {
  margin-top: 0;
}
.main-content > .notice-box:first-child {
  margin: 0 0 48px;
}
.content-section > .step-list + .text-link {
  margin-top: 0;
}
.info-table {
  margin: 8px 0;
  border-top: 1px solid var(--line);
}
.info-table > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-table dt {
  font-size: 15px;
  color: var(--muted);
}
.info-table dd {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Code and clinical note examples */
pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  tab-size: 2;
}
pre.code-block {
  margin: 20px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.8;
  color: var(--navy-800);
  overflow: auto;
}
pre.code-block code {
  padding: 0;
  background: none;
  font-size: inherit;
  color: inherit;
}
pre.note-example {
  margin: 16px 0;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}
.content-section details {
  border-bottom: 1px solid var(--line);
}
.content-section details:first-of-type {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.content-section details > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.content-section details > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s;
}
.content-section details[open] > summary::after {
  transform: rotate(45deg);
}
.content-section details > p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.85;
}
.content-section details > :last-child {
  margin-bottom: 24px;
}

/* Tables */
.table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.data-table thead th {
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
}
.data-table td {
  color: var(--text);
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table .date-cell {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.data-table a.row-link {
  color: var(--ink);
}
.data-table a.row-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.data-table .row-link + .badge {
  margin-left: 8px;
}
.data-table td p {
  font-size: 13px;
  color: var(--muted);
}
.score {
  font-weight: 700;
  color: var(--ink);
}
.rank {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Leaderboard (Dacon-like: rank, team, score, submissions, date) */
.leaderboard-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.leaderboard-table .rank-col {
  width: 64px;
  text-align: center;
}
.leaderboard-table {
  font-size: 14px;
}
.leaderboard-table tbody th,
.leaderboard-table .score {
  font-size: 14px;
}
.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.rank-medal.rank-1 {
  background: #d9a514;
}
.rank-medal.rank-2 {
  background: #8e99a8;
}
.rank-medal.rank-3 {
  background: #b07445;
}
.leaderboard-table tr.my-team th,
.leaderboard-table tr.my-team td {
  background: var(--blue-soft);
}

/* Q&A */
.qna-list {
  border-top: 1px solid var(--line);
}
.qna-item {
  border-bottom: 1px solid var(--line);
}
.qna-item > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 4px;
}
.qna-item > summary::before {
  content: "Q";
  flex: none;
  width: 20px;
  font-weight: 700;
  color: var(--blue);
}
.qna-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--ink);
}
.qna-date {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qna-body {
  padding: 0 4px 20px 34px;
}
.qna-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.qna-answer {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface);
}
.qna-answer strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--blue);
}
.qna-form {
  max-width: 760px;
}

/* Operations (staff overview) */
.ops-budget {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px 40px;
  margin: 0 0 24px;
  padding: 28px 32px;
  border-radius: 12px;
  background: var(--navy-800);
  color: #fff;
}
.ops-budget h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.ops-budget h2 small {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}
.ops-budget-amount {
  margin: 6px 0 4px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.ops-budget-amount small {
  margin-left: 4px;
  font-size: 18px;
  font-weight: 500;
}
.ops-budget-note {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.ops-budget-bar {
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.ops-budget-bar::-webkit-progress-bar {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}
.ops-budget-bar::-webkit-progress-value {
  border-radius: 4px;
  background: #fff;
}
.ops-budget-bar::-moz-progress-bar {
  border-radius: 4px;
  background: #fff;
}
.ops-budget-facts {
  display: grid;
  gap: 16px;
  align-content: center;
  margin: 0;
}
.ops-budget-facts dt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.ops-budget-facts dd {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ops-budget-facts p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.ops-budget-caveat {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 760px) {
  .ops-budget {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
}
.ops-summary > div:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}
.ops-summary > div:nth-child(4) {
  border-left: 0;
}
.ops-summary + .content-section {
  margin-top: 48px;
}
#costs .summary-grid {
  margin-bottom: 20px;
}
.ops-subheading {
  margin: 32px 0 12px;
  font-size: 17px;
  color: var(--ink);
}

/* Side panel */
.side-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.apply-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.apply-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.apply-facts {
  margin: 16px 0 20px;
  border-top: 1px solid var(--line);
}
.apply-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.apply-facts dt {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.apply-facts dd {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}
.apply-card .button {
  width: 100%;
}
.apply-card form + form,
.apply-card .button + form {
  margin-top: 8px;
}
.side-card {
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.side-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.side-schedule {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.side-schedule li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
}
.side-schedule span {
  color: var(--muted);
}
.side-schedule strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.side-toc {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.side-toc a {
  padding: 7px 0;
  font-size: 14px;
  color: var(--muted);
}
.side-toc a:hover {
  color: var(--blue);
}
.side-card .text-link {
  margin-top: 12px;
  font-size: 14px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.side-link .icon {
  color: var(--muted);
}
.side-link:hover {
  color: var(--blue);
}
.side-panel form {
  margin: 0;
}
.mobile-apply {
  display: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-top: 48px;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand .brand > span {
  font-size: 20px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text);
}
.footer-brand .footer-fullname {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.footer-meta {
  display: grid;
  gap: 12px;
}
.footer-meta > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  font-size: 14px;
}
.footer-meta dt {
  color: var(--muted);
}
.footer-meta dd {
  font-weight: 500;
  color: var(--text);
}
.footer-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-meta a:hover,
.footer-bottom a:hover {
  color: var(--blue);
}
.footer-meta .icon {
  width: 14px;
  height: 14px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom nav {
  display: flex;
  gap: 20px;
}

/* Status labels and messages */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef1f6;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  vertical-align: middle;
}
.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.badge-green {
  background: #e8f4ee;
  color: var(--green);
}
.badge-amber {
  background: #fcf2df;
  color: var(--amber);
}
.badge-danger {
  background: #fcecea;
  color: var(--red);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.flash-stack {
  padding-top: 24px;
}
.alert {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.alert-error {
  background: #fcf0ee;
  color: #9b251c;
}
.alert-success {
  background: #ebf6f0;
  color: #17603f;
}
.alert-warning {
  background: #fcf5e6;
  color: #74470a;
}
.alert p + p {
  margin-top: 6px;
}

/* Forms */
.field {
  margin-bottom: 20px;
}
.field label,
.field > legend {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d5dbe5;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #8a94a6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: var(--surface);
  color: var(--muted);
}
.field input[type="file"] {
  padding: 11px 12px;
  background: var(--surface);
  cursor: pointer;
}
.field input::file-selector-button {
  margin-right: 12px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}
.field fieldset {
  padding: 0;
  border: 0;
}
.hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.field .error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--red);
}
.required {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}
.checkbox-label input {
  width: auto;
}
.char-counter {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.char-counter.over-limit {
  color: var(--red);
}
.form-panel {
  max-width: 460px;
}
.form-panel .button {
  margin-top: 4px;
}
.notice-box.form-note {
  margin: 4px 0 20px;
}
.main-content > :not(.content-section) + .content-section {
  margin-top: 48px;
}

/* Cards and summaries */
.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.card > h2 {
  font-size: 18px;
  font-weight: 700;
}
.card > h2 + p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}
.card > .section-heading {
  margin-bottom: 16px;
}
.card > .section-heading h2 {
  font-size: 18px;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.summary-grid > div {
  padding: 20px 24px;
  border-left: 1px solid var(--line);
}
.summary-grid > div:first-child {
  border-left: 0;
}
.summary-grid dt {
  font-size: 13px;
  color: var(--muted);
}
.summary-grid dd {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.summary-grid dd small {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.summary-grid p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.empty-state {
  margin: 20px 0;
  padding: 28px;
  border-radius: 10px;
  background: var(--surface);
}
.empty-state h3 {
  font-size: 17px;
}
.empty-state p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}
.empty-state .button,
.empty-state .text-link {
  margin-top: 16px;
}
.tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  margin-bottom: -1px;
  padding: 0 0 12px;
  border-bottom: 2px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}
.tabs a:hover {
  color: var(--blue);
}
.tabs a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.tabs .badge {
  margin-left: 6px;
}
.card .text-link {
  margin-top: 14px;
  font-size: 14px;
}
.card .notice-box .text-link {
  margin-top: 0;
}

/* Development keys and usage */
.key-display {
  margin-bottom: 32px;
  padding: 22px 24px;
  border: 1px solid #c9d6f7;
  border-radius: 12px;
  background: #f6f8fe;
}
.key-display > strong {
  font-size: 16px;
}
.key-display > p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.key-value {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.key-value code {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
  user-select: all;
}
.key-value button {
  white-space: nowrap;
}
.key-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface);
}
.key-meta code {
  font-size: 15px;
  color: var(--ink);
}
.key-meta p {
  font-size: 13px;
  color: var(--muted);
}
.security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.security-note .icon {
  margin-top: 2px;
}
.card pre.code-block {
  margin: 16px 0 0;
  padding: 16px 18px;
  font-size: 13px;
}

/* Submissions */
.file-card {
  margin-bottom: 12px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--surface);
}
.file-facts {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.file-facts .icon {
  margin-top: 4px;
  color: var(--muted);
}
.file-facts strong {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.file-facts p {
  font-size: 13px;
  color: var(--muted);
}
.file-hash {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.file-hash code {
  font-size: 11px;
}
.upload-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.upload-panel > summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s;
}
.upload-panel[open] > summary {
  margin-bottom: 16px;
}
.upload-panel[open] > summary::after {
  transform: rotate(45deg);
}
.upload-progress {
  margin: 18px 0;
}
.upload-progress progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  accent-color: var(--blue);
}
.upload-progress p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Service status */
.status-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.status-list strong {
  display: block;
  font-size: 16px;
}
.status-list p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

/* Standalone pages: sign-in confirmation and errors */
.not-found {
  max-width: 640px;
  padding: 96px 0;
}
.not-found h1 {
  font-size: 30px;
  color: var(--ink);
}
.not-found p {
  margin: 12px 0 28px;
  color: var(--muted);
}

/* Clinical record review */
.review-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}
.review-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.review-note {
  margin-top: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.9;
}
.review-form .field {
  margin-bottom: 14px;
}
.review-form label {
  font-size: 14px;
}
.review-score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.review-score-grid .field input {
  padding: 10px;
}
.review-error-row {
  margin-top: 16px;
  padding: 18px;
  border-radius: 10px;
  background: var(--surface);
}
.review-error-row label {
  font-size: 13px;
}
.review-error-row .field {
  margin-bottom: 12px;
}
.review-error-row .field textarea {
  min-height: 65px;
}
.review-error-row select[multiple] {
  min-height: 100px;
}
.event-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.event-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.event-list li p {
  margin-top: 4px;
}
.card.content-section details:first-of-type {
  margin-top: 12px;
}
.card pre:not(.code-block) {
  padding-bottom: 20px;
  font-size: 13px;
}
.space-top {
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    width: calc(100% - 48px);
  }
  .content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }
  .hero-inner {
    gap: 40px;
  }
  .desktop-nav {
    gap: 22px;
  }
  .desktop-nav .nav-account {
    padding-left: 22px;
  }
}
@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }
  .mobile-navigation {
    display: block;
    margin-left: auto;
  }
  .mobile-navigation > summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
  }
  .mobile-navigation > summary span {
    width: 20px;
    height: 2px;
    background: var(--navy-900);
  }
  .mobile-navigation nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 8px 24px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(11, 23, 51, 0.08);
  }
  .mobile-navigation nav a,
  .mobile-navigation .mobile-logout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
  }
  .mobile-navigation nav a[aria-current="page"] {
    color: var(--blue);
    font-weight: 700;
  }
  .mobile-navigation nav .nav-account {
    color: var(--navy-800);
    font-weight: 600;
  }
  .mobile-navigation nav > :last-child,
  .mobile-navigation nav > form:last-child .mobile-logout {
    border-bottom: 0;
  }
  .mobile-navigation form {
    margin: 0;
  }
  .mobile-logout {
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 0 64px;
  }
  .hero-panel {
    max-width: 560px;
  }
  .network-art {
    width: 80%;
    height: 55%;
    opacity: 0.35;
  }
  .facts-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
  }
  .facts-inner > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .review-layout {
    grid-template-columns: 1fr;
  }
  .review-score-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 860px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 40px 0 72px;
  }
  .side-panel {
    display: none;
  }
  .mobile-apply {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-apply > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
  }
  .mobile-apply .button {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
    white-space: nowrap;
  }
  body:has(.mobile-apply) .site-footer {
    padding-bottom: 88px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 12px;
  }
  .brand > span {
    font-size: 20px;
  }
  .brand > svg {
    width: 26px;
    height: 26px;
  }
  .mobile-navigation nav {
    padding-inline: 16px;
  }
  .hero-inner {
    padding: 44px 0 52px;
  }
  .hero-wordmark {
    font-size: 52px;
    letter-spacing: -1.5px;
  }
  .hero-wordmark > span {
    font-size: 20px;
  }
  .hero h1 {
    margin-top: 14px;
    font-size: 27px;
    letter-spacing: -0.6px;
  }
  .hero-fullname,
  .hero-orgs {
    font-size: 14px;
  }
  .hero-orgs > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-panel {
    padding: 20px;
  }
  .hero-panel li > span,
  .hero-panel strong {
    font-size: 14px;
  }
  .network-art {
    width: 100%;
    height: 40%;
    opacity: 0.3;
  }
  .facts-inner {
    padding: 20px 0;
    row-gap: 16px;
  }
  .facts-inner > div {
    padding: 0 16px;
  }
  .facts-inner dd {
    font-size: 15px;
  }
  .page-header {
    padding: 36px 0 40px;
  }
  .page-title h1 {
    font-size: 28px;
  }
  .page-title > p {
    font-size: 15px;
  }
  .workspace-nav .container {
    gap: 24px;
  }
  .content-section + .content-section {
    margin-top: 44px;
    padding-top: 36px;
  }
  .content-section > h2,
  .section-heading h2 {
    font-size: 20px;
  }
  .content-section > p,
  .bullet-list {
    font-size: 15px;
  }
  .process-flow,
  .criteria-list {
    grid-template-columns: 1fr;
  }
  .process-flow li:not(:last-child)::after {
    content: none;
  }
  .action-list > div {
    flex-direction: column;
    gap: 6px;
  }
  .info-table > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .data-table {
    font-size: 14px;
  }
  .data-table th,
  .data-table td {
    padding: 12px;
  }
  .table-wrap .data-table {
    min-width: 480px;
  }
  .table-wrap.narrow-table .data-table {
    min-width: 0;
  }
  pre.code-block,
  pre.note-example {
    padding: 16px 18px;
    font-size: 13px;
  }
  .content-section details > summary {
    padding: 18px 0;
    font-size: 16px;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-grid > div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .summary-grid > div:first-child {
    border-top: 0;
  }
  .card {
    padding: 20px;
  }
  .section-heading {
    gap: 12px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .key-value {
    display: block;
  }
  .key-value code {
    display: block;
  }
  .key-value button {
    margin-top: 10px;
  }
  .key-meta {
    flex-wrap: wrap;
  }
  .status-list li {
    align-items: flex-start;
  }
  .footer-meta > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
  .not-found {
    padding: 56px 0;
  }
  .not-found h1 {
    font-size: 24px;
  }
  .review-score-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.area-scores{margin-top:6px;font-size:13px;text-align:left}.area-scores summary{cursor:pointer;color:var(--blue);white-space:nowrap}.area-scores ul{list-style:none;margin:6px 0 0;padding:0;min-width:150px}.area-scores li{display:flex;justify-content:space-between;gap:12px;padding:2px 0}
.page-title p:empty{display:none}

/* Header logout (desktop) */
.desktop-nav .nav-logout {
  margin: 0;
}
.desktop-nav .nav-logout button {
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.desktop-nav .nav-logout button:hover {
  color: var(--blue);
}

/* Popup form (new submission) */
dialog.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(11, 23, 51, 0.24);
}
dialog.modal::backdrop {
  background: rgba(11, 23, 51, 0.45);
}
dialog.modal[open]:not(:modal) {
  position: fixed;
  inset: 48px 0 auto;
  z-index: 50;
  margin: 0 auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
dialog.modal .notice-box {
  margin-bottom: 16px;
}
.modal-head h2 {
  margin: 0;
  font-size: 20px;
}
.modal-close {
  padding: 4px 8px;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
}
.choice-group {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.choice-group legend {
  margin-bottom: 8px;
  font-weight: 600;
}
/* The choices sit inside a .field fieldset: undo the text-input sizing and block labels. */
.field .choice {
  display: flex;
  margin-top: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}
.field .choice input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 4px 0 0;
  padding: 0;
  accent-color: var(--blue);
  box-shadow: none;
}
.choice strong {
  color: var(--ink);
}
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.choice:has(input:checked) {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}
.choice strong,
.choice small {
  display: block;
}
.choice small {
  line-height: 1.5;
  color: var(--muted);
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.inline-actions form {
  margin: 0;
}
.cell-note {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.score-inline {
  margin-left: 6px;
}

/* Open tables: no box, only row rules, flush with the text column (participant submission views) */
.table-wrap.open {
  border: 0;
  border-radius: 0;
}
.table-wrap.open .data-table {
  border-top: 1px solid var(--ink);
}
.table-wrap.open .data-table thead th {
  background: none;
  border-bottom: 1px solid var(--line);
}
.table-wrap.open .data-table tbody tr:last-child th,
.table-wrap.open .data-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}
.table-wrap.open .data-table th:first-child,
.table-wrap.open .data-table td:first-child {
  padding-left: 0;
}
.table-wrap.open .data-table th:last-child,
.table-wrap.open .data-table td:last-child {
  padding-right: 0;
}
/* Submit kind: a validation and a leaderboard submission must be told apart at a glance */
.kind-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.kind-tag.kind-sample {
  color: var(--text);
  background: var(--surface);
  border-color: #d5dbe5;
}
.kind-tag.kind-public {
  color: #fff;
  background: var(--navy-800);
  border-color: var(--navy-800);
}
.data-table .score strong {
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.data-table .score .cell-note {
  font-size: 12px;
}

/* Per-case outcomes of a run (submission detail) */
.case-results {
  margin-top: 8px;
  font-size: 14px;
}
.case-results summary {
  cursor: pointer;
  color: var(--blue);
}
.case-results ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.case-results li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.case-results li.case-bad strong {
  color: var(--red);
}
.case-results small {
  color: var(--muted);
}
.case-stderr {
  max-height: 240px;
  margin: 6px 0 0;
  padding: 8px 10px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface);
  border: 1px solid var(--line);
}

