@font-face {
  font-family: "Noto Sans SC Web";
  src: url("/assets/fonts/noto-sans-sc.be5bcd752a9f.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ui: "Noto Sans SC Web", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ink: #18282e;
  --secondary: #4e6068;
  --line: #d9e0e2;
  --soft: #f3f6f6;
  --accent: #a93525;
  --focus: #216a91;
  --small: .875rem;
  --body: 1rem;
  --subheading: 1.125rem;
  --heading: clamp(1.45rem, 2.2vw, 1.75rem);
  --display: clamp(2.05rem, 3.32vw, 2.95rem);
  font: 400 100%/1.65 var(--ui);
  font-synthesis: none;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, ul, dl, dd, fieldset, legend { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset, legend { padding: 0; border: 0; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; }
button:disabled { opacity: .55; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:is(h1,h2,#desk)[tabindex="-1"]:focus { outline: none; }
.wrap { width: min(1160px, calc(100% - clamp(40px, 9vw, 128px))); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: -6rem; left: 1rem; background: white; padding: .5rem 1rem; }
.skip:focus { top: .5rem; }


:root { --accent: #a93829; --line: #d9e0e2; --ink: #182b32; --slate: #344f5b; }
body { min-height: 100vh; }
.wrap { width: min(1200px, calc(100% - clamp(40px, 8vw, 128px))); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#main { padding-bottom: 58px; }
#main:focus { outline: none; }
h1, h2, h3 { font-weight: 590; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); line-height: 1.3; }
h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.45; }
h3 { font-size: 1.06rem; line-height: 1.55; }
.mast { border-bottom: 1px solid var(--line); background: #fff; }
.mast-inner, .brand, .account-link, .primary-nav, .hero-actions, .form-actions, .panel-heading, .page-heading,
.row-links, .joined-title, .work-heading, .breadcrumb, .group-tabs, .form-tabs, .work-nav { display: flex; align-items: center; }
.mast-inner { min-height: 70px; gap: clamp(24px, 5vw, 75px); }
.brand { gap: 11px; flex-shrink: 0; font-size: 1.12rem; font-weight: 650; }
.brand img { object-fit: contain; }
.primary-nav { align-self: stretch; gap: clamp(18px, 2.8vw, 45px); }
.primary-nav a, .work-nav a, .form-tabs a, .group-tabs a { position: relative; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.primary-nav a { color: var(--secondary); font-size: .94rem; white-space: nowrap; }
.primary-nav a[aria-current], .work-nav a[aria-current], .form-tabs a[aria-current] { color: var(--ink); font-weight: 630; }
.primary-nav a[aria-current]::after, .work-nav a[aria-current]::after, .form-tabs a[aria-current]::after {
  content: ""; height: 3px; position: absolute; bottom: 0; left: 0; right: 0; background: var(--accent); }
.primary-nav a { align-self: stretch; }
:is(.primary-nav,.work-nav,.group-tabs,.form-tabs,.breadcrumb,.row-links) a:hover, .account-link:hover { color: var(--accent); }
.account-link { margin-left: auto; min-width: 0; gap: 8px; font-size: .9rem; font-weight: 550; }
.account-name { max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-block; position: relative; width: 32px; height: 32px; flex: none; border: 1px solid #bbcacf; background: #edf2f3; border-radius: 50%; color: #34515c; }
.avatar::before,.avatar::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 1.6px solid currentColor; }
.avatar::before { top: 6px; width: 6px; height: 6px; border-radius: 50%; }
.avatar::after { top: 16px; width: 13px; height: 6px; border-radius: 10px 10px 4px 4px; }
.avatar i { position: absolute; bottom: -1px; right: -2px; width: 9px; height: 9px; background: #3c7259; border: 2px solid white; border-radius: 50%; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; padding: clamp(26px, 4.3vw, 70px);
  margin-top: clamp(18px, 2.2vw, 32px); min-height: clamp(270px, 26.3vw, 360px); border-radius: 8px; color: white; background: #11202a; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg,#11222de8 0%,#11222dbd 34%,#13253015 66%), url("/assets/microscopy-hero.webp") 66% center / cover; }
.hero h1 { font-size: clamp(2.05rem, 3.8vw, 3.45rem); line-height: 1.35; font-weight: 570; letter-spacing: .018em; }
.hero h1 span { display: block; }
.hero-actions { gap: 24px; margin-top: clamp(22px, 2.5vw, 36px); }
.hero-link { color: white; font-size: .95rem; font-weight: 520; padding-block: 8px; }
.hero-link::after { content: " →"; margin-left: 5px; }
.hero-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.guest-links { display: flex; gap: 16px; align-items: center; margin-left: auto; white-space: nowrap; font-size: .94rem; }
.guest-register { background: var(--ink); color: white; padding: 6px 16px; border-radius: 5px; }
.guest-login:hover, .auth-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-layout { width: min(100%, 960px); margin: clamp(24px,6vw,80px) auto 0; display: grid;
  grid-template-columns: minmax(230px,.87fr) minmax(0,1.13fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.auth-visual { display: flex; align-items: flex-end; padding: clamp(24px,3.8vw,49px); color: #fff;
  background: linear-gradient(0deg,#0d202cf2,#10202c36 75%),url("/assets/microscopy-hero.webp") 70% center/cover; }
.auth-visual h2 { font-size: clamp(1.7rem,2.9vw,2.55rem); line-height: 1.4; font-weight: 580; }
.hero-link-plain { display: inline-block; margin-top: 20px; font-size: .95rem; text-underline-offset: 4px; }
.hero-link-plain:hover { text-decoration: underline; }
.auth-card { padding: clamp(24px,4.1vw,56px); align-self: center; min-width: 0; }
.auth-card h1 { margin-bottom: 24px; font-size: clamp(1.65rem,2.2vw,2.15rem); }
.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.auth-tabs a { padding: 0 1px 10px; color: var(--secondary); }
.auth-tabs a[aria-current] { border-bottom: 3px solid var(--accent); font-weight: 600; color: var(--ink); }
.auth-form { display: grid; gap: 17px; }
.auth-form .field { margin: 0; }
.auth-form .field small { color: var(--secondary); font-size: .82rem; }
.auth-control { display: flex; align-items: stretch; border: 1px solid #aebdc2; border-radius: 5px; overflow: hidden; }
.auth-control:focus-within { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 1px; }
.auth-card .auth-control input, .auth-card .auth-control input:focus { flex: 1; min-width: 0; border: 0; outline: none; }
.auth-control button, .dial-code { display: inline-flex; align-items: center; align-self: center; flex: none;
  color: var(--slate); background: none; border: 0; padding: 2px 12px; font-size: .88rem; }
.auth-control button { border-left: 1px solid var(--line); font-weight: 550; }
.auth-control .dial-code { border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.auth-control button:focus-visible { outline-offset: -2px; }
.auth-form .code-feedback:empty { display: none; }
.code-feedback, .auth-success { color: #326750; font-size: .9rem; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-links { margin-top: 18px; display: flex; justify-content: space-between; gap: 15px; color: var(--secondary); font-size: .92rem; }
.auth-links a { color: var(--slate); font-weight: 540; }
.auth-success { margin-bottom: 14px; }
.logout-button { border: 0; padding: 4px 0; background: transparent; color: var(--slate); }
@media (max-width: 700px) {
  .guest-links { grid-column: 2; grid-row: 1; gap: 12px; }
  .auth-layout { grid-template-columns: 1fr; max-width: 480px; }
  .auth-visual { align-items: center; padding: 18px 24px; background-position: center,70% 48%; }
  .auth-visual h2 { font-size: 1.19rem; }
  .auth-visual h2 br { display: none; }
  .auth-visual .hero-link-plain { display: none; }
}
.home-groups { margin-top: clamp(28px, 3.4vw, 48px); }
.home-groups > h2 { margin-bottom: 18px; }
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.track-card { display: grid; align-items: center; grid-template-columns: 1fr; gap: 13px; padding: 23px 24px 20px;
  border: 1px solid var(--line); border-radius: 7px; background: white; }
.track-card:hover { border-color: #92a5ad; background: #f9fbfb; }
.track-card h3 { font-size: clamp(1.1rem, 1.65vw, 1.35rem); }
.card-action { display: flex; border-top: 1px solid var(--line); padding-top: 13px; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--slate); }
.card-action b { font-size: 1.1rem; font-weight: 450; }
.motif { display: inline-block; flex: 0 0 auto; width: 45px; height: 45px; position: relative; border-radius: 10px;
  background: #edf2f4; color: #486474; }
.motif i { position: absolute; width: 14px; height: 11px; border: 1.6px solid currentColor; border-radius: 65% 40% 57% 42%; transform: rotate(-27deg); }
.motif i:nth-child(1) { left: 8px; top: 11px; }
.motif i:nth-child(2) { left: 23px; top: 15px; width: 12px; height: 9px; }
.motif i:nth-child(3) { left: 14px; top: 26px; width: 10px; height: 8px; }
.motif.combined { background: #f5e9e5; color: #934838; }
.motif.combined i::after { content: ""; position: absolute; left: 38%; top: 35%; width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.motif.tracking { color: #3e746b; background: #e8f1ed; }
.motif.tracking i { width: 7px; height: 7px; border-radius: 50%; background: white; transform: none; }
.motif.tracking i:nth-child(1) { left: 7px; top: 27px; }
.motif.tracking i:nth-child(2) { left: 20px; top: 12px; }
.motif.tracking i:nth-child(3) { left: 31px; top: 19px; }
.motif.tracking i:not(:last-child)::after { content: ""; position: absolute; width: 14px; height: 1.5px; background: currentColor; left: 4px; top: 0; transform-origin: left; transform: rotate(-50deg); }
.motif.tracking i:nth-child(2)::after { transform: rotate(32deg); top: 4px; width: 9px; }
.page-heading { justify-content: space-between; gap: 12px; margin: clamp(25px, 3.6vw, 52px) 0 22px; }
.group-tabs { margin: 0 0 26px; border-bottom: 1px solid var(--line); gap: 8px; }
.group-tabs a { padding: 10px 17px; gap: 6px; color: var(--secondary); font-size: .95rem; border-radius: 5px 5px 0 0; }
.group-tabs [aria-current] { background: #263d46; color: white; font-weight: 550; }
.group-tabs [aria-current]:hover { color: white; }
.enrolled-dot { font-size: .85em; }
.form-sheet, .joined-card { border: 1px solid var(--line); border-radius: 7px; padding: clamp(20px, 3vw, 38px); }
.form-sheet { max-width: 850px; }
.form-tabs { gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.joined-list { display: grid; gap: 18px; }
.joined-card { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
.joined-title, .work-heading { gap: 16px; min-width: 0; }
.joined-title > div { min-width: 0; }
.joined-title p, .work-heading p { margin-top: 4px; color: var(--secondary); overflow-wrap: anywhere; }
.joined-title h2 a:hover { color: var(--accent); }
.stats { display: flex; gap: 30px; }
.stats dt, .facts dt { font-size: .9rem; color: var(--secondary); }
.stats dd { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.joined-card .row-links { grid-column: 1/-1; padding-top: 14px; border-top: 1px solid var(--line); }
.row-links { gap: 9px 20px; flex-wrap: wrap; font-size: .9rem; }
.empty-state { padding: 52px 20px; border: 1px solid var(--line); border-radius: 7px; text-align: center; }
.empty-state .button { margin-top: 18px; }
.empty-state h2 { font-size: 1.15rem; }
.breadcrumb { gap: 10px; padding: 24px 0 17px; color: var(--secondary); font-size: .85rem; }
.work-heading { padding: 2px 0 21px; }
.work-heading h1 { font-size: clamp(1.7rem,3vw,2.3rem); }
.work-heading .motif { transform: scale(1.05); }
.work-nav { gap: clamp(20px, 4vw, 50px); border-bottom: 1px solid var(--line); }
.work-nav a { padding: 12px 0; color: var(--secondary); }
.work-body { padding-top: clamp(22px, 3vw, 36px); }
.public-heading .button { margin-left: auto; flex: 0 0 auto; }
.public-problem { border-top: 1px solid var(--line); }
.panel-heading { justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.resource-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(260px,.85fr); gap: clamp(32px,6vw,85px); align-items: start; }
.problem p { margin-top: 9px; color: var(--secondary); }
.problem h3 { margin-top: 22px; }
.file-specs { margin-top: 9px; }
.file-specs > div { border-left: 2px solid var(--line); padding-left: 13px; }
.file-specs > div + div { margin-top: 12px; }
.file-specs code { font: .88rem/1.55 var(--mono), var(--ui); overflow-wrap: anywhere; }
.file-specs dd { margin-top: 3px; color: var(--secondary); }
.downloads { padding: 20px 23px; background: #f4f7f7; border-radius: 6px; }
.downloads h2 { font-size: 1.22rem; }
.download-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; flex-wrap: wrap; }
.download-heading .button { min-height: 42px; padding: 6px 12px; font-size: .9rem; }
.material-list li + li { border-top: 1px solid var(--line); }
.material-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; }
.material-list li:last-child .material-row { padding-bottom: 0; }
.material-row strong { font-size: .97rem; font-weight: 550; }
.material-row small { display: block; margin-top: 2px; color: var(--secondary); font: .8rem/1.5 var(--mono), var(--ui); }
.material-row:hover:is(a) strong { text-decoration: underline; text-underline-offset: .2em; }
.download-mark { color: var(--slate); font-size: 1.1rem; }
.table-wrap { max-width: 100%; overflow: auto; }
.board-search { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.board-search .field { max-width: 19em; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
thead { background: #f2f5f5; }
th,td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 550; }
thead th, .cell-sub, .table-empty, .muted, .quota { color: var(--secondary); font-size: .875rem; }
thead th, td time { white-space: nowrap; }
tbody th { overflow-wrap: anywhere; }
.table-empty { text-align: center; padding: 42px 12px; }
.cell-sub { display: block; margin-top: 3px; font-weight: 400; }
.own-row { background: #fbf3f0; }
.own-row small { color: var(--accent); white-space: nowrap; }
td time, .numeric, .rank, .score, .quota strong { font-variant-numeric: tabular-nums; }
.score, .rank { font-weight: 570; }
.quota strong { margin-inline: 3px; color: var(--ink); font-size: 1rem; }
.facts { margin-bottom: 26px; }
.facts > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dd { overflow-wrap: anywhere; }
.invite { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.invite .row-links { margin-block: 7px; }
.invite-code { font-family: var(--mono); font-size: 1.2rem; letter-spacing: .08em; }
.text-action { color: var(--accent); font: 540 .9rem/1.7 var(--ui); border: 0; padding: 5px 0; background: transparent; cursor: pointer; }
.text-action:hover, summary:hover { color: #7d2b20; text-decoration: underline; text-underline-offset: .24em; }
.rules { margin-top: 22px; }
#upload-main { max-width: 910px; }
#upload-main .rules > summary { padding-block: 11px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; padding: 8px 20px; font: 500 var(--body)/1.5 var(--ui); text-align: center; }
.primary { background: var(--accent); color: white; }
.primary:hover:not(:disabled) { background: #892b1e; }
.secondary { background: white; border-color: #b7c4c8; color: var(--ink); }
.secondary:hover { background: var(--soft); border-color: #88999f; }
.form-actions { gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.field { display: grid; gap: 6px; }
.field > span, legend { font-size: var(--small); font-weight: 500; }
.field small { font-size: inherit; font-weight: 400; color: var(--secondary); }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 8px 12px; background: white; color: var(--ink); border: 1px solid #aebdc2; border-radius: 5px; line-height: 1.5; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 1px; }

summary { color: var(--ink); font-size: var(--small); font-weight: 500; width: fit-content; padding-block: 5px; }
.spec-list > div { display: grid; grid-template-columns: 6em 1fr; gap: 8px 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--secondary); }
.spec-list dd { overflow-wrap: anywhere; }
code { font: inherit; font-variant-numeric: tabular-nums; }
.drop-zone { display: grid; justify-items: center; gap: 6px; position: relative; padding: clamp(24px, 3.6vw, 46px) 18px; border: 1.5px dashed #98aab1; border-radius: 6px; background: #f5f8f8; cursor: pointer; }
.drop-zone:hover, .drop-zone.over { background: #eef3f3; border-color: #567380; }
.drop-zone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop-zone input { cursor: pointer; position: absolute; inset: 0; margin: 0; height: 100%; width: 100%; opacity: 0; }
.drop-zone:has(input:disabled) { opacity: .6; }
.file-symbol { position: relative; margin-bottom: 4px; width: 26px; height: 31px; border: 1.7px solid #516b76; border-radius: 3px; }
.file-symbol::after { content: ""; position: absolute; left: 5px; right: 5px; top: 11px; height: 5px; border-block: 1.5px solid #516b76; }
.choose-label { color: #184b62; font-weight: 550; }
#file-limits, .progress-box label { color: var(--secondary); font-size: var(--small); }
.drop-zone.compact { display: inline-grid; padding: 5px 12px; background: white; border: 1px solid #b7c4c8; }
.drop-zone.compact .choose-label { font-size: var(--small); }
.drop-zone.compact :is(.file-symbol,#file-limits) { display: none; }
.progress-box, .checked-box, .notice { margin-top: 14px; padding: 13px 16px; border-radius: 5px; }
.progress-box { background: var(--soft); }
progress { display: block; margin-top: 5px; width: 100%; accent-color: var(--accent); }
.checked-box { background: #f0f6f3; border-left: 3px solid #52715f; }
.checked-box strong { color: #315a43; font-weight: 550; }
.checked-box p, .notice { overflow-wrap: anywhere; }
.checked-box details { margin-top: 5px; }
.manifest { max-height: 240px; overflow-y: auto; margin: 6px 0 10px; font-size: var(--small); }
.manifest li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.manifest li span { overflow-wrap: anywhere; }
.manifest li small { white-space: nowrap; color: var(--secondary); font-size: inherit; font-variant-numeric: tabular-nums; }
#submission-form .field { margin-top: 16px; }
.notice.error { color: #8a2b21; background: #fff2ef; border-left: 3px solid #b64734; }
.notice strong { font-weight: 550; }
.notice ul { list-style: disc; padding-left: 1.25em; font-size: var(--small); }
#toast:not(:empty) { position: fixed; z-index: 6; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); border-radius: 5px; padding: 9px 18px; background: #233b45; color: white; font-size: var(--small); }


.bright { background: #fff; color: #21343d; border-color: #fff; }
.bright:hover { background: #eaf1f3; }
button.primary { cursor: pointer; }

.event-card { grid-template-rows: auto 1fr auto; align-items: start; }
.event-kind { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--slate); }
.event-card h3 { overflow-wrap: anywhere; }
.registration-summary h2, .profile-layout .form-sheet h2, .team-choices h2 { margin-bottom: 18px; }
.registration-summary { max-width: 750px; }
.profile-layout { display: grid; grid-template-columns: minmax(180px,.35fr) minmax(0,1fr); align-items: start; gap: clamp(24px,4vw,64px); max-width: 1120px; }
.profile-layout .form-sheet { max-width: none; }
.profile-identity { border-top: 2px solid var(--slate); padding: 22px 0; }
.profile-identity .avatar { margin-bottom: 9px; }
.profile-identity h2 { font-size: 1.22rem; overflow-wrap: anywhere; }
.profile-identity p { margin-top: 4px; font-size: .9rem; color: var(--secondary); }
.profile-regs { margin-top: 27px; }
.profile-regs h2 { margin-bottom: 12px; }
.profile-regs > p { color: var(--secondary); padding: 15px 0; border-top: 1px solid var(--line); }
.profile-events li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--line); padding: 12px 0; }
.profile-events a:hover { text-decoration: underline; }
.profile-events span { color: var(--secondary); font-size: .9rem; }
.team-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.team-edit { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.team-edit form { max-width: 430px; margin-top: 10px; }
.board-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; }
.field select { width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--ink); background: white; border: 1px solid #aebdc2; border-radius: 5px; }
.board-filter .field { min-width: 0; }
@media (min-width: 781px) {
  .enrolled-materials > .downloads { order: 1; }
}
@media (max-width: 780px) {
  .mast-inner { gap: 18px; }
  .primary-nav { gap: 16px; }
  .account-name { max-width: 7em; }
  .resource-layout { grid-template-columns: 1fr; gap: 22px; }
  .track-grid { gap: 10px; }
  .track-card { padding: 16px; }
  .group-tabs a { padding-inline: 12px; }
}
@media (max-width: 640px) {
  .public-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .public-heading > .motif { display: none; }
  .public-heading .button { padding-inline: 12px; }
  .wrap { width: calc(100% - 32px); }
  .mast-inner { display: grid; grid-template-columns: 1fr auto; gap: 0; padding-top: 10px; }
  .brand { font-size: 1rem; }
  .brand img { width: 29px; height: 29px; }
  .account-link { grid-column: 2; grid-row: 1; }
  .avatar { width: 30px; height: 30px; }
  .primary-nav { grid-row: 2; grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 7px; }
  .primary-nav a { padding: 9px 0; font-size: .88rem; }
  .primary-nav a[aria-current]::after { left: 24%; right: 24%; }
  .hero { min-height: 230px; padding: 23px 19px; margin-top: 15px; }
  .hero::before { background-position: 60% center; }
  .hero h1 { font-size: clamp(1.5rem, 5.9vw, 2.22rem); }
  .hero-actions { gap: 16px; }
  .track-grid { grid-template-columns: 1fr; }
  .track-card { grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; padding: 15px 13px; }
  .track-card h3 { font-size: 1rem; }
  .card-action { border: 0; padding: 0; gap: 5px; font-size: .83rem; }
  .motif { width: 43px; height: 43px; }
  .group-tabs { gap: 1px; align-items: stretch; margin-bottom: 16px; }
  .group-tabs a { padding: 9px 4px; flex: 1; font-size: .84rem; }
  .work-nav { gap: 0; justify-content: space-between; }
  .work-nav a { font-size: .9rem; }
  .form-sheet, .joined-card { padding: 17px 15px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .joined-card { grid-template-columns: 1fr; gap: 12px; }
  .joined-card .row-links { gap: 9px 15px; }
  .stats { gap: 28px; }
  .stats div { display: flex; align-items: baseline; gap: 8px; }
  .facts > div { grid-template-columns: 6.7em minmax(0,1fr); gap: 8px; }
  th,td { padding: 11px 9px; }
  .table-wrap td, .table-wrap th { min-width: 4.2em; }
  .table-wrap .table-empty { padding: 27px 6px; }
  .mobile-list, .mobile-list tbody { display: block; width: 100%; }
  .mobile-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-list tbody tr { display: grid; align-items: baseline; gap: 7px 14px; padding: 16px 0; border-block-end: 1px solid var(--line); }
  .mobile-list tbody tr:first-child { border-block-start: 1px solid var(--line); }
  .mobile-list :is(td,th) { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .mobile-list td[data-label]::before { content: attr(data-label); margin-right: .6em; color: var(--secondary); font-size: .8rem; font-weight: 400; }
  .mobile-list .table-empty { grid-column: 1/-1; }
  .mobile-list .date { grid-area: date; font-size: .86rem; }
  .mobile-list .score { grid-area: score; }
  .mobile-list th[scope="row"] { grid-area: title; }
  .mobile-list .row-action { grid-area: action; justify-self: end; }
  .record-table tr { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "title action" "author score" "date date"; }
  .record-table .author { grid-area: author; }
  .board-table tr { grid-template-columns: minmax(2em,auto) minmax(0,1fr) auto; grid-template-areas: "rank title score" ". version version" ". date date"; }
  .board-table .rank { grid-area: rank; }
  .board-table .version { grid-area: version; font-size: .86rem; }
  .member-table tr { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "title role" "date action"; }
  .member-table .member-role { grid-area: role; justify-self: end; }
  .mobile-list tr:has(.table-empty) { display: block; }
  .spec-list > div { grid-template-columns: 4.75em minmax(0,1fr); }
  .breadcrumb { padding: 16px 0; }
}
@media (max-width: 365px) {
  .track-card { gap: 8px; }
  .card-action b { display: none; }
  .account-name { max-width: 6.5em; }
}

@media (max-width: 640px) {
  .event-card { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; gap: 5px 10px; }
  .event-kind { grid-column: 1; grid-row: 1; font-size: .8rem; }
  .event-kind .motif { display: none; }
  .event-card h3 { grid-column: 1; grid-row: 2; }
  .event-card .card-action { grid-column: 2; grid-row: 1/3; align-self: center; }
  .profile-layout, .team-choices { grid-template-columns: 1fr; gap: 16px; }
  .profile-identity { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 1px 10px; align-items: center; padding: 12px 0; }
  .profile-identity .avatar { grid-row: 1/3; margin: 0; }
  .profile-identity h2 { grid-column: 2; font-size: 1.05rem; }
  .profile-identity p { margin: 0; font-size: .8rem; }
  .profile-identity .numeric { grid-column: 2; grid-row: 2; }
  .profile-identity p:last-child { grid-column: 3; grid-row: 1/3; }
  .board-filter { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .board-filter .field:first-child { grid-column: 1/-1; }
  .registration-summary .facts > div { grid-template-columns: 5.5em minmax(0,1fr); }
}
