/* SAM Basecamp Ver.2 tokens */
:root {
  --primary: #145aff; --primary-tint: #f0f4fe; --page: #fcfcfc; --surface: #ffffff;
  --text: #14141e; --heading: #020520; --body2: #374151; --help: #6b7280;
  --divider: #e2e8f0; --fill: #f1f5f9; --hover: #f1f2f6; --focus: #0099ff; --track-muted: #cbd5e1;
  --ok: #16ca2e; --info: #3b82f6; --warn: #ffa64d; --danger: #f26052;
  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 8px 20px -6px rgba(0,0,0,.06);
  --shadow-modal: 0 .36px 1.8px -1.4px rgba(0,0,0,.082), 0 1.37px 6.87px -2.8px rgba(0,0,0,.07), 0 6px 30px -4.25px rgba(0,0,0,.016);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); }
body { font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif; color: var(--text); font-size: 13px; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
h1 { margin: 2px 0 0; font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--heading); }
[hidden] { display: none !important; }

/* GNB */
.gnb { position: sticky; top: 0; z-index: 20; height: 64px; background: var(--page); border-bottom: 1px solid var(--divider); display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.icon-btn { width: 32px; height: 32px; flex: none; border-radius: 8px; border: 1px solid var(--divider); background: #fff; color: var(--help); font-size: 14px; }
.icon-btn:hover { background: var(--hover); }
.brand { cursor: pointer; display: flex; align-items: baseline; gap: 8px; flex: none; }
.brand b { font-size: 22px; font-weight: 800; color: var(--heading); letter-spacing: -.01em; white-space: nowrap; }
.brand span { font-size: 22px; font-weight: 400; color: var(--heading); white-space: nowrap; }
.search { flex: 1; max-width: 420px; margin-left: 24px; height: 40px; background: var(--fill); border-radius: 9999px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 12px; color: var(--text); }
.kbd { font-size: 10px; color: var(--help); border: 1px solid var(--divider); background: #fff; border-radius: 6px; padding: 1px 6px; }
.gnb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.me { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.me-text { text-align: right; line-height: 1.4; }
.me-text div:first-child { font-size: 12px; font-weight: 500; }
.me-text div:last-child { font-size: 10px; color: var(--help); }
.avatar { width: 32px; height: 32px; border-radius: 9999px; background: #6366f1; color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.menu { position: absolute; right: 0; top: 42px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-modal), var(--shadow-card); padding: 6px; min-width: 140px; z-index: 30; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; font-size: 12px; color: var(--text); }
.menu button:hover { background: var(--hover); }

/* Buttons */
.btn { height: 32px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--divider); background: #fff; color: var(--text); font-size: 12px; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--hover); }
.btn-primary { border: 0; background: var(--primary); color: #fff; font-weight: 500; }
.btn-primary:hover:not(:disabled) { background: #0f4fe6; }
.btn-primary:disabled, .btn:disabled { opacity: .35; }
.btn-40 { height: 40px; padding: 0 20px; }
.btn-44 { height: 44px; padding: 0 24px; }
.btn-danger { color: #c93a2d; }

/* Layout */
.shell { display: flex; align-items: flex-start; }
.lnb { position: sticky; top: 64px; width: 240px; flex: none; height: calc(100vh - 64px); background: #fff; border-right: 1px solid var(--divider); padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.lnb-label { font-size: 12px; color: var(--help); padding: 0 16px 8px; }
.nav-item { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 9999px; color: var(--text); font-size: 16px; }
.nav-item:hover { background: var(--hover); }
.nav-item.on { background: var(--primary-tint); color: var(--primary); font-weight: 500; }
.nav-item span:first-child { flex: 1; }
.count-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.period-card { margin-top: auto; background: var(--primary-tint); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.period-card .st { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--body2); }
.period-card .dday { font-size: 24px; font-weight: 700; color: var(--heading); line-height: 1.4; }
.period-card .sub { font-size: 11px; color: var(--help); }
.lnb-scrim { display: none; }
main { flex: 1; min-width: 0; padding: 20px 32px 32px; }

.dot { width: 6px; height: 6px; border-radius: 9999px; display: inline-block; flex: none; background: var(--help); }
.dot.ok { background: var(--ok); } .dot.info { background: var(--info); } .dot.warn { background: var(--warn); } .dot.danger { background: var(--danger); } .dot.off { background: var(--divider); } .dot.none { background: transparent; }
.bar { height: 6px; border-radius: 9999px; background: var(--divider); overflow: hidden; }
.bar > i { display: block; height: 6px; border-radius: 9999px; background: var(--primary); transition: width .2s; }
.bar > i.muted { background: var(--track-muted); }

/* Page header */
.stack { display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.page-head > div:first-child { flex: 1; min-width: 260px; }
.crumb { font-size: 10px; color: var(--help); }
.desc { font-size: 12px; color: var(--body2); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; padding: 0 14px; border-radius: 9999px; border: 1px solid var(--divider); background: #fff; color: var(--text); font-size: 12px; font-weight: 500; }
.chip:hover { background: var(--hover); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); }
.grid-small { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 12px; }
.phase { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.phase .top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--help); }
.phase .top span:last-child { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--body2); }
.phase .t { font-size: 15px; font-weight: 700; color: var(--heading); line-height: 1.4; }
.phase .d { font-size: 11px; color: var(--help); }
.meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--help); gap: 12px; flex-wrap: wrap; }

/* Work grid */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.work { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.work.sel { background: var(--primary-tint); }
.work.mine { opacity: .6; }
.thumb { cursor: pointer; aspect-ratio: 4/3; background: var(--fill); border-radius: 8px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ph { font-size: 10px; letter-spacing: .12em; color: var(--help); }
.pill { position: absolute; font-size: 10px; color: var(--body2); background: #fff; border-radius: 9999px; padding: 1px 8px; }
.thumb .pill { left: 8px; bottom: 8px; }
.order { position: absolute; right: 8px; top: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 9999px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.work-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--help); padding: 0 4px; gap: 8px; }
.work-meta b { color: var(--body2); }
.work-title { cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--heading); padding: 0 4px; min-height: 2.8em; overflow-wrap: anywhere; }
.vote-btn { height: 32px; border-radius: 9999px; border: 1px solid var(--divider); background: #fff; color: var(--text); font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; }
.vote-btn:hover { background: var(--hover); }
.vote-btn.on, .vote-btn.on:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.vote-btn.mine, .vote-btn.mine:hover { background: var(--fill); border-color: var(--fill); color: var(--help); }
.vote-btn.lg { height: 44px; }
.empty { padding: 64px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--help); text-align: center; }
.tag-final { font-size: 10px; font-weight: 600; color: var(--primary); background: var(--primary-tint); border-radius: 9999px; padding: 1px 8px; }

/* Vote bar */
.vote-bar { position: sticky; bottom: 20px; margin-top: 24px; z-index: 10; padding: 14px 16px 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.vote-bar > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.vote-bar .head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.vote-bar .head b { font-size: 15px; color: var(--heading); }
.vote-bar .head span { font-size: 11px; color: var(--help); }
.vote-bar .btn-primary { min-width: 180px; }

/* Detail */
.detail { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.pages { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.page-card { padding: 12px; max-width: 100%; }
.page-card .img { position: relative; border-radius: 8px; overflow: auto; background: var(--fill); }
.page-card img { display: block; width: 100%; height: auto; border-radius: 8px; min-height: 120px; }
.page-card .pill { left: 10px; top: 10px; }
.zoombar { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--help); }
.aside { flex: 0 1 320px; position: sticky; top: 84px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.aside .t { font-size: 17px; font-weight: 700; color: var(--heading); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--fill); border-radius: 12px; padding: 10px 12px; }
.tile div:first-child { font-size: 11px; color: var(--help); }
.tile div:last-child { font-weight: 700; }
.row-gap { display: flex; gap: 8px; }
.row-gap .btn { flex: 1; }

/* Login */
.center { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; }
.login { width: min(400px, 100%); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.login .eyebrow { font-size: 10px; color: var(--help); }
.login .title { font-size: 20px; font-weight: 700; color: var(--heading); line-height: 1.4; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 12px; font-weight: 700; }
.input { height: 40px; border: 1px solid var(--divider); border-radius: 12px; padding: 0 14px; font-size: 13px; outline: none; background: #fff; color: var(--text); width: 100%; }
.input:focus, .textarea:focus { border-color: var(--focus); }
.input.code { height: 48px; font-size: 20px; letter-spacing: .4em; }
.input.err, .textarea.err, .stepper.err { border-color: var(--danger); }
.textarea { min-height: 112px; border: 1px solid var(--divider); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.6; outline: none; resize: vertical; background: #fff; color: var(--text); width: 100%; }
.links { display: flex; gap: 16px; font-size: 12px; margin-top: 4px; }
.foot-note { font-size: 11px; color: var(--help); border-top: 1px solid var(--divider); padding-top: 14px; }
.form-error { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--body2); }

/* Judge */
.judge { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.jlist { flex: 1 1 200px; max-width: 260px; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.jrow { cursor: pointer; display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 8px; padding: 10px; border-radius: 12px; }
.jrow:hover { background: var(--hover); }
.jrow.on { background: var(--primary-tint); }
.jrow.on .jt { color: var(--primary); }
.jrow .rk { font-size: 11px; font-weight: 700; color: var(--help); line-height: 1.7; }
.jrow .jt { font-size: 13px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.jrow .js { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--help); margin-top: 2px; }
.jpanel { flex: 999 1 300px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.strip a { flex: none; height: 118px; border-radius: 8px; background: var(--fill); overflow: hidden; display: block; }
.strip img { height: 118px; width: auto; display: block; }
.crit { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--divider); }
.crit > div:first-child { flex: 1; min-width: 200px; }
.crit .n { font-size: 13px; font-weight: 700; }
.crit .n span { font-weight: 400; font-size: 11px; color: var(--help); }
.crit .dsc { font-size: 12px; color: var(--body2); }
.stepper { height: 40px; border: 1px solid var(--divider); border-radius: 12px; background: #fff; display: flex; align-items: center; padding: 0 4px; }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--body2); font-size: 16px; }
.stepper button:hover:not(:disabled) { background: var(--hover); }
.stepper input { width: 44px; border: 0; outline: none; text-align: center; font-size: 13px; font-weight: 700; background: transparent; color: var(--text); }
.total { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--primary-tint); border-radius: 12px; }
.total b:last-child { font-size: 24px; color: var(--heading); line-height: 1.4; }
.total small { font-size: 13px; font-weight: 400; color: var(--help); }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* Admin */
.seg { display: flex; gap: 4px; background: #fff; border: 1px solid var(--divider); border-radius: 9999px; padding: 3px; flex-wrap: wrap; }
.seg button { height: 32px; padding: 0 16px; border-radius: 9999px; border: 0; background: transparent; color: var(--text); font-size: 12px; font-weight: 500; }
.seg button:hover { background: var(--hover); }
.seg button.on { background: var(--primary); color: #fff; }
.stat { padding: 20px; }
.stat .k { font-size: 13px; color: var(--help); }
.stat .v { font-size: 24px; font-weight: 700; color: var(--heading); line-height: 1.4; }
.stat .t { font-size: 11px; color: var(--help); }
.alert { padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.alert > div:first-child { flex: 1; min-width: 260px; }
.alert .t { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--heading); }
.alert .d { font-size: 12px; color: var(--body2); }
.done-line { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; font-size: 12px; padding: 0 4px; }
.done-line > span:first-child { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.done-line > span:last-child { color: var(--help); display: flex; gap: 12px; align-items: center; }
.table { background: var(--primary-tint); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.tr { min-width: 560px; display: grid; gap: 10px; align-items: center; padding: 10px 16px; background: #fff; border-radius: 8px; box-shadow: var(--shadow-card); }
.tr.th { background: transparent; box-shadow: none; padding: 4px 16px; font-size: 11px; color: var(--help); }
.tr.click { cursor: pointer; }
.tr.click:hover { background: var(--hover); }
.t-rank { grid-template-columns: 28px 48px minmax(0,1.6fr) minmax(48px,1fr) 32px 72px; }
.t-works { grid-template-columns: 48px 84px minmax(0,1.3fr) 36px 60px minmax(200px,1.7fr) minmax(90px,.9fr) 48px; min-width: 900px; }
.email-cell { height: 32px; font-size: 12px; padding: 0 10px; border-radius: 8px; transition: border-color .2s, background .2s; }
.email-cell.empty { border-color: #f5c38e; background: #fffaf3; }
.email-cell.saving { opacity: .6; }
.email-cell.saved { border-color: var(--ok); background: #f1fbf2; }
.t-users { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) 60px 60px 60px 72px; }
.t-results { grid-template-columns: 28px 48px minmax(0,1.6fr) 72px 60px 120px; }
.cut { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--primary); padding: 0 16px; min-width: 560px; }
.cut span { flex: 1; border-top: 1px dashed var(--primary); }
.cell-st { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--body2); }
.muted { color: var(--help); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start; }
.panel { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.panel-head > span { font-size: 15px; font-weight: 700; color: var(--heading); }
.jprog { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--divider); }
.jprog .avatar { grid-row: span 2; }
.jprog .bar { grid-column: span 2; }
.cfg-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); align-items: center; }
.cfg-row.off { opacity: .5; }
.soft { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--fill); border-radius: 12px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--track-muted); border-radius: 9999px; transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 9999px; transition: transform .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(16px); }
.prose { gap: 0; }
.prose h2 { font-size: 20px; font-weight: 700; color: var(--heading); margin: 0 0 8px; line-height: 1.4; }
.prose h3 { font-size: 15px; font-weight: 700; color: var(--heading); margin: 20px 0 6px; }
.prose p { margin: 0 0 8px; color: var(--body2); font-size: 14px; }
.prose ul { margin: 0 0 8px; padding-left: 20px; color: var(--body2); font-size: 14px; }
.prose li { margin: 2px 0; }
.prose > :first-child { margin-top: 0; }
.award-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 9999px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; }
.sched-step { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 12px 20px; padding: 16px 0; border-top: 1px solid var(--divider); align-items: start; }
.sched-k { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.sched-k b { font-size: 15px; color: var(--heading); }
@media (max-width: 640px) { .sched-step { grid-template-columns: 1fr; } }
.log { font-size: 11px; color: var(--body2); display: grid; grid-template-columns: 130px 140px minmax(0,1fr); gap: 4px 12px; padding: 6px 0; border-top: 1px solid var(--divider); }

/* Modal & toast */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(2,5,32,.32); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 40px; box-shadow: var(--shadow-modal); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.modal.wide { width: min(640px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head b { font-size: 17px; color: var(--heading); }
.modal-head button { width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--help); font-size: 16px; }
.modal-head button:hover { background: var(--hover); }
.sel-list { max-height: 240px; overflow: auto; background: var(--primary-tint); border-radius: 16px; padding: 8px 12px; }
.sel-list > div { display: grid; grid-template-columns: 24px 52px minmax(0,1fr); gap: 4px; padding: 6px 4px; font-size: 12px; }
.sel-list b { color: var(--primary); }
.toast { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 60; background: var(--heading); color: #fff; border-radius: 9999px; padding: 10px 20px; font-size: 13px; max-width: calc(100vw - 48px); text-align: center; }
.page-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pp { display: flex; flex-direction: column; gap: 4px; }
.pp-img { padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--fill); overflow: hidden; cursor: zoom-in; }
.pp-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pp-img:hover { border-color: var(--focus); }
.pp:has(input:checked) .pp-img { border-color: var(--danger); }
.pp:has(input:checked) .pp-img img { opacity: .4; }
.pp-hide { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--help); cursor: pointer; padding: 0 2px; }
.pp-hide input { margin: 0 2px 0 0; vertical-align: -1px; }
.viewer { position: fixed; inset: 0; z-index: 70; background: rgba(2,5,32,.88); display: flex; flex-direction: column; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; }
.viewer-bar b { font-size: 15px; margin-right: 8px; }
.viewer-hide { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #c93a2d; padding: 0 8px; cursor: pointer; }
.viewer-body { flex: 1; overflow: auto; padding: 16px; text-align: center; }
.viewer-body img { display: inline-block; max-width: none; cursor: zoom-out; background: #fff; }
.viewer-body.fit { display: flex; align-items: center; justify-content: center; }
.viewer-body.fit img { max-width: 100%; max-height: 100%; cursor: zoom-in; }
.loading { padding: 64px 0; text-align: center; color: var(--help); }

/* Responsive */
@media (max-width: 900px) {
  .gnb { padding: 0 16px; gap: 10px; }
  .brand span, .kbd, .me-text { display: none; }
  .brand b { font-size: 14px; }
  .search { min-width: 0; padding: 0 12px; }
  .gnb-right { flex: none; }
  .search { margin-left: 0; }
  .lnb { position: fixed; top: 64px; left: 0; z-index: 25; box-shadow: var(--shadow-modal); }
  .lnb-scrim { display: block; position: fixed; inset: 64px 0 0 0; background: rgba(2,5,32,.2); z-index: 24; }
  main { padding: 16px 16px 24px; }
  .aside { position: static; flex-basis: 100%; }
  .jlist { max-width: none; flex-basis: 100%; flex-direction: row; overflow-x: auto; gap: 4px; }
  .jlist > .crumb { display: none; }
  .jrow { flex: none; width: 168px; }
  .vote-bar { bottom: 12px; }
  .vote-bar .btn-primary { flex: 1; }
  .modal { border-radius: 28px; padding: 24px; }
}
