* {
    box-sizing: border-box;
}

:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #f8faf9;
    --text: #202124;
    --muted: #667085;
    --line: #e4e7ec;
    --line-soft: #edf0f3;
    --brand: #0f6b4f;
    --brand-soft: #eef6f2;
    --warning-bg: #fff7e6;
    --warning-line: #ffe1a6;
    --warning-text: #7a4b00;
    --radius: 8px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, "Malgun Gothic", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    padding: 10px 0;
}

.header-top {
    display: contents;
}

.brand {
    order: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1;
}

.brand img {
    display: block;
    width: 210px;
    height: auto;
}

.main-nav {
    order: 2;
    display: flex;
    gap: 6px;
    flex: 999 1 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
}

.main-nav a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.auth-links {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.auth-links span,
.auth-links a {
    font-size: 14px;
}

.auth-link,
.auth-links > a:not(.button) {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: #4b5563;
    font-weight: 700;
}

.page {
    padding: 36px 0 64px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.25;
}

.hero p {
    margin: 0;
    color: #667085;
}

.ad-strip {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 16px 20px;
    background: #fff7e6;
    border: 1px solid #ffe1a6;
    border-radius: 8px;
}

.ad-strip p {
    margin: 0;
    color: #7a4b00;
    font-size: 14px;
    font-weight: 700;
}

.notice-strip {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.notice-title {
    display: grid;
    gap: 6px;
    align-content: start;
}

.notice-title strong {
    font-size: 18px;
}

.notice-title a {
    color: #0f6b4f;
    font-size: 14px;
    font-weight: 700;
}

.notice-list {
    display: grid;
    gap: 8px;
}

.notice-list a,
.notice-list p {
    margin: 0;
    color: #344054;
    font-weight: 700;
}

.notice-list time {
    margin-left: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 400;
}

.daangn-bridge {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: stretch;
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff8f1 0%, #ffffff 52%, #eef6f2 100%);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.daangn-bridge * {
    box-sizing: border-box;
}

.daangn-bridge-copy p {
    margin: 0 0 8px;
    color: #ff6f0f;
    font-size: 12px;
    font-weight: 800;
}

.daangn-bridge-copy h2 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.25;
}

.daangn-bridge-copy span {
    color: var(--muted);
}

.daangn-bridge-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.daangn-bridge-actions a {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 94px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.daangn-bridge-actions a:first-child {
    border-color: #ffd5b7;
}

.daangn-bridge-actions a:last-child {
    border-color: #c9e1d6;
}

.daangn-bridge-actions strong {
    font-size: 18px;
}

.daangn-bridge-actions a:first-child strong {
    color: #ff6f0f;
}

.daangn-bridge-actions a:last-child strong {
    color: var(--brand);
}

.daangn-bridge-actions em {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
}

.portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    padding: 44px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.portal-location {
    margin: 0 0 12px;
    color: #0f6b4f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.portal-copy h1 {
    max-width: 720px;
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.2;
}

.portal-copy p {
    max-width: 680px;
    margin: 0;
    color: #667085;
    font-size: 17px;
}

.portal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button.secondary {
    background: #eef6f2;
    color: #0f6b4f;
}

.portal-panel {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 22px;
    background: #f6f7f9;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.portal-panel strong {
    font-size: 18px;
}

.portal-panel a {
    padding: 12px 0;
    border-top: 1px solid #e4e7ec;
    color: #344054;
    font-weight: 700;
}

.chat-card-link {
    display: grid;
    gap: 4px;
    padding: 14px !important;
    border: 1px solid #c9e1d6 !important;
    border-radius: var(--radius);
    background: var(--brand-soft);
}

.chat-card-link strong {
    color: var(--brand);
    font-size: 16px;
}

.chat-card-link span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.visitor-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #e4e7ec;
}

.visitor-widget span {
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.visitor-widget.prominent {
    padding: 0 0 14px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
}

.visitor-widget.prominent span {
    min-height: 64px;
    align-content: center;
    gap: 2px;
}

.visitor-widget.prominent b {
    display: block;
    color: var(--brand);
    font-size: 22px;
    line-height: 1;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.home-chat-preview {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #c9e1d6;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(238, 246, 242, 0.92), rgba(255, 255, 255, 0.96)),
        radial-gradient(circle at 100% 0, rgba(15, 107, 79, 0.12), transparent 34%);
}

.home-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-chat-head p {
    margin: 0 0 4px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.home-chat-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.home-chat-messages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-chat-message {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
}

.home-chat-message strong {
    color: var(--brand);
    font-size: 14px;
}

.home-chat-message span {
    grid-column: 1 / -1;
    color: #344054;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.home-chat-message time {
    color: var(--muted);
    font-size: 12px;
}

.home-chat-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    border: 1px dashed #c9e1d6;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.portal-card {
    min-height: 164px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.portal-card:hover {
    border-color: #0f6b4f;
}

.portal-card span {
    display: block;
    color: #0f6b4f;
    font-weight: 800;
}

.portal-card strong {
    display: block;
    margin-top: 10px;
    font-size: 22px;
}

.portal-card p {
    margin: 12px 0 0;
    color: #667085;
    font-size: 14px;
}

.portal-section {
    margin-top: 32px;
}

.spotlight-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.spotlight-column {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.spotlight-column.popular {
    border-color: #ffd5b7;
    background: linear-gradient(135deg, #fff8f1 0%, #ffffff 72%);
}

.spotlight-head p {
    margin: 0 0 4px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.spotlight-column.popular .spotlight-head p {
    color: #ff6f0f;
}

.spotlight-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.spotlight-list {
    display: grid;
    gap: 10px;
    grid-auto-rows: minmax(154px, 1fr);
}

.spotlight-post {
    display: grid;
    grid-template-rows: 19px minmax(46px, auto) minmax(44px, auto) auto;
    gap: 6px;
    align-content: start;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #f8faf9;
}

.spotlight-post:hover {
    border-color: #c9e1d6;
    background: var(--brand-soft);
}

.spotlight-column.popular .spotlight-post:hover {
    border-color: #ffd5b7;
    background: #fff8f1;
}

.spotlight-board-name {
    overflow: hidden;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotlight-post strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
    word-break: keep-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.spotlight-post p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.spotlight-meta,
.spotlight-meta small,
.spotlight-empty {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    align-self: end;
    min-width: 0;
    line-height: 1.45;
}

.spotlight-meta b {
    color: var(--brand);
    font-weight: 900;
    white-space: nowrap;
}

.spotlight-meta .post-feature-tags {
    display: inline-flex;
    flex: 0 1 auto;
    gap: 4px;
    overflow: hidden;
    max-width: 100%;
    vertical-align: middle;
}

.spotlight-meta small {
    display: inline-flex;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotlight-empty {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: #f8faf9;
    text-align: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: #0f6b4f;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.button.small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
}

.board-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 10px;
}

.board-toolbar h2 {
    margin: 0;
    font-size: 22px;
}

.board-toolbar p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.post-list {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    overflow: hidden;
}

.post-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 74px 78px 64px 92px;
    gap: 10px;
    min-height: 52px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf0f3;
    align-items: center;
}

.post-row:last-child {
    border-bottom: 0;
}

.post-row:hover {
    background: #f9fafb;
}

.post-row span,
.post-row time {
    color: #667085;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
}

.post-title-cell {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.post-title-cell strong {
    color: var(--text);
    overflow: hidden;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
}

.portal-post-row {
    grid-template-columns: minmax(0, 1fr) 110px 82px 100px 92px;
}

.like-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid #c9e1d6 !important;
    border-radius: 999px;
    background: var(--brand-soft) !important;
    color: var(--brand) !important;
    font-size: 12px !important;
    font-weight: 900;
    white-space: nowrap;
}

.post-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.post-feature-tags span {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    min-height: 21px;
    padding: 0 7px;
    border: 1px solid #d7e8df;
    border-radius: 999px;
    background: #ffffff;
    color: #0f6b4f !important;
    font-size: 11px !important;
    font-weight: 900;
    white-space: nowrap;
}

.qna-toolbar {
    align-items: center;
}

.qna-list {
    display: grid;
    gap: 10px;
}

.qna-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.qna-question {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
}

.qna-question:hover {
    background: #f8faf9;
}

.qna-question-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
}

.qna-label {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #fff8f1;
    color: #ff6f0f;
    font-weight: 900;
}

.qna-label.answer {
    background: var(--brand-soft);
    color: var(--brand);
}

.qna-question h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    word-break: keep-all;
}

.qna-question p {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.qna-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-left: 44px;
}

.qna-meta span,
.qna-meta time {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f4f6f5;
    color: #59636f;
    font-size: 12px;
    font-weight: 800;
}

.qna-meta span:first-child {
    background: #fff8f1;
    color: #ff6f0f;
}

.qna-meta span.answered {
    background: var(--brand-soft);
    color: var(--brand);
}

.qna-answer-preview {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-soft);
    background: #f8faf9;
}

.qna-answer,
.qna-empty-answer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    padding: 11px 16px;
    border-top: 1px solid var(--line-soft);
}

.qna-answer:first-child,
.qna-empty-answer:first-child {
    border-top: 0;
}

.qna-answer:hover,
.qna-empty-answer:hover {
    background: var(--brand-soft);
}

.qna-answer strong {
    color: var(--brand);
    font-size: 14px;
}

.qna-answer p {
    display: -webkit-box;
    overflow: hidden;
    margin: 3px 0;
    color: #344054;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.qna-answer time {
    color: var(--muted);
    font-size: 12px;
}

.qna-empty-answer {
    display: block;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.image-mark {
    display: inline-flex;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eef6f2;
    color: #0f6b4f !important;
    font-size: 12px !important;
    font-weight: 700;
    vertical-align: middle;
}

.empty-box,
.form-panel,
.post-detail,
.comments {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 28px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.detail-layout-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 980px;
    margin: 0 auto;
}

.detail-main {
    min-width: 0;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
}

.side-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.side-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.side-list-head strong {
    font-size: 16px;
}

.side-list-head a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.side-post {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.side-post:last-child {
    border-bottom: 0;
}

.side-post:hover {
    background: var(--brand-soft);
}

.side-post span {
    color: var(--text);
    font-weight: 800;
    line-height: 1.45;
}

.side-post small,
.side-empty {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.side-empty {
    margin: 0;
    padding: 16px;
}

.post-head {
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f3;
}

.post-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.post-like-area {
    min-width: 0;
}

.post-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.post-menu a,
.admin-toolbox button,
.admin-toolbox select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.post-menu a:hover {
    border-color: #c9e1d6;
    background: var(--brand-soft);
    color: var(--brand);
}

.admin-toolbox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #f8faf9;
}

.admin-toolbox form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-toolbox label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-toolbox select {
    min-width: 150px;
    font: inherit;
}

.admin-toolbox button {
    cursor: pointer;
}

.admin-toolbox button:hover {
    border-color: #c9e1d6;
    background: var(--brand-soft);
    color: var(--brand);
}

.admin-toolbox .danger {
    border-color: #f2c7c3;
    color: #b42318;
}

.admin-toolbox .danger:hover {
    border-color: #b42318;
    background: #fff1f0;
    color: #b42318;
}

.post-head h1 {
    margin: 8px 0;
    font-size: 30px;
}

.post-head p {
    color: #667085;
    margin: 0;
}

.board-label {
    color: #0f6b4f !important;
    font-weight: 700;
}

.qna-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 8px;
    padding: 0 10px;
    border: 1px solid #ffd5b7;
    border-radius: 999px;
    background: #fff8f1;
    color: #ff6f0f;
    font-size: 13px;
    font-weight: 800;
}

.qna-status.answered {
    border-color: #c9e1d6;
    background: var(--brand-soft);
    color: var(--brand);
}

.post-content {
    padding-top: 24px;
    min-height: 160px;
    white-space: normal;
}

.post-image {
    margin: 24px 0 0;
}

.post-image img {
    display: block;
    width: min(100%, 760px);
    max-height: 720px;
    object-fit: contain;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f6f7f9;
}

.post-attachments {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.post-card {
    margin: 16px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
}

.post-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.post-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.post-card p {
    margin: 0 0 12px;
    color: #475467;
}

.map-link-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    width: 100%;
    margin: 16px 0;
    border: 1px solid #d7e5df;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

a.map-link-card:hover {
    border-color: #9fd3bd;
    box-shadow: 0 10px 24px rgba(16, 122, 85, 0.12);
    transform: translateY(-1px);
}

.map-preview-art {
    position: relative;
    min-height: 142px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(16, 122, 85, 0.88), rgba(132, 195, 140, 0.5) 34%, transparent 35%),
        linear-gradient(25deg, transparent 45%, rgba(255, 255, 255, 0.84) 46%, rgba(255, 255, 255, 0.84) 53%, transparent 54%),
        linear-gradient(150deg, transparent 40%, rgba(255, 255, 255, 0.72) 41%, rgba(255, 255, 255, 0.72) 48%, transparent 49%),
        linear-gradient(180deg, #b9dcf4 0%, #dff0fa 45%, #e9dfbf 46%, #c7d1a5 100%);
}

.map-preview-art::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 28px;
    height: 14px;
    border-radius: 999px;
    background: rgba(48, 63, 79, 0.26);
}

.map-preview-art span {
    position: absolute;
    left: 50%;
    top: 34px;
    width: 38px;
    height: 38px;
    border-radius: 50% 50% 50% 0;
    background: #ff6f0f;
    transform: rotate(-45deg);
    box-shadow: 0 5px 14px rgba(255, 111, 15, 0.28);
}

.map-preview-art span::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 11px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
}

.map-preview-art i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.map-link-body {
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 18px 20px;
}

.map-link-body strong {
    color: var(--brand);
    font-size: 13px;
    line-height: 1.35;
    text-transform: uppercase;
}

.map-link-body p {
    margin: 0;
    color: #101828;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.35;
}

.map-link-body span {
    color: #475467;
    font-size: 14px;
    line-height: 1.5;
}

.map-link-body em {
    color: #ff6f0f;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.poll-form {
    display: grid;
    gap: 10px;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    font-weight: 800;
}

.poll-option input {
    width: auto;
}

.poll-results {
    display: grid;
    gap: 10px;
}

.poll-result {
    position: relative;
    overflow: hidden;
    min-height: 50px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.poll-result div {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.poll-result span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.poll-result i {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    background: #dff3ea;
}

.poll-result.selected {
    border-color: #8bc7ae;
}

.poll-result.selected strong::after {
    content: " 선택";
    color: var(--brand);
    font-size: 12px;
}

.video-embed {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #111827;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf0f3;
}

.comments {
    margin-top: 20px;
}

.comment {
    padding: 16px 0;
    border-bottom: 1px solid #edf0f3;
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.comment time {
    margin-left: 8px;
    color: #667085;
    font-size: 13px;
}

.comment p {
    margin: 8px 0 0;
}

.comment-board-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.comment-board-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-board-list-head strong {
    font-size: 16px;
}

.comment-board-list-head a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.comment-board-posts {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #ffffff;
}

.comment-board-posts a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-soft);
}

.comment-board-posts a:last-child {
    border-bottom: 0;
}

.comment-board-posts a:hover {
    background: var(--brand-soft);
}

.comment-board-posts span {
    color: var(--text);
    font-weight: 800;
    line-height: 1.4;
}

.comment-board-posts small,
.comment-board-empty {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.comment-board-empty {
    margin: 0;
}

.accepted-answer {
    margin: 0 -12px;
    padding: 16px 12px;
    border: 1px solid #c9e1d6;
    border-radius: var(--radius);
    background: var(--brand-soft);
}

.accepted-badge,
.answer-accept-button,
.comment-like-button,
.comment-like-badge,
.comment-manage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.accepted-badge,
.comment-like-badge {
    background: var(--brand);
    color: #ffffff;
}

.comment-like-badge {
    background: #f4f6f5;
    color: #59636f;
}

.answer-accept-button,
.comment-like-button,
.comment-manage-link {
    border: 1px solid #c9e1d6;
    background: #ffffff;
    color: var(--brand);
    cursor: pointer;
}

.answer-accept-button:hover,
.comment-like-button:hover,
.comment-manage-link:hover {
    background: var(--brand);
    color: #ffffff;
}

.comment-manage-link {
    font-family: inherit;
    text-decoration: none;
}

.comment-manage-link.danger {
    border-color: #f2c7c3;
    color: #b42318;
}

.comment-manage-link.danger:hover {
    background: #fff1f0;
    color: #b42318;
}

.admin-page {
    display: grid;
    gap: 20px;
}

.admin-hero,
.admin-section {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.admin-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-hero h1 {
    margin: 6px 0 8px;
    font-size: 30px;
}

.admin-hero p,
.admin-section-head p {
    margin: 0;
    color: var(--muted);
}

.admin-stat-grid,
.admin-board-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-stat-grid article,
.admin-board-grid a {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.admin-stat-grid span,
.admin-board-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-stat-grid strong,
.admin-board-grid strong {
    color: var(--text);
    font-size: 24px;
}

.admin-board-grid a:hover {
    border-color: #c9e1d6;
    background: var(--brand-soft);
}

.admin-chart-total {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #c9e1d6;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.admin-visitor-chart {
    display: grid;
    grid-template-columns: repeat(14, minmax(42px, 1fr));
    gap: 10px;
    min-height: 230px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.visitor-bar-item {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    align-items: end;
    min-height: 198px;
    text-align: center;
}

.visitor-bar-item strong {
    color: var(--text);
    font-size: 13px;
}

.visitor-bar-track {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 140px;
    border-radius: 999px 999px 6px 6px;
    background: #edf0f3;
}

.visitor-bar-track i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #2fa779, var(--brand));
}

.visitor-bar-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-section {
    display: grid;
    gap: 16px;
}

.admin-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-section-head h2 {
    margin: 0 0 6px;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    background: #ffffff;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #f8faf9;
    color: #344054;
    font-size: 13px;
}

.admin-table td {
    color: #475467;
    font-size: 14px;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-title-link {
    color: var(--text);
    font-weight: 800;
}

.admin-actions,
.admin-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.admin-actions a,
.admin-actions button,
.admin-actions select,
.admin-inline-form button,
.admin-inline-form select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: #344054;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.admin-actions button,
.admin-inline-form button {
    cursor: pointer;
}

.admin-actions a:hover,
.admin-actions button:hover,
.admin-inline-form button:hover {
    border-color: #c9e1d6;
    background: var(--brand-soft);
    color: var(--brand);
}

.admin-actions .danger {
    border-color: #f2c7c3;
    color: #b42318;
}

.admin-actions .danger:hover {
    background: #fff1f0;
    color: #b42318;
}

.admin-inline-form button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.form {
    display: grid;
    gap: 10px;
}

.form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.form-head h1 {
    margin: 0 0 6px;
}

.form-head p {
    margin: 0;
    color: var(--muted);
}

.form label {
    font-weight: 700;
}

.form input,
.form textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 12px;
    font: inherit;
}

.form textarea {
    resize: vertical;
}

.compose-source {
    position: absolute;
    left: -9999px;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
}

.compose-rich-editor {
    width: 100%;
    min-height: 320px;
    padding: 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    color: #101828;
    line-height: 1.75;
    white-space: pre-wrap;
    outline: none;
}

.compose-rich-editor:focus {
    border-color: #78b79c;
    box-shadow: 0 0 0 3px rgba(16, 122, 85, 0.1);
}

.compose-rich-editor:empty::before {
    content: attr(data-placeholder);
    color: #98a2b3;
}

.compose-edit-line {
    min-height: 1.75em;
    margin: 0;
}

.compose-embedded-card {
    display: block;
    max-width: 100%;
    margin: 14px 0;
    overflow: hidden;
    border: 1px solid #c9e1d6;
    border-radius: 8px;
    background: #f8faf9;
    white-space: normal;
}

.compose-embedded-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #d9ebe3;
    background: #eef8f3;
}

.compose-embedded-card-head strong {
    color: var(--brand);
    font-size: 14px;
}

.compose-embedded-card-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.compose-embedded-card-head button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #f2c7c3;
    border-radius: 999px;
    background: #fff1f0;
    color: #b42318;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.compose-embedded-card .preview-card {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.compose-embedded-card .map-link-card {
    max-width: none;
}

.compose-rich-editor .poll-form {
    gap: 8px;
}

.compose-rich-editor .poll-option {
    justify-content: flex-start;
    min-height: 44px;
}

.compose-rich-editor .poll-option input {
    flex: 0 0 auto;
    width: 16px !important;
    height: 16px;
    margin: 0;
}

.compose-rich-editor .poll-option span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.form-help {
    margin: -4px 0 8px;
    color: #667085;
    font-size: 14px;
}

.compose-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -2px 0 2px;
}

.compose-tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: #344054;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.compose-tool:hover,
.compose-tool.is-active {
    border-color: #9fd3bd;
    background: var(--brand-soft);
    color: var(--brand);
}

.compose-tool-icon {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
}

.vote-icon {
    border-radius: 4px;
}

.vote-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 4px;
    width: 8px;
    height: 4px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.place-icon {
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.place-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.video-icon {
    border-radius: 4px;
}

.video-icon::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid currentColor;
}

.modal-open {
    overflow: hidden;
}

.feature-modal[hidden] {
    display: none;
}

.feature-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.feature-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
}

.feature-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(560px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    padding: 22px;
    border: 1px solid #c9e1d6;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(16, 24, 40, 0.24);
}

.feature-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.feature-modal-head h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.feature-modal-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.feature-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    color: #344054;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.feature-modal-close:hover {
    border-color: #c9e1d6;
    background: var(--brand-soft);
    color: var(--brand);
}

.poll-option-builder {
    display: grid;
    gap: 8px;
}

.poll-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.poll-option-row button {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #f2c7c3;
    border-radius: 6px;
    background: #fff1f0;
    color: #b42318;
    font-weight: 800;
    cursor: pointer;
}

.compose-preview {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.compose-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    background: #f8faf9;
}

.compose-preview-head strong {
    font-size: 15px;
}

.compose-preview-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.compose-preview-body {
    min-height: 110px;
    padding: 16px;
}

.compose-preview-body > p {
    margin: 0 0 12px;
    line-height: 1.7;
}

.compose-preview-body > p:last-child {
    margin-bottom: 0;
}

.preview-empty {
    color: var(--muted);
    font-weight: 700;
}

.preview-card {
    margin: 12px 0;
}

.preview-video {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    text-align: center;
}

.paste-preview {
    margin-top: -2px;
}

.paste-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #c9e1d6;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
}

.paste-preview-card img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    background: #ffffff;
}

.error {
    padding: 12px;
    border-radius: 6px;
    background: #fff1f0;
    color: #b42318;
}

.login-guide {
    color: #667085;
}

.login-guide a {
    color: #0f6b4f;
    font-weight: 700;
}

.upgrade-row {
    display: grid;
    grid-template-columns: 180px 90px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #edf0f3;
}

.ok {
    color: #0f6b4f;
    font-weight: 700;
}

.fail {
    color: #b42318;
    font-weight: 700;
}

.notice-box {
    padding: 14px;
    border-radius: 6px;
    background: #fff7e6;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-page {
    max-width: 860px;
    margin: 0 auto;
}

.chat-shell {
    display: grid;
    gap: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #0f6b4f 0%, #178360 100%);
    color: #ffffff;
}

.chat-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 10px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 800;
}

.chat-head h1 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.25;
}

.chat-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.chat-head .button.secondary {
    background: #ffffff;
    color: var(--brand);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 500px;
    overflow-y: auto;
    padding: 22px;
    background:
        linear-gradient(rgba(248, 250, 249, 0.92), rgba(248, 250, 249, 0.92)),
        radial-gradient(circle at 0 0, rgba(15, 107, 79, 0.10), transparent 28%);
}

.chat-message {
    max-width: min(78%, 560px);
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.chat-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.chat-message-meta strong {
    color: var(--brand);
    font-size: 14px;
}

.chat-message-meta time {
    color: var(--muted);
    font-size: 12px;
}

.chat-message p,
.chat-loading {
    margin: 0;
}

.chat-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.chat-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: #59636f;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.chat-reaction b {
    color: var(--text);
}

.chat-reaction:hover,
.chat-reaction.is-active {
    border-color: #c9e1d6;
    background: var(--brand-soft);
    color: var(--brand);
}

.chat-reaction.is-active {
    cursor: default;
}

.chat-reaction.is-locked {
    opacity: 0.78;
}

.chat-loading {
    align-self: center;
    padding: 12px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    font-weight: 700;
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.chat-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 14px;
    background: #f9fafb;
    font: inherit;
}

.chat-form input:focus {
    outline: 2px solid rgba(15, 107, 79, 0.18);
    border-color: var(--brand);
    background: #ffffff;
}

.chat-form .button {
    min-width: 84px;
    border-radius: 8px;
}

.chat-login-guide {
    margin: 16px;
    padding: 14px;
    border-radius: 8px;
    background: var(--warning-bg);
    color: var(--warning-text);
    font-weight: 700;
}

.chat-login-guide a {
    color: var(--brand);
}

.hero,
.portal-hero,
.notice-strip,
.home-chat-preview,
.spotlight-column,
.portal-card,
.post-list,
.empty-box,
.form-panel,
.post-detail,
.comments,
.chat-shell {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.button {
    transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
    background: #0b5a42;
}

.button:active {
    transform: translateY(1px);
}

.button.secondary:hover {
    background: #dff0e8;
}

.portal-card,
.post-row,
.main-nav a,
.auth-link {
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-footer {
    border-top: 1px solid #e4e7ec;
    color: #667085;
    background: #ffffff;
    padding: 24px 0;
}

@media (max-width: 760px) {
    body {
        background: #f8faf9;
    }

    .hero,
    .board-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .container {
        width: min(100% - 24px, 1120px);
    }

    .page {
        padding: 18px 0 44px;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
        padding: 12px 0;
    }

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-width: 0;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand img {
        width: 156px;
        height: auto;
    }

    .auth-links {
        flex: 0 0 auto;
        gap: 6px;
    }

    .auth-links span {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .auth-link,
    .auth-links > a:not(.button),
    .button.small {
        min-height: 32px;
        padding: 0 10px;
        border-radius: 6px;
        font-size: 13px;
    }

    .auth-link,
    .auth-links > a:not(.button) {
        background: #f4f6f5;
    }

    .main-nav {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 12px;
        background: #f4f6f5;
        font-size: 13px;
    }

    .ad-strip,
    .notice-strip,
    .hero,
    .portal-hero,
    .portal-card,
    .post-list,
    .empty-box,
    .form-panel,
    .post-detail,
    .comments {
        border-radius: 8px;
    }

    .ad-strip {
        gap: 6px;
        margin-bottom: 12px;
        padding: 12px 14px;
    }

    .ad-strip p {
        font-size: 13px;
        line-height: 1.45;
    }

    .post-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 14px 16px;
    }

    .notice-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
        padding: 14px 16px;
    }

    .daangn-bridge {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 18px;
        margin-bottom: 18px;
        padding: 16px;
    }

    .daangn-bridge-copy p {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .daangn-bridge-copy h2 {
        font-size: 21px;
        word-break: keep-all;
    }

    .daangn-bridge-copy span {
        font-size: 14px;
        line-height: 1.55;
    }

    .daangn-bridge-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .daangn-bridge-actions a {
        min-height: 72px;
        padding: 12px;
    }

    .daangn-bridge-actions strong {
        font-size: 16px;
    }

    .notice-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .notice-title strong {
        font-size: 16px;
    }

    .notice-list {
        gap: 6px;
    }

    .notice-list a,
    .notice-list p {
        display: grid;
        gap: 2px;
        font-size: 14px;
        line-height: 1.45;
    }

    .notice-list time {
        margin-left: 0;
        font-size: 12px;
    }

    .hero {
        gap: 16px;
        padding: 22px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .portal-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }

    .portal-location {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .portal-copy h1 {
        margin-bottom: 12px;
        font-size: 28px;
        line-height: 1.25;
        word-break: keep-all;
    }

    .portal-copy p {
        font-size: 15px;
        line-height: 1.65;
        word-break: keep-all;
    }

    .portal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 18px;
    }

    .portal-actions .button {
        width: 100%;
        min-height: 42px;
        padding: 0 12px;
        font-size: 14px;
    }

    .portal-panel {
        gap: 8px;
        padding: 16px;
    }

    .portal-panel strong {
        font-size: 16px;
    }

    .portal-panel a {
        padding: 10px 0;
        font-size: 14px;
    }

    .portal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 14px;
    }

    .home-chat-preview {
        gap: 12px;
        margin-top: 16px;
        padding: 16px;
    }

    .home-chat-head {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .home-chat-head h2 {
        font-size: 21px;
        word-break: keep-all;
    }

    .home-chat-head .button {
        width: 100%;
    }

    .home-chat-messages {
        grid-template-columns: 1fr;
    }

    .home-chat-message {
        min-height: auto;
        padding: 12px;
    }

    .portal-card {
        min-height: auto;
        padding: 14px;
    }

    .portal-card strong {
        margin-top: 6px;
        font-size: 18px;
    }

    .portal-card p {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.45;
        word-break: keep-all;
    }

    .visitor-widget {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding-top: 12px;
    }

    .visitor-widget span {
        min-height: 48px;
        padding: 6px;
        font-size: 12px;
        line-height: 1.35;
    }

    .portal-section {
        margin-top: 22px;
    }

    .spotlight-section {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 18px;
    }

    .spotlight-column {
        gap: 12px;
        padding: 16px;
    }

    .spotlight-list {
        gap: 8px;
    }

    .spotlight-head h2 {
        font-size: 21px;
    }

    .spotlight-post {
        gap: 7px;
        padding: 14px;
    }

    .spotlight-post strong {
        font-size: 15px;
        word-break: normal;
    }

    .spotlight-post p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 13px;
    }

    .spotlight-meta small {
        display: inline-flex;
        line-height: 1.5;
    }

    .board-toolbar {
        gap: 4px;
        margin: 18px 0 8px;
    }

    .board-toolbar h2 {
        font-size: 19px;
    }

    .board-toolbar p {
        font-size: 13px;
    }

    .image-mark {
        margin-left: 4px;
    }

    .post-list {
        display: grid;
        overflow: visible;
        gap: 6px;
        border: 0;
        background: transparent;
    }

    .post-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        min-height: auto;
        padding: 11px 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
    }

    .post-row strong {
        overflow: hidden;
        line-height: 1.45;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .post-title-cell {
        gap: 5px;
    }

    .post-feature-tags {
        gap: 4px;
    }

    .post-row span,
    .post-row time {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        min-height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: #f4f6f5;
        color: #59636f;
        font-size: 11px;
        line-height: 1;
    }

    .qna-question {
        padding: 12px;
    }

    .qna-question-main {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .qna-label {
        width: 30px;
        height: 30px;
    }

    .qna-question h3 {
        font-size: 17px;
        word-break: normal;
    }

    .qna-question p {
        margin-top: 4px;
        font-size: 13px;
    }

    .qna-list {
        gap: 8px;
    }

    .qna-meta {
        padding-left: 0;
        gap: 4px;
    }

    .qna-meta span,
    .qna-meta time {
        min-height: 22px;
        padding: 0 6px;
        font-size: 11px;
    }

    .qna-answer {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 10px 12px;
    }

    .qna-empty-answer {
        padding: 10px 12px;
        font-size: 13px;
    }

    .empty-box,
    .form-panel,
    .post-detail,
    .comments {
        padding: 20px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .detail-sidebar {
        position: static;
    }

    .side-list-head {
        padding: 14px;
    }

    .side-post {
        padding: 12px 14px;
    }

    .comment-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .comment-actions {
        justify-content: flex-start;
    }

    .comment-board-list {
        margin: 18px 0;
        padding: 14px;
    }

    .comment-board-posts {
        grid-template-columns: 1fr;
    }

    .comment-board-posts a {
        grid-template-columns: 1fr;
        gap: 3px;
        min-height: auto;
    }

    .accepted-answer {
        margin: 0;
        padding: 14px;
    }

    .post-head h1 {
        font-size: 25px;
        word-break: keep-all;
    }

    .post-action-row {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .post-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
        justify-content: stretch;
        width: 100%;
    }

    .post-menu a,
    .admin-toolbox button,
    .admin-toolbox select {
        min-height: 40px;
        padding: 0 10px;
        font-size: 12px;
    }

    .admin-toolbox,
    .admin-toolbox form {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .admin-toolbox select,
    .admin-toolbox button {
        width: 100%;
    }

    .form-head {
        flex-direction: column;
        gap: 12px;
    }

    .form-head .button {
        width: 100%;
    }

    .form input,
    .form textarea {
        padding: 11px;
    }

    .admin-hero,
    .admin-section-head {
        flex-direction: column;
    }

    .admin-stat-grid,
    .admin-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-visitor-chart {
        grid-template-columns: repeat(14, 48px);
        overflow-x: auto;
    }

    .compose-preview-head,
    .poll-option-row {
        grid-template-columns: 1fr;
    }

    .compose-preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .poll-option-row {
        display: grid;
    }

    .map-link-card {
        grid-template-columns: 1fr;
    }

    .map-preview-art {
        min-height: 120px;
    }

    .map-link-body {
        padding: 16px;
    }

    .map-link-body p {
        font-size: 18px;
    }

    .site-footer {
        padding: 18px 0;
        font-size: 13px;
    }

    .chat-shell {
        padding: 16px;
    }

    .chat-head {
        align-items: stretch;
        flex-direction: column;
    }

    .chat-head h1 {
        font-size: 23px;
    }

    .chat-messages {
        height: 420px;
        padding: 12px;
    }

    .chat-message {
        max-width: 100%;
    }

    .chat-reaction {
        min-height: 28px;
        padding: 0 9px;
        font-size: 12px;
    }

    .chat-form {
        grid-template-columns: 1fr;
    }

    .chat-form input,
    .chat-form .button {
        min-height: 42px;
    }
}

@media (max-width: 380px) {
    .container {
        width: min(100% - 18px, 1120px);
    }

    .brand img {
        width: 138px;
    }

    .auth-link,
    .auth-links > a:not(.button),
    .button.small {
        min-height: 30px;
        padding: 0 8px;
        font-size: 12px;
    }

    .main-nav a {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .portal-copy h1 {
        font-size: 25px;
    }

    .portal-actions {
        grid-template-columns: 1fr;
    }

    .visitor-widget {
        grid-template-columns: 1fr;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .daangn-bridge-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 761px) and (max-width: 1040px) {
    .portal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
