/* 연구소 전용 지면과 공통 토큰을 연결합니다. */
:root {
    --white: var(--k-bg-white);
    --ink: var(--ref-ink);
    --muted: var(--k-text-gray);
    --line: var(--k-color-gray-ddd);
    --paper: var(--ref-bg-doc);
    --red: var(--k-color-red-600);
    --red-tint: var(--ref-accent-orange-bg-soft);
    --overlay: var(--k-overlay-dark-50);
    --font: "Pretendard", Arial, "Malgun Gothic", sans-serif;
    --mono: "Courier New", "Malgun Gothic", monospace;
    --page: 1280px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
/* 내용이 짧은 화면에서도 푸터가 화면 하단에 놓이도록 지면을 구성합니다. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: visible;
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 16px/1.65 var(--font);
    word-break: keep-all;
}
body:has(dialog[open]) {
    overflow: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
button, input, textarea, select {
    font: inherit;
    color: inherit;
}
button, a, input, select, textarea {
    touch-action: manipulation;
}
button {
    cursor: pointer;
    background: none;
    border: 0;
}
button:disabled {
    cursor: default;
    opacity: .5;
}
button, a {
    -webkit-tap-highlight-color: var(--line);
}
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}
/* 입력·선택 항목 활성화 시 추가되는 사각 포커스 테두리를 표시하지 않습니다. */
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
}
h1, h2, h3, p {
    margin: 0;
}
h1, h2, h3 {
    line-height: 1.3;
    letter-spacing: -.05em;
    text-wrap: balance;
}
p {
    text-wrap: pretty;
}
svg {
    display: block;
    max-width: 100%;
}
fieldset {
    padding: 0;
    border: 0;
    margin: 0;
    min-width: 0;
}
legend {
    margin-bottom: 18px;
    font-weight: 700;
}
[hidden] {
    display: none !important;
}
.skip {
    position: fixed;
    top: -100px;
    left: 16px;
    background: var(--ink);
    color: var(--white);
    padding: 12px;
    z-index: 100;
}
.skip:focus {
    top: 12px;
}
.demo-strip {
    background: var(--ink);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    padding: 8px 48px;
    font: 10px/1.8 var(--mono);
    letter-spacing: .09em;
}
.demo-strip button {
    font: 11px/1.6 var(--font);
    color: var(--white);
    padding: 0;
    letter-spacing: 0;
}
.site-header {
    max-width: 1472px;
    margin: auto;
    padding: 27px 48px;
    display: flex;
    align-items: center;
    gap: 44px;
    border-bottom: 1px solid var(--ink);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.06em;
    font-weight: 800;
    white-space: nowrap;
}
.brand small {
    display: block;
    margin-top: 6px;
    font: 9px/1.2 var(--mono);
    letter-spacing: .14em;
}
.brand-symbol {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    font-size: 25px;
}
.site-header nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
}
.site-header nav a {
    position: relative;
    padding: 9px 0;
}
.site-header nav a[aria-current]::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
}
.header-propose {
    border: 1px solid var(--ink);
    padding: 9px 16px;
    font-size: 13px;
    white-space: nowrap;
}
.header-propose span {
    margin-left: 15px;
}
main {
    flex: 1;
    width: 100%;
    max-width: calc(var(--page) + 96px);
    margin: auto;
    padding: 0 48px 90px;
}
/* 소개는 짧게 묶고 실제 질문을 첫 화면에서 확인할 수 있게 배치합니다. */
.hero-intro {
    padding: 32px 0;
    border-bottom: 1px solid var(--ink);
}
.hero-intro h1 {
    font-size: clamp(40px, 4vw, 56px);
    line-height: 1.13;
    letter-spacing: -.04em;
    font-weight: 800;
}
.hero-intro p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}
.intro-note {
    font: 10px var(--mono);
    letter-spacing: .08em;
    margin-top: 18px;
    display: block;
    color: var(--muted);
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--ink);
}
.feature {
    min-width: 0;
    padding: 30px 32px 30px 0;
}
.feature + .feature {
    border-left: 1px solid var(--line);
    padding-left: 32px;
    padding-right: 0;
}
.eyebrow {
    font: 12px/1.5 var(--font);
    color: var(--muted);
}
.meta {
    color: var(--muted);
    font-size: 12px;
}
.label-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.live {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
}
.live::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--red);
    margin-right: 6px;
    vertical-align: middle;
}
.feature h2 {
    font-size: clamp(24px, 2.2vw, 30px);
    margin: 18px 0 13px;
    line-height: 1.35;
}
.feature p {
    color: var(--muted);
    font-size: 13px;
}
.feature-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}
.text-link {
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    gap: 20px;
    align-items: center;
    min-height: 40px;
}
.text-link:hover, a:hover h2, a:hover h3, .topic-row:hover h3 {
    color: var(--red);
}
.btn,
body:has(#uselessMain) .custom-alert-footer .btn-freemode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}
.btn.primary,
body:has(#uselessMain) .custom-alert-footer .btn-freemode.is-primary {
    background: var(--ink);
    color: var(--white);
}
.btn:hover {
    border-color: var(--red);
}
.btn.primary:hover {
    background: var(--red);
}
.btn.small {
    min-height: 36px;
    padding: 7px 12px;
    gap: 14px;
    font-size: 12px;
}
.btn.red {
    color: var(--red);
    border-color: var(--red);
}
.btn.wide {
    width: 100%;
}
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink);
    margin-top: 36px;
}
.section-heading h2 {
    font-size: 23px;
}
.topic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 28px;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.topic-row h3 {
    font-size: 21px;
    margin: 4px 0 8px;
    overflow-wrap: anywhere;
}
.topic-row .row-stats {
    text-align: right;
    font-size: 13px;
}
.topic-row .row-stats small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}
.row-arrow {
    font-size: 24px;
    text-align: right;
}
.manifesto {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    margin-top: 32px;
    border-top: 1px solid var(--line);
}
.manifesto p {
    font-size: 13px;
    color: var(--muted);
}
.site-footer {
    width: 100%;
    max-width: 1472px;
    margin: 0 auto;
    padding: 36px 48px 28px;
    border-top: 1px solid var(--ink);
}
.footer-top, .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-brand {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.05em;
}
.footer-top > a:last-child {
    font-size: 13px;
}
.footer-bottom {
    margin-top: 40px;
    font: 10px/1.6 var(--mono);
    color: var(--muted);
}
.footer-bottom div {
    display: flex;
    gap: 20px;
    font: 11px/1.6 var(--font);
}
.footer-bottom button {
    padding: 0;
    color: inherit;
}
.fine {
    font-size: 11px;
    color: var(--muted);
    margin-top: 14px;
}
.page-head {
    padding: 49px 0 34px;
    border-bottom: 3px solid var(--ink);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}
.page-head h1 {
    font-size: clamp(36px, 4.5vw, 62px);
    margin: 13px 0 18px;
}
.page-head p {
    font-size: 14px;
    color: var(--muted);
    max-width: 640px;
}
.page-emblem {
    font: 72px/1 var(--mono);
    letter-spacing: -.1em;
    color: var(--red);
    border: 2px solid var(--red);
    padding: 10px 18px;
    transform: rotate(-7deg);
    margin-right: 20px;
}
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.tabs button {
    min-height: 40px;
    padding: 7px 15px;
    border: 1px solid var(--line);
    font-size: 12px;
}
.tabs button[aria-pressed="true"],
.tabs a[aria-current="page"] {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.toolbar .search {
    margin-left: auto;
}
.search {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--ink);
}
.search input {
    width: 180px;
    min-height: 40px;
    border: 0;
    background: none;
    font-size: 13px;
    padding: 5px;
}
.search button {
    font-size: 13px;
    min-width: 40px;
}
.sort {
    min-height: 40px;
    border: 1px solid var(--line);
    padding: 4px 8px;
    font-size: 12px;
    background: var(--white);
}
.list-count {
    font-size: 12px;
    margin: 18px 0 0;
    color: var(--muted);
}
.empty {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.empty p {
    color: var(--muted);
    margin: 12px 0 24px;
    font-size: 14px;
}
.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    padding-top: 28px;
}
.detail-head {
    padding: 30px 0 35px;
    border-bottom: 3px solid var(--ink);
}
.detail-head h1 {
    max-width: 980px;
    font-size: clamp(30px, 4.2vw, 58px);
    margin: 15px 0 24px;
    overflow-wrap: anywhere;
}
.detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    align-items: center;
}
.detail-meta button {
    margin-left: auto;
}
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
    padding-top: 36px;
}
.detail-copy {
    min-width: 0;
}
.copy-section {
    margin-bottom: 32px;
}
/* 본문 제목과 안건 신고를 같은 행의 양끝에 배치합니다. */
.copy-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}
.copy-section-head .text-link {
    flex-shrink: 0;
}
.copy-section h2 {
    font-size: 21px;
}
.copy-section p {
    font-size: 15px;
    line-height: 1.95;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.facts {
    padding: 23px;
    border-left: 2px solid var(--ink);
    background: var(--paper);
    margin: 24px 0;
    font-size: 14px;
}
.facts strong {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
}
.facts ul {
    padding-left: 20px;
    margin: 0;
}
.record {
    border-top: 1px solid var(--ink);
    padding-top: 20px;
}
.record h2 {
    font-size: 22px;
    margin: 8px 0 14px;
}
.record-sub {
    color: var(--muted);
    font-size: 12px;
    margin: 12px 0 22px;
}
.vote-option {
    display: flex;
    gap: 12px;
    border: 1px solid var(--line);
    padding: 14px;
    margin-bottom: 10px;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}
.vote-option:has(input:checked) {
    border-color: var(--red);
    background: var(--red-tint);
    color: var(--red);
}
input[type="radio"], input[type="checkbox"] {
    accent-color: var(--red);
    width: 17px;
    height: 17px;
    margin: 0;
    flex-shrink: 0;
}
.vote-option small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}
.vote-form .btn {
    margin-top: 10px;
}
.result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 18px;
    font-size: 12px;
}
.result-head strong {
    font-size: 23px;
    letter-spacing: -.05em;
}
.result-row {
    margin-bottom: 17px;
}
.result-label {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
    font-size: 12px;
    margin-bottom: 6px;
}
.result-label span {
    overflow-wrap: anywhere;
}
.result-label strong {
    font: 700 17px var(--mono);
    white-space: nowrap;
}
.bar {
    height: 8px;
    background: var(--paper);
}
.bar > span {
    display: block;
    height: 100%;
    background: var(--ink);
    width: var(--value);
    transition: width .4s ease;
}
.result-row.mine .bar > span {
    background: var(--red);
}
.result-row.mine .result-label {
    color: var(--red);
}
.votes-small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}
.result-note {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}
.stamp {
    display: inline-block;
    border: 2px solid var(--red);
    color: var(--red);
    padding: 8px 14px;
    font-size: 24px;
    font-weight: 800;
    transform: rotate(-6deg);
    margin: 16px 0;
}
.record-info {
    margin-top: 30px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}
.record-info div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.record-info dt {
    color: var(--muted);
}
.record-info dd {
    margin: 0;
}
.discussion {
    margin-top: 58px;
    border-top: 3px solid var(--ink);
    padding-top: 26px;
}
.discussion .section-heading {
    margin: 0;
}
.discussion-description {
    color: var(--muted);
    font-size: 13px;
    margin: 16px 0 24px;
}
.comment-form {
    background: var(--paper);
    padding: 22px;
    margin-bottom: 26px;
}
/* 주장 라벨 바로 오른쪽에 입장 선택 상자를 같은 줄로 배치합니다. */
.form-line {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 14px;
}
.form-line label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
}
.form-line select {
    max-width: 55%;
    min-width: 0;
    font-size: 12px;
    padding: 6px;
    border: 1px solid var(--line);
    background: var(--white);
}
textarea {
    width: 100%;
    min-height: 105px;
    padding: 13px;
    background: var(--white);
    border: 1px solid var(--line);
    resize: vertical;
    font-size: 14px;
    line-height: 1.7;
}
.form-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}
.form-bottom small {
    font-size: 11px;
    color: var(--muted);
}
.thread {
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
}
.comment {
    padding: 10px 0;
    min-width: 0;
}
.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 10px;
}
.comment-meta strong {
    color: var(--ink);
    font-size: 12px;
}
.stance {
    color: var(--red);
}
.comment p {
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.comment-actions {
    display: flex;
    gap: 17px;
    margin-top: 10px;
}
.comment-actions button {
    padding: 5px 0;
    min-height: 34px;
    font-size: 11px;
    color: var(--muted);
}
.comment-actions button[aria-pressed="true"] {
    color: var(--red);
    font-weight: 700;
}
.replies {
    margin: 14px 0 0 24px;
    padding: 8px 0 0 20px;
    border-left: 1px solid var(--line);
}
.reply-target {
    font-size: 11px;
    color: var(--red);
    margin-bottom: 8px;
}
.form-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 70px;
    padding-top: 36px;
}
.form-aside {
    font-size: 13px;
}
.form-aside h2 {
    font-size: 19px;
    margin-bottom: 16px;
}
.steps {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}
.steps li {
    display: flex;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.steps span {
    font: 12px var(--mono);
    color: var(--red);
    padding-top: 4px;
}
.steps small {
    color: var(--muted);
    font-size: 11px;
    display: block;
    margin-top: 4px;
}
.field {
    margin-bottom: 26px;
}
.field > label, .field > legend {
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: var(--k-space-form-label);
}
.field input:not([type="radio"]):not([type="checkbox"]), .field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 12px;
    min-height: 48px;
    background: var(--white);
    font-size: 14px;
}
.field .help {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 9px;
}
.field .type-choice {
    display: flex;
    gap: 12px;
}
.type-choice label {
    flex: 1;
}
.option-input {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}
.option-input span {
    font: 12px var(--mono);
    width: 20px;
}
.check-line {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 12px;
}
.check-line input {
    margin-top: 3px;
}
.notice {
    padding: 18px 20px;
    background: var(--paper);
    border-left: 2px solid var(--ink);
    font-size: 12px;
    line-height: 1.85;
    margin: 24px 0;
}
.notice strong {
    display: block;
    margin-bottom: 5px;
}
.submission {
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}
.submission-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}
.submission h3 {
    font-size: 20px;
    margin: 10px 0;
    overflow-wrap: anywhere;
}
.submission p {
    font-size: 13px;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.submission ul {
    font-size: 12px;
    padding-left: 20px;
}
.status {
    font-size: 11px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    white-space: nowrap;
}
.status.pending {
    color: var(--red);
    border-color: var(--red);
}
.submission-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.submission-note {
    color: var(--muted);
    font-size: 12px;
    margin-top: 14px;
}
.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin-top: 36px;
}
.guide-section {
    border-top: 1px solid var(--ink);
    padding-top: 18px;
}
.guide-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
}
.guide-section p {
    font-size: 13px;
}
.swatches {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.swatch {
    flex: 1;
    height: 65px;
    border: 1px solid var(--line);
    display: grid;
    align-items: end;
    padding: 5px;
    font: 10px var(--mono);
}
.swatch.ink {
    background: var(--ink);
    color: var(--white);
}
.swatch.red {
    background: var(--red);
    color: var(--white);
}
.swatch.paper {
    background: var(--paper);
}
dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    border: 1px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    padding: 0;
    max-width: 580px;
    width: calc(100% - 32px);
    max-height: calc(100dvh - 48px);
    overflow: auto;
    overscroll-behavior: contain;
}
dialog::backdrop {
    background: var(--overlay);
}
.modal-inner {
    padding: 30px;
    overflow-wrap: anywhere;
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 22px;
}
.modal-head h2 {
    font-size: 24px;
    min-width: 0;
}
.modal-close {
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    font-size: 23px;
    margin: -8px -10px 0 0;
}
.modal-inner p {
    font-size: 13px;
    line-height: 1.9;
    margin: 12px 0;
}
.modal-inner ul {
    font-size: 13px;
    line-height: 2;
    padding-left: 20px;
}
.modal-inner input[readonly] {
    width: 100%;
    border: 1px solid var(--line);
    padding: 12px;
    font: 12px var(--mono);
    margin: 10px 0 16px;
}
.modal-inner .form-bottom {
    margin-top: 24px;
}
/* 공유할 제목 아래에 링크와 복사 버튼을 나란히 배치합니다. */
.useless-share-title {
    display: block;
    overflow-wrap: anywhere;
}
.useless-share-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: var(--k-space-form-label);
}
.useless-share-link input[readonly] {
    min-width: 0;
    margin: 0;
}
#uselessToast {
    position: fixed;
    top: 50dvh;
    left: 50vw;
    transform: translate(-50%, -50%);
    background: var(--ink);
    color: var(--white);
    padding: 13px 24px;
    max-width: calc(100% - 32px);
    width: max-content;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    z-index: var(--k-z-toast);
    transition: opacity .2s, transform .2s;
}
#uselessToast.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* 연구소의 공통 알림과 확인창도 화면 중앙에 배치합니다. */
body:has(#uselessMain) .custom-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--k-z-critical);
    background: var(--overlay);
}
body:has(#uselessMain) .custom-alert-container {
    position: fixed;
    top: 50dvh;
    left: 50vw;
    transform: translate(-50%, -50%);
    width: min(480px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    overflow: auto;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    animation: none;
}
body:has(#uselessMain) .custom-alert-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* 조회와 이동 중 불투명한 지면으로 배경을 가리고 연구소 사각 표식만 표시합니다. */
.useless-loading {
    position: fixed;
    inset: 0;
    z-index: var(--k-z-toast);
    background: var(--white);
    pointer-events: none;
}
.useless-loading__label {
    position: fixed;
    top: 50dvh;
    left: 50vw;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 2px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    animation: useless-loading-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes useless-loading-pulse {
    from {
        opacity: .45;
    }
    to {
        opacity: 1;
    }
}
@media (min-width: 1024px) {
.record {
    position: sticky;
    top: 28px;
    align-self: start;
}
}
@media (max-width: 1023.98px) {
.site-header {
    gap: 22px;
    padding: 24px 32px;
    flex-wrap: wrap;
}
.site-header nav {
    gap: 22px;
}
.header-propose {
    display: none;
}
main {
    padding-left: 32px;
    padding-right: 32px;
}
.detail-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
}
.form-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
}
.demo-strip {
    padding-left: 32px;
    padding-right: 32px;
}
.site-footer {
    padding-left: 32px;
    padding-right: 32px;
}
}
@media (max-width: 720.98px) {
.demo-strip {
    padding: 7px 20px;
    justify-content: center;
}
.demo-strip > span {
    display: none;
}
.site-header {
    padding: 23px 20px 0;
    gap: 20px;
}
.brand {
    font-size: 22px;
}
.brand-symbol {
    width: 39px;
    height: 39px;
}
.site-header nav {
    margin: 0;
    width: 100%;
    gap: 25px;
    font-size: 12px;
    padding-bottom: 12px;
}
.site-header nav a {
    min-height: 36px;
}
main {
    padding: 0 20px 56px;
}
.hero-intro {
    padding: 24px 0;
}
.hero-intro h1 {
    font-size: 36px;
}
.hero-intro p {
    margin-top: 12px;
    font-size: 13px;
}
.intro-note {
    display: none;
}
.feature-grid {
    display: block;
}
.feature, .feature + .feature {
    padding: 24px 0;
    border-left: 0;
}
.feature + .feature {
    border-top: 1px solid var(--line);
}
.feature h2 {
    font-size: 24px;
}
.feature-bottom {
    margin-top: 19px;
}
.section-heading {
    margin-top: 36px;
    gap: 12px;
}
.section-heading h2 {
    font-size: 23px;
}
.section-heading .text-link {
    font-size: 11px;
    gap: 8px;
    white-space: nowrap;
}
.topic-row {
    grid-template-columns: minmax(0, 1fr) 17px;
    gap: 12px;
    padding: 21px 0;
}
.topic-row h3 {
    font-size: 18px;
}
.topic-row .row-stats {
    grid-column: 1;
    text-align: left;
    font-size: 11px;
}
.topic-row .row-stats small {
    display: inline;
    margin-left: 12px;
}
.row-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 20px;
}
.manifesto {
    gap: 16px;
}
.manifesto .text-link {
    white-space: nowrap;
}
.site-footer {
    padding: 28px 20px;
}
.footer-top, .footer-bottom {
    display: block;
}
.footer-top > a:last-child {
    display: inline-block;
    margin-top: 24px;
    font-size: 12px;
}
.footer-bottom {
    margin-top: 25px;
}
.footer-bottom div {
    margin-top: 16px;
    gap: 18px;
    flex-wrap: wrap;
}
.fine {
    font-size: 10px;
}
.page-head {
    padding: 32px 0 26px;
}
.page-head h1 {
    font-size: 36px;
}
.page-head p {
    font-size: 13px;
}
.page-emblem {
    display: none;
}
.toolbar {
    gap: 12px;
}
.toolbar .search {
    margin-left: 0;
    flex: 1;
    min-width: 150px;
}
.toolbar .search input {
    width: 100%;
    min-width: 0;
}
.tabs {
    width: 100%;
}
.tabs button {
    padding: 7px 13px;
}
.detail-head {
    padding: 24px 0;
}
.detail-head h1 {
    font-size: 33px;
}
.detail-meta {
    gap: 10px;
    font-size: 11px;
}
.detail-meta button {
    margin-left: 0;
}
.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 25px;
}
.copy-section p {
    font-size: 14px;
}
.record {
    width: 100%;
    padding: 24px 0;
    border-bottom: 1px solid var(--ink);
}
.discussion {
    margin-top: 30px;
}
.comment-form {
    padding: 16px;
}
.replies {
    margin-left: 10px;
    padding-left: 12px;
}
.form-bottom {
    gap: 12px;
}
.form-bottom small {
    font-size: 10px;
}
.form-layout {
    display: block;
    padding-top: 28px;
}
.form-aside {
    margin-bottom: 30px;
}
.steps {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}
.steps li {
    flex: 1;
    font-size: 11px;
    gap: 7px;
}
.steps small {
    display: none;
}
.type-choice {
    flex-direction: column;
}
.submission h3 {
    font-size: 18px;
}
.guide-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}
.modal-inner {
    padding: 23px;
}
.modal-head h2 {
    font-size: 21px;
}
}
@media (prefers-reduced-motion: reduce) {
html {
    scroll-behavior: auto;
}
*, *::before, *::after {
    transition: none !important;
    animation: none !important;
}
}


/* 운영 메뉴와 입력·결과·페이지 이동을 동일한 지면 규칙으로 배치합니다. */
.useless-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.site-header {
    width: 100%;
    flex-wrap: wrap;
    gap: 24px;
}
.site-header nav {
    flex-wrap: wrap;
    gap: 20px;
}
.useless-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0;
}
.useless-pagination a {
    border: 1px solid var(--line);
    padding: 8px 16px;
}
.useless-result-summary {
    cursor: pointer;
    padding: 16px 0;
    font-size: 13px;
    font-weight: 700;
}
.useless-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}
.useless-admin-tabs a {
    border: 1px solid var(--line);
    padding: 8px 14px;
}
.useless-admin-tabs [aria-current="page"] {
    color: var(--white);
    background: var(--ink);
}
/* 관리자 목록의 관리 버튼을 본문 오른쪽에 모아 행 높이를 줄입니다. */
.submission.useless-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
}
.useless-admin-row__body {
    min-width: 0;
}
.useless-admin-row h3 {
    margin: 4px 0;
}
.useless-admin-row__actions {
    justify-content: flex-end;
    margin-top: 0;
    max-width: min(420px, 48vw);
}
.useless-form-actions {
    justify-content: flex-end;
    align-items: flex-end;
}
.useless-proposal-submit {
    margin-top: var(--k-space-xl);
}
/* 이력의 조치 결과와 담당자·시각·대상을 같은 간격으로 표시합니다. */
.useless-audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--muted);
}
.useless-audit-meta > div {
    display: flex;
    gap: 8px;
    min-width: 0;
}
.useless-audit-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.useless-key {
    overflow-wrap: anywhere;
    font-size: 12px;
    color: var(--muted);
}
.useless-error {
    color: var(--red);
}
.useless-wide-input {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--white);
}
.record details {
    margin-top: 20px;
}
.record details[open] summary {
    margin-bottom: 12px;
}
button[aria-busy="true"] {
    cursor: progress;
}
@media (max-width: 720.98px) {
    .site-header {
        padding: 16px 20px 12px;
        row-gap: 8px;
        column-gap: 12px;
    }
    .useless-admin-row__actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 150px;
    }
    .useless-header-actions {
        width: 100%;
        padding-bottom: 0;
        gap: 8px 12px;
    }
    .site-header nav {
        padding-bottom: 0;
        gap: 14px;
    }
    .submission-head {
        flex-wrap: wrap;
    }
}

/* 작은 화면에서는 메뉴·폼·모달의 조작 영역과 입력 글자 크기를 확보합니다. */
@media (max-width: 1023.98px) {
    .demo-strip {
        padding-top: 0;
        padding-bottom: 0;
    }
    .demo-strip a,
    .site-header .brand,
    .site-header nav a,
    .site-header .text-link,
    .site-header .btn,
    .site-footer a:not(.footer-brand),
    #uselessMain button,
    #uselessMain .btn,
    #uselessMain .text-link,
    #uselessMain .useless-admin-tabs a,
    #uselessMain .useless-pagination a,
    #uselessModal button {
        display: inline-flex;
        align-items: center;
        min-width: 44px;
        min-height: 44px;
    }
    #uselessMain input:not([type="checkbox"]):not([type="radio"]),
    #uselessMain select,
    #uselessModal input:not([type="checkbox"]):not([type="radio"]),
    #uselessModal select {
        min-height: 44px;
        font-size: 16px;
    }
    #uselessMain textarea,
    #uselessModal textarea {
        font-size: 16px;
    }
    #uselessMain .check-line {
        min-height: 44px;
        align-items: center;
    }
    #uselessMain .check-line input {
        margin-top: 0;
    }
    #uselessMain .useless-result-summary {
        min-height: 44px;
        padding: 10px 0;
    }
}

/* 태블릿에서 회원 메뉴가 다음 행으로 넘어가도 헤더 간격을 일정하게 유지합니다. */
@media (min-width: 721px) and (max-width: 1023.98px) {
    .site-header {
        row-gap: 12px;
    }
}

