:root {
  color-scheme: light;
  --ink: #0b0f17;
  --muted: #536174;
  --line: #d5dce6;
  --paper: #fff;
  --canvas: #f7f8fa;
  --night: #070b14;
  --night-raised: #111827;
  --accent: #005fcc;
  --cyan: #12b5ea;
  --violet: #8b4de8;
  font-family: InterVariable, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #003a83; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2 { letter-spacing: -.035em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.05rem); }
h2 { font-size: 1.3rem; }
p + p { margin-top: 12px; }
small, .hint { font-size: .875rem; color: var(--muted); }
.muted { color: var(--muted); }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { clip-path: none; width: auto; height: auto; background: var(--paper); padding: 12px; z-index: 5; }
.container, .header-inner, .nav-inner { width: min(100% - 64px, 1280px); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1.25; }
.wordmark strong { display: block; letter-spacing: -.04em; font-size: 1.24rem; }
.wordmark small { display: block; margin-top: 2px; }
.identity, .switch, .actions, .inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.time-zone-link { display: inline-flex; flex-direction: column; gap: 2px; padding: 5px 8px; font-weight: 650; }
.time-zone-link small { color: var(--muted); font-size: .75rem; font-weight: 500; }
.switch { gap: 8px; }
.switch label { font-size: .875rem; font-weight: 600; }
.switch select { max-width: 220px; }
.site-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; gap: 24px; overflow-x: auto; }
.nav-inner a, .tabs a { display: block; white-space: nowrap; padding: 13px 0; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 650; border-bottom: 2px solid transparent; }
.nav-inner a[aria-current], .tabs a[aria-current] { color: var(--accent); border-color: var(--accent); }
main.container { min-height: 67vh; padding-block: 38px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: .875rem; }
.section { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-block-end: 20px; }
.section > * + * { margin-top: 16px; }
.narrow { max-width: 720px; }
.registration { margin-inline: auto; }
.page-head { margin-block-end: 24px; }
.page-head p { margin-top: 8px; }
.split, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 650; font-size: .9rem; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .875rem; margin-block-end: 7px; }
.hero { border-radius: 18px; background: radial-gradient(ellipse at 96% 0, #282352 0, transparent 55%), linear-gradient(130deg, #0a1528, var(--night)); color: #f8fafc; padding: clamp(24px, 5vw, 48px); display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero .eyebrow { color: #8ed9ff; }
.hero h1 + p { color: #c4cee0; margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column-reverse; justify-content: start; }
.stat-label { font-size: .9rem; color: var(--muted); }
.stat-value { margin: 0; font-size: 2rem; font-weight: 750; line-height: 1.25; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.overview-stats { padding: 0; list-style: none; }
.stat-link { height: 100%; color: var(--ink); text-decoration: none; }
.stat-link:hover, .stat-link:focus-visible { color: var(--ink); background: var(--secondary-hover, var(--paper)); border-color: var(--accent); }
.stat-link[aria-current] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dashboard-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 20px; }
.cards .section { margin: 0; }
.initial { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #e5f3ff; color: #0056a5; font-weight: 750; }
.partner-list, .plain-list, .activity { padding: 0; margin-bottom: 0; list-style: none; }
.partner-list li + li, .plain-list li + li, .activity li + li { border-top: 1px solid var(--line); }
.partner-list li, .plain-list li, .activity li { padding-block: 12px; }
.partner-list a { display: flex; align-items: center; gap: 10px; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plain-list small, table small { display: block; margin-top: 2px; }
.activity p { margin-block: 4px; }
.activity time { color: var(--muted); font-size: .875rem; }
.facts { margin-bottom: 0; }
.facts div { padding: 9px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .875rem; font-weight: 650; color: var(--muted); }
.facts dd { margin: 3px 0 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; text-align: left; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .875rem; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { overflow-wrap: anywhere; }
.status { display: inline-block; font-size: .875rem; padding: 2px 8px; border-radius: 99px; background: #eef1f6; color: #37465a; }
.stage-launched, .stage-completed, .stage-accepted { background: #e1f5ec; color: #13583b; }
.stage-requested, .stage-proposed { background: #e8f4ff; color: #194b83; }
.stage-validation, .stage-development { background: #f1eaff; color: #55378a; }
.tabs, .pagination { display: flex; gap: 16px; flex-wrap: wrap; margin-block: 10px 18px; }
.pagination { align-items: center; font-size: .9rem; margin-block: 18px 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 7px 14px; border-radius: 8px; border: 1px solid transparent; background: var(--accent); color: white; font: inherit; font-size: .92rem; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #004eac; color: white; }
button.secondary, .button.secondary { background: var(--paper); color: var(--accent); border-color: var(--line); }
button.secondary:hover, .button.secondary:hover { background: #edf5ff; color: #003a83; }
.button.ghost { border-color: #7689a6; background: transparent; color: #f8fafc; }
.button.ghost:hover { background: #25344e; }
.hero .button { background: #b4e8ff; color: var(--night); }
.hero .button.ghost { background: transparent; color: #f8fafc; }
.new-request-menu { position: relative; }
.new-request-menu > summary { gap: 12px; list-style: none; margin: 0; }
.new-request-menu > summary::-webkit-details-marker { display: none; }
.new-request-menu > summary::after {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.new-request-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.new-request-menu ul {
  margin: 8px 0 0; min-width: min(220px, 70vw); padding: 5px; list-style: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px #070b142e;
}
.new-request-menu li a {
  display: block; padding: 8px 11px; border-radius: 5px; color: var(--ink); text-decoration: none; font-size: .92rem;
}
.new-request-menu li a:hover, .new-request-menu li a:focus-visible { background: var(--secondary-hover, var(--canvas)); color: var(--accent); }
@media (min-width: 980px) {
  .hero > .actions { margin-inline-start: auto; }
  .new-request-menu ul { position: absolute; inset-inline-end: 0; z-index: 3; }
}
.stack { display: grid; gap: 14px; justify-items: start; }
.stack > div, .stack > fieldset { width: 100%; }
.stack .actions { width: auto; }
input, textarea, select { font: inherit; color: var(--ink); width: 100%; min-height: 42px; border: 1px solid #9aabbe; border-radius: 8px; padding: 8px 10px; background: var(--paper); }
select { min-width: 8ch; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; min-height: 0; vertical-align: middle; accent-color: var(--accent); }
textarea { resize: vertical; }
label, legend { font-size: .94rem; font-weight: 650; }
label { display: block; margin-bottom: 4px; }
.check, .switch label { margin: 0; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
fieldset legend { padding-inline: 5px; }
.connection-options { margin: 8px 0 0; max-height: 230px; overflow: auto; }
.connection-options label { padding: 6px 0; margin: 0; cursor: pointer; }
.search-bar { max-width: 460px; margin-bottom: 16px; }
.search-bar > div { display: flex; gap: 8px; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; align-items: end; }
.errorlist { color: #861c32; margin: 4px 0; padding-inline-start: 20px; }
.notice { padding: 12px 16px; border: 1px solid #adc8e6; color: #183856; border-radius: 8px; background: #edf6ff; margin-block-end: 16px; overflow-wrap: anywhere; }
.notice.error { background: #fff0f2; border-color: #e4adc0; color: #6e1435; }
.notice.success { background: #e4f6ed; border-color: #acd8bd; color: #13442c; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.36fr); min-height: 490px; margin: 24px auto; max-width: 1050px; border: 1px solid var(--line); background: var(--paper); border-radius: 18px; overflow: hidden; }
.auth-form { display: grid; align-content: center; gap: 18px; padding: clamp(24px,4vw,48px); }
.auth-brand { display: grid; place-items: center; padding: 40px; background: var(--night); }
.auth-brand img, .report-brand { width: 100%; min-width: 0; max-width: 460px; }
.report-brand { background: white; padding: 8px 0; }
summary { cursor: pointer; color: var(--accent); margin-bottom: 10px; font-weight: 650; }
@media (max-width: 1050px) { .auth-shell { grid-template-columns: 1fr; max-width: 620px; min-height: 0; } .auth-brand { display: none; } }
@media (max-width: 850px) { .dashboard-grid, .detail-grid { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 620px) {
  .container, .header-inner, .nav-inner { width: calc(100% - 32px); }
  main.container { padding-block: 24px; }
  .header-inner { align-items: start; flex-direction: column; gap: 10px; }
  .nav-inner { gap: 18px; }
  .site-footer { flex-direction: column; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 16px; }
  .filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .inline-form { width: 100%; }
  .inline-form select { max-width: 100%; }
}
@media print {
  :root { background: white; }
  .container, .header-inner { width: 100%; }
  .site-nav, .identity, .no-print, .skip, .site-footer { display: none !important; }
  main.container { padding-block: 16px; }
  .table-wrap { overflow: visible; }
  .section, tr, .stat { break-inside: avoid; }
  .report-brand { max-width: 420px; }
  .wordmark img { filter: grayscale(1); }
  th, td, .status { color: black; }
}
