:root {
  --navy: #1E3A8A;
  --navy-700: #172E6E;
  --navy-50: #EEF2FB;
  --blue: #3B82F6;
  --blue-50: #EFF5FF;
  --gold: #F59E0B;
  --gold-50: #FEF6E4;
  --bg: #F8FAFC;
  --text: #1E293B;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --surface: #FFFFFF;
  --danger: #DC2626;
  --danger-50: #FEF2F2;
  --success: #059669;
  --success-50: #ECFDF5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 2px; }

/* 화면 전환 */
.screen { display: none; min-height: 100vh; }
.screen.is-active { display: block; }
.view { display: none; }
.view.is-active { display: block; }

/* 부팅 */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); padding: 24px; text-align: center; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 브랜드 */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); min-width: 0; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; letter-spacing: .04em; flex-shrink: 0; }
.brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.brand--light { color: #fff; }
.brand--light .brand__mark { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--navy-700); }
.btn--outline { border-color: var(--line-strong); color: var(--navy); }
.btn--outline:hover:not(:disabled) { border-color: var(--navy); background: var(--navy-50); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover:not(:disabled) { background: #F1F5F9; color: var(--text); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover:not(:disabled) { background: #B91C1C; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; height: 46px; font-size: 15px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { background: #F1F5F9; color: var(--text); }
.text-btn { background: none; border: 0; padding: 4px 6px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--navy); cursor: pointer; }
.text-btn:hover { background: var(--navy-50); }
.text-btn--danger { color: var(--danger); }
.text-btn--danger:hover { background: var(--danger-50); }

/* 폼 */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: #334155; }
.req { color: var(--danger); }
.field input, .field textarea, .input {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus, .input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--danger); font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }
.form-error:not(:empty) { margin-bottom: 12px; padding: 10px 12px; background: var(--danger-50); border-radius: var(--radius-sm); }

/* 로그인 */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-intro { background: linear-gradient(160deg, var(--navy) 0%, #142a66 100%); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.auth-intro h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.auth-intro p { color: rgba(255,255,255,.78); max-width: 440px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth-points li { padding-left: 26px; position: relative; color: rgba(255,255,255,.9); }
.auth-points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 4px #9CC0FB; }
.auth-card { align-self: center; justify-self: center; width: min(420px, calc(100% - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 32px; margin: 32px 0; }
.auth-card h2 { font-size: 22px; margin-bottom: 20px; }
.auth-foot { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: #F1F5F9; border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.segmented__btn { border: 0; background: transparent; height: 36px; border-radius: 7px; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented__btn.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15,23,42,.1); }
.auth-name-field { display: none; }
.auth-card.is-register .auth-name-field { display: flex; }

/* 상단바 */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar__inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar__user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-50); color: var(--navy); font-weight: 700; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.topbar__name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.topbar__name strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.topbar__name small { font-size: 12px; color: var(--muted); }
.tabs { border-top: 1px solid var(--line); }
.tabs__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs__inner::-webkit-scrollbar { display: none; }
.tab { border: 0; background: transparent; padding: 14px 14px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--navy); }

/* 메인 */
.main { max-width: 1240px; margin: 0 auto; padding: 32px 24px 64px; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.view-head h1 { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card__head h2 { font-size: 16px; font-weight: 700; }
.toolbar { margin-bottom: 16px; }
.toolbar .input { max-width: 360px; }

/* 통계 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); min-width: 0; }
.stat__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat__value { font-size: 28px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat__sub { font-size: 12px; color: var(--muted); }
.progress { height: 6px; background: #E2E8F0; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.progress span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width .3s; }

/* 표 */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { background: #F8FAFC; font-size: 12.5px; font-weight: 700; color: #475569; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot th, .table tfoot td { border-top: 1px solid var(--line-strong); border-bottom: 0; background: #F8FAFC; }
.table .num { text-align: right; }
.table .col-num { width: 64px; }
.table .col-actions { width: 120px; text-align: right; }
.table td.col-actions { white-space: nowrap; }
.table--results { min-width: 760px; }
.table--results tbody tr { cursor: pointer; transition: background .12s; }
.table--results tbody tr:hover { background: var(--blue-50); }
.table--results tbody tr.is-top { background: var(--gold-50); }
.table--results tbody tr.is-top:hover { background: #FDEFCF; }
.sort-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sort-btn:hover { color: var(--navy); }
.sort-btn .arrow { font-size: 10px; color: var(--line-strong); }
.sort-btn.is-sorted { color: var(--navy); }
.sort-btn.is-sorted .arrow { color: var(--blue); }
.cell-title strong { display: block; font-weight: 700; }
.cell-title span { font-size: 13px; color: var(--muted); }
.score-strong { font-size: 18px; font-weight: 800; color: var(--navy); }
.bar-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.mini-bar { width: 80px; height: 6px; background: #E2E8F0; border-radius: 99px; overflow: hidden; flex-shrink: 0; }
.mini-bar span { display: block; height: 100%; background: var(--blue); }
.is-top .mini-bar span { background: var(--gold); }
.rank { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 14px; background: #F1F5F9; color: #475569; padding: 0 6px; }
.rank--1 { background: var(--gold); color: #fff; box-shadow: 0 0 0 3px rgba(245,158,11,.22); }
.rank--2, .rank--3 { background: var(--gold-50); color: #B45309; }
.rank--none { background: transparent; color: var(--muted); font-weight: 600; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge--done { background: var(--success-50); color: var(--success); }
.badge--partial { background: var(--gold-50); color: #B45309; }
.badge--todo { background: #F1F5F9; color: var(--muted); }
.badge--gold { background: var(--gold); color: #fff; }

/* 빈 상태 */
.empty { display: none; text-align: center; padding: 48px 24px; }
.empty.is-visible { display: block; }
.empty p { margin-bottom: 6px; }
.empty .btn, .empty .btn-row { margin-top: 14px; }

/* 제안서 카드 */
.proposal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.proposal-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.proposal-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.proposal-card h3 { font-size: 17px; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.proposal-card__summary { color: #475569; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.proposal-card__meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.proposal-card__meta strong { color: var(--text); font-variant-numeric: tabular-nums; }
.proposal-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.attach-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.attach-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: #F8FAFC; font-size: 12.5px; color: #334155; cursor: pointer; }
.attach-chip:hover { border-color: var(--blue); color: var(--navy); background: var(--blue-50); }
.attach-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.attach-chip svg { flex-shrink: 0; }

/* 파일 업로드 */
.dropzone { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 18px; text-align: center; color: var(--muted); cursor: pointer; font-size: 14px; background: #FBFCFE; }
.dropzone:hover { border-color: var(--blue); background: var(--blue-50); }
.dropzone strong { color: var(--navy); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; min-width: 0; }
.file-list li.is-removed { opacity: .5; text-decoration: line-through; }
.file-list .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: var(--muted); flex-shrink: 0; }
.file-list .file-tag { font-size: 11px; font-weight: 700; color: var(--blue); flex-shrink: 0; }

/* 평가 입력 */
.evaluate-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.eval-list { position: sticky; top: 130px; max-height: calc(100vh - 150px); display: flex; flex-direction: column; }
.eval-list__items { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.eval-item { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; padding: 12px; border-radius: var(--radius-sm); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.eval-item:hover { background: #F8FAFC; }
.eval-item.is-active { background: var(--navy-50); border-color: #C7D2EE; }
.eval-item__text { min-width: 0; }
.eval-item__text strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eval-item__text span { font-size: 12.5px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eval-item__score { font-size: 13px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.eval-form-card { padding: 0; }
.eval-form { display: none; padding: 24px; }
.eval-form.is-visible { display: block; }
.eval-form__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.eval-form__head h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; overflow-wrap: anywhere; }
.total-box { flex-shrink: 0; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 14px 20px; text-align: right; min-width: 150px; }
.total-box__label { display: block; font-size: 12px; color: rgba(255,255,255,.75); font-weight: 600; }
.total-box__value { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.total-box__unit { font-size: 13px; color: rgba(255,255,255,.75); }
.eval-items { display: grid; gap: 14px; margin-bottom: 20px; }
.eval-crit { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.eval-crit__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.eval-crit__head h3 { font-size: 15px; font-weight: 700; }
.eval-crit__head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.eval-crit__weight { font-size: 12px; font-weight: 700; color: var(--navy); background: var(--navy-50); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px auto; gap: 14px; align-items: center; margin-bottom: 10px; }
.score-row input[type="range"] { width: 100%; accent-color: var(--navy); }
.score-row input[type="number"] { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 10px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; outline: none; }
.score-row input[type="number"]:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.score-row input.is-empty { color: var(--muted); }
.contrib { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 96px; text-align: right; }
.contrib strong { color: var(--navy); }
.eval-crit textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; resize: vertical; min-height: 44px; outline: none; font-size: 14px; }
.eval-crit textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.eval-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.save-state { font-size: 13px; color: var(--muted); }
.save-state.is-dirty { color: #B45309; font-weight: 600; }
.save-state.is-saved { color: var(--success); font-weight: 600; }

/* 상세 */
.detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.detail-summary div { background: #F8FAFC; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.detail-summary span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.detail-summary strong { font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; }
.detail-section { margin-top: 20px; }
.detail-section h3 { font-size: 15px; margin-bottom: 10px; }
.comment-list { display: grid; gap: 10px; }
.comment { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.comment__head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.comment__head strong { font-size: 14px; }
.comment__head span { font-size: 13px; color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.comment p { font-size: 14px; color: #334155; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: #475569; }
.comment li { overflow-wrap: anywhere; }

/* 모달 */
.modal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .5); padding: 24px 16px; overflow-y: auto; }
.modal.is-open { display: grid; place-items: center; }
.modal__panel { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-width: 100%; }
.modal__panel--sm { width: min(440px, 100%); }
.modal__panel--lg { width: min(880px, 100%); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px 12px; }
.modal__head h2 { font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.modal__body { padding: 8px 24px 8px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px 20px; border-top: 1px solid var(--line); margin-top: 8px; flex-wrap: wrap; }
body.modal-open { overflow: hidden; }

/* 토스트 */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; width: min(360px, calc(100% - 40px)); }
.toast { background: var(--text); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; border-left: 4px solid var(--blue); animation: toast-in .2s ease-out; overflow-wrap: anywhere; }
.toast--success { border-left-color: #34D399; }
.toast--error { border-left-color: #F87171; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 반응형 */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evaluate-layout { grid-template-columns: 1fr; }
  .eval-list { position: static; max-height: 320px; }
}
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-intro { padding: 36px 24px; gap: 16px; }
  .auth-intro h1 { font-size: 28px; }
  .auth-points { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar__inner { padding: 10px 16px; }
  .tabs__inner { padding: 0 8px; }
  .topbar__name { display: none; }
  .brand__name { font-size: 15px; }
  .main { padding: 20px 16px 48px; }
  .view-head h1 { font-size: 22px; }
  .view-head .btn { width: 100%; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat__value { font-size: 22px; }
  .toolbar .input { max-width: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .auth-card { padding: 24px 20px; }
  .eval-form { padding: 16px; }
  .eval-form__head { flex-direction: column; }
  .total-box { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; text-align: left; }
  .score-row { grid-template-columns: minmax(0, 1fr) 76px; }
  .contrib { grid-column: 1 / -1; text-align: left; }
  .eval-form__foot .btn-row { width: 100%; }
  .eval-form__foot .btn { flex: 1; }
  .detail-summary { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
  .modal__head, .modal__body, .modal__foot { padding-left: 16px; padding-right: 16px; }
  .modal__foot .btn { flex: 1; }
  .table th, .table td { padding: 12px; }
  .attach-chip span { max-width: 160px; }
}
