/* Foundation */
:root {
  --paper:#f5f7f5; --white:#fff; --ink:#203631; --muted:#6a7b74;
  --deep:#194c43; --teal:#287161; --line:#dce4df; --soft:#eaf1ec;
  --danger:#b3453c; --radius:10px;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --mono:"SFMono-Regular",Consolas,monospace;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; background:var(--paper); color:var(--ink); font:14px/1.7 var(--sans); -webkit-font-smoothing:antialiased; }
button,input,textarea,select { font:inherit; }
button,a { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:wait; }
a { color:inherit; text-decoration:none; }
p { margin:0 0 16px; }
h1,h2,h3,h4 { margin:0; line-height:1.35; font-weight:650; }
h1 { font-size:36px; letter-spacing:-.035em; }
h2 { font-size:27px; letter-spacing:-.02em; }
h3 { font-size:19px; }
h4 { font-size:15px; }
[hidden] { display:none!important; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #69a38a; outline-offset:3px; }
.page-width { max-width:1180px; margin:auto; padding-left:32px; padding-right:32px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.skip-link { position:absolute; top:-80px; left:20px; z-index:100; padding:10px 16px; background:var(--deep); color:white; }
.skip-link:focus { top:10px; }
.muted,.field-hint { color:var(--muted); }
.mono { font-family:var(--mono); }
.eyebrow { margin:0 0 13px; font-size:11px; letter-spacing:.08em; font-weight:600; color:var(--teal); }
.field-hint { font-size:12px; line-height:1.8; margin:12px 0 0; }
/* Initial routing also works before JavaScript runs. */
[data-view]{display:none}
body[data-page="home"] [data-view="home"],
body[data-page="use"] [data-view="use"],
body[data-page="seminars"] [data-view="seminars"],
body[data-page="papers"] [data-view="papers"],
body[data-page="contribute"] [data-view="contribute"],
body[data-page="manage"] [data-view="manage"],
body[data-page="account"] [data-view="manage"],
body[data-page="issues"] [data-view="issues"],
body[data-page="__PAGE__"] [data-view="home"] { display:block; }
/* One compact top bar, with the account separate from portal navigation. */
.site-header { background:var(--white); border-bottom:1px solid var(--line); }
.header-inner { max-width:1280px; min-height:72px; margin:auto; padding:12px 32px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:32px; }
.brand { display:flex; align-items:center; gap:10px; white-space:nowrap; font-size:18px; font-weight:700; letter-spacing:-.02em; }
.brand-mark { display:grid; place-items:center; width:34px; height:34px; color:white; background:var(--deep); border-radius:9px; font-size:20px; }
.main-nav { display:flex; align-items:center; gap:5px; }
.main-nav a { display:flex; align-items:center; justify-content:center; min-height:42px; padding:8px 14px; border-radius:6px; font-size:14px; color:#536a5f; white-space:nowrap; }
.main-nav a:hover { background:var(--paper); }
.main-nav a[aria-current="page"],body[data-page="home"] #nav-home,body[data-page="use"] #nav-use,body[data-page="seminars"] #nav-seminars,body[data-page="papers"] #nav-papers,body[data-page="contribute"] #nav-contribute { color:var(--deep); background:var(--soft); font-weight:600; }
.header-actions { display:flex; align-items:center; justify-content:flex-end; gap:13px; white-space:nowrap; }
.header-actions .text-button { min-height:42px; font-size:12px; }
/* Controls */
.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:44px; padding:11px 19px; border:1px solid transparent; border-radius:7px; font-size:14px; line-height:1.5; font-weight:600; text-align:center; background:transparent; }
.button-dark { color:white; background:var(--deep); }
.button-dark:hover:not(:disabled) { background:#246052; }
.button-outline,.button-account { color:var(--deep); background:var(--white); border-color:var(--line); }
.button-outline:hover:not(:disabled),.button-account:hover:not(:disabled) { background:var(--soft); }
.button-account { min-height:40px; padding:8px 16px; font-size:13px; }
.header-apply-button { min-height:40px; padding:8px 14px; font-size:13px; }
.button-small { min-height:38px; padding:8px 13px; font-size:12px; }
.button-quiet { color:var(--muted); }
.button-full { width:100%; margin-top:20px; }
.text-button { border:0; padding:4px 0; background:transparent; color:var(--teal); font-size:13px; line-height:1.7; }
.text-button:hover,.text-link:hover { color:#165843; text-decoration:underline; text-underline-offset:3px; }
.text-link { color:var(--teal); font-size:13px; line-height:1.8; }
.danger-text { color:var(--danger); }
/* Portal home */
.hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); align-items:center; gap:36px; padding-top:54px; padding-bottom:42px; }
.hero h1 { font-size:43px; }
.hero-description { color:var(--muted); margin:17px 0 20px; line-height:1.9; }
.hero-meta { display:flex; flex-wrap:wrap; gap:10px 18px; color:#6a8477; font-size:11px; }
.hero-meta span { display:flex; align-items:center; gap:6px; }
.hero-meta span::before { content:""; width:4px; height:4px; border-radius:50%; background:#72a38d; }
.hero-entry-stack { display:grid; gap:14px; min-width:0; }
.guide-entry { min-width:0; }
.guide-card { display:grid; grid-template-columns:minmax(0,1fr) 64px; gap:18px 20px; padding:24px; background:#e4eee3; border:1px solid #abc5b1; border-radius:var(--radius); transition:background-color .15s,border-color .15s; }
.guide-card:hover { background:#dce9da; border-color:#68937b; }
.guide-card:focus-visible { outline:3px solid var(--teal); outline-offset:4px; }
.guide-card-copy { display:flex; flex-direction:column; align-items:flex-start; gap:9px; min-width:0; }
.guide-badge { display:inline-block; padding:3px 9px; border:1px solid #c6d9c6; border-radius:20px; background:#f5f8ef; color:var(--teal); font-size:10px; font-weight:650; letter-spacing:.05em; }
.guide-title { color:var(--deep); font-size:27px; line-height:1.35; letter-spacing:-.02em; }
.guide-description { color:#526d5e; font-size:12px; line-height:1.8; }
.guide-book { width:64px; height:64px; color:#58866c; align-self:center; }
.guide-cta { grid-column:1 / -1; justify-self:start; display:inline-flex; align-items:center; gap:22px; min-height:40px; padding:9px 15px; border-radius:6px; background:var(--deep); color:white; font-size:12px; font-weight:600; }
.hero-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
@media (max-width:980px) { .hero-actions { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.course-preview { margin-top:8px; padding:24px 26px; background:white; border:1px solid var(--line); border-radius:var(--radius); }
.course-preview h2 { margin:0 0 6px; font-size:22px; }
.course-authors { color:var(--muted); margin:0 0 14px; line-height:1.8; }
.course-outline { margin:0 0 12px; padding-left:20px; display:grid; gap:6px; line-height:1.8; }
.course-gate { margin-top:16px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.course-gate p { margin:0; color:var(--muted); }
@media (max-width:540px) { .course-preview { padding:18px 16px; } }
.path-card { position:relative; padding:20px 14px; display:flex; flex-direction:column; gap:9px; min-width:0; min-height:145px; background:white; border:1px solid var(--line); border-radius:var(--radius); }
.path-card:hover { border-color:#82aa95; }
.path-card strong { font-size:17px; }
.path-card>span:last-child { font-size:12px; line-height:1.8; color:var(--muted); }
.path-icon { font-size:21px; color:var(--teal); line-height:1.25; }
.path-primary { background:var(--deep); color:white; border-color:var(--deep); }
.path-primary:hover { background:#235f50; border-color:#235f50; }
.path-primary .path-icon,.path-primary>span:last-child { color:#d2e4d9; }
.project-section { padding-bottom:32px; }
.project-flow { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:22px 0; }
.project-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }
.project-flow h2 { font-size:18px; }
.project-heading>p { margin:0; color:var(--muted); font-size:12px; }
.project-intro { margin:0 0 20px; color:var(--muted); font-size:13px; line-height:1.9; }
.project-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; list-style:none; padding:0; margin:0; }
.project-steps li { display:flex; align-items:flex-start; gap:11px; min-width:0; }
.project-step-number { font:12px/1.8 var(--mono); color:var(--teal); padding-top:1px; }
.project-steps h3,.project-steps h4 { font-size:14px; margin:0 0 7px; }
.project-steps p { font-size:12px; line-height:1.8; color:var(--muted); margin:0; }
.project-access { color:var(--teal); font-size:12px; line-height:1.9; margin:10px 0 0; }
.seminar-home-section { padding-bottom:32px; }
.seminar-home-panel { display:grid; grid-template-columns:1fr 1fr; gap:16px 34px; padding:25px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.seminar-home-copy h2 { font-size:23px; margin-bottom:12px; }
.seminar-home-copy>p:not(.eyebrow) { color:var(--muted); font-size:13px; line-height:1.85; margin-bottom:12px; }
.seminar-home-copy>p.seminar-tool-note { font-size:12px; margin-bottom:0; }
.seminar-tool-note strong { color:var(--ink); font-weight:600; }
.seminar-home-materials { display:grid; grid-template-columns:1fr 1fr; align-content:center; gap:12px; }
.seminar-home-materials>div { padding:13px; border-radius:7px; background:var(--paper); min-width:0; }
.seminar-home-materials strong { display:block; font-size:12px; font-weight:600; margin-bottom:4px; }
.seminar-home-materials span { display:block; color:var(--muted); font-size:11px; line-height:1.7; }
.seminar-home-access { grid-column:1 / -1; border-top:1px solid var(--line); padding-top:13px; margin:0; color:var(--teal); font-size:11px; }
.resource-section { padding-bottom:56px; }
.resource-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.resource-heading h2 { font-size:21px; }
.resource-heading p { margin:0; font-size:12px; color:var(--muted); }
.resource-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.resource-row { padding:22px; border:1px solid var(--line); border-radius:var(--radius); background:white; min-width:0; }
.resource-number { width:35px; height:35px; display:grid; place-items:center; border-radius:8px; margin-bottom:13px; background:#eaf1ec; color:var(--teal); font:600 13px var(--mono); }
.resource-row:nth-child(2n) .resource-number { background:#edf0f7; color:#52688d; }
.resource-row:nth-child(3n) .resource-number { background:#f4f0e6; color:#93733b; }
.resource-title h3 { font-size:17px; }
.resource-title p { font:11px/1.8 var(--mono); color:#84918a; margin:5px 0 10px; overflow-wrap:anywhere; }
p.resource-description { color:#5e7368; font-size:13px; margin:0 0 16px; }
.skill-kind { display:inline-block; padding:3px 8px; border-radius:4px; background:var(--paper); color:#6a7e72; font-size:10px; }
/* Use and contribution share an action-focused content layout. */
.route-section { max-width:870px; padding-top:44px; padding-bottom:50px; }
.route-section h1,.route-section h2 { font-size:31px; }
.route-intro { color:var(--muted); margin:17px 0 24px; max-width:680px; line-height:1.9; }
.contribution-options { display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; margin:24px 0; }
.contribution-options h2 { font-size:19px; margin-bottom:12px; }
.contribution-member { padding-top:22px; min-width:0; }
.contribution-join { min-width:0; }
.contribution-join #github-login-required p { font-size:12px; color:var(--teal); margin:12px 0; }
.contribution-join code { overflow-wrap:anywhere; }
.contribution-join .button { margin-top:16px; }
.contribution-join input:disabled { background:var(--paper); color:var(--muted); cursor:not-allowed; }
.panel { padding:25px; background:white; border:1px solid var(--line); border-radius:var(--radius); min-width:0; }
.panel>p { font-size:13px; color:var(--muted); margin-top:12px; line-height:1.9; }
.action-card { padding:30px; }
.action-card h2 { font-size:29px; }
.action-card>p { margin:15px 0 22px; }
.action-card>.field-hint { margin:15px 0 0; font-size:12px; }
.device-label-details { font-size:12px; color:var(--muted); margin-bottom:18px; }
.device-label-details summary { cursor:pointer; }
.device-label-details input { margin-top:10px; max-width:350px; }
.install-skills { min-width:0; margin:0 0 24px; padding:0; border:0; }
.install-skills legend { padding:0; color:var(--ink); font-size:17px; font-weight:650; }
.install-selection-note { margin:7px 0 14px; color:var(--muted); font-size:12px; }
.install-selection-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; color:var(--deep); font-size:13px; }
.install-selection-toolbar>div { display:flex; align-items:center; gap:18px; }
.install-skill-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
label.install-skill-choice { display:flex; align-items:flex-start; gap:11px; margin:0; padding:14px; border:1px solid var(--line); border-radius:8px; cursor:pointer; color:var(--ink); }
.install-skill-choice:has(input:checked) { border-color:#84b49a; background:var(--soft); }
.install-skill-choice:has(input:disabled) { color:var(--muted); background:var(--paper); cursor:not-allowed; }
.install-skill-choice input { width:18px; height:18px; flex-shrink:0; margin:3px 0 0; padding:0; accent-color:var(--deep); }
.install-skill-choice>span { min-width:0; }
.install-skill-choice strong,.install-skill-choice code,.install-skill-choice small { display:block; }
.install-skill-choice strong { font-size:13px; }
.install-skill-choice code { margin-top:3px; color:var(--muted); font:11px/1.6 var(--mono); overflow-wrap:anywhere; }
.install-skill-choice small { margin-top:4px; color:var(--muted); font-size:11px; }
.install-skill-choice small:empty { display:none; }
@media (max-width:540px) { .install-skill-grid { grid-template-columns:1fr; } }
.short-steps { list-style:none; counter-reset:step; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding:0; margin:27px 0; }
.short-steps li { position:relative; counter-increment:step; padding-left:28px; font-size:12px; color:var(--muted); line-height:1.9; }
.short-steps li::before { content:counter(step); display:grid; place-items:center; position:absolute; top:2px; left:0; width:19px; height:19px; background:#e2ebe4; border-radius:50%; color:var(--teal); font:11px var(--mono); }
.secondary-option { padding:16px 0; border-top:1px solid var(--line); font-size:13px; color:var(--muted); }
.secondary-option>summary { color:#425e4f; cursor:pointer; font-weight:500; line-height:1.8; }
.secondary-option>p { margin:15px 0 0; line-height:1.9; }
.secondary-option>a { display:inline-block; margin-top:12px; }
.secondary-option>.panel { padding:18px 0 0; border:0; background:transparent; }
.secondary-option .button { margin-top:12px; }
.release-banner { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:16px; margin-top:15px; border-top:1px solid var(--line); }
.release-banner p { color:var(--muted); font-size:11px; margin:0; }
.release-banner .text-link { flex:none; font-size:11px; }
.seminar-use-note { color:var(--muted); font-size:12px; line-height:1.9; margin:22px 0; }
/* Paper seminars share the portal's account, with material links kept private. */
.seminar-section { max-width:1000px; }
.seminar-join-note { border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:24px; }
.seminar-join-note p { max-width:720px; color:var(--muted); font-size:13px; margin-bottom:9px; }
.seminar-search { display:grid; grid-template-columns:1fr auto; gap:10px; margin:24px 0 12px; }
.seminar-list { margin:18px 0; }
.seminar-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:23px; margin-top:14px; overflow-wrap:anywhere; }
.seminar-title { font-size:19px; line-height:1.5; }
.seminar-citation { font-size:12px; color:var(--muted); margin:9px 0 14px; }
.seminar-info { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; color:var(--muted); font-size:11px; }
.seminar-coverage { font-size:12px; color:var(--muted); margin:14px 0 0; }
.seminar-note { color:var(--teal); font-size:11px; margin:9px 0 0; }
.seminar-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.seminar-actions:empty { display:none; }
.seminar-materials { margin-top:16px; font-size:12px; }
.seminar-materials summary { color:var(--teal); cursor:pointer; }
.seminar-material-list { display:flex; flex-direction:column; align-items:flex-start; gap:9px; padding-top:13px; }
.seminar-material { font-size:12px; }
.seminar-moderation { display:grid; grid-template-columns:1fr auto; gap:12px; margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.prompt-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--muted); font-size:11px; margin:18px 0 8px; }
.installation-prompt { width:100%; min-height:210px; resize:vertical; padding:15px; background:#f8faf7; font:12px/1.75 var(--mono); }
/* Account and administration */
.console-section { max-width:1100px; padding-top:42px; padding-bottom:50px; }
.console-heading { margin-bottom:26px; }
.console-heading h2 { font-size:27px; }
.console-heading p.muted { margin:9px 0 0; font-size:12px; }
.management-center>p { margin-bottom:20px; }
.management-overview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.management-overview { min-width:0; display:flex; flex-direction:column; align-items:flex-start; }
.management-overview h3 { margin-bottom:12px; font-size:23px; }
.management-overview>p:not(.eyebrow) { color:var(--muted); font-size:13px; }
.management-overview>.button { margin-top:auto; }
.management-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; width:100%; margin:4px 0 14px; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.management-stats dt { color:var(--muted); font-size:11px; }
.management-stats dd { margin:5px 0 0; color:var(--deep); font-size:26px; font-weight:650; }
.management-overview .field-hint { margin:0 0 18px; }
.management-shortcuts { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:18px; color:var(--teal); font-size:12px; }
.management-shortcuts a { text-decoration:underline; text-underline-offset:3px; }
@media (max-width:700px) { .management-overview-grid { grid-template-columns:1fr; } .management-overview h3 { font-size:21px; } }
.panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:12px; }
.panel-heading .eyebrow { margin-bottom:7px; }
.workspace-grid { display:grid; grid-template-columns:1fr; gap:20px; }
.device-item { padding:16px 0; border-bottom:1px solid var(--line); }
.device-item:last-child { border-bottom:0; }
.device-name { font-size:14px; font-weight:600; }
.device-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px 16px; overflow-wrap:anywhere; }
.device-row>* { min-width:0; max-width:100%; }
.device-row>strong { overflow-wrap:anywhere; }
.device-meta { display:flex; gap:14px; flex-wrap:wrap; color:var(--muted); font-size:11px; margin-top:6px; }
.device-footer { display:flex; flex-wrap:wrap; gap:22px; align-items:center; margin-top:17px; }
.console-tools { border:1px solid var(--line); border-radius:var(--radius); margin-top:22px; background:white; overflow:hidden; }
.console-tools>summary { padding:18px 23px; display:flex; justify-content:space-between; cursor:pointer; font-size:13px; }
.console-tools>.panel { border:0; border-top:1px solid var(--line); border-radius:0; }
.search-panel,.admin-panel { margin-top:22px; }
.github-pr-item { padding:20px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.github-pr-item:last-child { padding-bottom:0; }
.github-pr-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.github-pr-heading h4 { margin:0; font-size:16px; line-height:1.6; }
.github-pr-heading .button { flex-shrink:0; }
.github-pr-author,.github-pr-files { font-size:12px; margin:10px 0; }
.github-pr-states { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.github-pr-states .field-hint { margin:0; }
@media (max-width:640px) { .github-pr-heading { flex-direction:column; gap:10px; } }
.console-tools>.search-panel { margin-top:0; }
.search-form { display:grid; grid-template-columns:190px 1fr auto; gap:10px; margin-top:20px; }
.search-results,.catalog-content { margin-top:20px; }
.result-row,.catalog-row { border-top:1px solid var(--line); padding:17px 0; overflow-wrap:anywhere; }
.result-row h4 { margin-bottom:8px; font-size:15px; }
.result-row p { font-size:12px; color:var(--muted); margin:8px 0; }
.result-meta { display:flex; flex-wrap:wrap; gap:7px 16px; font-size:11px; color:var(--muted); }
.results-caption,.catalog-version { color:var(--muted); font-size:12px; }
.catalog-row { display:flex; justify-content:space-between; gap:20px; font-size:12px; }
.roster-toolbar { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:20px 0 14px; }
.roster-toolbar p { margin:0; font-size:12px; }
.roster-toolbar input { width:270px; }
.application-toolbar>div { display:flex; align-items:center; gap:10px; font-size:12px; }
.application-toolbar select { width:130px; }
.table-wrap { overflow-x:auto; }
.student-table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
.student-table th { color:var(--muted); background:#f5f8f4; font-size:11px; font-weight:600; }
.student-table td,.student-table th { padding:13px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.student-table td>button { font-size:12px; }
.student-id,.status-note { font-size:11px; color:var(--muted); margin-top:4px; }
.status-badge { display:inline-block; padding:3px 7px; border-radius:4px; font-size:10px; white-space:nowrap; background:#e7f0e8; color:#327b53; }
.status-badge.inactive,.status-badge.rejected { background:#f6e9e6; color:#a46153; }
.status-badge.pending { background:#f4eedf; color:#8e7636; }
.import-details { border:1px solid var(--line); border-radius:6px; margin-top:17px; font-size:12px; }
.import-details>summary { padding:13px 15px; cursor:pointer; }
.import-details>summary span { float:right; }
.import-details form,.import-details>p,.import-details>.field-hint { padding:0 15px 15px; }
.import-controls { display:flex; align-items:center; flex-wrap:wrap; gap:13px; margin-top:12px; }
.import-controls select { width:auto; }
.file-label { font-size:11px; }
.file-label input { width:230px; font-size:11px; padding:5px; }
.empty-message { color:var(--muted); font-size:12px; padding:15px 0; }
/* Forms and dialogs */
label { display:block; font-size:12px; margin:17px 0 7px; color:#476151; }
input,select,textarea { width:100%; border:1px solid #cdd9d1; border-radius:6px; color:var(--ink); background:white; padding:11px 12px; font-size:13px; min-width:0; }
textarea { resize:vertical; line-height:1.8; }
input::placeholder,textarea::placeholder { color:#93a095; }
.form-error { font-size:12px; line-height:1.8; color:var(--danger); background:#fcf1ef; padding:11px 13px; border-radius:5px; margin-top:14px; overflow-wrap:anywhere; }
.notice,.success-message { border:1px solid #d4e1d3; background:#eef5eb; color:#4b7454; font-size:12px; line-height:1.8; padding:12px 15px; border-radius:6px; margin:16px 0; }
.auth-dialog,.confirm-dialog,.detail-dialog { border:1px solid var(--line); border-radius:14px; padding:29px; color:var(--ink); box-shadow:0 20px 100px #14332e30; max-height:calc(100dvh - 32px); overflow-y:auto; }
.auth-dialog { width:min(450px,calc(100% - 32px)); }
.confirm-dialog { width:min(460px,calc(100% - 32px)); }
.detail-dialog { width:min(820px,calc(100% - 32px)); }
dialog::backdrop { background:#1c302b6b; backdrop-filter:blur(3px); }
.dialog-close { position:absolute; top:14px; right:17px; width:32px; height:32px; border:0; background:transparent; color:var(--muted); font-size:24px; }
.auth-dialog h2,.confirm-dialog h2 { font-size:25px; }
.dialog-intro { color:var(--muted); font-size:13px; margin:15px 0 20px; line-height:1.9; }
.dialog-note { color:var(--muted); font-size:11px; margin:15px 0 0; }
.password-field { position:relative; }
.password-field input { padding-right:61px; }
.password-toggle { position:absolute; right:11px; top:50%; transform:translateY(-50%); border:0; padding:6px; background:transparent; color:var(--teal); font-size:11px; }
.dialog-apply-link { display:flex; align-items:center; justify-content:center; gap:10px; border-top:1px solid var(--line); margin-top:22px; padding-top:17px; color:var(--muted); font-size:12px; }
.application-success { text-align:center; padding:24px 0 5px; }
.success-check { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:var(--soft); color:var(--teal); font-size:22px; margin:0 auto 18px; }
.application-success h3 { margin-bottom:15px; }
.confirm-dialog>p:not(.eyebrow) { margin-top:16px; color:var(--muted); }
.confirm-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:23px; }
.detail-metadata { font-size:12px; color:var(--muted); margin-top:14px; }
.detail-body { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.9; margin-top:18px; }
.detail-assets { display:flex; flex-wrap:wrap; gap:14px; margin-top:20px; }
.toast { position:fixed; left:50%; bottom:26px; transform:translateX(-50%); max-width:calc(100% - 32px); width:max-content; padding:12px 18px; border-radius:8px; color:white; background:#1f423b; box-shadow:0 8px 30px #153e4120; font-size:12px; z-index:100; }
/* Research tasks, supporting tools and independent platforms have separate places. */
.paper-learning-label { color:var(--muted); font-size:13px; font-weight:600; margin-bottom:12px; }
.paper-course-entry { margin-top:16px; }
.paper-course-entry .path-card { min-height:0; flex-direction:row; align-items:center; gap:16px; padding:16px 20px; }
.paper-learning-nav { display:flex; flex-wrap:wrap; gap:10px 20px; margin-bottom:24px; color:var(--muted); font-size:14px; }
.paper-learning-nav a[aria-current="page"] { color:var(--deep); font-weight:600; }
.research-tools-overview { margin-top:32px; }
.research-tools-overview .seminar-home-copy h3 { font-size:26px; line-height:1.4; margin-bottom:14px; }
.research-tools { margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.research-tool-entry { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 16px; font-size:13px; }
.research-tools .seminar-use-note { margin-top:12px; }
.compact-footer { display:flex; flex-direction:column; align-items:stretch; gap:14px; border-top:1px solid var(--line); padding-top:22px; padding-bottom:25px; color:#839085; font-size:11px; }
.footer-main,.footer-support,.footer-platform,.footer-records { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; }
.footer-main { gap:14px 28px; }
.footer-platform { margin-left:auto; padding-left:20px; border-left:1px solid var(--line); }
.footer-platform>span { color:var(--muted); }
.footer-records { font-size:10px; }
.footer-records a { display:inline-flex; align-items:center; gap:4px; }
/* Responsive layouts */
@media (max-width:960px) {
  .header-inner { grid-template-columns:minmax(0,1fr) auto; gap:7px 20px; padding-left:24px; padding-right:24px; }
  .brand { font-size:16px; }
  .main-nav { grid-row:2; grid-column:1 / -1; justify-content:center; }
  .main-nav a { padding-left:11px; padding-right:11px; }
  .hero { gap:30px; grid-template-columns:1fr 1fr; }
  .hero h1 { font-size:36px; }
  .hero-actions { grid-template-columns:1fr; gap:10px; }
  .path-card { min-height:0; padding:14px 18px; gap:3px; }
  .path-icon { position:absolute; top:18px; right:18px; }
  .resource-list { gap:12px; }
}
@media (max-width:700px) {
  .page-width { padding-left:20px; padding-right:20px; }
  .header-inner { grid-template-columns:minmax(0,1fr) auto; gap:7px 16px; padding:12px 20px 5px; }
  .brand { font-size:16px; min-width:0; }
  .brand>span:last-child { white-space:normal; }
  .brand-mark { width:30px; height:30px; font-size:18px; flex-shrink:0; }
  .main-nav { grid-row:2; grid-column:1 / -1; justify-content:center; gap:5px; }
  .main-nav a { min-height:40px; font-size:13px; padding:7px 10px; }
  .header-actions { gap:10px; }
  .header-actions .text-button { font-size:11px; }
  .button-account,.header-apply-button { min-height:36px; padding:7px 12px; font-size:12px; }
  .hero { display:block; padding-top:32px; padding-bottom:30px; }
  .hero h1 { font-size:34px; }
  .hero-description { font-size:13px; margin-top:15px; }
  .hero-meta { font-size:10px; gap:14px; }
  .hero-entry-stack { margin-top:24px; gap:12px; }
  .guide-card { grid-template-columns:minmax(0,1fr) 54px; padding:21px; gap:16px; }
  .guide-title { font-size:26px; }
  .guide-book { width:54px; height:54px; }
  .hero-actions { grid-template-columns:1fr; gap:11px; }
  .path-card { display:grid; grid-template-columns:26px minmax(0,1fr); column-gap:12px; row-gap:4px; padding:17px 18px; }
  .path-icon { position:static; grid-row:1 / 3; padding-top:2px; }
  .path-card>span:last-child { grid-column:2; }
  .path-card strong { font-size:16px; }
  .path-card>span:last-child { font-size:11px; }
  .project-section { padding-bottom:24px; }
  .project-flow { padding:18px 0; }
  .project-heading { align-items:flex-start; flex-direction:column; gap:6px; margin-bottom:15px; }
  .project-flow h2 { font-size:16px; }
  .project-steps { grid-template-columns:1fr; gap:15px; }
  .project-steps h3,.project-steps h4 { margin-bottom:4px; }
  .seminar-home-section { padding-bottom:24px; }
  .seminar-home-panel { grid-template-columns:1fr; padding:21px; gap:18px; }
  .seminar-home-copy h2 { font-size:21px; }
  .seminar-home-materials { gap:10px; }
  .seminar-home-materials>div { padding:12px; }
  .resource-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  .resource-heading h2 { font-size:19px; }
  .resource-heading p { font-size:11px; }
  .resource-row { padding:17px 15px; }
  .resource-title h3 { font-size:15px; }
  .resource-title p { font-size:10px; }
  p.resource-description { font-size:12px; margin-bottom:12px; }
  .resource-section { padding-bottom:32px; }
  .route-section,.console-section { padding-top:29px; padding-bottom:35px; }
  .route-section h1,.route-section h2 { font-size:27px; }
  .route-intro { font-size:13px; }
  .seminar-card { padding:19px; }
  .seminar-title { font-size:17px; }
  .seminar-moderation { grid-template-columns:1fr; }
  .contribution-options { grid-template-columns:1fr; gap:20px; }
  .contribution-member { padding-top:0; }
  .contribution-join { order:-1; }
  .panel,.action-card { padding:22px 19px; }
  .action-card h2 { font-size:25px; }
  .short-steps { grid-template-columns:1fr; gap:11px; margin:24px 0; }
  .release-banner { align-items:flex-start; gap:14px; }
  .release-banner .text-link { flex:none; }
  .console-heading h2 { font-size:24px; }
  .search-form { grid-template-columns:1fr auto; }
  .search-form select { grid-column:1 / -1; }
  .roster-toolbar { flex-wrap:wrap; gap:12px; }
  .roster-toolbar input { width:100%; }
  .application-toolbar>div { margin-left:auto; }
  .student-table { min-width:570px; }
  .catalog-row { flex-direction:column; gap:7px; }
  .device-row { flex-direction:column; align-items:flex-start; gap:9px; }
  .device-row>p { margin:0; }
  .import-controls { display:grid; grid-template-columns:1fr; }
  .file-label input,.import-controls select,.import-controls .button { width:100%; }
  .auth-dialog,.confirm-dialog,.detail-dialog { padding:27px 22px; }
  .auth-dialog h2 { font-size:24px; }
  .compact-footer { font-size:10px; padding-top:20px; padding-bottom:20px; }
  .footer-main>span { flex-basis:100%; }
  .footer-platform { margin-left:0; padding-left:0; border-left:0; }
}
@media (max-width:360px) {
  .resource-list { grid-template-columns:1fr; }
  .hero h1 { font-size:30px; }
  .header-inner,.page-width { padding-left:16px; padding-right:16px; }
  .main-nav { gap:5px; }
  .main-nav a { padding-left:8px; padding-right:8px; font-size:12px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}

/* A visible help entrance and two short reporting paths. */
.issue-entry { display:flex; justify-content:space-between; align-items:center; gap:14px; margin:24px 0; padding:18px 22px; border:1px solid #b4cfc0; border-radius:var(--radius); background:var(--soft); color:var(--deep); }
.issue-entry span { font-size:13px; }
.issue-options { display:grid; grid-template-columns: .8fr 1.2fr; align-items:start; gap:24px; margin:26px 0; }
.issue-options h2 { font-size:25px; margin-bottom:14px; }
.issue-options .panel>p { color:var(--muted); }
.issue-direct label { margin-top:14px; }
.issue-direct select,.issue-direct input,.issue-direct textarea { width:100%; }
.issue-environment { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.issue-environment label { min-width:0; font-size:12px; }
.issue-environment select { margin-top:7px; font-size:12px; }
.issue-preview { margin-top:20px; padding-top:20px; border-top:1px solid var(--line); }
.issue-preview h3 { font-size:16px; }
.issue-preview pre { max-height:420px; overflow:auto; padding:16px; background:var(--paper); border:1px solid var(--line); border-radius:7px; white-space:pre-wrap; overflow-wrap:anywhere; font:12px/1.7 var(--mono); }
.issue-history { margin:26px 0; }
.issue-history h2 { font-size:21px; }
.issue-history .device-row { align-items:flex-start; }
@media (max-width:900px) { .header-inner { column-gap:16px; } .main-nav a { padding-left:9px; padding-right:9px; } }
@media (max-width:700px) { .main-nav { justify-content:space-between; gap:0; overflow-x:auto; } .main-nav a { padding:7px 6px; font-size:12px; } .issue-options { grid-template-columns:1fr; gap:18px; } .issue-entry { align-items:flex-start; flex-direction:column; gap:4px; } .issue-environment { grid-template-columns:1fr; gap:0; } }

/* The brand returns to EconLab; all section links remain visible on phones. */
@media(max-width:700px){.main-nav{flex-wrap:wrap;justify-content:center;overflow-x:visible;gap:0 4px}.main-nav a{padding:7px 8px}}
@media(max-width:360px){.brand{font-size:14px;gap:8px}.brand-mark{width:26px;height:26px;font-size:16px}.header-actions{gap:7px}.header-actions .button{font-size:11px;padding:7px 9px}}

/* Account access is separate from the administrator workspace. */
.management-mode-button{color:var(--teal);border:1px solid var(--line);border-radius:6px;padding:6px 10px}
body[data-page="manage"] .management-mode-button{background:var(--soft);color:var(--deep)}
@media(max-width:700px){.header-actions{flex-wrap:wrap;gap:4px 8px;max-width:220px}.header-actions .management-mode-button{font-size:11px;padding:5px 7px;min-height:34px}}

.management-overview-wide{grid-column:1 / -1}
@media(max-width:360px){.header-actions{max-width:132px}.brand>span:last-child{white-space:nowrap}}

/* Research navigation: all destinations remain visible at every viewport width. */
.site-header .header-inner { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px 24px; }
.main-nav.grouped-nav { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px 18px; min-width:0; overflow:visible; white-space:normal; }
.grouped-nav .nav-group { min-width:0; }
.grouped-nav .nav-group-title { display:block; margin-bottom:3px; color:var(--muted,#687f76); font-size:11px; line-height:1.5; font-weight:500; }
.grouped-nav .nav-group-links { display:flex; flex-wrap:wrap; align-items:center; gap:3px 4px; }
.main-nav.grouped-nav a { display:inline-flex; align-items:center; justify-content:center; min-height:36px; margin:0; padding:7px 9px; border-radius:6px; white-space:normal; overflow-wrap:anywhere; font-size:13px; line-height:1.5; }
.grouped-nav .nav-home-link { align-self:center; }
.main-nav.grouped-nav a:hover { background:var(--paper,#f4f7f4); }
.main-nav.grouped-nav a[aria-current] { color:var(--deep,#194c43); background:var(--soft,#e8f1eb); font-weight:600; }
@media (max-width:1180px) {
  .site-header .header-inner { grid-template-columns:minmax(0,1fr) auto; gap:12px 16px; }
  .site-header .header-inner>.brand { grid-column:1; grid-row:1; }
  .site-header .header-actions { grid-column:2; grid-row:1; }
  .site-header .main-nav.grouped-nav { grid-column:1 / -1; grid-row:2; justify-content:flex-start; gap:12px 24px; }
}
@media (max-width:620px) {
  .site-header .header-inner { padding:12px 18px; gap:12px; }
  .site-header .brand { font-size:15px; gap:7px; }
  .site-header .header-actions { gap:8px; }
  .site-header .header-actions .button { padding:8px 10px; font-size:12px; min-height:36px; }
  .site-header .main-nav.grouped-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; justify-content:stretch; gap:12px 18px; width:100%; overflow:visible; }
  .main-nav.grouped-nav>.nav-home-link { justify-self:start; align-self:center; }
  .grouped-nav .nav-group-links { justify-content:flex-start; gap:2px 3px; }
  .site-header .main-nav.grouped-nav a { min-height:34px; padding:6px 5px; font-size:12px; }
}


/* Home overview follows the same research groups as the global navigation. */
.hero-actions .path-group-card { display:flex; flex-direction:column; gap:10px; min-height:0; }
.path-group-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.path-group-heading .path-icon { position:static; grid-row:auto; padding:0; flex-shrink:0; }
.path-group-card .path-group-heading strong { font-size:19px; }
.path-group-card>p { margin:0; color:var(--muted); font-size:12px; line-height:1.8; }
.path-group-card.path-primary>p { color:#d2e4d9; }
.path-group-links { display:flex; flex-wrap:wrap; gap:7px; margin-top:3px; }
.path-group-links a { display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:6px 9px; border:1px solid var(--line); border-radius:6px; font-size:12px; line-height:1.5; }
.path-group-links a:hover { background:var(--paper); border-color:var(--teal); }
.path-primary .path-group-links a { border-color:rgba(255,255,255,.35); color:white; }
.path-primary .path-group-links a:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.7); }
.section-introduction { max-width:850px; margin-bottom:24px; }
.section-introduction h2 { margin:0 0 12px; font-size:27px; line-height:1.5; }
.section-introduction>p:not(.eyebrow) { margin:0; color:var(--muted); font-size:14px; line-height:1.9; }
#home-skills-intro>.resource-heading h3 { margin:0 0 6px; font-size:21px; }
.resource-title h4 { margin:0; font-size:17px; }
#home-learning-intro>.seminar-home-panel + .seminar-home-panel { margin-top:18px; }
.seminar-home-copy h3 { margin-bottom:12px; font-size:23px; line-height:1.5; }
.overview-links { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; }
.research-collaboration { padding-bottom:40px; }
.research-collaboration #home-contribute-intro { padding-bottom:28px; }
.research-collaboration .project-heading h3 { font-size:23px; }
.research-collaboration .project-flow { border-top:0; }
.contribution-workflow-note { color:var(--muted); font-size:13px; line-height:1.9; margin-bottom:22px; }
@media (max-width:620px) {
 .section-introduction h2 { font-size:23px; }
 .hero-actions .path-group-card { padding:20px; }
 .resource-heading { flex-wrap:wrap; gap:12px; }
}
