.nb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.nb-main { min-width: 0; }
.nb-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nb-search { position: relative; flex: 1; min-width: 0; }
.nb-search > .ico { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.nb-search .input { height: 46px; padding: 0 14px 0 42px; font-size: 15px; }
.nb-search .input::-webkit-search-cancel-button { cursor: pointer; }
.nb-bar .btn { height: 46px; flex: none; }
@media (min-width: 961px) { #nb-go-write { display: none; } }
.nb-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.nb-topic { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.nb-topic:hover { border-color: var(--line-2); color: var(--ink); }
.nb-topic i { width: 8px; height: 8px; border-radius: 50%; background: var(--mks-violet); }
.nb-topic[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.nb-topic.t-yellow i { background: var(--mks-yellow); }
.nb-topic.t-pink i { background: var(--mks-pink); }
.nb-topic.t-green i { background: var(--mks-green); }
.nb-topic.t-orange i { background: var(--mks-orange); }
.nb-topic.t-sky i { background: var(--mks-sky); }
.nb-status { margin: -2px 0 12px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.nb-status:empty { display: none; }
.nb-status b { color: var(--ink); font-weight: 700; }
.nb-clear { margin-left: 4px; padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.nb-clear:hover { color: var(--ink); }
.nb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nb-list[aria-busy="true"] > .nb-card { opacity: 0.55; transition: opacity 0.2s; }
.nb-card { position: relative; display: grid; gap: 12px; padding: 18px 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); scroll-margin: calc(var(--head-h) + 20px); transition: border-color 0.15s, box-shadow 0.15s, background-color 0.6s; }
.nb-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.nb-card.is-hit { background: color-mix(in srgb, var(--mk-yellow) 26%, var(--surface)); }
:root[data-theme="dark"] .nb-card.is-hit { background: color-mix(in srgb, var(--mks-yellow) 12%, var(--surface)); }
.nb-c-top { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.nb-av { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 19px; font-weight: 750; color: var(--mark-ink); background: var(--mk-violet); user-select: none; }
.nb-av.t-yellow { background: var(--mk-yellow); }
.nb-av.t-pink { background: var(--mk-pink); }
.nb-av.t-green { background: var(--mk-green); }
.nb-av.t-orange { background: var(--mk-orange); }
.nb-av.t-sky { background: var(--mk-sky); }
.nb-c-id { min-width: 0; }
.nb-c-name { font-size: 17.5px; font-weight: 750; line-height: 1.35; letter-spacing: -0.02em; word-break: keep-all; overflow-wrap: anywhere; }
.nb-c-name a { color: inherit; text-decoration: none; }
.nb-c-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nb-c-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.nb-c-bid { overflow-wrap: anywhere; }
.nb-mine-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.nb-c-menu { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); transition: background-color 0.15s, color 0.15s; }
.nb-c-menu:hover, .nb-c-menu[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.nb-c-menu .ico { width: 22px; height: 22px; }
.nb-menu { position: absolute; top: 58px; right: 14px; z-index: 6; display: grid; min-width: 172px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); transform-origin: top right; animation: pop-in 0.18s var(--ease-out); }
.nb-menu[hidden] { display: none; }
.nb-menu button { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 11px; border: 0; border-radius: var(--radius-s); background: none; font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: left; }
.nb-menu button:hover, .nb-menu button:focus-visible { background: var(--surface-2); outline: none; }
.nb-menu .ico { width: 17px; height: 17px; color: var(--ink-3); }
.nb-menu .is-danger, .nb-menu .is-danger .ico { color: var(--red); }
.nb-c-intro { font-size: 15px; line-height: 1.75; color: var(--ink-2); white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.nb-c-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.nb-tp { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--mark-ink); background: var(--mk-violet); }
.nb-tp.t-yellow { background: var(--mk-yellow); }
.nb-tp.t-pink { background: var(--mk-pink); }
.nb-tp.t-green { background: var(--mk-green); }
.nb-tp.t-orange { background: var(--mk-orange); }
.nb-tp.t-sky { background: var(--mk-sky); }
.nb-c-tags .chip .ico { width: 14px; height: 14px; }
.nb-c-want { font-size: 14px; line-height: 1.65; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.nb-c-want b { margin-right: 6px; font-weight: 700; color: var(--ink); }
.nb-c-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.nb-c-time { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nb-c-time .ico { width: 15px; height: 15px; }
.nb-c-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-c-acts .btn .ico { width: 16px; height: 16px; }
.nb-skel { display: grid; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.nb-skel i { display: block; height: 14px; border-radius: 7px; background: var(--surface-2); animation: nb-pulse 1.2s ease-in-out infinite alternate; }
.nb-skel i:nth-child(1) { width: 42%; height: 20px; }
.nb-skel i:nth-child(2) { width: 94%; }
.nb-skel i:nth-child(3) { width: 72%; }
.nb-skel i:nth-child(4) { width: 34%; }
@keyframes nb-pulse { from { opacity: 1; } to { opacity: 0.45; } }
.nb-empty { display: grid; justify-items: center; gap: 10px; padding: 44px 22px; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-l); }
.nb-empty > .ico { width: 42px; height: 42px; color: var(--mks-violet); }
.nb-empty b { font-size: 17px; letter-spacing: -0.02em; }
.nb-empty p { max-width: 30em; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); word-break: keep-all; text-wrap: balance; }
.nb-empty .btn-row { justify-content: center; margin-top: 4px; }
.nb-empty.is-err > .ico { color: var(--warn); }
.nb-more-row { display: flex; justify-content: center; margin-top: 16px; }
.nb-more-row .btn .ico { width: 17px; height: 17px; }
.nb-side { display: grid; gap: 14px; }
.nb-side .panel + .panel { margin-top: 0; }
.nb-post .panel-h { margin-bottom: 12px; }
.nb-post h2:focus { outline: none; }
.nb-form { display: grid; gap: 14px; }
.nb-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nb-form .input, .nb-form .select, .nb-dlg .input, .nb-dlg .select { padding: 10px 12px; font-size: 15px; }
.nb-form .select, .nb-dlg .select { padding-right: 34px; }
.nb-intro { min-height: 124px; padding: 11px 12px; font-size: 15px; line-height: 1.7; }
.nb-lab-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nb-count { font-size: 12.5px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nb-count.is-over { color: var(--red); font-weight: 700; }
.field .hint.is-ok { color: var(--ok); }
.field .hint.is-bad { color: var(--red); }
.nb-form .is-bad, .nb-dlg .is-bad { border-color: var(--red); }
.nb-agree { align-items: flex-start; line-height: 1.5; }
.nb-agree input { flex: none; margin-top: 1px; }
.nb-agree a { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.nb-ts { min-height: 65px; }
.nb-err { padding: 10px 12px; border-radius: var(--radius-s); background: var(--red-bg); color: var(--red); font-size: 14px; font-weight: 600; line-height: 1.55; word-break: keep-all; }
.nb-submit { width: 100%; }
.nb-public { margin-top: -4px; }
.nb-mine-list { list-style: none; margin: 0 0 10px; padding: 0; }
.nb-mine-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.nb-mine-list li:first-child { padding-top: 0; border-top: 0; }
.nb-mine-list b { overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.nb-mine-list small { grid-column: 1; font-size: 12.5px; color: var(--ink-3); }
.nb-mine-acts { display: flex; grid-row: 1 / span 2; grid-column: 2; gap: 4px; }
.nb-mine-acts button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2); transition: border-color 0.15s, color 0.15s; }
.nb-mine-acts button:hover { border-color: var(--line-2); color: var(--ink); }
.nb-mine-acts .ico { width: 16px; height: 16px; }
.nb-dlg { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); overflow: auto; }
.nb-dlg-wide { width: min(560px, calc(100vw - 32px)); }
.nb-dlg::backdrop { background: rgb(10 10 8 / 0.45); }
.nb-dlg[open] { animation: pop-in 0.25s var(--ease-out); }
.nb-dlg-in { display: grid; gap: 14px; padding: 22px; }
.nb-dlg h2 { font-size: 19px; letter-spacing: -0.02em; }
.nb-dlg-sub { margin-top: -8px; font-size: 14px; line-height: 1.6; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.nb-dlg-sub:empty { display: none; }
.nb-dlg-sub .ln { display: block; text-wrap: balance; }
.nb-dlg-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.nb-dlg-acts .btn .ico { width: 17px; height: 17px; }
.nb-dlg.is-danger #nb-pw-go { background: var(--red); border-color: var(--red); color: #fff; }
.nb-reasons { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.nb-rq-text { min-height: 132px; padding: 11px 12px; font-size: 15px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
.nb-skel i, .nb-menu, .nb-dlg[open] { animation: none; }
.nb-card { transition: none; }
}
@media (max-width: 960px) {
.nb-wrap { grid-template-columns: minmax(0, 1fr); }
.nb-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
.nb-topics { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 14px; padding: 0 18px 4px; scrollbar-width: none; }
.nb-topics::-webkit-scrollbar { display: none; }
.nb-bar { flex-wrap: wrap; }
.nb-bar .btn { width: 100%; }
}
@media (max-width: 560px) {
.nb-card { padding: 16px 14px 14px; }
.nb-c-top { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
.nb-av { width: 40px; height: 40px; font-size: 17px; }
.nb-c-acts { width: 100%; }
.nb-c-acts .btn { flex: 1; }
.nb-two { grid-template-columns: minmax(0, 1fr); }
.nb-dlg-in { padding: 18px 16px; }
.nb-dlg-acts .btn { flex: 1; }
}
