/* Navigation uses blue; judging colors retain their own meaning. */
.boot-failed { flex-direction:column; gap:12px; }
.boot-failed p { margin:0; }
:root {
  color-scheme:light;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;
  color:var(--text);
  background:var(--page-bg);
  font-synthesis:none;
  --empty-message-size:13px;
  --page-bg:#f6f7f9;
  --surface:#ffffff;
  --surface-alt:#f1f3f6;
  --surface-hover:#f5f6f8;
  --table-head:#f7f8fa;
  --text:#24272e;
  --muted:#626874;
  --placeholder:#686e79;
  --border:#e0e3e9;
  --row-border:#e9ebf0;
  --control-border:#888e99;
  --accent:#365b8c;
  --accent-strong:#284875;
  --accent-subtle:#edf2fa;
  --primary-bg:#365b8c;
  --primary-hover:#284875;
  --primary-text:#ffffff;
  --focus:#365b8c;
  --link:#365b8c;
  --selection:#dce7f7;
  --success:#155d39;
  --success-bg:#d5ebde;
  --danger:#a83735;
  --danger-bg:#fbeceb;
  --warning:#805218;
  --warning-bg:#faf1e1;
  --compile:#745298;
  --compile-bg:#f3edf8;
  --info:#355c92;
  --info-bg:#edf2fa;
  --neutral:#565e6b;
  --neutral-bg:#eef0f4;
  --first-bg:#1e7048;
  --first-text:#ffffff;
  --own-row:#edf2fa;
  --current-row:#f0f4fa;
  --editor-bg:#f7f8fa;
  --disabled-text:#8a909c;
  --shadow:0 2px 8px #20252f03;
  --dialog-shadow:0 24px 80px #10141f30;
  --backdrop:#17191d66;
  --statement-bg:var(--surface);
  --statement-text:var(--text);
  --statement-border:var(--border);
  --statement-code-bg:var(--editor-bg);
  --statement-link:var(--link);
  --site-header-height:65px;
}
:root:has(.site-header[data-secondary-menu="visible"]) {
  --site-header-height:109px;
}
html {
  scroll-padding-top:calc(var(--site-header-height) + 16px);
  scrollbar-gutter:stable;
}
/* A native modal makes the page inert, but does not lock wheel/touch scrolling.
   Keep its backdrop still without fixed-positioning the body or losing scroll. */
html:has(dialog:modal) {
  overflow:hidden;
}
dialog:modal {
  overscroll-behavior:contain;
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --page-bg:#17191d;
  --surface:#202227;
  --surface-alt:#2a2d34;
  --surface-hover:#292c33;
  --table-head:#25282e;
  --text:#eff0f2;
  --muted:#b4b8c2;
  --placeholder:#aab0bb;
  --border:#3a3e47;
  --row-border:#33373f;
  --control-border:#7d8492;
  --accent:#a8c5ed;
  --accent-strong:#c0d6f4;
  --accent-subtle:#29364a;
  --primary-bg:#365b8c;
  --primary-hover:#416a9d;
  --primary-text:#ffffff;
  --focus:#a8c5ed;
  --link:#a8c5ed;
  --selection:#344969;
  --success:#8adcb0;
  --success-bg:#243c30;
  --danger:#f6a29a;
  --danger-bg:#472c2d;
  --warning:#eac287;
  --warning-bg:#3d3425;
  --compile:#d2bce9;
  --compile-bg:#362c43;
  --info:#abc9f1;
  --info-bg:#29364a;
  --neutral:#c4c9d2;
  --neutral-bg:#343840;
  --first-bg:#31754d;
  --first-text:#ffffff;
  --own-row:#29364a;
  --current-row:#293241;
  --editor-bg:#1b1d22;
  --disabled-text:#767d89;
  --shadow:0 2px 8px #00000012;
  --dialog-shadow:0 24px 80px #00000066;
  --backdrop:#080a0da8;
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  line-height:1.55;
  background:var(--page-bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.55
}
a {
  color:var(--link);
  text-decoration:none
}
a:hover {
  text-decoration:none
}
a:where(:hover) {
  color:color-mix(in srgb,var(--link),var(--text) 20%)
}
input,select,textarea {
  color:inherit;
  background:var(--surface);
  border:1px solid var(--control-border);
  border-radius:9px;
  outline:none
}
input:focus,select:focus,textarea:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 2px var(--accent-subtle)
}
button:focus-visible,a:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px
}
[hidden] {
  display:none!important
}
h1,h2,h3,p {
  margin-top:0
}
h1,h2,h3 {
  line-height:1.25;
  letter-spacing:-.035em
}
h1 {
  font-size:32px
}
h2 {
  font-size:24px
}
h3 {
  font-size:17px
}
p {
  margin-bottom:0
}
table {
  font-variant-numeric:tabular-nums;
  width:100%;
  border-collapse:collapse;
  text-align:left
}
th {
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  background:var(--table-head);
  padding:15px 20px;
  white-space:nowrap
}
td {
  padding:16px 20px;
  border-top:1px solid var(--row-border);
  font-size:14px
}
tbody tr:hover {
  background:var(--surface-hover);
}
label {
  font-size:13px;
  font-weight:600
}
input,select {
  min-height:44px;
  padding:10px 13px
}
select {
  padding-right:32px;
  max-width:100%
}
textarea {
  width:100%;
  resize:vertical;
  padding:17px;
  line-height:1.7;
  tab-size:4
}
::selection {
  background:var(--selection);
  color:var(--text)
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:absolute;
  left:15px;
  top:-60px;
  padding:12px;
  background:var(--primary-bg);
  color:var(--primary-text);
  z-index:60
}
.skip-link:focus {
  top:10px
}
.site-header {
  position:sticky;
  top:0;
  z-index:40;
  background:var(--surface);
  border-bottom:1px solid var(--border)
}
.header-inner {
  position:relative;
  max-width:1220px;
  margin:auto;
  min-height:64px;
  padding:0 42px;
  display:flex;
  align-items:center;
  gap:38px
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
  color:var(--accent);
  font-size:30px;
  font-weight:850;
  letter-spacing:-1.6px;
  line-height:1;
  min-height:44px;
}
.brand:hover {
  text-decoration:none
}
.brand span {
  color:var(--accent)
}
.brand-logo {
  display:block;
  width:110px;
  height:auto;
}
.header-contest-name {
  display:block;
  min-width:0;
  min-height:44px;
  max-width:520px;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--text);
  font-size:18px;
  font-weight:650;
  line-height:44px;
  letter-spacing:-.025em;
}
.site-header[data-context="contest"] .header-inner {
  min-height:64px;
  gap:18px;
}
.site-header[data-context="contest"] .main-nav {
  flex-shrink:0;
  gap:20px;
}
.site-header[data-context="contest"] .main-nav a {
  font-size:12px;
}
.site-header[data-context="contest"] .account-controls {
  min-width:0;
  flex-shrink:0;
  gap:10px;
}
.site-header[data-context="contest"] #account-name {
  max-width:120px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.header-contest-clock {
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  flex-shrink:0;
  min-height:36px;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:7px;
  background:var(--surface-alt);
  color:var(--text);
  white-space:nowrap;
}
.header-contest-clock-label {
  color:var(--muted);
  font-size:11px;
}
.header-contest-clock strong {
  font-size:16px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:-.015em;
  font-variant-numeric:tabular-nums;
}
.header-contest-clock[data-urgency="closing"] {
  background:var(--warning-bg);
  color:var(--warning);
  border-color:var(--warning);
}
.header-contest-clock[data-urgency="closing"] .header-contest-clock-label {
  color:var(--warning);
}
.header-inner:has(.header-contest-clock:not([hidden])) .account-controls {
  margin-left:0;
}
.brand .brand-description {
  border-left:1px solid var(--border);
  padding:4px 0 4px 14px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  letter-spacing:-.2px;
  white-space:nowrap;
}
.theme-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:36px;
  padding:7px 10px;
  border:1px solid var(--control-border);
  border-radius:8px;
  background:var(--surface);
  color:var(--text);
  font-size:12px;
  font-weight:500;
  white-space:nowrap;
  flex-shrink:0;
}
.theme-toggle:hover {
  background:var(--surface-hover);
}
.theme-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:17px;
  height:17px;
  font-size:16px;
  line-height:1;
}
.theme-icon svg {
  width:16px;
  height:16px;
}
/* The head selects data-theme before the body is parsed. */
[data-theme="light"] #theme-toggle [data-theme-label="dark"],
[data-theme="light"] #theme-toggle [data-theme-icon="dark"],
[data-theme="dark"] #theme-toggle [data-theme-label="light"],
[data-theme="dark"] #theme-toggle [data-theme-icon="light"] { display:none; }
.main-nav {
  display:flex;
  align-self:stretch;
  gap:30px
}
.main-nav a {
  display:flex;
  align-items:center;
  font-size:14px;
  color:var(--muted);
  font-weight:600;
  border-bottom:3px solid transparent;
  padding-top:3px
}
.main-nav a:hover {
  color:var(--accent-strong);
  text-decoration:none
}
.main-nav a[aria-current=page] {
  color:var(--accent-strong);
  border-bottom-color:var(--accent)
}
.secondary-nav {
  display:flex;
  align-items:stretch;
  gap:26px;
  width:100%;
  max-width:none;
  min-height:44px;
  margin:0;
  padding:0 max(34px,calc((100% - 1136px)/2));
  background:var(--table-head);
  border-top:1px solid var(--border);
}
.secondary-nav-context {
  display:flex;
  align-items:center;
  min-width:0;
  max-width:460px;
  margin-left:auto;
  margin-right:0;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  line-height:1.4;
}
.secondary-nav-links {
  display:flex;
  align-items:stretch;
  gap:6px;
  flex-shrink:0;
}
.secondary-nav a {
  display:inline-flex;
  align-items:center;
  color:var(--muted);
  border-bottom:2px solid transparent;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  padding:0 14px;
}
.secondary-nav-links {
  margin-left:-14px;
}
.secondary-nav a:hover {
  color:var(--text);
  text-decoration:none;
}
.secondary-nav a[aria-current="page"] {
  color:var(--accent-strong);
  border-bottom-color:var(--accent);
}
.secondary-nav .secondary-nav-context {
  border-bottom:0;
}
.account-controls {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:15px;
  font-size:12px;
  color:var(--muted)
}
.quiet-link {
  color:var(--muted)
}
.text-button {
  border:0;
  background:transparent;
  color:var(--muted);
  padding:4px 0;
  font-size:12px
}
.text-button:hover {
  color:var(--accent-strong)
}
.page {
  max-width:1136px;
  min-height:calc(100vh - var(--site-header-height));
  margin:0 auto;
  padding:38px 0 72px;
  outline:none
}
body:has(.site-header[data-context="contest"]) .page {
  padding-top:24px;
}
#page-title,.problem-recent-submissions,.submission-editor-panel,
.contest-submit-panel,.scoreboard-scroll {
  scroll-margin-top:16px;
}
.site-footer {
  max-width:1136px;
  margin:0 auto;
  border-top:1px solid var(--border);
  padding:24px 0 30px;
  display:flex;
  align-items:center;
  gap:20px;
  color:var(--muted);
  font-size:11px
}
.site-footer a {
  margin-left:auto;
  color:var(--muted)
}
.site-footer .footer-home {
  margin-left:0
}
.brand-small {
  font-size:17px;
  font-weight:800;
  letter-spacing:-.8px;
  color:var(--muted)
}
.boot-state {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  min-height:380px;
  color:var(--muted);
  font-size:14px
}
.spinner {
  display:inline-block;
  width:18px;
  height:18px;
  border:2px solid var(--border);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin .8s linear infinite
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
.login-layout {
  display:grid;
  grid-template-columns:1fr 420px;
  align-items:center;
  gap:70px;
  max-width:980px;
  margin:58px auto 70px
}
.login-intro {
  padding:0 20px
}
.eyebrow {
  display:block;
  font-size:10px;
  font-weight:750;
  letter-spacing:1.8px;
  color:var(--accent);
  margin-bottom:15px
}
.login-intro h1 {
  font-size:52px;
  font-weight:760;
  line-height:1.22;
  letter-spacing:-3px;
  margin:0 0 24px
}
.login-intro p {
  font-size:15px;
  color:var(--muted);
  line-height:1.95
}
.intro-note {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  margin-top:56px
}
.note-line {
  display:inline-block;
  width:25px;
  height:2px;
  background:var(--control-border)
}
.login-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  padding:38px;
  box-shadow:var(--shadow)
}
.card-heading .eyebrow {
  font-size:9px;
  margin-bottom:11px
}
.card-heading h2 {
  font-size:26px;
  margin:0 0 10px
}
.card-heading p {
  color:var(--muted);
  font-size:13px;
  margin-bottom:30px
}
#login-form {
  display:grid;
  gap:10px
}
#login-form label:not(:first-child) {
  margin-top:10px
}
#login-form input {
  min-height:48px
}
#login-form button {
  margin-top:15px
}
.login-help {
  text-align:center;
  color:var(--muted);
  font-size:11px;
  line-height:1.9;
  margin-top:27px
}
.button {
  /* Theme text and surfaces must change together, with no low-contrast tween. */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--control-border);
  border-radius:9px;
  padding:11px 18px;
  background:var(--surface);
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  color:var(--text)
}
.button:hover {
  background:var(--surface-hover);
  text-decoration:none
}
.button-primary {
  background:var(--primary-bg);
  color:var(--primary-text);
  border-color:var(--primary-bg)
}
.button-primary:hover {
  background:var(--primary-hover)
}
.button-small {
  padding:7px 12px;
  font-size:12px
}
.full-width {
  width:100%
}
.form-error {
  color:var(--danger);
  background:var(--danger-bg);
  border-radius:7px;
  padding:10px 12px;
  font-size:12px
}
.contest-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 0 31px;
  border-bottom:1px solid var(--border);
  margin-bottom:33px;
  gap:20px
}
.contest-choice {
  display:flex;
  align-items:center;
  gap:13px
}
.contest-choice label {
  font-size:11px;
  color:var(--muted);
  font-weight:500;
  white-space:nowrap
}
.contest-choice select {
  min-height:38px;
  border:1px solid var(--control-border);
  background:var(--surface-alt);
  color:var(--text);
  font-weight:650;
  font-size:12px;
  min-width:185px;
  padding-top:7px;
  padding-bottom:7px
}
.contest-meta {
  font-size:11px;
  color:var(--muted);
  text-align:right
}
.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--success);
  margin-right:6px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:26px
}
.page-heading h1 {
  margin:0 0 9px;
  font-size:29px
}
.page-heading p {
  font-size:13px;
  color:var(--muted)
}
.breadcrumb {
  font-size:12px;
  margin-bottom:18px;
  color:var(--muted)
}
.breadcrumb a {
  color:var(--muted)
}
.breadcrumb ol { display:flex; flex-wrap:wrap; align-items:center; gap:0; margin:0; padding:0; list-style:none; }
.breadcrumb li { display:flex; align-items:center; }
.breadcrumb li + li::before { content:"/"; margin:0 10px; color:var(--muted); opacity:.5; }
.breadcrumb a { display:inline-flex; align-items:center; min-height:30px; padding:4px 6px; margin:-4px -6px; text-decoration:none; border-radius:3px; }
.breadcrumb a:hover { color:color-mix(in srgb,var(--link),var(--text) 20%); text-decoration:none; }
.breadcrumb a[aria-current="page"] { color:var(--text); }
.stats-strip {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:29px
}
.stat {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:11px;
  padding:21px 24px;
  display:flex;
  align-items:center;
  gap:17px;
  box-shadow:var(--shadow)
}
.stat-icon {
  width:37px;
  height:37px;
  border-radius:9px;
  background:var(--info-bg);
  color:var(--info);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:600
}
.stat:nth-child(2) .stat-icon {
  background:var(--success-bg);
  color:var(--success)
}
.stat:nth-child(3) .stat-icon {
  background:var(--neutral-bg);
  color:var(--neutral)
}
.stat-value {
  font-variant-numeric:tabular-nums;
  font-size:23px;
  font-weight:720;
  line-height:1.1;
  letter-spacing:-.7px
}
.stat-label {
  font-size:11px;
  color:var(--muted);
  margin-top:7px
}
.toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:16px
}
.search-field {
  position:relative;
  max-width:340px;
  flex:1
}
.search-field input {
  width:100%;
  padding-left:38px;
  font-size:12px;
  background:var(--surface)
}
.search-symbol {
  position:absolute;
  left:14px;
  top:12px;
  width:14px;
  height:14px;
  border:1.7px solid var(--muted);
  border-radius:50%;
  pointer-events:none
}
.search-symbol:after {
  content:"";
  position:absolute;
  width:5px;
  height:1.7px;
  background:var(--muted);
  right:-4px;
  bottom:-2px;
  transform:rotate(45deg)
}
.toolbar-note {
  font-size:11px;
  color:var(--muted)
}
.panel {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
  overflow:hidden
}
.table-scroll {
  overflow-x:auto
}
.problem-label {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:31px;
  height:31px;
  background:var(--surface-alt);
  color:var(--text);
  border-radius:7px;
  font-size:12px;
  font-weight:650
}
.problem-title {
  font-weight:600;
  color:var(--text)
}
.problem-title:hover {
  color:var(--accent)
}
.subtle {
  color:var(--muted);
  font-size:12px
}
.badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  border-radius:5px;
  font-size:11px;
  font-weight:650;
  padding:4px 8px;
  white-space:nowrap
}
.badge.verdict {
  padding:3px 7px;
  line-height:1.45;
}
.badge-solved {
  color:var(--success);
  background:var(--success-bg)
}
.badge-unsolved {
  color:var(--muted);
  background:var(--neutral-bg)
}
.badge-AC {
  color:var(--success);
  background:var(--success-bg)
}
.badge-WA,.badge-NO {
  color:var(--danger);
  background:var(--danger-bg)
}
.badge-CE {
  color:var(--compile);
  background:var(--compile-bg)
}
.badge-RTE,.badge-TLE,.badge-MLE,.badge-OLE {
  color:var(--warning);
  background:var(--warning-bg)
}
.badge-PENDING {
  color:var(--info);
  background:var(--info-bg)
}
.table-action {
  font-size:12px;
  color:var(--link);
  font-weight:600
}
.table-action:disabled {
  color:var(--disabled-text);
  cursor:not-allowed
}
/* Empty messages can also occupy a heading, a table cell or a log viewer. */
.empty-message {
  font-size:var(--empty-message-size) !important;
}
.empty-state {
  text-align:center;
  padding:65px 24px;
  color:var(--muted);
  font-size:var(--empty-message-size)
}
.empty-state > :is(h2,h3,p),
td.empty-state {
  font-size:var(--empty-message-size);
}
.empty-state h3 {
  color:var(--text);
  margin-bottom:10px
}
.notice {
  background:var(--info-bg);
  border:1px solid var(--border);
  color:var(--info);
  padding:13px 17px;
  border-radius:9px;
  font-size:12px;
  margin-bottom:24px
}
.error-panel {
  background:var(--danger-bg);
  border:1px solid var(--border);
  color:var(--danger);
  padding:20px;
  border-radius:10px;
  font-size:13px;
  margin-bottom:25px
}
.error-panel .button {
  margin-top:12px
}
.view-loading {
  padding:55px 24px;
  text-align:center;
  color:var(--muted);
  font-size:13px
}
.view-loading .spinner {
  vertical-align:middle;
  margin-right:10px
}
#view-content[data-navigation-pending="true"] { opacity:.55; }
#workspace[data-navigation-pending="true"] > #view-loading {
  position:fixed; right:24px; bottom:24px; z-index:80;
  padding:10px 16px; margin:0; border:1px solid var(--border); border-radius:8px;
  background:var(--surface); box-shadow:0 4px 16px #00000012; pointer-events:none;
}
.records-pending-panel { padding:24px; }
.records-pending-panel > p { margin:0 0 18px; color:var(--muted); }
.records-placeholder { display:grid; gap:16px; }
.records-placeholder > span { display:block; height:32px; border-radius:5px; background:var(--surface-alt); }
.problem-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:22px;
  align-items:start
}
.panel-heading {
  padding:20px 24px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.panel-heading h2 {
  font-size:16px;
  margin:0;
  letter-spacing:-.3px
}
.problem-details {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  font-size:11px;
  color:var(--muted)
}
.statement-stage { position:relative; }
.statement-stage[data-state="loading"] { min-height:280px; }
.statement-stage[data-state="loading"] > [data-testid="statement-status"] {
  position:absolute;
  top:20px;
  left:24px;
  right:24px;
  margin:0;
}
.statement-frame {
  display:block;
  width:100%;
  height:1px;
  max-height:none;
  min-height:0;
  border:0;
  background:var(--surface)
}
.statement-link {
  padding:14px 24px;
  border-top:1px solid var(--border);
  font-size:11px;
  color:var(--muted)
}
.editor-body {
  padding:23px
}
.editor-body label {
  display:block;
  margin-bottom:9px;
  font-size:12px;
  color:var(--muted)
}
.editor-body select {
  width:100%;
  font-size:12px;
  margin-bottom:21px
}
.editor-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 0 9px;
  gap:12px
}
.editor-toolbar label {
  margin:0
}
.file-label {
  background:var(--surface);
  display:inline-flex!important;
  align-items:center;
  border:1px solid var(--control-border);
  padding:5px 9px;
  border-radius:6px;
  color:var(--muted)!important;
  font-size:10px!important;
  margin:0!important;
  cursor:pointer
}
.file-label:focus-within {
  outline:3px solid var(--focus);
  outline-offset:2px
}
.file-label input {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  opacity:0;
  min-height:0;
  overflow:hidden
}
.code-editor-host {
  height:360px;
  min-height:320px;
  width:100%;
  resize:vertical;
  overflow:hidden;
  background:var(--surface);
  border:1px solid var(--control-border);
  border-radius:7px;
}
.code-editor-host:focus-within { border-color:var(--info); box-shadow:0 0 0 2px var(--info-bg); }
.code-editor-host .cm-editor { height:100%; }
.code-editor-fallback { display:block; box-sizing:border-box; width:100%; height:100%; min-height:320px; resize:none; border:0; outline:0; margin:0; padding:14px 18px; background:var(--editor-bg); color:var(--text); font:14px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; tab-size:4; }

.code-editor-host ::selection { background:var(--info-bg); color:var(--text); }
.editor-actions { display:flex; align-items:center; gap:8px; }
.editor-search-button { padding:5px 9px; border:1px solid var(--control-border); border-radius:6px; background:var(--surface); color:var(--muted); font:inherit; font-size:10px; }
.editor-search-button:hover { background:var(--surface-hover); color:var(--text); }
.editor-caption {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:9px 0 19px;
  font-size:10px;
  color:var(--muted)
}
.submit-hint {
  color:var(--muted);
  font-size:10px;
  line-height:1.6;
  margin-top:12px
}
.editor-error {
  margin-bottom:12px
}
.refresh-button {
  display:flex;
  gap:6px;
  align-items:center
}
.refresh-button span {
  font-size:16px;
  font-weight:400
}
.submission-current {
  background:var(--current-row)
}
.verdict {
  min-width:57px
}
.time-cell {
  white-space:nowrap;
  color:var(--muted);
  font-size:12px
}
.source-button {
  border:0;
  background:transparent;
  padding:4px;
  color:var(--link);
  font-size:11px
}
.scoreboard-table .own-team {
  background:var(--current-row)
}
.scoreboard-table tbody .own-team:hover {
  background:var(--current-row)
}
.scoreboard-table .own-team .rank-column {
  box-shadow:inset 4px 0 0 var(--info);
  color:var(--info);
  font-weight:750
}
.scoreboard-table .own-team .team-name {
  font-weight:750
}
.team-name {
  font-weight:600
}
.own-team-label {
  display:inline-flex;
  margin-left:8px;
  font-size:10px;
  border-radius:4px;
  color:var(--info);
  background:var(--surface);
  border:1px solid var(--info);
  padding:1px 6px
}
.score-cell {
  font-size:12px;
  min-width:95px;
  text-align:center
}
.score-yes {
  color:var(--success);
  font-weight:650
}
.score-pending {
  color:var(--info)
}
.score-no {
  color:var(--muted)
}
.score-failed {
  color:var(--danger)
}
.score-caption {
  padding:15px 21px;
  border-top:1px solid var(--border);
  font-size:10px;
  color:var(--muted)
}
.score-legend {
  display:flex;
  gap:17px;
  font-size:10px;
  color:var(--muted)
}
.score-legend i {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  margin-right:5px;
  background:var(--success)
}
.score-legend .pending i {
  background:var(--info)
}
.score-legend .attempt i {
  background:var(--danger)
}
.scoreboard-state {
  margin-top:12px;
  font-size:11px;
  color:var(--muted)
}
.source-dialog {
  background:var(--surface);
  color:var(--text);
  width:min(880px,calc(100vw - 32px));
  max-height:90vh;
  border:1px solid var(--border);
  padding:28px;
  border-radius:14px;
  box-shadow:var(--dialog-shadow)
}
.source-dialog::backdrop {
  background:var(--backdrop)
}
.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px
}
.dialog-heading .eyebrow {
  font-size:9px;
  margin-bottom:9px
}
.dialog-heading h2 {
  font-size:22px;
  margin:0
}
.icon-button {
  border:1px solid var(--control-border);
  background:var(--surface-alt);
  color:var(--text);
  font-size:24px;
  width:33px;
  height:33px;
  line-height:1;
  border-radius:7px
}
.muted {
  color:var(--muted);
  font-size:12px
}
.source-metadata { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 20px;margin:18px 0 24px; }
.source-meta-field { min-width:0; }
.source-meta-field dt { margin:0 0 7px;color:var(--muted);font-size:12px; }
.source-meta-field dd { margin:0;color:var(--text);font-size:13px;overflow-wrap:anywhere; }
.source-meta-problem { grid-column:1/-1; }
.source-meta-problem dd { font-size:16px;font-weight:600; }
.source-files { display:grid;gap:20px; }
.source-file-panel { overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--editor-bg); }
.source-code-toolbar { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px;border-bottom:1px solid var(--border); }
.source-filename { min-width:0;overflow-wrap:anywhere;font:12px/1.5 "SFMono-Regular",Consolas,"Liberation Mono",monospace;color:var(--muted); }
.source-copy-actions { display:flex;align-items:center;justify-content:flex-end;gap:8px; }
.source-copy-button { display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;padding:7px;border:0;border-radius:5px;background:transparent;color:var(--text); }
.source-copy-button:hover { background:var(--surface-alt); }
.source-copy-button:focus-visible { outline:2px solid var(--focus);outline-offset:2px; }
.source-copy-feedback { color:var(--muted);font-size:12px; }
.source-dialog textarea {
  min-height:124px;
  max-height:50vh;
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-size:13px;
  background:var(--editor-bg);
  border:0;border-radius:0;margin:0;padding:16px;display:block;
  line-height:1.65;tab-size:4;white-space:pre;overflow-wrap:normal;
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  margin-top:18px
}
.jury-empty {
  padding:60px;
  text-align:center
}
.jury-empty p {
  margin-bottom:24px
}
.error-retry {
  display:block
}
.mobile-note {
  display:none
}
@media(min-width:1440px) {
  .page {
    padding-top:46px
  }
  .header-inner {
    max-width:1220px
  }
}
@media(max-width:1200px) {
  .page,.site-footer {
    margin-left:34px;
    margin-right:34px
  }
  .header-inner {
    padding:0 34px;
    gap:45px
  }
  .login-layout {
    gap:40px
  }
  .login-intro h1 {
    font-size:48px
  }
  .account-controls {
    gap:10px
  }
}
@media(max-width:850px) {
  .header-inner {
    gap:25px;
    padding:0 24px;
    min-height:72px
  }
  .brand {
    font-size:30px
  }
  .main-nav {
    gap:22px
  }
  .main-nav a {
    font-size:12px
  }
  .account-controls #account-name {
    max-width:100px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .page,.site-footer {
    margin-left:24px;
    margin-right:24px
  }
  .page {
    padding-top:26px
  }
  .login-layout {
    grid-template-columns:1fr 370px;
    gap:25px;
    margin-top:45px
  }
  .login-intro {
    padding:0
  }
  .login-intro h1 {
    font-size:39px;
    letter-spacing:-2px
  }
  .login-intro p {
    font-size:13px
  }
  .login-card {
    padding:30px
  }
  .problem-layout {
    grid-template-columns:1fr
  }
  .statement-frame {
    height:510px
  }
  .stats-strip {
    gap:10px
  }
  .stat {
    padding:18px;
    gap:12px
  }
  .stat-icon {
    width:31px;
    height:31px;
    font-size:16px
  }
  .stat-value {
    font-size:21px
  }
  .contest-meta {
    max-width:230px
  }
}
@media(max-width:650px) {
  .header-inner {
    padding:18px 19px 0;
    min-height:109px;
    flex-wrap:wrap;
    gap:12px 20px
  }
  .brand {
    font-size:28px;
    order:1
  }
  .account-controls {
    order:2;
    font-size:10px;
    margin-left:auto;
    gap:10px
  }
  .account-controls #account-name {
    max-width:115px
  }
  .account-controls .quiet-link {
    font-size:10px
  }
  .text-button {
    font-size:10px
  }
  .main-nav {
    order:3;
    width:100%;
    gap:27px;
    min-height:38px
  }
  .main-nav a {
    font-size:12px;
    padding-top:4px;
    padding-bottom:8px
  }
  .page,.site-footer {
    margin-left:19px;
    margin-right:19px
  }
  .page {
    padding-top:25px;
    padding-bottom:45px
  }
  .site-header:has(#main-nav[hidden]) .header-inner {
    min-height:72px;
    padding-top:0
  }
  .login-layout {
    display:block;
    margin:23px auto;
    max-width:400px
  }
  .login-intro {
    padding:0 6px;
    margin-bottom:29px
  }
  .login-intro .eyebrow {
    font-size:8px;
    margin-bottom:11px
  }
  .login-intro h1 {
    font-size:36px;
    line-height:1.22;
    margin-bottom:15px
  }
  .login-intro p {
    font-size:12px;
    line-height:1.7
  }
  .intro-note {
    display:none
  }
  .login-card {
    padding:27px;
    border-radius:13px
  }
  .card-heading p {
    font-size:12px;
    margin-bottom:24px
  }
  .contest-bar {
    align-items:flex-start;
    gap:12px;
    padding-bottom:23px;
    margin-bottom:26px
  }
  .contest-choice {
    display:block;
    min-width:0;
    flex:1
  }
  .contest-choice label {
    display:block;
    font-size:10px;
    margin-bottom:8px
  }
  .contest-choice select {
    width:100%;
    min-width:0;
    max-width:245px;
    font-size:11px
  }
  .contest-meta {
    font-size:9px;
    padding-top:28px;
    max-width:135px
  }
  .page-heading {
    margin-bottom:21px;
    gap:12px
  }
  .page-heading h1 {
    font-size:25px
  }
  .page-heading p {
    font-size:11px;
    line-height:1.75
  }
  .stats-strip {
    gap:8px;
    margin-bottom:24px
  }
  .stat {
    padding:15px 11px;
    display:block
  }
  .stat-icon {
    display:none
  }
  .stat-value {
    font-size:21px
  }
  .stat-label {
    font-size:9px;
    margin-top:7px
  }
  .toolbar-note {
    font-size:9px;
    white-space:nowrap
  }
  .search-field {
    max-width:none
  }
  .search-field input {
    font-size:11px
  }
  .button {
    font-size:11px;
    padding:10px 13px
  }
  .button-small {
    padding:7px 10px;
    font-size:10px
  }
  .table-scroll table {
    min-width:580px
  }
  th {
    padding:13px 16px;
    font-size:10px
  }
  td {
    padding:16px;
    font-size:12px
  }
  .panel-heading {
    padding:17px 19px
  }
  .panel-heading h2 {
    font-size:14px
  }
  .problem-details {
    font-size:9px;
    gap:9px
  }
  .statement-frame {
    height:430px
  }
  .editor-body {
    padding:18px
  }
  .score-legend {
    gap:11px;
    font-size:9px
  }
  .site-footer {
    gap:13px;
    font-size:9px;
    align-items:flex-start
  }
  .brand-small {
    font-size:15px;
    white-space:nowrap
  }
  .site-footer a {
    font-size:9px;
    text-align:right;
    max-width:95px
  }
  .source-dialog {
    padding:21px
  }
  .source-dialog textarea {
    font-size:11px;
    min-height:260px
  }
  .jury-empty {
    padding:40px 20px
  }
  .jury-empty p {
    font-size:12px
  }
  .empty-state {
    padding:50px 20px
  }
}
@media(prefers-reduced-motion:reduce) {
  .button {
    transition:none
  }
  .spinner {
    animation:none
  }
}
.login-dialog {
  background:var(--surface);
  color:var(--text);
  width:min(445px,calc(100vw - 40px));
  max-height:90vh;
  border:1px solid var(--border);
  border-radius:16px;
  padding:32px;
  box-shadow:var(--dialog-shadow);
}
.login-dialog::backdrop {
  background:var(--backdrop);
}
.login-context {
  color:var(--muted);
  font-size:14px;
  line-height:1.75;
  margin-bottom:25px;
}
.login-dialog .login-help {
  font-size:12px;
  color:var(--muted);
}
input[aria-invalid="true"] {
  border-color:var(--danger);
}
.login-required {
  padding:55px 35px;
  text-align:center;
}
.login-required h2 {
  margin:18px 0 13px;
  font-size:22px;
}
.login-required p {
  color:var(--muted);
  font-size:14px;
  margin-bottom:26px;
}
.gate-symbol {
  display:inline-flex;
  width:43px;
  height:43px;
  align-items:center;
  justify-content:center;
  background:var(--info-bg);
  color:var(--accent);
  border-radius:11px;
  font-size:21px;
}
.gate-back {
  display:block;
  margin-top:19px;
  font-size:13px;
}
.stat-login {
  background:transparent;
  border:0;
  padding:3px 0;
  color:var(--accent);
  font-size:14px;
  font-weight:600;
}
.stat-login:hover {
  text-decoration:none;
  color:var(--accent-strong);
}
.empty-state .button {
  margin-top:19px;
}
#page-title:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:7px;
  border-radius:3px;
}
.page-heading p,.toolbar-note,.subtle,.stat-label,.contest-choice label,.contest-meta,.submit-hint,.editor-caption,.score-caption,.scoreboard-state {
  color:var(--muted);
}
.page-heading p,.login-required p {
  line-height:1.8;
}
.submit-hint {
  font-size:12px;
}

input::placeholder,textarea::placeholder {
  color:var(--placeholder);
  opacity:1;
}
.problem-filter-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:19px;
}
.filter-tabs {
  display:flex;
  align-items:center;
  gap:5px;
  border:1px solid var(--border);
  padding:4px;
  border-radius:9px;
  background:var(--surface);
}
.filter-tab {
  border:0;
  border-radius:6px;
  background:transparent;
  padding:8px 15px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.filter-tab:hover {
  background:var(--surface-hover);
}
.filter-tab.selected {
  background:var(--surface-alt);
  color:var(--text);
  box-shadow:inset 0 -2px 0 var(--accent);
}
.language-hint {
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  margin:-9px 0 22px;
}
.entry-point-field {
  margin-bottom:20px;
}
.entry-point-field input {
  width:100%;
  font-size:13px;
}
.history-filters {
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr 1.35fr auto;
  align-items:end;
  gap:12px;
  margin-bottom:23px;
}
.filter-field {
  min-width:0;
}
.filter-field label {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:7px;
}
.filter-field select,.filter-field input {
  width:100%;
  font-size:12px;
  min-height:40px;
}
.history-filters>.button {
  min-height:40px;
}
.results-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin:13px 1px 25px;
  color:var(--muted);
  font-size:11px;
}
.scoreboard-controls {
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:20px;
}
.scoreboard-controls>.badge {
  margin-left:auto;
}
.scoreboard-scroll {
  max-height:min(620px,calc(100vh - var(--site-header-height) - 240px));
  overflow:auto;
  scrollbar-gutter:stable;
  border-radius:8px;
  border-color:var(--control-border);
}
.scoreboard-table {
  width:max(100%,var(--scoreboard-width,100%));
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
}
.scoreboard-table th,.scoreboard-table td {
  padding:12px 10px;
  border-top:0;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  text-align:center;
}
.scoreboard-table th:last-child,.scoreboard-table td:last-child {
  border-right:0;
}
.scoreboard-table tbody tr:last-child td {
  border-bottom:0;
}
.scoreboard-table th {
  position:sticky;
  top:0;
  z-index:3;
  height:44px;
  font-size:12px;
  font-weight:650;
  color:var(--text);
}
.scoreboard-table .rank-column {
  position:sticky;
  left:0;
  width:64px;
}
.scoreboard-table .team-column {
  position:sticky;
  left:64px;
  width:208px;
  padding-left:16px;
  padding-right:16px;
  text-align:left;
  box-shadow:2px 0 0 var(--control-border);
  overflow-wrap:normal;
}
.scoreboard-table tbody tr {
  background:var(--surface);
}
.scoreboard-table tbody tr:hover {
  background:var(--surface-hover);
}
.scoreboard-table tbody .rank-column,.scoreboard-table tbody .team-column {
  z-index:2;
  background:inherit;
}
.scoreboard-table thead .rank-column,.scoreboard-table thead .team-column {
  z-index:4;
  background:var(--table-head);
}
.scoreboard-table .solved-column {
  width:72px;
  font-weight:650;
}
.scoreboard-table .penalty-column {
  width:72px;
}
.scoreboard-table .score-cell {
  width:auto;
  min-width:104px;
  padding:10px 7px;
}
.scoreboard-table col.score-cell {
  width:max(104px,calc((100% - 416px) / var(--scoreboard-problem-count,1)));
}
.scoreboard-table tbody td {
  height:72px;
  padding-top:10px;
  padding-bottom:10px;
  vertical-align:middle;
  white-space:nowrap;
}
.score-team-content {
  display:flex;
  align-items:center;
  gap:8px;
  height:48px;
  min-width:0;
}
.score-team-name {
  display:block;
  flex:1;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  scrollbar-width:thin;
}
.score-team-content .own-team-label {
  flex:none;
  margin-left:0;
}
.scoreboard-table td.score-cell:has(.score-yes) {
  background:var(--success-bg);
}
.scoreboard-table td.score-cell:has(.score-failed) {
  background:var(--danger-bg);
}
.scoreboard-table td.score-cell:has(.score-pending) {
  background:var(--info-bg);
}
.scoreboard-table td.score-cell.score-first {
  background:color-mix(in srgb,var(--success-bg),var(--success) 12%);
}
.scoreboard-table tr:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:-3px;
}
.scoreboard-table tbody tr {
  scroll-margin-top:44px;
}
.score-problem-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:25px;
  min-height:25px;
  color:var(--text);
  font-weight:700;
}
.score-result {
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  width:100%;
  height:48px;
  padding:0;
  font-size:13px;
  cursor:default;
}
.score-time {
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:400;
}
.scoreboard-table .score-yes .score-time {
  color:var(--success);
}
.score-legend .first i {
  background:color-mix(in srgb,var(--success-bg),var(--success) 12%);
}
.score-detail-dialog {
  background:var(--surface);
  color:var(--text);
  width:min(450px,calc(100vw - 40px));
  max-height:85vh;
  border:1px solid var(--border);
  border-radius:14px;
  padding:27px;
  box-shadow:var(--dialog-shadow);
}
.score-detail-dialog::backdrop {
  background:var(--backdrop);
}
.score-detail-list {
  display:grid;
  grid-template-columns:125px 1fr;
  gap:13px 15px;
  margin:25px 0;
  font-size:13px;
}
.score-detail-list dt {
  color:var(--muted);
}
.score-detail-list dd {
  font-variant-numeric:tabular-nums;
  margin:0;
  font-weight:600;
}
.score-detail-note {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin-bottom:23px;
}
.score-detail-actions {
  justify-content:flex-start;
  gap:10px;
  flex-wrap:wrap;
}
.scoreboard-auto-update {
  font-size:11px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}

/* General bank and member contest pages have independent navigation contexts. */
.contest-context-info {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}
.contest-back {
  width:max-content;
  color:var(--muted);
  font-size:12px;
}
.contest-back::before {
  content:"← ";
}
.contest-name {
  color:var(--text);
  font-size:18px;
  font-weight:650;
  line-height:1.4;
}
.contest-banner {
  display:block;
  margin-bottom:24px;
  padding:20px 24px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
}
.contest-banner .contest-context-info {
  display:contents;
}
.contest-banner-heading {
  min-width:0;
}
.contest-banner .contest-name {
  display:block;
  font-size:24px;
  font-weight:750;
  letter-spacing:-.035em;
  overflow-wrap:anywhere;
}
.contest-banner .contest-meta {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:22px;
  width:100%;
  min-width:0;
  max-width:none;
  padding:0;
  border-left:0;
}
.contest-status {
  font-size:12px;
  justify-self:start;
}
.contest-clock {
  display:grid;
  align-items:center;
  justify-content:flex-start;
  gap:2px;
  white-space:nowrap;
  text-align:left;
}
.contest-clock-label {
  font-size:12px;
  line-height:1.5;
  color:var(--muted);
}
.contest-clock-value {
  font-size:30px;
  line-height:1.15;
  font-weight:750;
  letter-spacing:-.025em;
  color:var(--text);
  font-variant-numeric:tabular-nums;
}
.contest-schedule {
  display:grid;
  grid-template-columns:auto auto;
  column-gap:12px;
  row-gap:5px;
  align-items:baseline;
  margin:0;
  grid-column:auto;
  text-align:left;
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.contest-schedule dt { font-size:11px; }
.contest-schedule dd { margin:0; color:var(--text); }
.contest-problems-table th {
  padding-top:13px;
  padding-bottom:13px;
}
.contest-problems-table td {
  padding-top:18px;
  padding-bottom:18px;
}
.contest-problems-table th:first-child {
  width:80px;
}
.contest-problems-table th:last-child {
  width:132px;
}
.contest-problem-row[data-status="solved"],
.contest-problem-row[data-status="solved"]:hover {
  background:var(--success-bg);
}
.contest-problem-row[data-status="failed"],
.contest-problem-row[data-status="failed"]:hover {
  background:var(--danger-bg);
}
.contest-problem-row[data-status="pending"],
.contest-problem-row[data-status="pending"]:hover {
  background:var(--info-bg);
}
.contest-problem-row[data-status="solved"] td:first-child {
  box-shadow:inset 4px 0 0 var(--success);
}
.contest-problem-row[data-status="failed"] td:first-child {
  box-shadow:inset 4px 0 0 var(--danger);
}
.contest-problem-row[data-status="pending"] td:first-child {
  box-shadow:inset 4px 0 0 var(--info);
}
.contest-problem-status {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  font-weight:650;
  white-space:nowrap;
  color:var(--muted);
}
.contest-problem-row[data-status="solved"] .contest-problem-status {
  color:var(--success);
}
.contest-problem-row[data-status="failed"] .contest-problem-status {
  color:var(--danger);
}
.contest-problem-row[data-status="pending"] .contest-problem-status {
  color:var(--info);
}
.contest-hub-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
}
.contest-hub-card {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:center;
  gap:24px;
  padding:19px 22px;
  border-radius:8px;
}
.contest-hub-card h2 {
  font-size:24px;
  line-height:1.35;
  margin:0;
  color:var(--text);
}
.contest-card-info,.contest-card-content {
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.contest-card-heading {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}
.contest-card-meta {
  display:flex;
  flex-wrap:wrap;
  gap:5px 20px;
  color:var(--muted);
  font-size:12px;
  font-variant-numeric:tabular-nums;
  margin:0;
}
.contest-title-link {
  color:var(--text);
  text-underline-offset:4px;
}
.contest-title-link:hover {
  color:var(--link);
}
.problem-submit-link {
  display:inline-block;
  width:max-content;
  max-width:100%;
  padding:3px 7px;
  line-height:1.45;
  user-select:text;
  text-underline-offset:3px;
}
.bank-problems-table a,.contest-problem-card a {
  user-select:text;
  -webkit-user-drag:none;
}
.bank-problems-table .problem-title-cell {
  cursor:pointer;
}
.problem-submit-link:hover {
  text-decoration:none;
}
.contest-catalog-group + .contest-catalog-group {
  margin-top:26px;
}
.contest-group-heading {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  color:var(--text);
  font-size:17px;
  font-weight:650;
}
.contest-group-heading h2 {
  margin:0;
  font-size:17px;
}
.contest-phase {
  font-size:11px;
  font-weight:600;
}
.contest-phase-running {
  color:var(--info);
  background:var(--info-bg);
}
.contest-phase-upcoming,.contest-phase-frozen {
  color:var(--warning);
  background:var(--warning-bg);
}
.contest-phase-ended {
  color:var(--neutral);
  background:var(--neutral-bg);
}
.mypage-overview {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}
.mypage-stat {
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 22px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
}
.mypage-stat-value {
  min-width:32px;
  color:var(--text);
  font-size:28px;
  line-height:1.2;
  font-weight:720;
  font-variant-numeric:tabular-nums;
}
.mypage-stat-label {
  color:var(--muted);
  font-size:13px;
}
.mypage-actions {
  margin-bottom:26px;
}
.mypage-solved-list .panel-heading {
  padding-top:17px;
  padding-bottom:17px;
}
.mypage-solved-table {
  table-layout:fixed;
}
.mypage-solved-table th:first-child {
  width:125px;
}
.mypage-solved-table th:last-child {
  width:145px;
}
.statement-panel .problem-details {
  margin-left:auto;
  font-size:12px;
}
.statement-panel {
  border-radius:10px;
}
.statement-panel > .panel-heading {
  padding:16px 24px;
}
.statement-download {
  flex-shrink:0;
}
.statement-download-only {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px;
  color:var(--muted);
  font-size:13px;
}
.statement-download-only p {
  margin:0;
  line-height:1.75;
}
.statement-download-only .button {
  flex-shrink:0;
}
.problem-recent-submissions .panel-heading {
  padding-top:17px;
  padding-bottom:17px;
}
.problem-recent-submissions .panel-heading a {
  font-size:12px;
}
.recent-empty {
  margin:0;
  padding:22px 24px;
  color:var(--muted);
  font-size:var(--empty-message-size);
  line-height:1.65;
}
.submission-source-row[data-source-enabled="true"] {
  cursor:pointer;
}
.submission-source-row[data-source-enabled="true"]:hover,
.submission-source-row[data-source-enabled="true"]:focus-within {
  background:var(--surface-hover);
}
.submission-source-row[data-source-enabled="true"]:focus-visible {
  outline:2px solid var(--focus);
  outline-offset:-2px;
}
.submissions-table {
  table-layout:fixed;
  min-width:1060px;
}
.submissions-table th:first-child { width:104px; }
.submissions-table th:nth-child(2) { width:224px; }
.submissions-table th:nth-child(4) { width:190px; }
.submissions-table th:nth-child(5) { width:145px; }
.submissions-table th:nth-child(6) { width:116px; }
.submissions-table td:nth-child(3) { overflow-wrap:anywhere; }
.submission-number {
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.problem-recent-table {
  display:block;
  min-width:760px;
}
.problem-recent-table thead tr,.problem-recent-table tbody tr {
  display:table;
  width:100%;
  table-layout:fixed;
}
.problem-recent-table thead {
  display:block;
  overflow:hidden;
  scrollbar-gutter:stable;
  background:var(--table-head);
  border-bottom:1px solid var(--border);
}
.problem-submissions-scroll {
  display:block;
  max-height:268px;
  overflow:auto;
  scrollbar-gutter:stable;
}
.problem-submissions-scroll[data-wheel-owned="true"] {
  overscroll-behavior-y:contain;
}
.problem-submissions-scroll:focus-visible {
  outline:2px solid var(--focus);
  outline-offset:-2px;
}
.problem-recent-table th,.problem-recent-table td {
  padding-top:12px;
  padding-bottom:12px;
}
.problem-recent-table th:first-child,.problem-recent-table td:first-child {
  width:104px;
}
.problem-recent-table th:nth-child(2),.problem-recent-table td:nth-child(2) {
  width:192px;
}
.problem-recent-table th:last-child,.problem-recent-table td:last-child {
  width:112px;
}
.problem-recent-table .source-button {
  white-space:nowrap;
}
.recent-login-prompt {
  padding:22px 24px;
  color:var(--muted);
  font-size:13px;
}
.recent-login-prompt button {
  color:var(--link);
  font-size:13px;
}
.submission-editor-panel .editor-body {
  padding:24px;
}
.submission-editor-panel .editor-body select {
  display:block;
  width:280px;
  max-width:100%;
}
.submission-editor-panel .entry-point-field input {
  max-width:420px;
}
.submission-editor-panel .full-width {
  width:auto;
  min-width:160px;
}
.contest-submit-panel {
  padding:24px;
  margin-bottom:20px;
}
.contest-submit-panel > p {
  margin:10px 0 0;
  line-height:1.65;
}
.contest-submit-selector {
  display:grid;
  gap:8px;
  max-width:600px;
  min-width:0;
}
.contest-submit-selector label {
  color:var(--text);
  font-weight:600;
  font-size:13px;
  white-space:nowrap;
}
.contest-submit-selector select {
  width:100%;
  max-width:100%;
  min-height:44px;
  padding:9px 12px;
  font-size:14px;
}
.contest-submit-selector select:focus {
  border-color:var(--info);
  box-shadow:0 0 0 2px var(--info-bg);
}
.contest-problems-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));
  gap:20px;
}
.contest-problem-card {
  position:relative;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  padding:24px;
  border-radius:10px;
  border-left:4px solid var(--border);
  min-width:0;
  transition:border-color .15s,box-shadow .15s;
}
.contest-problem-card:hover {
  border-color:var(--control-border);
  box-shadow:0 3px 12px #20252f09;
}
.contest-problem-card:has(.contest-problem-open:focus-visible) {
  outline:3px solid var(--focus);
  outline-offset:3px;
}
.contest-problem-card[data-status],.contest-problem-card[data-status]:hover {
  background:var(--problem-status-bg,var(--surface));
}
.bank-problems-table tbody tr {
  background:var(--problem-status-bg,var(--surface));
}
.bank-problems-table tbody tr[data-testid^="problem-row"] { cursor:pointer; }
.bank-problems-table tbody tr:hover {
  background:var(--problem-status-bg,var(--surface-hover));
}
.bank-problems-table tr[data-display-verdict="AC"],.contest-problem-card[data-status="solved"] {
  --problem-status-bg:color-mix(in srgb,var(--success-bg) 60%,var(--surface));
}
.bank-problems-table tr[data-display-verdict="WA"],.contest-problem-card[data-display-verdict="WA"] {
  --problem-status-bg:color-mix(in srgb,var(--danger-bg) 60%,var(--surface));
}
.contest-problem-card[data-status="solved"] {
  border-left-color:var(--success);
}
.contest-problem-card[data-status="solved"] .contest-problem-status {
  color:var(--success);
}
.contest-problem-card[data-status="failed"] {
  border-left-color:var(--danger);
}
.contest-problem-card[data-status="failed"] .contest-problem-status {
  color:var(--danger);
}
.contest-problem-card[data-display-verdict="CE"] { border-left-color:var(--compile); }
.contest-problem-card[data-display-verdict="RTE"],.contest-problem-card[data-display-verdict="TLE"],.contest-problem-card[data-display-verdict="MLE"] { border-left-color:var(--warning); }
.contest-problem-card[data-status="pending"] {
  border-left-color:var(--border);
}
.contest-problem-card-heading {
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:26px;
}
.contest-problem-card-heading .problem-label {
  width:48px;
  height:48px;
  flex-shrink:0;
  font-size:22px;
  border-radius:9px;
  position:relative;
}
.contest-problem-card-heading .problem-label[style]::after {
  content:"";
  position:absolute;
  bottom:5px;
  left:50%;
  transform:translateX(-50%);
  width:18px;
  height:3px;
  border-radius:2px;
  background:var(--problem-identity-color,transparent);
}
.contest-problem-card-heading h2 {
  margin:0;
  min-width:0;
  font-size:22px;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.contest-problem-open:hover {
  text-decoration:none;
  color:var(--link);
}
.contest-problem-open:focus-visible {
  outline:none;
}
.contest-problem-limits {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:0 0 auto;
}
.contest-problem-limits dt {
  font-size:12px;
  color:var(--muted);
  margin-bottom:5px;
}
.contest-problem-limits dd {
  font-size:15px;
  font-weight:600;
  margin:0;
  font-variant-numeric:tabular-nums;
}
.contest-problem-card-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:18px;
  margin-top:22px;
  border-top:1px solid var(--row-border);
  min-height:49px;
}
.contest-problem-type {
  font-size:12px;
  color:var(--muted);
}
.contest-problem-card-footer .contest-problem-status {
  position:relative;
  z-index:2;
  display:inline-block;
  min-height:0;
  width:max-content;
  padding:3px 7px;
  font-size:11px;
  line-height:1.45;
}
.judging-status {
  display:inline-flex;
  flex-direction:column;
  gap:6px;
  min-width:142px;
  max-width:100%;
  color:var(--info);
  font-size:12px;
  font-weight:600;
  vertical-align:middle;
}
.judging-progress-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  white-space:nowrap;
}
.judging-progress-percent {
  font-variant-numeric:tabular-nums;
}
.judging-progress-track {
  display:block;
  height:5px;
  width:100%;
  overflow:hidden;
  border-radius:4px;
  background:var(--neutral-bg);
}
.judging-progress-fill {
  display:block;
  height:100%;
  background:var(--info);
  border-radius:inherit;
  transition:width .24s linear;
}
@media (prefers-reduced-motion:reduce) {
  .judging-progress-fill,.contest-problem-card {
    transition:none;
  }
}
.bank-problem-id {
  width:auto;
  min-width:0;
  max-width:160px;
  padding:6px 8px;
  margin-inline-start:-8px;
  height:auto;
  min-height:0;
  background:transparent;
  border:0;
  border-radius:0;
  overflow-wrap:anywhere;
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-variant-numeric:tabular-nums;
}
.bank-problems-table {
  table-layout:fixed;
  min-width:720px;
}
.bank-problems-table th:first-child { width:100px; }
.bank-problems-table th:nth-child(3) { width:120px; }
.bank-problems-table th:nth-child(4) { width:112px; }
.bank-problems-table th:nth-child(5) { width:132px; }
.bank-problems-table .problem-title { overflow-wrap:anywhere; }
.bank-problems-table td:nth-child(n+3) { white-space:nowrap; }

/* Desktop logo sits in a shared left slot; navigation and titles align with content. */
@media(min-width:1100px) {
  :root {
    --content-left:max(166px,calc((100vw - 1136px)/2));
    --content-right:max(34px,calc((100vw - 1136px)/2));
  }
  .header-inner {
    max-width:none;
    margin:0;
    padding:0 var(--content-right) 0 var(--content-left);
    gap:24px;
  }
  .header-inner .brand {
    position:absolute;
    left:calc(var(--content-left) - 132px);
    width:110px;
  }
  .page,.site-footer {
    max-width:none;
    margin-left:var(--content-left);
    margin-right:var(--content-right);
  }
  .secondary-nav {
    padding-left:var(--content-left);
    padding-right:var(--content-right);
  }
  .site-header[data-context="bank"] .main-nav {
    padding-left:12px;
  }
  .secondary-nav-links {
    margin-left:-2px;
  }
}

/* Administration shares the participant theme and keeps its tools close at hand. */
.header-admin-label {
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border:1px solid var(--border);
  border-radius:5px;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  letter-spacing:0;
  white-space:nowrap;
}
.admin-layout {
  display:grid;
  grid-template-columns:194px minmax(0,1fr);
  align-items:start;
  gap:24px;
}
.admin-sidebar {
  position:sticky;
  top:calc(var(--site-header-height) + 24px);
  max-height:calc(100vh - var(--site-header-height) - 48px);
  overflow:auto;
  padding:16px 10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
}
.admin-sidebar-title {
  display:block;
  margin:0 10px 12px;
  color:var(--text);
  font-size:13px;
  font-weight:700;
}
.admin-primary-nav,.admin-tools-nav {
  display:flex;
  flex-direction:column;
  gap:3px;
}
.admin-primary-nav a,.admin-tools-nav a {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  padding:9px 11px;
  border-radius:6px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  text-decoration:none;
}
.admin-primary-nav a:hover,.admin-tools-nav a:hover {
  background:var(--surface-hover);
  color:var(--text);
}
.admin-primary-nav a[aria-current="page"],.admin-tools-nav a[aria-current="page"] {
  background:var(--info-bg);
  color:var(--info);
  box-shadow:inset 2px 0 0 var(--info);
  font-weight:650;
}
.admin-primary-nav svg,.admin-tools-nav svg {
  width:16px;
  height:16px;
  flex-shrink:0;
}
.admin-tool-group {
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--border);
}
.admin-tool-group > summary {
  padding:8px 10px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}
.admin-tool-group > summary:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:2px;
  border-radius:5px;
}
.admin-tool-group[open] > summary {
  margin-bottom:7px;
}
.admin-tools-nav a {
  min-height:34px;
  padding-top:7px;
  padding-bottom:7px;
  font-size:12px;
}
.admin-main {
  min-width:0;
}
.admin-main > .page-heading {
  margin-bottom:22px;
}
.admin-main > .page-heading h1 {
  margin-bottom:0;
  font-size:28px;
}
.admin-stat-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:24px;
}
.admin-stat-card {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
  min-height:91px;
  padding:16px 19px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--surface);
  color:var(--text);
  text-decoration:none;
}
.admin-stat-card:hover {
  border-color:var(--control-border);
  background:var(--surface-hover);
  text-decoration:none;
}
.admin-stat-value {
  color:var(--text);
  font-size:26px;
  font-weight:720;
  line-height:1.15;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.4px;
}
.admin-stat-label {
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}
.admin-contests,.admin-judgehosts {
  margin-bottom:22px;
}
.admin-main .panel-heading {
  padding:17px 20px;
}
.admin-main .panel-heading h2 {
  font-size:16px;
}
.admin-actions,.admin-table-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.admin-actions .button {
  padding:8px 11px;
  font-size:12px;
}
.admin-table th {
  padding:12px 17px;
  font-size:11px;
}
.admin-table td {
  padding:14px 17px;
  font-size:13px;
  vertical-align:middle;
}
.admin-table td strong {
  font-weight:600;
}
.admin-table .admin-contest-name {
  color:var(--text);
  font-weight:600;
  text-underline-offset:3px;
}
.admin-table .admin-contest-schedule {
  color:var(--muted);
  font-size:12px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.admin-table .admin-selected-context {
  background:var(--info-bg);
}
.admin-table .badge {
  font-size:10px;
}
.admin-table .button-small {
  padding:6px 9px;
  font-size:11px;
}
.admin-native-workspace {
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
}
.admin-native-breadcrumb {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding:15px 20px;
  border-bottom:1px solid var(--border);
  background:var(--surface);
}
.admin-native-breadcrumb a {
  font-size:12px;
  text-underline-offset:3px;
}
.admin-native-breadcrumb strong {
  color:var(--text);
  font-size:14px;
  font-weight:650;
}
.admin-native-breadcrumb code {
  margin-left:auto;
  color:var(--muted);
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-size:11px;
  overflow-wrap:anywhere;
}
#admin-native-status {
  margin:0;
  padding:18px 20px;
  color:var(--muted);
  font-size:12px;
}
.admin-native-frame {
  display:block;
  width:100%;
  min-height:560px;
  height:720px;
  border:0;
  background:var(--surface);
  color-scheme:inherit;
}
.admin-queue-summary {
  margin:-10px 0 22px;
  color:var(--muted);
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.admin-native-context:empty {
  display:none;
}
.admin-native-context:not(:empty) {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px 14px;
  padding:11px 20px;
  border-bottom:1px solid var(--border);
  background:var(--surface-alt);
  color:var(--muted);
  font-size:12px;
}
.admin-native-context a {
  font-size:12px;
}

/* Problem sets use the same task cards without contest chrome or timing. */
.problem-sets-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.problem-set-card { position:relative; display:block; padding:19px 22px; border-radius:8px; }
.problem-set-main { display:flex; flex-direction:column; gap:10px; min-width:0; }
.problem-set-card h2 { font-size:24px; line-height:1.35; margin:0; overflow-wrap:anywhere; }
.problem-set-card p { margin:0; font-size:13px; line-height:1.7; }
.problem-set-card .problem-set-meta { flex-wrap:wrap; font-size:12px; font-variant-numeric:tabular-nums; }
.bank-problems-table .problem-title { display:inline; padding:0; margin:0; }
.bank-problems-table .problem-submit-link { min-height:0; padding:3px 7px; }
.bank-problems-table a.problem-label:hover { text-decoration:none; color:var(--link); }
.problem-set-meta,.problem-set-caption { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:13px; }
.problem-set-caption { margin:-12px 0 24px; }
.problem-set-meta span + span::before { content:'·'; margin-right:12px; }
.problem-set-open { color:var(--text); text-decoration:none; }
.problem-set-open::before { content:''; position:absolute; inset:0; }
.problem-set-card:hover { border-color:var(--control-border); }
.problem-set-card:hover .problem-set-open,.problem-set-card:focus-within .problem-set-open { color:var(--link); text-decoration:none; }
.problem-set-card:has(a:focus-visible) { outline:3px solid var(--focus); outline-offset:3px; }
.problem-set-open:focus-visible { outline:none; }

.statement-image-dialog { width:min(92vw,1100px); max-height:90vh; margin:auto; padding:22px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); box-shadow:0 18px 80px #0004; }
.statement-image-dialog::backdrop { background:#1118; }
.statement-image-dialog .dialog-heading { margin:0 0 16px; }
.statement-image-actions { display:flex; align-items:center; gap:12px; }
.statement-image-pane { display:flex; overflow:auto; max-height:74vh; align-items:flex-start; background:#fff; border:1px solid var(--border); border-radius:6px; }
.statement-image-pane img { display:block; width:auto; height:auto; max-width:100%; max-height:70vh; object-fit:contain; margin:auto; cursor:zoom-in; }
.statement-image-dialog.image-original img { max-width:none; max-height:none; margin:0; flex-shrink:0; }
.statement-image-dialog.image-original img { cursor:zoom-out; }
.statement-image-pane img:focus-visible { outline:2px solid var(--focus); outline-offset:-2px; }

.problem-provenance { display:grid; gap:10px; border-top:1px solid var(--border); padding:16px 24px; }
.provenance-section { display:grid; grid-template-columns:84px minmax(0,1fr); align-items:start; gap:6px 12px; }
.provenance-section h3 { margin:2px 0 0; font-size:13px; line-height:1.6; font-weight:650; }
.provenance-section p { margin:2px 0 0; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.provenance-paths { display:grid; gap:2px; list-style:none; margin:0; padding:0; }
.provenance-paths > li { margin:0; }
.provenance-path { display:flex; align-items:center; flex-wrap:wrap; gap:0 6px; font-size:13px; line-height:1.6; }
.provenance-path a { display:inline-flex; align-items:center; min-height:24px; padding:1px 4px; margin:0 -4px; border-radius:3px; }
.provenance-path a:hover { color:var(--accent-strong); background:var(--surface-hover); }
.provenance-separator { color:var(--muted); }
.provenance-reviewer-scope { color:var(--muted); margin-right:10px; }
.admin-list-toolbar [data-testid="admin-problem-folder-filter"] { min-width:200px; max-width:340px; font-size:12px; }
.problem-folder-list { display:grid; gap:12px; margin-bottom:24px; }
.problem-folder-card { display:flex; align-items:center; gap:18px; padding:21px 24px; min-height:100px; color:var(--text); border-radius:8px; text-decoration:none; cursor:pointer; }
.problem-folder-symbol { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:44px; height:44px; border-radius:8px; color:var(--info); background:var(--info-bg); }
.problem-folder-symbol svg { display:block; width:24px; height:24px; }
.problem-folder-description { flex:1; min-width:0; }
.problem-folder-description h2 { margin:0 0 7px; font-size:21px; line-height:1.4; overflow-wrap:anywhere; }
.problem-folder-open { color:inherit; text-decoration:none; }
.problem-folder-open:hover { text-decoration:none; }
.problem-folder-card:has(.problem-folder-open:focus-visible) { outline:3px solid var(--focus); outline-offset:3px; }
.problem-folder-description .subtle { font-size:13px; }
.problem-folder-chevron { flex-shrink:0; width:9px; height:9px; margin:0 3px 0 10px; border-top:2px solid var(--muted); border-right:2px solid var(--muted); transform:rotate(45deg); }
.problem-folder-card:hover { color:var(--text); border-color:var(--control-border); background:var(--surface-hover); text-decoration:none; }
.problem-folder-card:hover h2 { color:var(--link); }
.problem-folder-actions { display:flex; gap:10px; flex-wrap:wrap; }
.group-view-toggle { display:flex; border:1px solid var(--control-border); border-radius:7px; overflow:hidden; flex-shrink:0; }
.group-view-toggle button { min-height:38px; padding:7px 14px; border:0; border-radius:0; color:var(--muted); background:var(--surface); font-size:13px; font-weight:600; }
.group-view-toggle button + button { border-left:1px solid var(--border); }
.group-view-toggle button[aria-pressed="true"] { color:var(--link); background:var(--info-bg); }
.group-view-toggle button:hover { background:var(--surface-hover); }
.group-view-toggle button:focus-visible { outline:2px solid var(--focus); outline-offset:-3px; }
.group-problem-count { margin:-12px 0 20px; color:var(--muted); font-size:13px; }
.group-list-label { display:inline-block; min-width:24px; margin-right:8px; color:var(--muted); font-weight:600; font-size:12px; }
@media(max-width:640px) {
  .provenance-section { grid-template-columns:1fr; gap:2px; }
  .problem-provenance { padding:14px 16px; }
}
