:root {
  --blue: #0748b5;
  --blue-d: #05367f;
  --blue-l: #e6edf9;
  --blue-ll: #f3f6fb;
  --red: #c9220a;
  --red-b: #fb2904;
  --red-l: #fdeceA;
  --ink: #1c2330;
  --mute: #5d6878;
  --line: #cbd2dc;
  --line2: #e2e6ed;
  --bg: #eef1f6;
  --panel: #ffffff;
  --warn-bg: #fff4d6;
  --warn: #7a5200;
  --w: 1180px;
  --rail: 208px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button, textarea, input:not([type=checkbox]):not([type=radio]):not([type=file]) { -webkit-appearance: none; appearance: none; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.35; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
[tabindex="-1"]:focus { outline: 0; }
.nojs { padding: 24px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 500; background: #fff; padding: 6px 10px; border: 2px solid var(--blue); }
.noscroll { overflow: hidden; }
.boot { padding: 40px; text-align: center; color: var(--mute); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }
.mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; }
.muted { color: var(--mute); }
.small { font-size: 12px; }
.bad { color: var(--red); }
.sp { flex: 1; }

.util { background: #0a2c66; color: #c9d6ee; font-size: 12px; }
.util .in { max-width: var(--w); margin: 0 auto; padding: 2px 16px; min-height: 32px; display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.util a, .util .linkbtn { color: #e6edf9; font-size: 12px; text-decoration: none; }
.util a:hover, .util .linkbtn:hover { color: #fff; text-decoration: underline; }
.util-l, .util-r { display: flex; align-items: center; gap: 2px 14px; flex-wrap: wrap; min-width: 0; }
.util-r { justify-content: flex-end; margin-left: auto; }
.util-r .strong { max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.util-name { color: #fff; font-weight: 700; padding-left: 12px; position: relative; }
.util-name::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; background: var(--red-b); }
.util .strong { color: #fff; font-weight: 700; }
.cnt { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; background: var(--red-b); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }

.head { background: #fff; border-bottom: 1px solid var(--line); }
.head .in { max-width: var(--w); margin: 0 auto; padding: 0 16px; height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.brand-t { display: flex; flex-direction: column; line-height: 1.2; }
.brand-t b { font-size: 23px; letter-spacing: -0.5px; }
.brand-t i { font-style: normal; font-size: 12px; color: var(--mute); margin-top: 2px; }
.search { display: flex; border: 2px solid var(--blue); background: #fff; flex: 0 1 460px; }
.search select { border: 0; border-right: 1px solid var(--line); background: var(--blue-ll); padding: 0 6px; width: 96px; height: 36px; }
.search input { border: 0; flex: 1; min-width: 0; padding: 0 10px; height: 36px; background: #fff; }
.search input:focus, .search select:focus { outline: 0; }
.search:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search .btn { border: 0; height: 36px; line-height: 36px; }
.railbtn { display: none; }

.nav { background: #fff; border-bottom: 2px solid var(--blue); }
.nav .in { max-width: var(--w); margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; }
.nav a { padding: 11px 16px 9px; font-weight: 700; color: var(--ink); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.nav a:hover { background: var(--blue-ll); text-decoration: none; }
.nav a.on { color: var(--blue); border-bottom-color: var(--blue); }

.strip { background: var(--blue-l); border-bottom: 1px solid #c3d2ee; }
.strip[hidden] { display: none; }
.strip .in { max-width: var(--w); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.strip .dot { width: 9px; height: 9px; background: var(--red-b); flex: none; }
.strip b { color: var(--blue-d); }
.strip-t { flex: 1; min-width: 200px; }
.strip-go { background: var(--blue); color: #fff; padding: 3px 12px; font-weight: 700; }
.strip-go:hover { background: var(--blue-d); text-decoration: none; }
.strip-more { font-size: 12px; }

.wrap { max-width: var(--w); margin: 16px auto 0; padding: 0 16px; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 16px; align-items: start; }
.rail { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue); position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow-y: auto; }
.rail-t { margin: 0; padding: 10px 12px 8px; font-size: 15px; }
.rail-g { padding: 5px 12px; font-size: 11px; color: var(--mute); background: var(--blue-ll); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li a { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px 7px 14px; color: var(--ink); border-left: 3px solid transparent; }
.rail li a:hover { background: var(--blue-ll); text-decoration: none; }
.rail li a.on { background: var(--blue-l); border-left-color: var(--blue); font-weight: 700; color: var(--blue-d); }
.newdot { width: 7px; height: 7px; background: var(--red-b); flex: none; }
#main { min-width: 0; min-height: 360px; }
#main.loading { opacity: 0.6; }
#main.loading::after { content: ""; position: fixed; left: 0; top: 0; width: 100%; height: 3px; background: var(--blue); transform-origin: left; animation: load 1.1s ease-in-out infinite; z-index: 450; }
@keyframes load { 0% { transform: scaleX(0.04); } 70% { transform: scaleX(0.82); } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #main.loading::after { animation: none; transform: scaleX(0.4); } .flash { animation: none !important; } }

.box { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue); margin: 0 0 16px; padding-bottom: 6px; }
.box .form, .box p, .box .btn-row, .box h3 { margin-left: 16px; margin-right: 16px; }
.box.prose p, .box.prose ul { line-height: 1.7; }
.box.prose ul { padding-left: 38px; margin-right: 16px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 16px 8px; border-bottom: 1px solid var(--line2); margin-bottom: 8px; }
.sec-head h2 { margin: 0; font-size: 15px; }
.sec-head .more { font-size: 12px; }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li { display: flex; gap: 8px; align-items: baseline; padding: 6px 16px; border-bottom: 1px dotted var(--line2); }
.mini li:last-child { border-bottom: 0; }
.mini .mt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.mini .mt:hover { color: var(--blue); }
.mini .md { flex: none; color: var(--mute); font-size: 12px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bname { flex: none; font-size: 11px; color: var(--blue-d); background: var(--blue-l); padding: 0 6px; margin-right: 6px; line-height: 18px; display: inline-block; }
.empty { padding: 28px 16px; text-align: center; color: var(--mute); }
.counts { text-align: right; color: var(--mute); font-size: 12px; margin: 0; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.home-grid .col { min-width: 0; }
.gov { list-style: none; margin: 0; padding: 0; }
.gov li { display: flex; gap: 8px; align-items: baseline; padding: 7px 16px; border-bottom: 1px dotted var(--line2); flex-wrap: wrap; }
.gov li:last-child { border-bottom: 0; }
.gov .mt { flex: 1; min-width: 120px; font-weight: 600; }
.gov .md { color: var(--mute); font-size: 12px; width: 100%; }
.st { font-size: 11px; font-weight: 700; padding: 0 6px; line-height: 18px; background: #6b7686; color: #fff; }
.st-open { background: var(--red-b); }
.st-registration { background: var(--blue); }
.st-published { background: #2b7a50; }
.notice-line { display: flex; gap: 10px; align-items: baseline; background: var(--warn-bg); border: 1px solid #ecd38a; border-left: 4px solid var(--red-b); padding: 9px 14px; margin-bottom: 14px; color: var(--warn); }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); padding: 14px 18px; margin-bottom: 16px; flex-wrap: wrap; }
.welcome p { margin: 2px 0 0; color: var(--mute); }
.welcome-act { display: flex; gap: 8px; }

.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue); padding: 14px 18px; flex-wrap: wrap; }
.board-head h1 { margin: 0; font-size: 21px; display: flex; align-items: center; gap: 8px; }
.board-head .descr { margin: 3px 0 0; color: var(--mute); }
.bh-r .hint { font-size: 12px; color: var(--mute); }
.rules { background: #fff; border: 1px solid var(--line); border-top: 0; padding: 8px 18px; }
.rules summary { cursor: pointer; font-weight: 700; color: var(--blue-d); }
.rules p { margin: 6px 0 4px; white-space: pre-wrap; }
.tabs { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-top: 0; flex-wrap: wrap; }
.tabs a { padding: 9px 18px 7px; font-weight: 700; color: var(--mute); border-bottom: 3px solid transparent; }
.tabs a:hover { background: var(--blue-ll); text-decoration: none; }
.tabs a.on { color: var(--blue); border-bottom-color: var(--blue); }
.tabs-info { margin-left: auto; padding-right: 16px; font-size: 12px; color: var(--mute); }
.tabs select { margin: 6px 10px; height: 30px; border: 1px solid #aeb7c4; padding: 0 6px; background: #fff; }
.tabs.sub { margin-bottom: 12px; border-top: 1px solid var(--line); }
.heads { background: #fff; border: 1px solid var(--line); border-top: 0; padding: 6px 12px; }
.heads a { display: inline-block; padding: 1px 11px; border: 1px solid var(--line); margin: 3px 4px 3px 0; color: var(--ink); background: #fff; }
.heads a:hover { background: var(--blue-ll); text-decoration: none; }
.heads a.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink); margin-top: 0; }
table.list th { background: var(--blue-ll); color: var(--mute); font-size: 12px; font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.list td { padding: 8px 6px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.list tbody tr:hover { background: #f8fafd; }
table.list .c-no { width: 62px; text-align: center; color: var(--mute); font-size: 13px; }
table.list .c-ti { text-align: left; word-break: break-word; }
table.list th.c-ti { text-align: center; }
table.list .c-wr { width: 150px; }
table.list .c-dt { width: 70px; text-align: center; color: var(--mute); font-size: 12px; white-space: nowrap; }
table.list .c-vw, table.list .c-up { width: 56px; text-align: center; color: var(--mute); font-size: 12px; }
table.list .c-ti > a { color: var(--ink); }
table.list .c-ti > a:visited { color: #7b8596; }
table.list .c-ti > a:hover { color: var(--blue); }
table.list tr.notice { background: #f1f6ff; }
table.list tr.notice .c-ti > a { font-weight: 700; }
table.list tr.blocked .c-ti > a { color: var(--mute); font-style: italic; }
table.list tr.none td { text-align: center; padding: 36px 8px; color: var(--mute); }
.lab { display: none; font-style: normal; }
.head-t { color: var(--blue-d); font-size: 12px; margin-right: 6px; }
.head-t::before { content: "["; }
.head-t::after { content: "]"; }
.ncom { color: var(--red); font-weight: 700; font-size: 12px; margin-left: 5px; }
.ico-img { color: var(--mute); font-size: 11px; margin-left: 5px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; line-height: 18px; margin-left: 4px; background: #6b7686; color: #fff; vertical-align: 1px; }
.tag.notice { background: var(--blue); margin-left: 0; margin-right: 4px; }
.tag.hot { background: var(--red-b); }
.tag.staff { background: var(--red); margin-left: 0; margin-right: 2px; }
.tag.lock { background: #444; }
.who { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.nick { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.nick:hover { color: var(--blue); }
.nick.guest { font-weight: 400; }
.lb { color: var(--mute); font-size: 11px; }
.br { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.br-band { background: #2a9d5c; }
.br-talk { background: #b99100; }
.br-disc { background: #5560c4; }
.br-cafe { background: #d2602a; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 16px 0; }
.pg { min-width: 34px; padding: 5px 10px; text-align: center; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pg:hover { background: var(--blue-ll); text-decoration: none; }
.pg.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.boardsearch { display: flex; gap: 6px; justify-content: center; margin: 4px 0 16px; }
.boardsearch select { width: 110px; height: 34px; border: 1px solid #aeb7c4; background: #fff; }
.boardsearch input { width: 260px; max-width: 100%; height: 34px; border: 1px solid #aeb7c4; padding: 0 9px; }
.search-info { margin: 0 0 8px; font-weight: 700; }

.btn { display: inline-block; height: 34px; line-height: 32px; padding: 0 14px; border: 1px solid #aeb7c4; background: #fff; color: var(--ink); text-align: center; font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--blue-ll); border-color: var(--blue); text-decoration: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn.danger { color: var(--red); border-color: #dca098; }
.btn.danger:hover { background: var(--red-l); border-color: var(--red); }
.btn.danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.staff { border-color: #111; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; margin-bottom: 10px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font-size: 12px; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--red); }
.linkbtn.staff { color: #111; font-weight: 700; }

.form .row { margin-bottom: 14px; }
.form .row.inline { display: flex; align-items: center; gap: 8px; }
.form .row.inline label { margin: 0; font-weight: 400; }
.form label { display: block; margin-bottom: 4px; font-weight: 700; font-size: 13px; }
.form input[type=text], .form input[type=password], .form input[type=search], .form input[type=number], .form select, .form textarea,
.cform textarea, .cform input, .dm-form textarea, .modal input[type=text], .modal input[type=password], .modal select, .modal textarea {
  width: 100%; border: 1px solid #aeb7c4; background: #fff; padding: 0 9px; height: 36px;
}
.form textarea, .cform textarea, .dm-form textarea, .modal textarea { height: auto; padding: 8px 9px; line-height: 1.55; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .cform textarea:focus, .cform input:focus, .dm-form textarea:focus, .modal input:focus, .modal select:focus, .modal textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.hint { font-size: 12px; color: var(--mute); margin-top: 3px; }
.form-err { color: var(--red); min-height: 20px; font-size: 13px; margin: 2px 0 6px; }
.form-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.form-act.left { justify-content: flex-start; margin-bottom: 12px; }
.form-links { text-align: center; margin: 14px 0 0; color: var(--mute); }
.lead { color: var(--mute); margin-top: 0; }
.row-foot { text-align: right; font-size: 12px; color: var(--mute); }
.page { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue); padding: 20px 26px 26px; }
.page.narrow { max-width: 500px; margin: 0 auto; }
.page > h1 { margin: 0 0 14px; font-size: 21px; }
.page > h1 small { font-size: 14px; color: var(--mute); font-weight: 400; }
.page.account, .page.profile, .page.staff-page { background: none; border: 0; padding: 0; }
.page.account > h1, .page.profile > h1, .page.staff-page > h1 { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue); padding: 14px 18px; margin: 0; }
.write .form.wide { max-width: 860px; }
.guestbox { background: var(--blue-ll); border: 1px solid var(--line2); padding: 10px 14px 4px; margin-bottom: 14px; }
.guestbox p { margin: 0 0 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uploader { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tray { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { width: 148px; border: 1px solid var(--line); background: #fff; position: relative; }
.thumb img { display: block; width: 100%; height: 108px; object-fit: cover; }
.thumb-act { display: flex; justify-content: space-between; padding: 5px 7px; }
.thumb-n { position: absolute; left: 0; top: 0; background: var(--blue); color: #fff; font-size: 11px; padding: 0 6px; }
.errbox { background: #fff; border: 1px solid #e4b3ab; border-left: 4px solid var(--red-b); padding: 16px 18px; }
.errbox p { margin: 4px 0 10px; }
.staff-banner { background: var(--warn-bg); border: 1px solid #ecd38a; border-left: 4px solid #111; padding: 9px 14px; margin-bottom: 12px; color: var(--warn); }
.keybox { font-size: 24px; letter-spacing: 3px; padding: 18px; text-align: center; border: 2px solid var(--ink); background: var(--blue-ll); margin: 14px 0; font-weight: 700; word-break: break-all; font-family: Consolas, Menlo, monospace; }
.kv { border-collapse: collapse; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); }
.kv th { text-align: left; padding: 7px 18px 7px 14px; background: var(--blue-ll); font-weight: 600; border-bottom: 1px solid var(--line2); }
.kv td { padding: 7px 18px 7px 14px; border-bottom: 1px solid var(--line2); }
.runout { background: #111; color: #d7e0ee; padding: 10px 14px; overflow: auto; max-height: 280px; font-size: 12px; margin: 8px 0 0; }
.runout:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--blue-l); padding: 1px 4px 1px 8px; margin: 0 4px 4px 0; font-size: 12px; }
.chip .x { background: none; border: 0; color: var(--red); font-weight: 700; padding: 0 4px; font-size: 14px; line-height: 1; }
.plain { list-style: none; padding: 0 16px; margin: 6px 0; }
.plain li { padding: 5px 0; border-bottom: 1px dotted var(--line2); }
.danger-zone { border-top-color: var(--red); }
.row-act { display: flex; flex-wrap: wrap; gap: 4px; }
.prof-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue); padding: 16px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.prof-head h1 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 8px; }
.prof-head p { margin: 4px 0 0; }
.prof-r { display: flex; gap: 8px; flex-wrap: wrap; }
.gone-box { padding: 40px 20px; text-align: center; }
.gone-box h1 { margin: 0 0 8px; }

.post { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue); }
.post-nav { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.post-nav.bottom { border-top: 1px solid var(--line2); border-bottom: 0; }
.post-head { padding: 16px 18px 0; }
.post-head h1 { margin: 0 0 12px; font-size: 21px; word-break: break-word; }
.post-head .tag { font-size: 12px; }
dl.meta { display: flex; flex-wrap: wrap; margin: 0; border: 1px solid var(--line2); background: var(--blue-ll); }
dl.meta > div { display: flex; gap: 8px; align-items: center; padding: 6px 14px; border-right: 1px solid var(--line2); }
dl.meta dt { color: var(--mute); font-size: 12px; }
dl.meta dd { margin: 0; }
.body { padding: 20px 18px; min-height: 120px; font-size: 15px; line-height: 1.8; word-break: break-word; overflow-wrap: anywhere; }
.txt { white-space: pre-wrap; }
.body .ext, .cmt-b .ext { word-break: break-all; text-decoration: underline; }
.fig { margin: 12px 0; }
.fig img { max-width: 100%; height: auto; border: 1px solid var(--line2); display: block; }
.votes { display: flex; justify-content: center; gap: 10px; padding: 12px 14px 18px; }
.vote { min-width: 124px; height: 46px; line-height: 44px; font-size: 15px; }
.vote b { margin-left: 4px; font-size: 18px; }
.vote.up.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.vote.down.on { background: #3a4150; color: #fff; border-color: #3a4150; }
.post-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line2); background: var(--blue-ll); }
.staffbar { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; padding-left: 10px; border-left: 4px solid #111; }
.comments { border-top: 2px solid var(--ink); }
.comments > h2 { margin: 0; padding: 12px 18px 8px; font-size: 15px; }
.comments > p.muted { padding: 0 18px 10px; margin: 0; }
.cmts { list-style: none; margin: 0; padding: 0; }
.cmt { padding: 10px 18px; border-top: 1px solid var(--line2); }
.cmt.reply { margin-left: 26px; border-left: 3px solid var(--blue-l); background: #fafbfd; padding-left: 14px; }
.cmt.gone .cmt-b { font-style: italic; }
.cmt-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.cmt-t { color: var(--mute); font-size: 12px; }
.cmt-act { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.cmt-b { margin-top: 4px; word-break: break-word; overflow-wrap: anywhere; line-height: 1.65; }
.cmt-reply-form { list-style: none; margin-left: 26px; background: #fafbfd; border-left: 3px solid var(--blue); }
.cform { padding: 14px 18px 16px; border-top: 1px solid var(--line2); background: var(--blue-ll); }
.cform.reply { padding: 10px 14px; background: transparent; border: 0; }
.cform-guest { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.cform-guest input { width: 150px; height: 34px; }
.cform textarea { width: 100%; display: block; }
.cform-act { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 6px; }
.cnt-left { margin-right: auto; color: var(--mute); font-size: 12px; }
.cform-note { padding: 14px 18px; background: var(--blue-ll); border-top: 1px solid var(--line2); color: var(--mute); }
.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0% { background: #fff3b0; } 100% { background: transparent; } }

.dm { display: grid; grid-template-columns: 300px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue); min-height: 460px; }
.dm-side { border-right: 1px solid var(--line); min-width: 0; }
.dm-side h2 { margin: 0; padding: 12px 14px 8px; font-size: 15px; }
.dm-side > input { display: block; width: calc(100% - 28px); margin: 0 14px 8px; height: 34px; border: 1px solid #aeb7c4; padding: 0 9px; }
.dm-found { list-style: none; margin: 0 14px 6px; padding: 0; }
.dm-found li { padding: 4px 0; }
.dm-threads { list-style: none; margin: 0; padding: 0; }
.dm-threads li a { display: block; padding: 9px 14px; border-top: 1px solid var(--line2); color: var(--ink); }
.dm-threads li a:hover { background: var(--blue-ll); text-decoration: none; }
.dm-threads li.on a { background: var(--blue-l); border-left: 3px solid var(--blue); padding-left: 11px; }
.dm-threads li.unread .dm-n { font-weight: 700; }
.dm-n { display: block; font-weight: 600; }
.dm-s { display: block; color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-t { display: block; color: var(--mute); font-size: 11px; }
.dm-conv { display: flex; flex-direction: column; min-width: 0; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.dm-head h2 { margin: 0; font-size: 16px; }
.dm-head .back { display: none; }
.dm-msgs { flex: 1; overflow: auto; max-height: 58vh; min-height: 260px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dm-m { max-width: 80%; }
.dm-m.mine { align-self: flex-end; }
.dm-b { padding: 8px 11px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; border: 1px solid var(--line); background: #fff; }
.dm-m.mine .dm-b { background: var(--blue); border-color: var(--blue); color: #fff; }
.dm-m.mine .dm-b a { color: #fff; text-decoration: underline; }
.dm-d { font-size: 11px; color: var(--mute); margin-top: 2px; }
.dm-m.mine .dm-d { text-align: right; }
.dm-form { padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.dm-form textarea { width: 100%; display: block; }
.dm-tools { padding: 0 14px 6px; text-align: right; }
.more-btn { align-self: center; height: 28px; line-height: 26px; font-size: 12px; }

.notifs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.notifs li a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 8px; border-bottom: 1px solid var(--line2); color: var(--ink); align-items: baseline; }
.notifs li a:hover { background: var(--blue-ll); text-decoration: none; }
.notifs li.new a { background: #f4f8ff; font-weight: 600; }
.kind { font-size: 11px; font-weight: 700; padding: 0 6px; line-height: 18px; background: var(--blue); color: #fff; text-align: center; }
.kind.k-r { background: #2b7a50; }
.kind.k-m { background: var(--red); }
.ns { grid-column: 2; color: var(--mute); font-size: 12px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd { grid-column: 3; grid-row: 1; font-size: 12px; color: var(--mute); font-weight: 400; white-space: nowrap; }

.foot { border-top: 2px solid var(--blue); background: #fff; margin-top: 28px; }
.foot .in { max-width: var(--w); margin: 0 auto; padding: 16px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.foot-l { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.foot-l b { color: var(--ink); }
.foot-r a { margin-left: 16px; }
.build { font-family: Consolas, Menlo, monospace; font-size: 11px; }

.modal-back { position: fixed; inset: 0; background: rgba(8, 22, 52, 0.58); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 16px; }
.modal { background: #fff; border: 1px solid #111; border-top: 4px solid var(--blue); width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; padding: 18px 20px 20px; }
.modal h3 { margin: 0 0 8px; font-size: 17px; }
.modal-text { margin: 0 0 12px; color: var(--mute); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.modal .row { margin-bottom: 12px; }
.modal label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.radio { display: flex; align-items: center; gap: 6px; font-weight: 400 !important; margin: 0 !important; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 400; display: flex; flex-direction: column; gap: 6px; align-items: center; width: calc(100% - 32px); max-width: 480px; pointer-events: none; }
.toast { background: #1c2330; color: #fff; padding: 10px 14px; width: 100%; border-left: 5px solid var(--blue); pointer-events: auto; }
.toast.err { border-left-color: var(--red-b); }
.toast.warn { border-left-color: #e6a700; }

@media (max-width: 920px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; position: static; max-height: none; }
  .rail.open { display: block; max-height: 60vh; overflow-y: auto; }
  .railbtn { display: inline-block; height: 34px; padding: 0 12px; border: 1px solid #aeb7c4; background: #fff; font-weight: 600; }
  .head .in { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .search { flex: 1 1 100%; order: 3; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .util-l a { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  input, select, textarea { font-size: 16px; }
  .nav .in { padding: 0 6px; }
  .nav a { padding: 10px 10px 8px; }
  .util .in { padding: 0 10px; }
  .util-r { gap: 10px; }
  .brand-t b { font-size: 20px; }
  .wrap { padding: 0 10px; margin-top: 10px; }
  .page { padding: 16px 14px 20px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  table.list thead { display: none; }
  table.list, table.list tbody, table.list tr, table.list td { display: block; }
  table.list { border-top: 2px solid var(--ink); }
  table.list tr { padding: 9px 12px; border-bottom: 1px solid var(--line2); }
  table.list td { padding: 0; border: 0; text-align: left; width: auto; }
  table.list .c-no { display: none; }
  table.list tr.notice .c-no { display: inline-block; margin-right: 6px; }
  table.list .c-ti { font-size: 15px; margin-bottom: 3px; }
  table.list .c-wr, table.list .c-dt, table.list .c-vw, table.list .c-up { display: inline-block; font-size: 12px; margin-right: 12px; color: var(--mute); width: auto; }
  .lab { display: inline; }
  .dm { grid-template-columns: minmax(0, 1fr); }
  .dm.has-conv .dm-side { display: none; }
  .dm:not(.has-conv) .dm-conv { display: none; }
  .dm-head .back { display: inline-block; }
  .dm-side { border-right: 0; }
  .post-head h1 { font-size: 19px; }
  dl.meta > div { padding: 5px 10px; }
  .cmt { padding: 10px 12px; }
  .cmt.reply { margin-left: 12px; }
  .cmt-reply-form { margin-left: 12px; }
  .boardsearch { flex-wrap: wrap; }
  .radios { grid-template-columns: minmax(0, 1fr); }
  .staffbar { margin-left: 0; }
  .notifs li a { grid-template-columns: 44px minmax(0, 1fr); }
  .nd { grid-column: 2; grid-row: auto; }
}
.tabs.flat { border-top: 1px solid var(--line); margin-top: 0; }
.mini.boxed { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 4px 0; }
.page.profile > .tabs { margin-top: 0; }
@media (max-width: 720px) {
  .strip .in { font-size: 13px; padding: 7px 12px; }
  .strip-more { display: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search { min-width: 0; }
.search select { flex: none; }
#main, .rail, .strip, .util, .foot { overflow-wrap: anywhere; }
table.log td { overflow-wrap: anywhere; word-break: break-all; }
#main:focus { outline: 0; }
.cnt, .tag.hot { background: var(--red); }
.br-band { background: #1f7a46; }
.br-talk { background: #8a6d00; }
.br-cafe { background: #b04a1b; }
table.list .c-ti > a:visited { color: #5f6b7d; }
.util a:focus-visible, .util .linkbtn:focus-visible { outline-color: #fff; }
.btn.danger-solid:hover { background: #a01808; border-color: #a01808; color: #fff; }
.hint.stale { margin: 0; padding: 6px 12px 0; }
@media (max-width: 720px) {
  .linkbtn { min-height: 40px; padding: 0 8px; }
  .cmt-act { gap: 0 4px; }
  .util .in { min-height: 40px; }
  .util a, .util .linkbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }
  .pg { min-height: 40px; line-height: 28px; }
  .btn { height: 40px; line-height: 38px; }
  .search .btn { height: 36px; line-height: 36px; }
}
