:root {
  color-scheme: light;
  --paper: #f6f7f3;
  --ink: #122421;
  --forest: #085148;
  --line: #d5dcd4;
  --muted: #52625b;
  --mint: #bcf2b8;
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  background: var(--pi-tint, #edf9fd);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #187469; outline-offset: 3px; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
.container { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.site-head { height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--pi-border, #c6dfe8); }
.site-head .proposal-pdf { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; margin-left: auto; color: var(--pi-link, #075771); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-head .proposal-pdf:hover { text-decoration: underline; text-underline-offset: 3px; }
.return-nav { padding-top: 18px; }
.return-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; border: 1px solid var(--pi-border, #c6dfe8); border-radius: 5px; background: #fff; color: var(--pi-link, #075771); font-size: .92rem; font-weight: 700; text-decoration: none; }
.return-nav a:hover { background: #def3fa; border-color: #81b5c7; }
.return-nav + .intro { padding-top: 18px; }
@media (max-width: 600px) { .return-nav { padding-top: 12px; } }
.intro { color: var(--pi-ink, #12252d); display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 39px 0 25px; }
.overline, .deck, .stats, h1, h2, h3, p, ol, dd { margin: 0; }
.overline { margin: 0 0 9px; font-size: 14px; color: var(--pi-link, #075771); font-weight: 600; }
.eyebrow i { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.14; letter-spacing: -.072em; }
.deck { margin-top: 11px; color: #516674; font-size: 15px; }
.stats { display: flex; align-items: flex-end; }
.stats div { padding: 0 19px; border-left: 1px solid var(--pi-border, #c6dfe8); }
.stats div:last-child { padding-right: 0; }
.stats dt { color: #516674; font-size: 12px; }
.stats dd { font-family: Arial, sans-serif; font-size: 27px; font-weight: 750; line-height: 1.25; letter-spacing: -.045em; }
.stats small { margin-left: 3px; font-size: 13px; }
.tools { display: flex; align-items: end; gap: 12px; padding: 15px 0 19px; border-top: 1px solid var(--line); }
.tools label { display: grid; gap: 5px; position: relative; }
.tools label > span { font-weight: 750; font-size: 12px; }
.search { flex: 1; }
.choose { flex: 0 0 155px; }
.tools input, .tools select { width: 100%; min-width: 0; border: 1px solid #bac6ba; border-radius: 8px; padding: 9px 13px; background: white; font-size: 15px; min-height: 43px; }
.tools input { padding-left: 39px; }
.tools input::placeholder { color: #62726a; }
.search i { pointer-events: none; position: absolute; left: 15px; bottom: 16px; width: 13px; height: 13px; border-radius: 50%; border: 1.8px solid var(--forest); }
.search i::after { content: ""; position: absolute; width: 6px; height: 1.8px; background: var(--forest); transform: rotate(46deg); left: 8px; top: 10px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(270px, 1fr); gap: 21px; align-items: start; }
.result-grid > * { min-width: 0; }
.cut, .rank-panel, .empty { border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.cut { overflow: hidden; scroll-margin: 14px; margin-bottom: 16px; }
.cut:last-of-type { margin-bottom: 0; }
.cut:focus { outline: none; }
.cut:focus-visible { outline: 2px solid #187469; outline-offset: 3px; }
.cut-head, .cut-body { padding: 23px clamp(20px, 2.5vw, 33px); }
.cut-head { background: var(--forest); color: #fff; }
.eyebrow { display: flex; gap: 8px; align-items: center; color: #d6ebe0; font-size: 12px; font-weight: 650; }
.pill { display: inline-block; color: var(--forest); background: var(--mint); border-radius: 5px; padding: 2px 8px; margin-right: 2px; }
.cut h2 { margin: 11px 0 18px; font-size: clamp(22px, 2vw, 31px); line-height: 1.28; letter-spacing: -.055em; }
.peak { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.peak span, .timecodes span { font-size: 12px; color: #d3e8da; }
.peak strong { font-family: ui-monospace, Consolas, monospace; font-size: clamp(25px, 3.3vw, 43px); letter-spacing: -.075em; line-height: 1.2; color: var(--mint); }
.range { height: 15px; margin: 8px 0 2px; position: relative; }
.range::before, .range i { content: ""; position: absolute; height: 2px; top: calc(50% - 1px); }
.range::before { inset-inline: 0; background: #69a198; }
.range i { left: 0; width: var(--peak); background: var(--mint); }
.range b { position: absolute; top: 50%; left: var(--peak); width: 9px; height: 9px; border-radius: 50%; background: var(--mint); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--forest); }
.timecodes { display: flex; align-items: center; justify-content: space-between; }
.timecodes div { display: flex; align-items: center; gap: 6px; }
.timecodes time { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.cut-body { padding-top: 19px; padding-bottom: 20px; }
.metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.metadata span { border-radius: 5px; border: 1px solid var(--line); background: var(--paper); padding: 2px 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.cut h3 { font-size: 15px; margin: 16px 0 3px; }
.cut-body p { font-size: 16px; line-height: 1.65; }
.source-row { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; display: flex; gap: 6px 18px; flex-wrap: wrap; }
.extra-cut { font-size: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.extra-cut span { color: var(--muted); }
.extra-cut b, .extra-cut time { font-weight: 650; }
.rank-panel { overflow: hidden; }
.aside-title { display: flex; justify-content: space-between; align-items: center; padding: 14px 19px; border-bottom: 1px solid var(--line); }
.aside-title h2 { font-size: 18px; letter-spacing: -.04em; }
.aside-title span { color: var(--muted); font-size: 13px; }
.rank-panel ol { list-style: none; padding: 0; }
.rank-panel li + li { border-top: 1px solid #e6eae4; }
.rank-link { display: grid; grid-template-columns: 23px 1fr 24px; gap: 10px; align-items: start; padding: 13px 16px; border-left: 3px solid transparent; text-decoration: none; }
.rank-link:hover { background: var(--paper); }
.rank-link[aria-current="true"] { background: #edf5eb; border-left-color: var(--forest); }
.rank-link:focus-visible { outline-offset: -3px; }
.rank-no { color: var(--forest); font: 700 14px/1.55 ui-monospace, Consolas, monospace; }
.rank-title { font-size: 14px; font-weight: 700; line-height: 1.5; }
.rank-title small { display: block; font-size: 12px; margin-top: 2px; color: var(--muted); font-weight: 400; }
.rank-title i { font-style: normal; margin: 0 2px; }
.grade { font: bold 12px/20px ui-monospace, Consolas, monospace; border: 1px solid var(--line); border-radius: 5px; text-align: center; color: var(--forest); }
.empty { padding: 36px 24px; }
.empty h2 { font-size: 23px; }.empty p { color: var(--muted); margin: 8px 0 16px; }
.empty button { min-height: 42px; border-radius: 7px; background: var(--forest); color: white; border: 0; padding: 8px 15px; }
main { padding-bottom: 36px; }
@media (min-width: 761px) {
  .rank-panel ol { max-height: min(64vh, 600px); overflow: auto; scrollbar-color: #b6c5b8 transparent; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 620px); }
  .site-head { height: 55px; }
  .intro { display: block; padding: 24px 0 16px; }
  .stats { margin-top: 17px; }
  .stats div { padding: 0 15px; }
  .stats div:first-child { border: 0; padding-left: 0; }
  .stats dd { font-size: 22px; }
  .tools { gap: 9px; padding: 11px 0 15px; }
  .search { min-width: 0; }
  .choose { flex-basis: 121px; }
  .result-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .cut { margin-bottom: 0; }
  .cut:not([hidden]) + .cut:not([hidden]) { margin-top: 16px; }
  .cut-head, .cut-body { padding: 17px 18px; }
  .peak strong { font-size: 32px; }
  .rank-link { min-height: 54px; }
}
@media (max-width: 365px) {
  .container { width: calc(100% - 24px); }
  .choose { flex-basis: 108px; }
  .tools input, .tools select { font-size: 14px; }
}
