@font-face {
  font-family: "Nanum Gothic";
  src: url("/static/fonts/NanumGothic-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Nanum Gothic";
  src: url("/static/fonts/NanumGothic-Bold.ttf") format("truetype");
  font-weight: 700;
}
:root { font-family: "Nanum Gothic", sans-serif; color: #202a35; background: #f5f7fa; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: #165f96; text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 max(24px, calc((100% - 1240px) / 2)); background: #fff; border-bottom: 1px solid #dce3eb; }
.brand { color: #152b40; font-size: 18px; font-weight: 700; }
nav { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.container { max-width: 1240px; margin: 32px auto; padding: 0 24px 40px; }
h1 { margin: 4px 0 8px; font-size: 26px; letter-spacing: -.03em; }
h2 { margin: 0 0 16px; font-size: 19px; }
h3 { margin: 0 0 10px; }
p { line-height: 1.6; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.page-heading p { margin: 8px 0 0; color: #617183; }
.eyebrow { color: #647b8e; font-size: 13px; margin: 0 0 6px !important; }
.progress { width: 220px; height: 9px; border-radius: 8px; background: #e3eaf1; overflow: hidden; }
.progress span { display: block; height: 100%; background: #2981b7; }
.table-wrap { overflow: auto; border: 1px solid #dce3eb; border-radius: 8px; background: white; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e6ebf0; vertical-align: middle; }
.data-table thead th { background: #f0f4f7; font-weight: 700; white-space: nowrap; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table small { display: block; color: #718091; font-weight: 400; margin-top: 4px; }
.matrix { min-width: 800px; }
.matrix th:not(:first-child), .matrix td { text-align: center; }
.matrix tbody th { min-width: 220px; }
.matrix td small { font-size: 11px; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 20px; font-size: 12px; white-space: nowrap; }
.badge.submitted { background: #e1f3ea; color: #206a47; }
.badge.draft { background: #fff2d8; color: #855915; }
.badge.empty { background: #edf0f3; color: #5e6b77; }
.button, button { border: 1px solid transparent; border-radius: 5px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; color: white; background: #276f9f; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.button:hover, button:hover { background: #205d86; color: #fff; text-decoration: none; }
.button.primary, button.primary { background: #236e9e; }
.button.secondary { color: #34495c; background: #fff; border-color: #cbd5df; }
.button.secondary:hover { background: #f1f4f7; }
.button.danger { background: #fff; color: #a64040; border-color: #dfcaca; }
.button.small { padding: 6px 9px; font-size: 12px; margin: 2px; }
.button-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.login-card { width: min(420px, 100%); margin: 8vh auto; padding: 34px; background: #fff; border: 1px solid #e0e6ec; border-radius: 10px; box-shadow: 0 8px 28px #21384b12; }
.login-card form { display: grid; gap: 12px; margin-top: 24px; }
.login-card input { margin-top: 7px; }
.login-card .full { width: 100%; margin-top: 6px; }
.subtle-link { display: block; margin-top: 20px; text-align: center; color: #66788a; font-size: 13px; }
input, textarea, select { width: 100%; border: 1px solid #cad4de; border-radius: 5px; padding: 10px 11px; color: #263746; background: #fff; font: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid #a7cee7; border-color: #4689b2; }
label { font-size: 14px; }
.alert { border: 1px solid #f1c4c4; color: #943c3c; background: #fff1f1; padding: 11px 14px; border-radius: 5px; }
.notice { background: #eef5fb; border-radius: 6px; padding: 12px 16px; color: #39566f; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d6dde4; background: #fff; border-radius: 7px; margin-bottom: 18px; }
.info-grid div { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e8edf1; }
.info-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.info-grid span { min-width: 78px; color: #637283; font-size: 13px; }
.info-grid strong { font-size: 14px; }
.rubric { border-collapse: collapse; width: 100%; min-width: 900px; table-layout: fixed; background: #fff; font-size: 13px; }
.rubric .criterion-col { width: 12%; }
.rubric .indicator-col { width: 38%; }
.rubric .points-col { width: 6%; }
.rubric .grade-col { width: 7%; }
.rubric .score-col { width: 9%; }
.rubric th, .rubric td { border: 1px solid #aeb8c1; padding: 7px 6px; text-align: center; }
.rubric thead th { background: #e9edf0; }
.rubric .criterion-name { background: #fafbfc; }
.criterion-name small { display: block; margin-top: 5px; font-weight: 400; }
.rubric .indicators { text-align: left; line-height: 1.5; }
.rubric .indicators div { margin: 2px 0; }
.rubric .grade-cell { position: relative; padding: 0; }
.grade-option { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.grade-option input { width: 18px; height: 18px; padding: 0; border: 0; margin: 0; accent-color: #236e9e; }
.grade-cell.chosen { background: #eef7fc; }
.rubric td.selected-points { font-weight: 700; }
.score-summary { display: flex; justify-content: flex-end; gap: 34px; padding: 15px; background: #f0f4f7; border: 1px solid #d5dde5; border-top: 0; font-size: 15px; }
.score-summary strong { font-size: 19px; margin-left: 6px; }
.field-label { display: block; font-weight: 700; margin: 22px 0 8px; }
.required { font-size: 12px; font-weight: 400; color: #a35542; margin-left: 7px; }
#opinion { resize: vertical; min-height: 130px; background: #fff; }
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: #718091; font-size: 13px; }
.project-nav { display: flex; gap: 8px; }
.back-link { display: inline-block; margin-bottom: 8px; color: #526b80; }
.stat-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.stat-card { padding: 18px; border: 1px solid #dce3eb; border-radius: 8px; background: #fff; }
.stat-card span { display: block; color: #66788a; font-size: 13px; }
.stat-card strong { display: block; margin: 7px 0; font-size: 23px; }
.stat-card .progress { width: 100%; margin-top: 12px; }
.help-text, .muted { color: #708090; font-size: 13px; }
.empty-state { padding: 28px !important; color: #718091; text-align: center !important; }
.panel { padding: 20px; background: white; border: 1px solid #dce3eb; border-radius: 8px; margin-bottom: 18px; }
.inline-fields { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.inline-fields label { flex: 1 1 160px; }
.inline-fields input, .inline-fields select { display: block; margin-top: 6px; }
.inline-fields .chair-toggle { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.inline-fields .chair-toggle input { width: auto; margin: 0; }
.inline-fields button, .inline-fields .button { margin-bottom: 1px; }
.panel textarea { display: block; margin: 10px 0; }
.inline-form { display: inline-block; margin: 0; }
.access-code { font-size: 15px; letter-spacing: .12em; background: #f1f5f8; padding: 5px 7px; border-radius: 4px; }
.average-row { background: #f2f6f9; font-weight: 700; }
.opinions { display: grid; gap: 12px; }
.opinions article { background: white; border: 1px solid #dce3eb; border-radius: 7px; padding: 16px; white-space: pre-wrap; }
.opinions article p { margin: 0; }
.chair-score-table { min-width: 760px; }
.chair-score-table th, .chair-score-table td { text-align: center; }
.chair-score-table tbody th { text-align: left; white-space: nowrap; }
.chair-score-table small { display: block; color: #2b719b; font-size: 11px; }
.chair-editor textarea { margin-bottom: 12px; }
.chair-ai-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.chair-ai-controls button:disabled { color: #7b8791; background: #edf0f3; border-color: #d9dfe5; cursor: not-allowed; }
.chair-summary { white-space: pre-wrap; }
.settings-panel { max-width: 700px; }
.settings-panel form { display: grid; gap: 16px; }
.settings-panel button { justify-self: start; }
@media (max-width: 768px) {
  .site-header { padding: 14px 18px; align-items: flex-start; flex-direction: column; }
  nav { width: 100%; gap: 12px; flex-wrap: wrap; font-size: 13px; }
  .container { margin-top: 22px; padding: 0 14px 30px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid div:nth-last-child(-n+2) { border-bottom: 1px solid #e8edf1; }
  .info-grid div:last-child { border-bottom: 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .progress { width: 100%; }
  h1 { font-size: 22px; }
  .login-card { padding: 26px 20px; }
  .rubric { min-width: 1000px; }
}
