:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #152843;
  background: #f2f6fa;
  --muted: #4b6178;
  --line: #d6e2ee;
  --navy: #132843;
  --blue: #1351a3;
  --teal: #08796d;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #1267c7; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.top { background: var(--navy); color: white; }
.top-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { color: inherit; text-decoration: none; font-size: 1.42rem; letter-spacing: -.025em; font-weight: 750; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: #bdf5e9; background: #235968; }
.version { color: #d4e5f6; font-size: .875rem; }
.layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 36px; padding-block: 38px 28px; min-height: calc(100vh - 145px); }
.section-label { color: var(--muted); margin: 0 0 12px; font-weight: 700; font-size: .875rem; }
.roles { display: grid; gap: 8px; }
.roles button { text-align: left; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); color: var(--navy); border-radius: 10px; background: white; padding: 10px; }
.roles button[aria-pressed="true"] { background: #e9f2ff; border-color: #72a4dc; box-shadow: inset 3px 0 var(--blue); }
.roles strong, .roles small { display: block; }
.roles strong { font-size: .94rem; }
.roles small { margin-top: 3px; color: var(--muted); font-size: .875rem; }
.avatar { border-radius: 50%; width: 37px; height: 37px; display: grid; place-items: center; flex: none; font-weight: 750; font-size: .81rem; background: #d4e9fa; color: #1d4a76; }
.avatar.supervisor { background: #d8f1e8; color: #165b50; }
.avatar.chair { background: #eae2fb; color: #523c8a; }
.guide { margin-top: 24px; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.guide h2 { margin: 0 0 10px; font-size: .94rem; color: var(--navy); }
.guide ol { padding-inline-start: 19px; margin: 0; font-size: .875rem; line-height: 1.45; }
.guide li + li { margin-top: 8px; }
.quiet { background: transparent; border: 0; color: var(--blue); padding: 8px 15px; text-align: left; border-radius: 6px; font-weight: 650; font-size: .875rem; min-height: 44px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: .875rem; font-weight: 750; }
h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; }
.subtitle { margin: 10px 0 24px; color: var(--muted); line-height: 1.5; }
.card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.summary { background: #e7f2fc; border-color: #ccdff2; }
.card h2 { font-size: 1.12rem; margin: 0 0 8px; letter-spacing: -.015em; }
.card p { margin: 6px 0; color: var(--muted); line-height: 1.45; }
.metrics { display: flex; align-items: baseline; gap: 8px; margin-top: 11px; color: var(--muted); flex-wrap: wrap; }
.metrics strong { font-size: 2.2rem; line-height: 1; letter-spacing: -.04em; color: var(--navy); }
progress { width: 100%; height: 10px; margin: 12px 0 3px; display: block; border: 0; border-radius: 8px; overflow: hidden; background: #cbddee; color: var(--teal); accent-color: var(--teal); }
progress::-webkit-progress-bar { background: #cbddee; }
progress::-webkit-progress-value { background: var(--teal); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--teal); }
.card .detail { font-size: .875rem; }
.submit-form { display: flex; align-items: end; gap: 12px; margin-top: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 650; font-size: .875rem; flex: 1; }
select { width: 100%; border: 1px solid #9aadc0; padding: 8px 10px; min-height: 44px; border-radius: 7px; background: white; color: var(--navy); }
.primary { border: 1px solid var(--blue); background: var(--blue); color: white; border-radius: 8px; min-height: 44px; padding: 9px 15px; font-weight: 700; }
.primary:hover { background: #103e7d; }
.log { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding: 13px 0; }
.log:first-of-type { margin-top: 12px; }
.log:last-child { padding-bottom: 1px; }
.log-main { flex: 1 1 205px; }
.log-title { display: block; font-weight: 700; }
.log p { font-size: .875rem; margin: 3px 0 0; }
.badge { display: inline-block; border-radius: 20px; padding: 5px 10px; font-size: .875rem; font-weight: 700; background: #fff0d3; color: #704609; }
.badge.valid { background: #d8f1e8; color: #185d4c; }
.notice { color: #13584e; font-weight: 650; min-height: 1.5em; margin: 4px 0; }
.notice.error { color: #9d2a21; }
.footer { border-top: 1px solid var(--line); padding: 18px 0 24px; display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: .875rem; color: var(--muted); }
.footer a { margin-left: auto; color: var(--blue); }
@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .layout { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roles button { align-items: flex-start; flex-direction: column; }
  .guide { display: none; }
  .quiet { margin: 5px 0 0; padding-left: 0; }
}
@media (max-width: 450px) {
  .card { padding: 15px; }
  .roles strong, .roles small { overflow-wrap: anywhere; }
  .submit-form { display: grid; }
  .footer a { margin-left: 0; }
}
