:root {
  color-scheme: light;
  --ink: #172b40;
  --muted: #485c70;
  --line: #d4e0ec;
  --nav: #142c45;
  --blue: #145da0;
  --paper: #f0f5fb;
  font: 100%/1.55 "맑은 고딕", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: var(--nav); color: #fff; }
.shell { width: min(65rem, 100% - 2rem); margin-inline: auto; }
.toolbar { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
main { padding: 2rem 0 3rem; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); letter-spacing: -.055em; margin: 0 0 1.1rem; }
h2 { font-size: 1.17rem; margin: 0 0 .72rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(14rem, 1fr); gap: 1rem; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 4vw, 1.65rem); box-shadow: 0 7px 23px #1533530b; }
.login { max-width: 26rem; margin: 7vh auto 0; }
.login label { display: block; margin-bottom: 1rem; }
.login input { display: block; width: 100%; margin-top: .3rem; }
fieldset { border: 0; padding: 0; margin: 0 0 .9rem; min-width: 0; }
legend, .days, .time { font-weight: 700; margin-bottom: .35rem; }
.choices, .pick { display: flex; flex-wrap: wrap; gap: .42rem; }
.choice { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.55rem; padding-inline: .6rem; border: 1px solid var(--line); border-radius: .5rem; cursor: pointer; }
.choice:has(input:checked) { background: #eaf4ff; border-color: #92bedf; }
input, button { font: inherit; }
input[type=checkbox] { width: 1rem; height: 1rem; accent-color: var(--blue); margin: 0; }
input:not([type=checkbox]) { border: 1px solid #a7b9c9; border-radius: .45rem; padding: .4rem .55rem; color: inherit; background: #fff; }
#days { width: 5rem; margin-right: .3rem; }
:focus-visible { outline: 2px solid #1677bf; outline-offset: 3px; }
button { border: 1px solid var(--blue); padding: .48rem .85rem; min-height: 2.6rem; background: var(--blue); color: white; font-weight: 750; border-radius: .45rem; cursor: pointer; }
button.secondary { background: white; color: #234762; border-color: #b4c7d8; }
button:disabled { opacity: .65; cursor: not-allowed; }
.days, .time { display: flex; align-items: center; flex-wrap: wrap; margin-top: 1rem; gap: .65rem; }
.hint { color: var(--muted); font-size: .93rem; margin: .35rem 0 .75rem; white-space: pre-line; }
.manual, .schedule { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.1rem; }
.manual { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.manual h2, .manual p { margin: 0; }
.switch { margin-bottom: .8rem; }
.state { font-size: 1.2rem; font-weight: 800; }
#results { padding-left: 1.1rem; }
#notice, #login-notice { color: #225475; font-size: .92rem; }
#notice:empty, #login-notice:empty { display: none; }
.error { color: #9f3027 !important; }
@media (max-width: 740px) { .layout { grid-template-columns: 1fr; } }
.views { display: flex; gap: .45rem; margin-bottom: 1.2rem; }
.views [aria-pressed=true] { background: var(--nav); border-color: var(--nav); color: #fff; }
.topic-section { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1.1rem; }
.topic-editor + .topic-editor { margin-top: 1.15rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: .35rem 0 .65rem; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: .25rem; border: 1px solid #b6d2e8; padding-left: .55rem; border-radius: .45rem; background: #edf6ff; overflow-wrap: anywhere; }
.chips li:not(:has(input:checked)) { background: #fff; border-color: var(--line); }
.chips label { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.chips label input { flex: 0 0 1rem; }
.chips .remove { min-height: 2rem; min-width: 2rem; padding: 0; background: transparent; color: var(--ink); border: 0; }
.chips .remove:hover { background: #dcecf9; }
.keyword-add, .index-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.keyword-add input, .index-actions input { flex: 1 1 12rem; min-width: 0; }
.topic-editor .hint:empty { display: none; }
.index-controls label { display: block; margin-bottom: .45rem; font-weight: 700; }
#project-results > section { margin-top: 1.4rem; }
.candidate, .project { border: 1px solid var(--line); border-radius: .6rem; background: #fff; margin: .5rem 0; padding: .8rem 1rem; overflow-wrap: anywhere; }
.candidate { border-left: .25rem solid #957042; }
summary { cursor: pointer; }
.project > summary .hint { display: block; margin-left: 1rem; margin-bottom: 0; }
.notice-card { margin-top: .7rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.notice-card h3, .notice-card p { margin: .2rem 0; }
.notice-card h3 { font-size: 1rem; }
.project a, .candidate a { color: #125790; }
.topic-label { color: #234762; font-size: .88rem; font-weight: 700; }
.file-info { margin-top: .45rem; font-size: .88rem; }
.file-info .folder-path { overflow-wrap: anywhere; color: var(--muted); }
.proof { padding-left: 1.4rem; }
