/* GIC Flow 화면. gicert와 한 식구로 보이게 같은 색·글꼴·구성을 쓴다(남색·청록 띠, 겹쳐 올라온 흰 판).
   휴대폰 화면이 기본이고, 넓은 화면은 아래 @media에서 넓힌다. */

/* 이수증과 같은 글꼴(프리텐다드). 자주 쓰는 한글 2,350자와 영문·숫자만 담은 가벼운 판이다. */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url(/static/fonts/Pretendard-Regular.woff2) format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url(/static/fonts/Pretendard-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url(/static/fonts/Pretendard-Bold.woff2) format("woff2"); }
:root {
  --navy: #1E4A80; --navy-deep: #173B6B; --indigo: #2B2F7C; --teal: #3799A2; --teal-bright: #7FE3E9;
  --label: #1F7A85; --ink: #16202B; --sub: #5B6673; --line: #DDE5EE; --bg: #EDF2F7;
  --error: #B3261E; --warn-bg: #FFF4D6; --ok-bg: #DFF5EC; --tint: #EAF6F7;
  --grad: linear-gradient(100deg, #1E4A80 0%, #1F6F8B 60%, #3799A2 100%);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

/* ── 위쪽 띠: 로그인 화면과 같은 바탕과 흐름 무늬, 그 안에 메뉴와 화면 제목 ── */
.top { position: relative; overflow: hidden; color: #fff; padding-bottom: 62px;
  background:
    radial-gradient(70% 160% at 100% 100%, rgba(55, 153, 162, 0.95) 0%, rgba(55, 153, 162, 0) 62%),
    radial-gradient(60% 140% at 0% 0%, var(--indigo) 0%, rgba(43, 47, 124, 0) 66%),
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, #1B6F86 100%); }
.top-art { position: absolute; left: -20%; top: -10%; width: 160%; height: 130%; opacity: 0.8; pointer-events: none; }
.top-bar, .top-title { position: relative; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.top-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-top: 14px; }
.brand { display: flex; align-items: center; margin-right: auto; color: #fff; text-decoration: none; }
.brand img { display: block; height: 22px; width: auto; }
.brand small { display: none; margin-left: 12px; font-size: 12px; color: #BFEDEF; }
.who { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: #E3ECF7; }
.who span { font-weight: 600; }
.who a, .who button.link { color: #BFEDEF; text-underline-offset: 3px; }
.who a:hover, .who button.link:hover { color: #fff; }
nav { display: flex; flex-basis: 100%; gap: 6px; margin-top: 2px; }
nav a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 10px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #DCEAF6; text-decoration: none; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
nav a.on { background: #fff; color: var(--navy); box-shadow: 0 6px 16px -8px rgba(10, 30, 60, 0.6); }
.top-title { padding-top: 20px; }
.top-title h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; text-shadow: 0 2px 20px rgba(10, 30, 60, 0.35); }
.top-title h1::after { content: ""; display: block; width: 72px; height: 5px; margin-top: 12px; background: linear-gradient(90deg, var(--teal-bright), var(--teal)); }

/* ── 본문: 띠에 살짝 겹쳐 올라온 흰 판 ── */
main { position: relative; max-width: 960px; margin: -44px auto 0; padding: 0 14px 56px; }
main > p { margin: 14px 4px; }
main a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
main a:hover { color: var(--teal); }
h2 { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-size: 17px; font-weight: 700; }
h2::before { content: ""; flex: none; width: 6px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, var(--teal-bright), var(--teal)); }
.card { padding: 18px; border: 0; border-top: 4px solid transparent; border-radius: 16px;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  box-shadow: 0 18px 40px -26px rgba(23, 59, 107, 0.55), 0 1px 2px rgba(23, 59, 107, 0.08); }
.card.narrow { max-width: 420px; display: grid; gap: 16px; }
.card h2:first-child { margin-top: 0; }
.stack { display: grid; gap: 16px; }
.grid { display: grid; gap: 14px; margin-bottom: 18px; }

/* 입력 칸 */
label { display: block; font-size: 13px; font-weight: 600; color: var(--label); }
label small, .hint { display: block; margin: 4px 0 0; font-weight: 400; font-size: 12px; line-height: 1.6; color: var(--sub); }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; margin-top: 6px; padding: 0 12px; border: 1px solid #C5CFDA; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
input:not([type=checkbox]), select { height: 48px; }
textarea { padding: 12px; line-height: 1.6; resize: vertical; }
textarea[readonly] { background: #F8FAFC; font-size: 14px; }
input:not([type=checkbox]):hover, select:hover, textarea:hover { border-color: #8FB3C4; }
input:not([type=checkbox]):focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(55, 153, 162, 0.2); outline: none; }
input:disabled, select:disabled { border-color: var(--line); background: #F4F7FA; color: var(--ink); opacity: 1; }
input[type=checkbox] { accent-color: var(--navy); }
button:focus-visible, a:focus-visible, summary:focus-visible, input[type=checkbox]:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
small.error { color: var(--error); font-weight: 600; }
label.check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
label.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; }
label.check:has(input:checked) { border-color: var(--teal); background: var(--tint); }

/* 버튼 */
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid #C5CFDA; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.button:hover, button:not(.primary):not(.link):hover { border-color: var(--teal); background: var(--tint); }
button.primary, a.button.primary { min-width: 132px; border: 0; color: #fff; font-size: 16px; background: var(--grad); background-size: 180% 100%; background-position: 0 0; box-shadow: 0 10px 24px -10px rgba(30, 74, 128, 0.7); transition: background-position 0.35s ease, box-shadow 0.2s ease, transform 0.1s ease; }
button.primary:hover, a.button.primary:hover { background-position: 100% 0; box-shadow: 0 14px 28px -10px rgba(31, 111, 139, 0.75); color: #fff; }
button.primary:active { transform: translateY(1px); }
button:disabled, button.primary:disabled { background: #E3E9F0; color: var(--sub); box-shadow: none; cursor: not-allowed; }
button.link { min-height: 0; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
main button.link { color: var(--navy); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-actions form { margin: 0; }
.row-actions button { min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; }
main > form { margin: 12px 0; }
form.inline { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 12px; }
form.inline label { flex: 1; }
form.inline button { height: 48px; min-height: 48px; }

/* 알림 */
.notice { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #E3EEF9; font-weight: 500; box-shadow: 0 10px 24px -20px rgba(23, 59, 107, 0.8); }
.notice.error { background: #FCE4E2; color: var(--error); }
.notice.warn { background: var(--warn-bg); color: #6B4A00; }
.notice.ok { background: var(--ok-bg); color: #0E5A3A; }
.notice ul { margin: 6px 0; padding-left: 20px; font-weight: 400; }
.notice a { color: inherit; }
code { padding: 2px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font: 700 16px/1.4 Consolas, monospace; letter-spacing: 0.03em; word-break: break-all; }
.hint code { padding: 0 5px; font-size: 13px; letter-spacing: 0; }
main > p.hint { margin: 12px 4px 8px; font-size: 13px; }

/* ── 결과입력: 붙여넣기 → 확인 카드 → 제출 ── */
details.card { margin-top: 16px; }
summary { min-height: 28px; font-weight: 700; color: var(--navy); cursor: pointer; }
details .hint { margin: 10px 0; font-size: 13px; }
details .row-actions { margin-top: 10px; }
pre { margin: 10px 0 0; padding: 12px; border-radius: 10px; background: #F8FAFC; font: 14px/1.6 inherit; white-space: pre-wrap; word-break: break-word; }
.guide { margin: 0 0 16px; padding: 14px 16px 14px 36px; border-radius: 12px; background: var(--tint); font-size: 14px; color: #124B66; }
.guide li + li { margin-top: 4px; }
.cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.entry h2 { margin: 0 0 14px; font-size: 18px; }
.entry.opened { background: linear-gradient(#F6FBFB, #F6FBFB) padding-box, linear-gradient(90deg, var(--teal-bright), var(--teal)) border-box; }
.entry button.submit, form.all button, .entry > .save, .entry a.button { width: 100%; min-height: 52px; font-size: 17px; }
a.button { display: flex; }
.entry .save { margin-top: 8px; }
.entry.dirty a.button { display: none; }
.entry.dirty > .save, .entry .need + .save { border: 0; color: #fff; background: var(--grad); }
.entry .need, .entry p.dirty { margin: 0 0 8px; font-size: 13px; color: var(--error); font-weight: 600; }
.entry .minor { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.entry .minor .save { width: auto; min-height: 40px; margin: 0; padding: 0 16px; font-size: 14px; font-weight: 500; }
form.all { margin: 0 0 16px; }
form.all .hint { margin-top: 6px; }
form.busy { opacity: 0.7; pointer-events: none; }
/* 카드의 상태 표시 */
.open-state, .sub-state { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.open-state { background: #E8EDF3; color: #44505E; }
.sub-state.done { background: var(--ok-bg); color: #0E5A3A; }
.sub-state.failed { background: #FCE4E2; color: var(--error); }
.sub-state.unsure { background: var(--warn-bg); color: #6B4A00; }
/* 확인 필요: 둘 중 하나를 고른다 */
.entry .choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
form.entry .choice button { width: 100%; min-width: 0; min-height: 52px; padding: 0 8px; font-size: 16px; }
.entry .choice + .hint { margin-top: 8px; }
.entry .minor a.button { width: auto; min-width: 0; min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 500; }
.entry button.submit + a.button { margin-top: 8px; }
/* 카드 처리 이력 */
.history { margin: 8px 4px 0; font-size: 13px; color: var(--sub); }
.history summary { cursor: pointer; padding: 4px 0; }
.history ol { margin: 6px 0 0; padding: 0 0 0 20px; line-height: 1.7; }

/* ── 표: 기록(계약 1건이 1행)·일일 대조·폼 점검. 좁은 화면에서는 옆으로 밀어서 본다 ── */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 13px; font-weight: 600; color: var(--label); white-space: nowrap; }
.scroll { overflow-x: auto; }
.scroll td { white-space: nowrap; }
.card.scroll { padding: 0; }
table.contracts { min-width: 840px; }
table.contracts th { background: #F2F6FA; border-bottom-color: #C9D6E3; color: var(--navy); }
table.contracts tbody tr:hover td { background: #F7FAFC; }
table.contracts tbody tr:last-child td { border-bottom: 0; }
table.contracts td.none { color: var(--error); }
table.contracts td.st { font-weight: 600; color: var(--sub); }
table.contracts td.st.done { color: #0E5A3A; }
table.contracts td.st.unsure { color: #6B4A00; }
table.contracts td.st.failed { color: var(--error); }
table.daily { min-width: 0; }
table.daily td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.daily th:not(:first-child) { text-align: right; }
ul.plain { margin: 10px 0 0; padding: 0; list-style: none; }
ul.plain li { padding: 8px 0; border-top: 1px solid var(--line); }

/* ── 관리 ── */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.subnav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; box-shadow: 0 6px 16px -12px rgba(23, 59, 107, 0.7); }
.subnav a.on { background: var(--navy); color: #fff; }
/* 계정 목록: 한 계정이 얇은 한 줄. 줄을 누르면 고치는 칸이 펼쳐진다 */
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 24px 0 10px; }
.list-head h2 { margin: 0; }
.list-head h2 small { font-size: 13px; font-weight: 500; color: var(--sub); }
form.search { display: flex; align-items: center; gap: 6px; margin: 0; }
form.search input { width: 170px; margin: 0; height: 40px; min-height: 40px; padding: 0 12px; font-size: 14px; }
form.search button { min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; }
form.search a { font-size: 13px; white-space: nowrap; }
.card.slim { padding: 0; overflow: hidden; }
.users { margin: 0; padding: 0; list-style: none; }
.users > li + li { border-top: 1px solid var(--line); }
.users summary { display: grid; grid-template-columns: 5em minmax(3em, 1fr) auto auto 12px; align-items: center; gap: 10px; min-height: 44px; padding: 4px 14px; font-size: 14px; font-weight: 500; color: var(--ink); list-style: none; }
.users summary::-webkit-details-marker { display: none; }
.users summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid #8FA1B5; border-bottom: 2px solid #8FA1B5; transform: rotate(45deg); transition: transform 0.15s; }
.users details[open] > summary::after { transform: rotate(-135deg); }
.users details[open] > summary { background: #F3F8FB; }
.users summary:hover { background: #F6F9FC; }
.users summary strong, .users .u-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.users summary .state { font-size: 12px; text-align: right; }
.users li.off summary { background: #F4F6F9; color: var(--sub); }
.users li.off .tag { background: #E3E9F0; color: var(--sub); }
.users li.group { padding: 7px 14px; background: #EAF0F5; font-size: 12px; font-weight: 700; color: var(--sub); }
.users li.none { padding: 16px 14px; font-size: 14px; color: var(--sub); }
.user-edit { padding: 12px 14px 16px; border-top: 1px dashed var(--line); background: #FAFCFD; }
.user-edit form.inline { margin-bottom: 10px; }
.tag { padding: 2px 10px; border-radius: 999px; background: #DDEBFA; font-size: 12px; font-weight: 600; color: #1A4A85; }
.state { font-size: 13px; color: var(--sub); }

/* ── 로그인: 왼쪽(휴대폰에서는 위)은 무늬가 흐르는 남색 얼굴, 오른쪽은 로그인 ── */
body.login { background: #fff; }
.login-shell { display: grid; grid-template-columns: 1fr; }
.login-hero { position: relative; overflow: hidden; padding: 14px; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(55, 153, 162, 0.95) 0%, rgba(55, 153, 162, 0) 60%),
    radial-gradient(90% 80% at 0% 0%, #2B2F7C 0%, rgba(43, 47, 124, 0) 65%),
    linear-gradient(160deg, #173B6B 0%, #1E4A80 45%, #1B6F86 100%); }
.login-art { position: absolute; left: -30%; bottom: -30%; width: 190%; height: 130%; opacity: 0.9; pointer-events: none; }
/* 증서의 겹테두리 */
.login-frame { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55); outline: 1px solid rgba(255, 255, 255, 0.22); outline-offset: 5px; }
.login-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.login-lockup span { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: #BFEDEF; }
.login-mark { display: block; height: 30px; width: auto; }
.login-name { margin: 0; font-size: 31px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.22; color: #fff; text-shadow: 0 2px 24px rgba(10, 30, 60, 0.35); }
/* 흐름 줄: 결과보고 → 계약 접수 → 실적 집계. 화면이 열릴 때 줄이 왼쪽에서 그어지고 점이 차례로 켜진다 */
.flow-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 440px; margin: 22px 0 0; padding: 20px 0 0; list-style: none; }
.flow-track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 2px; background: linear-gradient(90deg, #7FE3E9, rgba(127, 227, 233, 0.4)); transform-origin: left center; animation: flow-draw 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
.flow-track li { position: relative; font-size: 13px; font-weight: 600; color: #E3F6F8; animation: flow-on 0.5s ease both; }
.flow-track li::before { content: ""; position: absolute; top: -20px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(127, 227, 233, 0.35); }
.flow-track li:nth-child(1) { animation-delay: 0.4s; }
.flow-track li:nth-child(2) { text-align: center; animation-delay: 0.8s; }
.flow-track li:nth-child(2)::before { left: calc(50% - 6px); }
.flow-track li:nth-child(3) { text-align: right; animation-delay: 1.2s; }
.flow-track li:nth-child(3)::before { left: auto; right: 0; }
@keyframes flow-draw { from { transform: scaleX(0); } }
@keyframes flow-on { from { opacity: 0; } }
.login-rule { width: 110px; height: 5px; margin: 14px 0 12px; background: linear-gradient(90deg, #7FE3E9, #3799A2); transform-origin: left center; animation: login-rule 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
@keyframes login-rule { from { transform: scaleX(0); } }
.login-lead { margin: 0; font-size: 14px; line-height: 1.7; color: #DCEAF6; }
.login-site { display: none; justify-content: space-between; gap: 16px; margin: 0; font-size: 13px; letter-spacing: 0.04em; color: rgba(227, 236, 247, 0.85); }
.login-site span:first-child { font-weight: 600; }
.login-panel { display: flex; align-items: center; justify-content: center; max-width: none; margin: 0; padding: 30px 22px 44px; background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FB 100%); }
.login-box { width: 100%; max-width: 380px; }
.login-logo { display: block; height: 38px; width: auto; margin-bottom: 22px; }
.login-box h1 { margin: 0 0 16px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.login-form label { margin: 16px 0 0; }
.login-form input { height: 52px; font-size: 17px; }
.login-form button.primary { display: flex; width: 100%; height: 54px; margin-top: 26px; font-size: 17px; }
.login-box .notice { margin: 0 0 6px; }
.login-help { margin: 24px 0 0; font-size: 13px; line-height: 1.7; color: var(--sub); }

@media (min-width: 760px) {
  body { font-size: 15px; }
  .top { padding-bottom: 76px; }
  .top-bar { gap: 28px; min-height: 68px; padding: 0 24px; }
  .top-title { padding: 26px 24px 0; }
  .brand { margin-right: 0; }
  .brand img { height: 26px; }
  nav { flex: 1; flex-basis: auto; order: 1; margin: 0; }
  nav a { flex: none; padding: 0 16px; font-size: 14px; }
  .who { order: 2; margin-left: auto; font-size: 14px; }
  .top-title h1 { font-size: 34px; }
  .top-title h1::after { width: 84px; margin-top: 14px; }
  main { margin-top: -52px; padding: 0 24px 72px; }
  .card { padding: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
  .entry button.submit, form.all button, .entry > .save, .entry a.button { width: auto; min-width: 200px; }
}
@media (min-width: 960px) { .brand small { display: inline; } }  /* 좁은 화면에서는 메뉴가 두 줄로 밀리지 않게 숨긴다 */
@media (min-width: 860px) {
  .login-shell { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); min-height: 100vh; }
  .login-hero { padding: 28px; }
  .login-art { left: -10%; bottom: -12%; width: 130%; height: 80%; }
  .login-frame { justify-content: space-between; height: 100%; min-height: 520px; padding: 40px 44px; outline-offset: 6px; }
  .login-mark { height: 44px; }
  .login-lockup { gap: 10px; }
  .login-lockup span { font-size: 15px; }
  .login-name { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.18; }
  .flow-track { margin-top: 34px; }
  .flow-track li { font-size: 15px; }
  .login-rule { width: 132px; height: 6px; margin: 26px 0 22px; }
  .login-lead { font-size: 16px; }
  .login-site { display: flex; }
  .login-panel { padding: 48px 32px; }
  .login-logo { height: 48px; margin-bottom: 44px; }
  .login-box h1 { margin-bottom: 22px; font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .login-rule, .flow-track::before, .flow-track li { animation: none; } * { transition: none !important; } }

/* ── 기록 화면: 기간 선택과 합계 ── */
.period { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 0 0 6px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; box-shadow: 0 6px 16px -12px rgba(23, 59, 107, 0.7); cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; }
/* 기록 표 위: 제출 상태로 골라 보기 */
.states { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.states .chip { min-height: 40px; padding: 0 12px; font-size: 13px; }
.states .chip span { margin-left: 5px; font-weight: 700; color: var(--teal); }
.states .chip.on span { color: var(--teal-bright); }
h2 small { font-size: 13px; font-weight: 500; color: var(--sub); }
main a.chip.on:hover { color: #fff; }
details.range { flex: 1 1 100%; }
details.range > summary { display: inline-flex; list-style: none; }
details.range > summary::-webkit-details-marker { display: none; }
details.range form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 8px; margin: 10px 0 0; padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px -20px rgba(23, 59, 107, 0.8); }
details.range form input { min-width: 0; padding-left: 8px; padding-right: 6px; font-size: 14px; }
details.range form button { grid-column: 1 / -1; height: 44px; min-height: 44px; }  /* 휴대폰: 날짜 두 칸 아래에 [보기] */
main > p.hint.span { margin: 0 4px 14px; }
.totals h2 { margin-top: 0; }
.totals dl { display: grid; gap: 8px; margin: 0 0 12px; }
.totals dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--tint); }
.totals dt { font-weight: 600; color: #124B66; }
.totals dd { margin: 0; font-size: 14px; color: #124B66; white-space: nowrap; }
.totals dd strong { margin-right: 3px; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); }
.totals .pending { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #6B4A00; }
.totals .pending span { margin-left: 6px; font-weight: 400; color: var(--sub); }
table.people th small { margin-left: 2px; font-weight: 400; color: var(--sub); }
table.people td:first-child { font-weight: 600; }
ul.rules { margin: 14px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--sub); }
ul.rules strong { color: var(--ink); }
ul.rules code { padding: 0 5px; font-size: 13px; letter-spacing: 0; }
@media (min-width: 760px) {
  details.range { flex: 0 1 auto; }
  details.range form { max-width: 520px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  details.range form input { padding-left: 12px; padding-right: 12px; font-size: 16px; }
  details.range form button { grid-column: auto; height: 48px; min-height: 48px; }
  .totals dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .totals dl div { flex-direction: column; align-items: flex-start; gap: 2px; }
}
