:root {
    --ink: #1f2933;
    --muted: #6b7680;
    --line: #dfe4e7;
    --soft-line: #edf0f2;
    --paper: #ffffff;
    --canvas: #f4f6f7;
    --naver: #03a56a;
    --naver-dark: #087a55;
    --blue: #3975a8;
    --coral: #c86b58;
    --yellow: #e6b957;
    --shadow: 0 12px 36px rgba(29, 42, 53, .09);
}

:root[data-theme="dark"] {
    --ink: #e5edf1;
    --muted: #9fb0bb;
    --line: #25333b;
    --soft-line: #1f2c33;
    --paper: #121a20;
    --canvas: #0b1116;
    --naver: #32d198;
    --naver-dark: #73e2b8;
    --blue: #84b7e0;
    --coral: #f19a85;
    --yellow: #f1cc73;
    --shadow: 0 14px 40px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
html[data-theme="dark"] { color-scheme: dark; }
body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.74), rgba(244,246,247,0) 360px),
        var(--canvas);
    color: var(--ink);
    font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.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;
}
.muted { color: var(--muted); }
.eyebrow {
    margin: 0 0 4px;
    color: var(--naver-dark);
    font-size: 11px;
    font-weight: 800;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(18, 28, 35, .045);
}
:root[data-theme="dark"] .topbar { background: rgba(13, 20, 26, .92); }
.topbar-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(260px, 430px) minmax(220px, 1fr);
    align-items: center;
    gap: 24px;
}
.wordmark {
    font-family: var(--title-font);
    color: var(--naver-dark);
    font-size: 24px;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.site-search {
    height: 38px;
    display: grid;
    grid-template-columns: 1fr auto;
    border: 2px solid var(--naver);
    background: var(--paper);
}
.site-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 7px 12px;
    background: transparent;
}
.site-search button {
    width: 58px;
    border: 0;
    background: var(--naver);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.topnav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}
.topnav a, .nav-button {
    min-height: 38px;
    border: 0;
    background: transparent;
    color: #46515a;
    padding: 8px 11px;
    font-size: 14px;
    font-weight: 700;
}
.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font-weight: 900;
}
.topnav a:hover, .nav-button:hover { color: var(--naver-dark); }
.nav-form { display: inline-flex; margin: 0; }

.blog-cover {
    position: relative;
    height: clamp(390px, 52vw, 560px);
    overflow: hidden;
    background: #111d27;
}
.blog-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    transform: scale(1.02);
    filter: saturate(1.08) contrast(1.04);
}
.cover-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 14, 22, .18), rgba(6, 14, 22, .76)),
        linear-gradient(90deg, rgba(6, 15, 23, .88), rgba(6, 15, 23, .32) 58%, rgba(6, 15, 23, .66));
}
.cover-copy {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
}
.cover-copy p {
    margin: 0 0 10px;
    color: #9ce7c7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}
.cover-copy h1 {
    margin: 0;
    font-family: var(--title-font);
    font-size: clamp(46px, 7vw, 86px);
    line-height: 1.05;
    text-shadow: 0 16px 44px rgba(0,0,0,.32);
    overflow-wrap: anywhere;
}
.cover-copy > span { max-width: 660px; margin-top: 20px; color: #e6f0f3; font-size: clamp(16px, 2vw, 19px); }
.cover-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.national-flag-badge {
    position: absolute;
    top: clamp(18px, 3vw, 34px);
    right: max(16px, calc((100vw - 1180px) / 2));
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: min(430px, calc(100% - 32px));
    border: 1px solid rgba(255,255,255,.42);
    background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(9, 18, 27, .64));
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 17px 12px 12px;
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.national-flag-badge span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.national-flag-badge b {
    color: #fff;
    font-size: 16px;
    line-height: 1.1;
}
.national-flag-badge small {
    color: #dbe8ee;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
}
.taegukgi-mark {
    flex: 0 0 auto;
    width: 78px;
    height: 52px;
    border-radius: 5px;
    box-shadow: 0 10px 26px rgba(0,0,0,.24);
    object-fit: cover;
}
.ghost-button {
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 4px;
    color: #fff;
    padding: 9px 16px;
    font-weight: 800;
    background: rgba(255,255,255,.08);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ghost-button:hover {
    border-color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.16);
    transform: translateY(-1px);
}
.cover-latest {
    display: grid;
    gap: 4px;
    width: min(560px, 100%);
    margin-top: 22px;
    border: 1px solid rgba(255,255,255,.24);
    border-left: 4px solid var(--naver);
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(9, 20, 29, .48));
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 15px 17px;
    box-shadow: 0 18px 46px rgba(0,0,0,.18);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.cover-latest:hover {
    border-color: rgba(255,255,255,.46);
    background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(9, 20, 29, .54));
    transform: translateY(-1px);
}
.cover-latest span {
    color: #9ce7c7;
    font-size: 11px;
    font-weight: 900;
}
.cover-latest strong {
    min-width: 0;
    color: #fff;
    font-family: var(--title-font);
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cover-latest small {
    color: #d4e1e6;
    font-size: 12px;
}
.cover-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(78px, 1fr));
    gap: 1px;
    width: min(860px, 100%);
    margin-top: 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.24);
    box-shadow: 0 20px 52px rgba(0,0,0,.16);
}
.cover-stats span {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 12px 14px;
    background: rgba(4, 14, 22, .46);
    color: #dbe8ee;
    font-size: 12px;
}
.cover-stats b { color: #fff; font-size: 20px; line-height: 1.1; }
.cover-stats span:nth-child(odd) { background: rgba(4, 14, 22, .52); }

.blog-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 72px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}
.blog-sidebar { position: sticky; top: 96px; min-width: 0; overflow: hidden; }
.profile-block, .sidebar-section {
    border: 1px solid rgba(31, 41, 51, .08);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 12px 30px rgba(29, 42, 53, .045);
}
.profile-block { display: grid; grid-template-columns: 58px 1fr; gap: 14px; }
.profile-avatar, .byline-avatar, .comment-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--naver-dark);
    color: #fff;
    font-family: var(--title-font);
    font-weight: 800;
}
.profile-avatar { width: 58px; height: 58px; font-size: 24px; }
.profile-block strong { display: block; margin-top: 3px; font-family: var(--title-font); font-size: 17px; }
.profile-block p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.write-link {
    grid-column: 1 / -1;
    display: block;
    margin-top: 5px;
    border: 1px solid var(--naver);
    padding: 8px 12px;
    color: var(--naver-dark);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}
.sidebar-section h2 { margin: 0 0 12px; font-size: 14px; }
.category-list, .archive-list, .popular-list { display: grid; }
.category-list a, .archive-list a, .popular-list a {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 4px;
    color: #4c5861;
    font-size: 13px;
}
.category-list span, .archive-list span,
.popular-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-list a:hover, .archive-list a:hover, .popular-list a:hover, .category-list a.active, .archive-list a.active { color: var(--naver-dark); font-weight: 800; }
.category-list b, .archive-list b, .popular-list b { flex: 0 0 auto; color: #94a0a8; font-size: 12px; }

.post-feed {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98)),
        var(--paper);
    padding: 34px 34px 40px;
    box-shadow: 0 18px 48px rgba(29, 42, 53, .05);
}
.feed-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.feed-header h2 { margin: 0; font-family: var(--title-font); font-size: 25px; }
.feed-header h2 span { color: var(--naver); font-size: 15px; }
.feed-header p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.reset-filter { color: var(--naver-dark); font-size: 13px; font-weight: 800; }
.ai-search-card {
    display: grid;
    gap: 12px;
    margin: 22px 0 2px;
    border: 1px solid #bdded0;
    background: linear-gradient(135deg, rgba(3, 165, 106, .09), rgba(57, 117, 168, .07));
    padding: 20px;
}
.ai-search-card h3 { margin: 0; font-family: var(--title-font); font-size: 20px; }
.ai-search-card p { margin: 0; color: #3d5058; }
.ai-search-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-search-links a {
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    padding: 6px 10px;
    color: var(--naver-dark);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.feed-post {
    position: relative;
    min-height: 210px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-top: 18px;
    border: 1px solid rgba(31, 41, 51, .1);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,250,250,.96)),
        var(--paper);
    padding: 18px;
    box-shadow: 0 10px 28px rgba(29, 42, 53, .045);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.feed-post::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    bottom: -1px;
    width: 3px;
    background: linear-gradient(180deg, var(--naver), rgba(63, 134, 166, .42));
    opacity: 0;
    transition: opacity .2s ease;
}
.feed-post.no-thumb { grid-template-columns: 1fr; padding: 24px; }
.post-meta { display: flex; gap: 10px; align-items: center; color: #8a949b; font-size: 12px; }
.post-meta span { color: var(--naver-dark); font-weight: 800; }
.feed-copy h3 { margin: 8px 0 9px; font-family: var(--title-font); font-size: 25px; line-height: 1.3; }
.feed-copy p { margin: 0; color: #5e6971; font-size: 14px; line-height: 1.75; }
.feed-copy small {
    display: inline-flex;
    max-width: 100%;
    margin-top: 17px;
    border-top: 1px solid var(--soft-line);
    padding-top: 10px;
    color: #8b959c;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.feed-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #e4e9eb;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.feed-copy + .feed-thumb { display: none; }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.feed-post:hover {
    border-color: rgba(3, 165, 106, .32);
    box-shadow: 0 18px 42px rgba(29, 42, 53, .09);
    transform: translateY(-2px);
}
.feed-post:hover::before { opacity: 1; }
.feed-post:hover .feed-thumb img { transform: scale(1.025); }
.feed-post:hover h3 { color: var(--naver-dark); }
.empty-feed { padding: 100px 20px; text-align: center; }
.empty-feed h3 { font-family: var(--title-font); font-size: 24px; }
.empty-feed p { color: var(--muted); }
.empty-feed a { color: var(--naver-dark); font-weight: 800; }
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 28px;
    border-top: 1px solid var(--soft-line);
}
.pagination a, .pagination span {
    min-width: 36px;
    min-height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
}
.pagination a:hover, .pagination .active {
    border-color: var(--naver);
    background: var(--naver-dark);
    color: #fff;
}
.pagination .page-arrow { min-width: 58px; }
.pagination .page-boundary { min-width: 58px; }
.pagination .disabled {
    opacity: .45;
    cursor: default;
}
.pagination .page-gap {
    min-width: 24px;
    border: 0;
    background: transparent;
}

.article-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 48px auto 86px;
    display: grid;
    grid-template-columns: 190px minmax(0, 820px);
    justify-content: center;
    gap: 46px;
    align-items: start;
}
.article-sidebar { position: sticky; top: 94px; }
.mini-profile { display: flex; gap: 10px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mini-profile .profile-avatar { width: 42px; height: 42px; font-size: 18px; }
.mini-profile strong, .mini-profile small { display: block; }
.mini-profile small { color: var(--muted); }
.article-categories { display: grid; padding-top: 15px; }
.article-categories a { padding: 6px 2px; color: var(--muted); font-size: 13px; }
.article-categories a.active { color: var(--naver-dark); font-weight: 800; }
.post-article {
    min-width: 0;
    background: var(--paper);
    border: 1px solid rgba(28, 43, 51, .12);
    box-shadow: 0 24px 64px rgba(18, 28, 35, .09);
    padding: clamp(30px, 6vw, 68px);
}
.article-header {
    position: relative;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--soft-line);
}
.article-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: -18px;
    width: 54px;
    height: 3px;
    background: linear-gradient(90deg, var(--naver), var(--blue));
}
.category-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(3, 165, 106, .18);
    background: rgba(3, 165, 106, .08);
    color: var(--naver-dark);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
}
.article-header h1 {
    margin: 16px 0 24px;
    font-family: var(--title-font);
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.22;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.article-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--muted);
}
.byline-avatar { width: 38px; height: 38px; }
.article-byline strong, .article-byline time { display: block; }
.article-byline strong { font-size: 13px; }
.article-byline time { color: #89939a; font-size: 11px; }
.article-stats { margin-left: auto; color: #89939a; font-size: 12px; white-space: nowrap; }
.article-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.article-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
}
.article-actions button.active {
    border-color: var(--naver);
    background: rgba(3, 165, 106, .1);
    color: var(--naver-dark);
}
.article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 42px 0; }
.article-gallery.single { grid-template-columns: 1fr; }
.article-gallery figure { min-width: 0; margin: 0; }
.article-gallery a { display: block; overflow: hidden; border: 1px solid var(--soft-line); background: #eef1f2; }
.article-gallery img { width: 100%; height: 100%; max-height: 680px; aspect-ratio: 4 / 3; object-fit: cover; }
.article-gallery.single img { height: auto; aspect-ratio: auto; object-fit: contain; }
.article-gallery figcaption { padding-top: 6px; color: #9aa3a9; font-size: 11px; text-align: center; }
.article-content {
    padding: 18px 0 38px;
    color: #303940;
    font-size: 17px;
    line-height: 1.98;
    overflow-wrap: anywhere;
}
.article-content > p:first-of-type {
    color: #202a31;
    font-size: 1.06em;
}
.article-content p { margin: 0 0 1.55em; }
.article-content a {
    color: var(--blue);
    font-size: .88em;
    font-weight: 800;
    line-height: 1.65;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.article-content h2 {
    margin: 2.35em 0 .85em;
    border-top: 1px solid var(--soft-line);
    padding-top: 22px;
    font-family: var(--title-font);
    font-size: 26px;
    line-height: 1.36;
}
.article-content h2.news-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-content h2.news-section-title::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--naver);
}
.article-content blockquote {
    margin: 1.8em 0;
    border-left: 4px solid var(--naver);
    padding: 16px 22px;
    background: #f4faf7;
    color: #3b5549;
}
.news-date-note {
    border: 1px solid rgba(3,165,106,.22);
    border-left: 4px solid var(--naver);
    background: #f4faf7;
    color: #3b5549;
    padding: 13px 16px;
    margin: 24px 0 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}
.article-content ul { margin: 1.4em 0; padding-left: 24px; }
.article-content li { margin: .45em 0; }
.article-content h2 + ul {
    margin-top: .8em;
}
.article-content h2 + ul a {
    font-size: .95em;
}
.article-content h2.news-summary-title + ul,
.article-content h2.news-reference-title + ul {
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}
.article-content h2.news-summary-title + ul li,
.article-content h2.news-reference-title + ul li {
    margin: 0;
    border: 1px solid rgba(28, 43, 51, .1);
    background: linear-gradient(180deg, #fff, #f7fbf9);
    padding: 13px 15px;
    line-height: 1.7;
}
.article-content h2.news-summary-title + ul a {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    color: var(--naver-dark);
    font-size: .9em;
    font-weight: 900;
    text-decoration-color: rgba(3, 165, 106, .38);
}
.article-content h2.news-reference-title + ul a {
    display: inline;
    color: var(--ink);
    font-size: .96em;
    text-decoration-color: rgba(63, 134, 166, .45);
}
.news-brief-card {
    position: relative;
    border: 1px solid rgba(28, 43, 51, .12);
    border-left: 4px solid var(--naver);
    background:
        linear-gradient(135deg, rgba(3, 165, 106, .065), rgba(63, 134, 166, .05) 42%, rgba(255,255,255,.94)),
        #fff;
    padding: 20px 22px;
    margin: 14px 0;
    box-shadow: 0 12px 30px rgba(18, 28, 35, .045);
}
.news-brief-card p {
    margin: 0;
    color: #26323a;
    font-size: 16px;
    line-height: 1.9;
}
.news-brief-card a {
    color: var(--naver-dark);
    font-size: .9em;
    font-weight: 900;
    text-decoration-color: rgba(3, 165, 106, .36);
}
.news-article {
    border-color: rgba(26, 36, 43, .16);
    background:
        linear-gradient(180deg, rgba(247, 250, 249, .98), rgba(255,255,255,.98) 310px),
        var(--paper);
}
.news-article .article-header {
    border-bottom: 3px double rgba(31, 42, 49, .32);
    padding-bottom: 36px;
}
.news-article .article-header::before {
    top: -22px;
    width: 112px;
    height: 5px;
    background: linear-gradient(90deg, #1f2a31 0 68%, var(--naver) 68% 100%);
}
.news-article .category-label {
    border-color: rgba(31, 42, 49, .18);
    background: #1f2a31;
    color: #fff;
    letter-spacing: 0;
}
.news-article .article-header h1 {
    max-width: 760px;
    margin-top: 18px;
    font-family: Georgia, "Times New Roman", var(--title-font), serif;
    font-size: clamp(36px, 5.1vw, 54px);
    line-height: 1.14;
}
.news-article .article-byline {
    border-top: 1px solid rgba(31, 42, 49, .14);
    padding-top: 14px;
}
.news-article .article-actions {
    border-top: 1px solid rgba(31, 42, 49, .08);
    padding-top: 16px;
}
.news-article > .news-date-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid rgba(31, 42, 49, .13);
    border-left: 0;
    background:
        linear-gradient(90deg, rgba(3, 165, 106, .08), rgba(255,255,255,.92) 42%),
        #f7f9f8;
    color: #44515a;
    margin: 26px 0 12px;
    padding: 14px 16px;
    font-size: 13px;
}
.news-article > .news-date-note::before {
    content: "BRIEF";
    flex: 0 0 auto;
    border: 1px solid rgba(31, 42, 49, .22);
    background: #fff;
    color: #1f2a31;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.4;
}
.news-article .article-content {
    font-size: 17px;
    line-height: 2;
}
.news-article .article-content > p:first-of-type {
    border-bottom: 1px solid rgba(31, 42, 49, .12);
    padding-bottom: 22px;
    color: #1f2a31;
    font-size: 1.1em;
    font-weight: 650;
}
.news-article .article-content h2.news-section-title {
    border-top: 3px double rgba(31, 42, 49, .3);
    margin-top: 2.35em;
    padding-top: 20px;
    font-family: var(--title-font);
    font-size: 25px;
}
.news-article .article-content h2.news-section-title::before {
    width: 8px;
    height: 24px;
    background: linear-gradient(180deg, var(--naver-dark), var(--blue));
}
.news-article .news-brief-card {
    border: 1px solid rgba(31, 42, 49, .13);
    border-left: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,250,.98)),
        #fff;
    padding: 20px 22px 20px 26px;
    box-shadow: 0 12px 28px rgba(18, 28, 35, .055);
}
.news-article .news-brief-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    background: linear-gradient(180deg, var(--naver-dark), var(--blue));
}
.news-article .news-brief-card p {
    color: #26313a;
    font-size: 16px;
    line-height: 1.9;
}
.news-article .news-brief-card p::first-line {
    color: #1f2a31;
    font-weight: 800;
}
.news-article .news-brief-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.news-article .news-brief-card a::after {
    content: "->";
    font-size: .9em;
    text-decoration: none;
}
.news-article .article-content h2.news-reference-title + ul {
    border-top: 1px solid rgba(31, 42, 49, .16);
    padding-top: 6px;
}
.news-article .article-content h2.news-reference-title + ul li {
    border: 0;
    border-bottom: 1px solid rgba(31, 42, 49, .10);
    background: transparent;
    padding: 12px 2px;
}
.news-article .article-content h2.news-reference-title + ul a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f2a31;
    font-size: .92em;
    font-weight: 800;
    text-decoration: none;
}
.news-article .article-content h2.news-reference-title + ul a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--naver);
    flex: 0 0 auto;
}
.news-article .article-content h2.news-reference-title + ul a:hover {
    color: var(--naver-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.inline-post-image { margin: 2.4em 0; }
.inline-post-image a { display: block; overflow: hidden; border: 1px solid var(--soft-line); background: #eef1f2; }
.inline-post-image img { display: block; width: 100%; max-height: 720px; object-fit: contain; }
.inline-post-image figcaption { padding-top: 7px; color: #9aa3a9; font-size: 11px; text-align: center; line-height: 1.4; }
.inline-image-missing { color: #c2410c; font-weight: 700; }
.article-footer { display: flex; gap: 10px; align-items: center; padding: 22px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); color: var(--muted); font-size: 13px; }
.category-chip { color: var(--naver-dark); font-weight: 800; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 28px 0 44px; }
.post-navigation a { min-width: 0; border: 1px solid var(--line); padding: 16px; }
.post-navigation a.older { text-align: right; }
.post-navigation small, .post-navigation strong { display: block; }
.post-navigation small { color: var(--muted); font-size: 11px; }
.post-navigation strong { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comments { padding-top: 20px; }
.comments-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.comments-title h2 { margin: 0; font-family: var(--title-font); font-size: 25px; }
.comments-title h2 span { color: var(--naver); font-size: 16px; }
.comments-title > p { margin: 0; color: var(--muted); font-size: 12px; }
.comment-form { border: 1px solid var(--line); padding: 20px; background: #fafbfb; }
.comment-form label { display: grid; gap: 6px; color: #59656d; font-size: 12px; font-weight: 700; }
.comment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid #ccd3d7; background: #fff; padding: 10px; outline: 0; }
.comment-form textarea { resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--naver); box-shadow: 0 0 0 3px rgba(3, 165, 106, .09); }
.comment-form button, .primary-button, .draft-button {
    min-height: 42px;
    border: 0;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: 800;
}
.comment-form button,
.primary-button {
    background: linear-gradient(135deg, var(--naver-dark), #2d7196);
    color: #fff;
    box-shadow: 0 12px 26px rgba(8, 122, 85, .2);
    transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
}
.comment-form button:hover,
.primary-button:hover {
    filter: brightness(1.04);
    box-shadow: 0 16px 34px rgba(8, 122, 85, .26);
    transform: translateY(-1px);
}
.draft-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}
.comment-form button { display: block; margin: 12px 0 0 auto; }
.comment-list { margin-top: 26px; border-top: 1px solid #313b42; }
.comment-item { display: flex; gap: 12px; padding: 20px 2px; border-bottom: 1px solid var(--soft-line); }
.comment-avatar { width: 36px; height: 36px; font-size: 13px; }
.comment-item > div { min-width: 0; flex: 1; }
.comment-item header { display: flex; gap: 10px; align-items: center; }
.comment-item time { color: #98a1a7; font-size: 11px; }
.comment-item p { margin: 7px 0 0; font-size: 14px; }
.empty-comments { padding: 34px; text-align: center; color: var(--muted); }
.not-found { width: min(680px, calc(100% - 32px)); margin: 100px auto; text-align: center; }
.not-found h1 { font-family: var(--title-font); font-size: 38px; }

.blog-footer { padding: 34px 20px 48px; border-top: 1px solid var(--line); background: #fff; text-align: center; }
.blog-footer strong { font-family: var(--title-font); }
.blog-footer p { margin: 4px 0 0; color: #89939a; font-size: 12px; }

.gallery-page {
    background: var(--canvas);
    color: var(--ink);
}

.gallery-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 72px;
}

.gallery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(51, 126, 92, .12), rgba(255, 255, 255, .78)),
        #fff;
}

.gallery-hero h1 {
    margin: 4px 0 10px;
    font-family: var(--title-font);
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1;
    letter-spacing: 0;
}

.gallery-hero p {
    margin: 0;
    color: var(--muted);
}

.gallery-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    border: 1px solid rgba(51, 126, 92, .18);
    background: rgba(255, 255, 255, .74);
}

.gallery-stats span {
    display: grid;
    gap: 3px;
    padding: 16px;
    border-left: 1px solid rgba(51, 126, 92, .14);
    color: var(--muted);
    font-size: 12px;
}

.gallery-stats span:first-child { border-left: 0; }

.gallery-stats b {
    color: var(--naver-dark);
    font-size: 24px;
}

.gallery-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.gallery-filter label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.gallery-filter select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 0 12px;
    font: inherit;
}

.gallery-filter button,
.gallery-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--naver-dark);
    border-radius: 6px;
    background: var(--naver-dark);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.gallery-filter a {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.gallery-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
    border-color: rgba(51, 126, 92, .34);
    box-shadow: 0 16px 34px rgba(20, 35, 32, .12);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef4f1;
}

.gallery-card span,
.gallery-card strong,
.gallery-card small {
    margin-inline: 14px;
}

.gallery-card span {
    margin-top: 13px;
    color: var(--naver-dark);
    font-size: 12px;
    font-weight: 800;
}

.gallery-card strong {
    display: -webkit-box;
    min-height: 48px;
    margin-top: 7px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 1.5;
}

.gallery-card small {
    margin-top: 9px;
    margin-bottom: 14px;
    color: var(--muted);
}

.gallery-empty {
    margin-top: 22px;
}

.content-protected .blog-cover,
.content-protected .feed-list,
.content-protected .article-content,
.content-protected .article-gallery,
.content-protected .gallery-shell {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.content-protected .blog-cover img,
.content-protected .feed-list img,
.content-protected .article-content img,
.content-protected .article-gallery img,
.content-protected .gallery-shell img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.admin-page { background: #eef2f3; }
.admin-layout { width: min(1080px, calc(100% - 32px)); margin: 34px auto 80px; }
.admin-page [hidden] { display: none !important; }
.admin-section-nav {
    position: sticky;
    top: 72px;
    z-index: 9;
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    padding: 10px;
    margin-bottom: 18px;
    box-shadow: 0 10px 28px rgba(18, 28, 35, .06);
}
.admin-section-nav a {
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 14px;
    color: #4d5a62;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.admin-section-nav a:hover {
    border-color: rgba(3,165,106,.22);
    color: var(--naver-dark);
}
.admin-section-nav a.active {
    border-color: var(--naver);
    background: var(--naver-dark);
    color: #fff;
}
.admin-section-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .9fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(3,165,106,.22);
    background: linear-gradient(135deg, rgba(3,165,106,.10), rgba(63,134,166,.07)), #fff;
    padding: 22px;
    margin-bottom: 18px;
}
.admin-section-hero h1 {
    margin: 4px 0 8px;
    font-family: var(--title-font);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}
.admin-section-hero p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.admin-section-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}
.admin-section-stats span {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.65);
    background: rgba(255,255,255,.72);
    padding: 12px;
}
.admin-section-stats b,
.admin-section-stats small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-section-stats b {
    color: var(--naver-dark);
    font-size: 20px;
    line-height: 1.1;
}
.admin-section-stats small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.admin-section-actions {
    display: grid;
    gap: 8px;
}
.admin-section-actions a,
.panel-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.admin-section-actions a.primary,
.panel-action {
    border-color: var(--naver);
    background: var(--naver-dark);
    color: #fff;
}
.section-alert {
    margin: 0 0 18px;
}
#admin-posts > h2 {
    display: none;
}
.compact-heading {
    align-items: center;
}
.admin-summary.legacy-summary { display: none; }
.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.admin-summary article { border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fbfcfc); padding: 18px 20px; }
.admin-summary h2 { margin: 0 0 12px; color: var(--ink); font-size: 15px; }
.admin-summary div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--soft-line); }
.admin-summary span { color: var(--muted); font-size: 12px; }
.admin-summary strong { color: var(--naver-dark); font-size: 22px; }
.today-command-panel {
    border-color: rgba(3, 165, 106, .20);
    background:
        linear-gradient(135deg, rgba(3, 165, 106, .08), rgba(63, 134, 166, .06) 45%, rgba(255, 255, 255, .96)),
        #fff;
}
.today-command-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.today-command-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 8px;
    min-width: 0;
    min-height: 164px;
    border: 1px solid var(--line);
    border-top: 4px solid #9aa6ad;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,250,.92));
    color: inherit;
    padding: 18px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(29, 42, 53, .04);
}
.today-command-card::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9aa6ad;
}
.today-command-card:hover {
    border-color: rgba(3, 165, 106, .48);
    box-shadow: 0 12px 30px rgba(20, 39, 48, .08);
    transform: translateY(-1px);
}
.today-command-card.ok { border-top-color: var(--naver); }
.today-command-card.warn { border-top-color: #d8a31d; }
.today-command-card.bad { border-top-color: #d35a46; }
.today-command-card.ok::after { background: var(--naver); }
.today-command-card.warn::after { background: #d8a31d; }
.today-command-card.bad::after { background: #d35a46; }
.today-command-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.today-command-card strong {
    color: var(--ink);
    font-family: var(--title-font);
    font-size: 20px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.today-command-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.today-command-card b {
    justify-self: start;
    border: 1px solid rgba(3, 165, 106, .26);
    border-radius: 4px;
    background: rgba(3, 165, 106, .08);
    color: var(--naver-dark);
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1;
}
.dashboard-support-grid,
.dashboard-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
    gap: 16px;
    align-items: start;
}
.dashboard-support-grid .admin-panel,
.dashboard-news-grid .admin-panel {
    height: 100%;
}
.operation-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.operation-check-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    border: 1px solid var(--line);
    border-left: 4px solid #9aa6ad;
    background: linear-gradient(180deg, #fff, #f8fbfa);
    color: inherit;
    padding: 15px;
    text-decoration: none;
}
.operation-check-card:hover {
    border-color: rgba(3, 165, 106, .45);
    transform: translateY(-1px);
}
.operation-check-card.ok { border-left-color: var(--naver); }
.operation-check-card.warn { border-left-color: #d8a31d; }
.operation-check-card.bad { border-left-color: #d35a46; }
.operation-check-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.operation-check-card strong {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.operation-check-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.editor-actions button {
    flex: 1 1 160px;
}
.backup-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
}
.backup-download-form {
    margin: 0;
}
.backup-actions span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.backup-console {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.backup-split-grid {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.backup-work-card {
    background:
        linear-gradient(135deg, rgba(3, 165, 106, .06), rgba(255, 255, 255, .9) 42%),
        #fff;
    border: 1px solid var(--line);
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: clamp(18px, 2.4vw, 24px);
}

.backup-work-card-restore {
    background:
        linear-gradient(135deg, rgba(63, 134, 166, .08), rgba(255, 255, 255, .9) 42%),
        #fff;
}

.backup-work-heading {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
}

.backup-work-heading h3 {
    color: var(--ink);
    font-family: var(--title-font);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
    margin: 0;
}

.backup-work-heading span {
    color: var(--muted);
    font-size: 13px;
}

.backup-work-card .backup-console {
    margin: 0;
}

.backup-work-card .backup-primary-action,
.backup-work-card .backup-rehearsal-card,
.backup-work-card .backup-auto-card,
.backup-work-card .full-backup-list,
.backup-work-card .full-restore-card,
.backup-work-card .restore-guide {
    margin-bottom: 0;
}

.backup-work-card .backup-auto-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backup-work-card .backup-auto-form button {
    grid-column: 1 / -1;
}

.backup-work-card .backup-auto-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backup-work-card .full-restore-form {
    grid-template-columns: 1fr;
}

.backup-work-card .restore-post-form {
    display: grid;
    gap: 12px;
}

.backup-work-card .restore-post-form button {
    justify-self: start;
}
.backup-format-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    border: 1px solid var(--line);
    border-top: 3px solid #9aa6ad;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,250,.92));
    padding: 16px;
}
.backup-format-card.ok { border-top-color: var(--naver); }
.backup-format-card.warn { border-top-color: #d8a31d; }
.backup-format-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.backup-format-card strong {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.1;
}
.backup-format-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.backup-primary-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(3,165,106,.24);
    background: linear-gradient(135deg, rgba(3,165,106,.09), rgba(63,134,166,.07));
    padding: 18px;
    margin: 0 0 18px;
}
.backup-primary-action div {
    display: grid;
    gap: 5px;
    min-width: 0;
}
.backup-primary-action strong {
    color: var(--ink);
    font-size: 16px;
}
.backup-primary-action span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.backup-choice-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.backup-choice-actions form {
    margin: 0;
}
.backup-choice-actions button:not(.primary-button) {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    padding: 10px 18px;
    font-weight: 800;
}
.backup-rehearsal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(63,134,166,.25);
    background: #fff;
    padding: 18px;
    margin: 0 0 18px;
}
.backup-rehearsal-card div {
    display: grid;
    gap: 5px;
    min-width: 0;
}
.backup-rehearsal-card strong {
    color: var(--ink);
    font-size: 16px;
}
.backup-rehearsal-card span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.backup-rehearsal-card form {
    flex: 0 0 auto;
    margin: 0;
}
.backup-rehearsal-card button {
    min-height: 42px;
    border: 0;
    border-radius: 4px;
    background: var(--naver-dark);
    color: #fff;
    padding: 10px 18px;
    font-weight: 900;
}
.backup-rehearsal-result {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-left: 4px solid #9aa6ad;
    background: #fff;
    padding: 16px;
    margin: 0 0 18px;
}
.backup-rehearsal-result.ok { border-left-color: var(--naver); }
.backup-rehearsal-result.warn { border-left-color: #d8a31d; }
.backup-rehearsal-result.bad { border-left-color: #be3144; }
.backup-rehearsal-result > div {
    display: grid;
    gap: 5px;
}
.backup-rehearsal-result strong {
    color: var(--ink);
    overflow-wrap: anywhere;
}
.backup-rehearsal-result small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.backup-rehearsal-result ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.backup-rehearsal-result li {
    display: grid;
    grid-template-columns: auto minmax(120px, .4fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border-top: 1px solid var(--soft-line);
    padding-top: 8px;
    min-width: 0;
}
.backup-rehearsal-result li span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}
.backup-auto-card {
    display: grid;
    gap: 16px;
    margin: 0 0 18px;
    border: 1px solid var(--line);
    background: #fbfcfc;
    padding: 18px;
}
.backup-auto-card > div:first-child { display: grid; gap: 5px; }
.backup-auto-card strong { color: var(--ink); }
.backup-auto-card span,
.backup-auto-card .hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.backup-auto-card code { overflow-wrap: anywhere; }
.backup-auto-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}
.backup-auto-form label {
    display: grid;
    gap: 6px;
    color: #48545c;
    font-size: 12px;
    font-weight: 800;
}
.backup-auto-form select,
.backup-auto-form input {
    width: 100%;
    border: 1px solid #ccd3d7;
    background: #fff;
    padding: 9px 10px;
}
.backup-auto-form button {
    min-height: 39px;
    border: 0;
    border-radius: 4px;
    background: var(--naver-dark);
    color: #fff;
    padding: 9px 13px;
    font-weight: 900;
}
.backup-auto-status {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}
.backup-auto-status p {
    display: grid;
    gap: 5px;
    min-width: 0;
    margin: 0;
    background: #fff;
    padding: 12px;
}
.backup-auto-status b { color: #3c4850; font-size: 12px; }
.backup-auto-status span { min-width: 0; overflow-wrap: anywhere; }
.full-backup-list {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 15px 16px;
    margin: 0 0 18px;
}
.full-backup-list strong {
    color: var(--ink);
    font-size: 14px;
}
.full-backup-list span {
    display: block;
    border-top: 1px solid var(--soft-line);
    padding-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.full-backup-list span small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}
.full-restore-card {
    display: grid;
    gap: 14px;
    border: 1px solid #d8c7a4;
    background: #fffaf0;
    padding: 16px;
    margin: 0 0 18px;
}
.full-restore-card > div:first-child {
    display: grid;
    gap: 5px;
}
.full-restore-card strong {
    color: #33260c;
}
.full-restore-card span,
.full-restore-card .hint {
    color: #6d5a32;
    font-size: 13px;
    line-height: 1.5;
}
.full-restore-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(160px, .8fr) minmax(130px, .6fr) auto;
    gap: 12px;
    align-items: end;
}
.full-restore-form label {
    display: grid;
    gap: 6px;
    color: #514222;
    font-size: 12px;
    font-weight: 900;
}
.full-restore-form select,
.full-restore-form input {
    width: 100%;
    min-width: 0;
    border: 1px solid #d1bd91;
    background: #fff;
    padding: 9px 10px;
}
.full-restore-form button {
    min-height: 39px;
    border: 0;
    border-radius: 4px;
    background: #8a4b15;
    color: #fff;
    padding: 9px 13px;
    font-weight: 900;
    white-space: nowrap;
}
.backup-health {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    margin-right: 6px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
}
.backup-health.ok {
    background: rgba(3,165,106,.12);
    color: #08724d;
}
.backup-health.warn {
    background: rgba(216,163,29,.14);
    color: #8a6208;
}
.backup-health.bad {
    background: rgba(190,49,68,.12);
    color: #a12535;
}
.restore-guide {
    border: 1px solid var(--line);
    background: #fbfcfc;
    padding: 16px 18px;
    margin: 0 0 18px;
}
.restore-guide strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
}
.restore-guide ol {
    margin: 0;
    padding-left: 19px;
    color: #536069;
    font-size: 12px;
    line-height: 1.7;
}
.restore-guide code {
    border: 1px solid var(--line);
    background: #fff;
    padding: 1px 5px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
    gap: 28px;
    align-items: stretch;
}
.stats-chart-wrap {
    min-height: 250px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(3,165,106,.06), transparent);
    padding: 18px 16px 12px;
}
.stats-y-axis {
    display: grid;
    grid-template-rows: 1fr 1fr auto;
    align-items: start;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-align: right;
    padding-bottom: 24px;
}
.stats-y-axis span:nth-child(2) { align-self: center; }
.stats-y-axis span:nth-child(3) { align-self: end; }
.stats-chart {
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
}
.stats-chart span { display: grid; grid-template-rows: 1fr auto; gap: 8px; height: 100%; min-width: 0; }
.stats-chart i {
    align-self: end;
    display: block;
    height: var(--bar-height);
    min-height: 8px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--naver), var(--blue));
}
.stats-chart b {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    writing-mode: vertical-rl;
    justify-self: center;
}
.top-posts-card {
    border: 1px solid var(--line);
    padding: 18px;
}
.top-posts-card h2 { margin-bottom: 12px; font-size: 18px; }
.top-posts-card a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--soft-line);
    font-size: 13px;
}
.top-posts-card span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-posts-card b { color: var(--naver-dark); }
.news-candidate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.news-candidate-grid article {
    min-width: 0;
    border: 1px solid var(--line);
    border-top: 3px solid rgba(3, 165, 106, .42);
    background: linear-gradient(180deg, #fff, #f7fbf9);
    padding: 15px;
}
.news-candidate-grid span {
    display: block;
    color: var(--naver-dark);
    font-size: 11px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-candidate-grid strong {
    display: -webkit-box;
    min-height: 43px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
}
.news-candidate-grid small {
    display: block;
    margin-top: 7px;
    color: #71808a;
    font-size: 11px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-candidate-grid p {
    display: -webkit-box;
    margin: 9px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.news-quality-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-left: 4px solid #9aa6ad;
    background: linear-gradient(180deg, #fff, #f7fbf9);
    padding: 18px;
}
.dashboard-news-grid .news-quality-card {
    grid-template-columns: 96px minmax(0, 1fr);
}
.dashboard-news-grid .news-quality-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.news-quality-card.ok { border-left-color: var(--naver); }
.news-quality-card.warn { border-left-color: #d8a31d; }
.news-quality-card.bad { border-left-color: #d35a46; }
.news-quality-card div {
    display: grid;
    gap: 4px;
}
.news-quality-card strong {
    color: var(--naver-dark);
    font-family: var(--title-font);
    font-size: 42px;
    line-height: 1;
}
.news-quality-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.news-quality-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.news-quality-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.news-quality-checks article {
    border: 1px solid var(--line);
    border-top: 3px solid #9aa6ad;
    background: #fff;
    padding: 12px;
}
.news-quality-checks article.ok { border-top-color: var(--naver); }
.news-quality-checks article.warn { border-top-color: #d8a31d; }
.news-quality-checks article.bad { border-top-color: #d35a46; }
.news-quality-checks span,
.news-quality-checks strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-quality-checks span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.news-quality-checks strong {
    margin-top: 6px;
    color: var(--ink);
    font-size: 16px;
}
.inline-admin-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}
.secondary-button {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 900;
}
.secondary-button:hover {
    border-color: rgba(3, 165, 106, .35);
    color: var(--naver-dark);
}
.admin-panel { margin-bottom: 22px; border: 1px solid var(--line); background: #fff; padding: clamp(24px, 4vw, 42px); }
.admin-panel.narrow { max-width: 520px; margin: 80px auto; }
.admin-panel h1, .admin-panel h2 { margin: 0 0 22px; font-family: var(--title-font); line-height: 1.3; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.panel-heading h1, .panel-heading h2 { margin: 0; }
.panel-heading > span { color: var(--muted); font-size: 12px; }
.editor-form, .admin-panel > form, .admin-panel-body > form { display: grid; gap: 18px; }
.admin-panel label { display: grid; gap: 7px; color: #48545c; font-size: 13px; font-weight: 800; }
.admin-panel input[type="text"], .admin-panel input[type="search"], .admin-panel input[type="password"], .admin-panel input[type="time"], .admin-panel input[type="file"], .admin-panel textarea, .admin-panel select {
    width: 100%;
    border: 1px solid #cbd3d7;
    border-radius: 4px;
    background: #fff;
    padding: 11px 12px;
    color: var(--ink);
    outline: 0;
}
.admin-panel textarea { resize: vertical; line-height: 1.75; }
.admin-panel input:focus, .admin-panel textarea:focus, .admin-panel select:focus { border-color: var(--naver); box-shadow: 0 0 0 3px rgba(3, 165, 106, .09); }
.label-note, .writing-help { color: #8a959c; font-size: 11px; font-weight: 500; }

.field-title {
    color: #17212b;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.weekday-topic-block {
    grid-column: 1 / -1;
}

.weekday-topic-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weekday-topic-grid label {
    min-width: 0;
}

@media (max-width: 760px) {
    .weekday-topic-grid {
        grid-template-columns: 1fr;
    }
}
.writing-help { display: flex; justify-content: space-between; }
.inline-check { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; }
.inline-check input { width: auto !important; }
.ai-run-form { margin-top: 14px; }
.ai-settings-form {
    display: grid;
    gap: 16px;
}
.ai-settings-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}
.ai-config-card {
    display: grid;
    gap: 13px;
    align-content: start;
    min-width: 0;
    border: 1px solid rgba(63,134,166,.18);
    background: linear-gradient(180deg, rgba(63,134,166,.06), rgba(255,255,255,.88)), #fff;
    padding: 18px;
}
.news-config-card {
    border-color: rgba(3,165,106,.20);
    background: linear-gradient(180deg, rgba(3,165,106,.07), rgba(255,255,255,.90)), #fff;
}
.news-setting-group {
    display: grid;
    gap: 13px;
    min-width: 0;
    border: 1px solid rgba(3,165,106,.15);
    background: rgba(255,255,255,.66);
    padding: 15px;
}
.news-setting-group .field-title {
    margin-bottom: 0;
}
.news-setting-group textarea[name="ai_news_allowed_press"] {
    min-height: 190px;
}
.ai-config-head {
    display: grid;
    gap: 4px;
    border-bottom: 1px solid var(--soft-line);
    padding-bottom: 12px;
}
.ai-config-head h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--title-font);
    font-size: 20px;
}
.ai-config-head span {
    color: var(--muted);
    font-size: 12px;
}
.ai-run-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.ai-run-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    border: 1px solid rgba(63,134,166,.18);
    background: linear-gradient(180deg, rgba(63,134,166,.06), rgba(255,255,255,.88)), #fff;
    padding: 18px;
}
.news-run-card {
    border-color: rgba(3,165,106,.20);
    background: linear-gradient(180deg, rgba(3,165,106,.07), rgba(255,255,255,.90)), #fff;
}
.ai-run-card .ai-run-form {
    margin-top: 0;
}
.ai-run-card .primary-button {
    width: 100%;
}
.scheduler-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px dashed rgba(63,134,166,.28);
    background: rgba(255,255,255,.72);
    padding: 12px;
}
.scheduler-copy strong,
.scheduler-copy span {
    display: block;
    min-width: 0;
}
.scheduler-copy strong {
    color: var(--ink);
    font-size: 13px;
}
.scheduler-copy span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}
.scheduler-copy button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
}
.ai-subsettings {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    background: rgba(57, 117, 168, .05);
    padding: 18px;
}
.ai-subsettings h3 { margin: 0; font-size: 16px; }
.system-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.dashboard-support-grid .system-status-grid {
    grid-template-columns: 1fr;
}
.system-status-card {
    display: grid;
    gap: 7px;
    min-width: 0;
    border: 1px solid var(--line);
    border-left: 4px solid #9aa6ad;
    background: #fbfcfc;
    padding: 15px;
}
.system-status-card.ok { border-left-color: var(--naver); }
.system-status-card.warn { border-left-color: #d8a31d; }
.system-status-card.bad { border-left-color: #d35a46; }
.system-status-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.system-status-card strong {
    color: var(--ink);
    font-size: 18px;
    overflow-wrap: anywhere;
}
.system-status-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.restore-history {
    display: grid;
    gap: 10px;
}
.restore-history article {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    background: #fbfcfc;
    padding: 14px;
}
.restore-history strong {
    color: var(--ink);
    font-size: 14px;
}
.restore-history span,
.restore-history small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.news-log-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}
.news-log-grid div {
    display: grid;
    gap: 5px;
    min-width: 0;
    border-left: 4px solid transparent;
    background: #fff;
    padding: 16px;
}
.news-log-grid div.ok { border-left-color: var(--naver); }
.news-log-grid div.warn { border-left-color: #d8a31d; }
.news-log-grid div.bad { border-left-color: #d35a46; }
.news-log-grid span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.news-log-grid strong {
    color: var(--naver-dark);
    font-size: 19px;
    overflow-wrap: anywhere;
}
.news-log-grid small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.news-log-detail {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}
.news-log-detail p {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
    margin: 0;
    border-bottom: 1px solid var(--soft-line);
    padding: 9px 0;
    font-size: 13px;
}
.news-log-detail b { color: #3c4850; }
.news-log-detail span { min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
.news-event-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    border: 1px solid var(--soft-line);
    background: #fbfcfc;
    padding: 16px;
}
.news-event-list h3 { margin: 0 0 4px; font-size: 15px; }
.news-event-list p {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}
.news-event-list b { color: #3c4850; }
.news-event-list span { min-width: 0; overflow-wrap: anywhere; }
.login-history-list {
    display: grid;
    gap: 10px;
}
.login-history-list article {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fbfcfc;
    padding: 14px;
}
.login-history-list article.success { border-left: 4px solid var(--naver); }
.login-history-list article.failed { border-left: 4px solid #dc4c4c; }
.login-history-list article > div,
.login-history-list p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
}
.login-history-list strong {
    color: var(--ink);
    font-size: 14px;
}
.login-history-list article.success strong { color: var(--naver-dark); }
.login-history-list article.failed strong { color: #b83333; }
.login-history-list span,
.login-history-list small,
.login-history-list em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    overflow-wrap: anywhere;
}
.login-history-list p b {
    color: #37434b;
    font-size: 13px;
}
.admin-collapse-toggle { display: none; }
.admin-panel-body { display: contents; }
.editor-preview-box {
    border: 1px solid var(--line);
    background: #fbfcfc;
    padding: 18px;
}
.editor-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 14px;
}
.editor-preview-head h2 { margin: 0; font-size: 18px; }
.preview-refresh {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: #43515a;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}
.preview-window-row {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 12px;
}
.preview-window-page {
    background: #eef2f3;
}
.preview-window-shell {
    width: min(860px, calc(100% - 28px));
    margin: 28px auto;
}
.post-preview {
    border: 1px solid var(--soft-line);
    background: #fff;
    padding: clamp(18px, 3vw, 28px);
}
.post-preview header {
    border-bottom: 1px solid var(--soft-line);
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.post-preview header span {
    display: inline-block;
    color: var(--naver-dark);
    font-size: 12px;
    font-weight: 900;
}
.post-preview header h1 {
    margin: 6px 0 0;
    font-family: var(--title-font);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.post-preview .article-content { padding-bottom: 0; }
.missing-image {
    display: inline-block;
    border: 1px dashed #b9c4ca;
    border-radius: 4px;
    color: var(--muted);
    padding: 2px 7px;
    font-size: .88em;
}
.editor-toolbar { display: flex; gap: 5px; }
.editor-toolbar button {
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #f8fafa;
    color: #49555d;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}
.upload-dropzone {
    border: 1px dashed #9fb8c5;
    border-radius: 6px;
    background: rgba(3, 165, 106, .04);
    padding: 16px;
}
.upload-dropzone input[type="file"] { margin-top: 8px; }
.upload-dropzone.is-dragging {
    border-color: var(--naver);
    background: rgba(3, 165, 106, .12);
    box-shadow: inset 0 0 0 2px rgba(3, 165, 106, .16);
}
.dropzone-copy {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.selected-images, .existing-images { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.selected-images:empty { display: none; }
.selected-image, .existing-images label { overflow: hidden; border: 1px solid var(--line); background: #fafbfb; }
.selected-image img, .existing-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.selected-image span, .existing-images span { display: block; padding: 7px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-image-button { width: calc(100% - 12px); margin: 6px; border: 1px solid var(--line); background: #fff; padding: 6px 8px; color: #202a31; font-size: 11px; font-weight: 800; cursor: pointer; }
.inline-image-button:hover { border-color: var(--naver); color: var(--naver-dark); }
.upload-progress {
    display: grid;
    gap: 8px;
    border: 1px solid #cfe6dc;
    border-radius: 4px;
    background: #f3fbf7;
    padding: 13px 14px;
}
.upload-progress[hidden] { display: none; }
.upload-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #176347;
    font-size: 12px;
    font-weight: 800;
}
.upload-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dceee6;
}
.upload-progress-track span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--naver), var(--blue));
    transition: width .18s ease;
}
.upload-progress.error {
    border-color: #f0c9c0;
    background: #fff5f2;
}
.upload-progress.error .upload-progress-top { color: #8a3d31; }
.ai-progress {
    display: grid;
    gap: 10px;
    border: 1px solid #c9dded;
    border-radius: 4px;
    background: #f4f9fd;
    padding: 14px;
}
.ai-progress[hidden] { display: none; }
.ai-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #245978;
    font-size: 12px;
    font-weight: 800;
}
.ai-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcebf5;
}
.ai-progress-track span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--naver));
    transition: width .35s ease;
}
.ai-progress-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ai-progress-steps li {
    min-width: 0;
    border: 1px solid #d7e4ec;
    border-radius: 4px;
    background: #fff;
    color: var(--muted);
    padding: 7px 8px;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}
.ai-progress-steps li.active {
    border-color: var(--blue);
    color: #245978;
    background: #edf7fd;
}
.primary-button[disabled] { opacity: .68; cursor: wait; }
.ai-writing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}
.ai-writing-actions a {
    text-decoration: none;
}
.ai-writing-actions .primary-button,
.ai-writing-actions .draft-button,
.ai-writing-actions .panel-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ai-draft-list strong {
    font-size: 15px;
}
.ai-draft-list .draft-full-body {
    max-height: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.admin-list { border-top: 1px solid #343e45; }
.admin-list article { display: flex; justify-content: space-between; gap: 24px; padding: 18px 2px; border-bottom: 1px solid var(--soft-line); }
.admin-list article > div:first-child { min-width: 0; }
.admin-list strong, .admin-list span { display: block; }
.admin-list strong { overflow-wrap: anywhere; }
.admin-list span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.admin-list p { margin: 7px 0 0; color: #59656d; }
.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(130px, .7fr) minmax(130px, .7fr) auto;
    gap: 10px;
    align-items: end;
    margin: 18px 0 10px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(3, 165, 106, .06), rgba(63, 134, 166, .05));
    padding: 14px;
}
.admin-filter-bar label {
    display: grid;
    gap: 5px;
    min-width: 0;
}
.admin-filter-bar span,
.admin-filter-summary {
    color: var(--muted);
    font-size: 12px;
}
.admin-filter-bar span {
    font-weight: 800;
}
.admin-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.admin-filter-actions .primary-button {
    min-height: 40px;
}
.admin-filter-actions a {
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
}
.admin-filter-summary {
    margin: 0 0 16px;
}
.row-actions { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.row-actions a, .link-button { border: 0; background: transparent; color: var(--blue); padding: 4px; font-size: 12px; font-weight: 800; }
.row-actions form { margin: 0; }
.font-preview { font-family: var(--title-font); font-size: 27px; }
.hint {
    max-width: 100%;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.admin-panel .hint code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.alert { margin: 0 0 18px; border-left: 4px solid; padding: 12px 14px; font-size: 13px; }
.alert.success { border-color: var(--naver); background: #eef9f4; color: #176347; }
.alert.error { border-color: var(--coral); background: #fff3f0; color: #8a3d31; }
.peter-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
}
.peter-toggle {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--naver-dark);
    color: #fff;
    padding: 12px 18px;
    font-weight: 900;
    box-shadow: var(--shadow);
}
.peter-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(360px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}
.peter-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
}
.peter-panel header button {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
}
.peter-log {
    display: grid;
    gap: 9px;
    max-height: 320px;
    overflow: auto;
    padding: 14px;
}
.peter-log p {
    margin: 0;
    border-radius: 8px;
    background: #f0f5f4;
    padding: 10px 11px;
    color: #34444b;
    font-size: 13px;
    line-height: 1.55;
}
.peter-message.user {
    justify-self: end;
    max-width: 86%;
    background: var(--naver-dark);
    color: #fff;
}
.peter-message.bot { justify-self: start; max-width: 92%; }
.peter-message.error { background: #fff3f0; color: #8a3d31; }
.peter-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding: 12px;
}
.peter-panel input {
    min-width: 0;
    border: 1px solid #cbd3d7;
    border-radius: 4px;
    padding: 10px;
}
.peter-panel form button {
    border: 0;
    border-radius: 4px;
    background: var(--naver-dark);
    color: #fff;
    padding: 8px 12px;
    font-weight: 800;
}
.radio-panel {
    display: grid;
    gap: 18px;
}
.radio-player-card {
    display: grid;
    gap: 16px;
    border: 1px solid rgba(3,165,106,.20);
    background: linear-gradient(135deg, rgba(3,165,106,.08), rgba(63,134,166,.07)), #fff;
    padding: 20px;
}
.radio-now {
    display: grid;
    gap: 5px;
    min-width: 0;
}
.radio-now span {
    color: var(--naver-dark);
    font-size: 11px;
    font-weight: 900;
}
.radio-now strong {
    color: var(--ink);
    font-family: var(--title-font);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.2;
}
.radio-now small {
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.radio-player-card audio {
    width: 100%;
}
.radio-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 10px;
    align-items: end;
}
.radio-controls label {
    display: grid;
    gap: 7px;
    color: #48545c;
    font-size: 13px;
    font-weight: 800;
}
.radio-controls select {
    width: 100%;
    border: 1px solid #ccd3d7;
    background: #fff;
    padding: 10px;
}
.radio-controls button,
.radio-open-link,
.radio-station-grid button {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
}
.radio-controls button,
.radio-open-link {
    min-height: 42px;
    padding: 10px 18px;
}
.radio-open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    white-space: nowrap;
}
.radio-controls button:first-of-type {
    border-color: var(--naver-dark);
    background: var(--naver-dark);
    color: #fff;
}
.radio-status {
    margin: 0;
    border: 1px solid rgba(63,134,166,.22);
    background: rgba(255,255,255,.72);
    padding: 10px 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.radio-status[data-state="playing"] {
    border-color: rgba(3,165,106,.28);
    background: rgba(3,165,106,.10);
    color: #08724d;
}
.radio-status[data-state="loading"] {
    border-color: rgba(216,163,29,.28);
    background: rgba(216,163,29,.12);
    color: #8a6208;
}
.radio-status[data-state="error"] {
    border-color: rgba(190,49,68,.26);
    background: rgba(190,49,68,.10);
    color: #a12535;
}
.radio-station-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.radio-station-grid button {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    text-align: left;
}
.radio-station-grid button:hover {
    border-color: rgba(3,165,106,.35);
    box-shadow: 0 10px 24px rgba(18, 28, 35, .08);
}
.radio-station-grid strong {
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.radio-station-grid small {
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}
.radio-popup-page {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(3,165,106,.10), rgba(63,134,166,.08)), #eef3f4;
}
.radio-popup-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 18px;
}
.radio-popup-page .admin-panel {
    padding: 20px;
}
.radio-popup-page .panel-heading {
    align-items: start;
}
.radio-popup-page .radio-controls {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
}
.radio-popup-stations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 310px;
    overflow: auto;
    padding-right: 3px;
}
:root[data-theme="dark"] .post-feed,
:root[data-theme="dark"] .post-article,
:root[data-theme="dark"] .blog-footer,
:root[data-theme="dark"] .gallery-hero,
:root[data-theme="dark"] .gallery-filter,
:root[data-theme="dark"] .gallery-filter select,
:root[data-theme="dark"] .gallery-filter a,
:root[data-theme="dark"] .gallery-card,
:root[data-theme="dark"] .admin-summary div,
:root[data-theme="dark"] .admin-section-nav,
:root[data-theme="dark"] .admin-section-hero,
:root[data-theme="dark"] .admin-section-stats span,
:root[data-theme="dark"] .admin-section-actions a,
:root[data-theme="dark"] .panel-action,
:root[data-theme="dark"] .admin-panel,
:root[data-theme="dark"] .operation-check-card,
:root[data-theme="dark"] .system-status-card,
:root[data-theme="dark"] .news-log-grid div,
:root[data-theme="dark"] .news-event-list,
:root[data-theme="dark"] .editor-preview-box,
:root[data-theme="dark"] .post-preview,
:root[data-theme="dark"] .preview-refresh,
:root[data-theme="dark"] .ai-progress,
:root[data-theme="dark"] .ai-progress-steps li,
:root[data-theme="dark"] .comment-form,
:root[data-theme="dark"] .selected-image,
:root[data-theme="dark"] .existing-images label,
:root[data-theme="dark"] .editor-toolbar button,
:root[data-theme="dark"] .site-search,
:root[data-theme="dark"] .comment-form input,
:root[data-theme="dark"] .comment-form textarea,
:root[data-theme="dark"] .admin-panel input[type="text"],
:root[data-theme="dark"] .admin-panel input[type="search"],
:root[data-theme="dark"] .admin-panel input[type="password"],
:root[data-theme="dark"] .admin-panel input[type="time"],
:root[data-theme="dark"] .admin-panel input[type="file"],
:root[data-theme="dark"] .admin-panel textarea,
:root[data-theme="dark"] .admin-panel select {
    background-color: var(--paper);
    color: var(--ink);
}
:root[data-theme="dark"] .admin-section-nav a { color: #c2ccd2; }
:root[data-theme="dark"] .admin-section-nav a.active { color: #fff; }
:root[data-theme="dark"] .feed-copy p,
:root[data-theme="dark"] .article-content,
:root[data-theme="dark"] .admin-list p,
:root[data-theme="dark"] .news-log-detail b,
:root[data-theme="dark"] .category-list a,
:root[data-theme="dark"] .archive-list a,
:root[data-theme="dark"] .popular-list a,
:root[data-theme="dark"] .topnav a,
:root[data-theme="dark"] .nav-button { color: var(--muted); }
:root[data-theme="dark"] .article-content blockquote { background: #10261e; color: #c8eadb; }
:root[data-theme="dark"] .news-date-note { background: #10261e; color: #c8eadb; }
:root[data-theme="dark"] .article-content h2.news-summary-title + ul li,
:root[data-theme="dark"] .article-content h2.news-reference-title + ul li {
    background: #102029;
    border-color: rgba(255,255,255,.1);
}
:root[data-theme="dark"] .article-content h2.news-reference-title + ul a { color: var(--ink); }
:root[data-theme="dark"] .news-article {
    background: linear-gradient(180deg, #102029, #0f1c24 260px), var(--paper);
    border-color: rgba(255,255,255,.12);
}
:root[data-theme="dark"] .news-article .article-header,
:root[data-theme="dark"] .news-article .article-content h2.news-section-title {
    border-color: rgba(255,255,255,.28);
}
:root[data-theme="dark"] .news-article .category-label,
:root[data-theme="dark"] .news-article .article-header::before {
    background: var(--ink);
    color: #0f1c24;
}
:root[data-theme="dark"] .news-article > .news-date-note {
    background: #10261e;
    border-color: rgba(255,255,255,.12);
    color: #c8eadb;
}
:root[data-theme="dark"] .news-article > .news-date-note::before {
    background: #0f1c24;
    color: var(--ink);
    border-color: rgba(255,255,255,.18);
}
:root[data-theme="dark"] .news-article .article-content > p:first-of-type,
:root[data-theme="dark"] .news-article .article-content h2.news-reference-title + ul li {
    border-color: rgba(255,255,255,.12);
}
:root[data-theme="dark"] .news-article .news-brief-card p::first-line,
:root[data-theme="dark"] .news-article .article-content h2.news-reference-title + ul a {
    color: var(--ink);
}
:root[data-theme="dark"] .news-article .article-content h2.news-reference-title + ul a::before {
    background: var(--naver);
}
:root[data-theme="dark"] .news-brief-card,
:root[data-theme="dark"] .today-command-card,
:root[data-theme="dark"] .news-candidate-grid article,
:root[data-theme="dark"] .news-quality-card,
:root[data-theme="dark"] .news-quality-checks article {
    background: #102029;
    border-color: rgba(255,255,255,.1);
}
:root[data-theme="dark"] .news-brief-card p,
:root[data-theme="dark"] .news-candidate-grid strong,
:root[data-theme="dark"] .news-quality-checks strong { color: var(--ink); }
:root[data-theme="dark"] .news-candidate-grid small { color: var(--muted); }
:root[data-theme="dark"] .secondary-button {
    background: var(--paper);
    color: var(--ink);
}
:root[data-theme="dark"] .alert.success { background: #10261e; color: #bdebd8; }
:root[data-theme="dark"] .alert.error { background: #321b18; color: #ffc4b7; }
:root[data-theme="dark"] .ai-progress-steps li.active { background: #102029; color: var(--ink); }
:root[data-theme="dark"] .ai-search-card,
:root[data-theme="dark"] .ai-config-card,
:root[data-theme="dark"] .ai-run-card,
:root[data-theme="dark"] .scheduler-copy,
:root[data-theme="dark"] .ai-subsettings,
:root[data-theme="dark"] .radio-player-card { background: #102029; }
:root[data-theme="dark"] .admin-summary article,
:root[data-theme="dark"] .today-command-panel,
:root[data-theme="dark"] .today-command-card,
:root[data-theme="dark"] .operation-check-card,
:root[data-theme="dark"] .system-status-card,
:root[data-theme="dark"] .stats-chart-wrap,
:root[data-theme="dark"] .top-posts-card {
    background: #102029;
}
:root[data-theme="dark"] .news-setting-group {
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.10);
}
:root[data-theme="dark"] .admin-filter-bar {
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.10);
}
:root[data-theme="dark"] .ai-search-card p,
:root[data-theme="dark"] .peter-log p { color: var(--ink); }
:root[data-theme="dark"] .peter-log p { background: #1b2932; }
:root[data-theme="dark"] .peter-message.user { background: #0b8f6d; color: #fff; }
:root[data-theme="dark"] .peter-message.error { background: #321b18; color: #ffc4b7; }

:root[data-theme="dark"] .post-feed,
:root[data-theme="dark"] .feed-post {
    background:
        linear-gradient(135deg, rgba(18, 26, 32, .98), rgba(16, 32, 41, .9)),
        var(--paper);
    box-shadow: none;
}
:root[data-theme="dark"] body {
    background:
        linear-gradient(180deg, rgba(18, 26, 32, .86), rgba(11,17,22,0) 360px),
        var(--canvas);
}
:root[data-theme="dark"] .profile-block,
:root[data-theme="dark"] .sidebar-section {
    background: rgba(18, 26, 32, .82);
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
}
:root[data-theme="dark"] .feed-post {
    border-color: rgba(255,255,255,.09);
}

@media (max-width: 900px) {
    .topbar-inner { grid-template-columns: 1fr auto; gap: 12px; }
    .site-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 10px; }
    .topnav { grid-column: 2; grid-row: 1; }
    .blog-shell { grid-template-columns: 1fr; gap: 24px; }
    .blog-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .profile-block { grid-column: 1 / -1; }
    .article-shell { grid-template-columns: 1fr; }
    .article-sidebar { position: static; display: none; }
    .admin-summary { grid-template-columns: 1fr; }
    .backup-split-grid { grid-template-columns: 1fr; }
    .backup-console { grid-template-columns: 1fr; }
    .backup-primary-action { align-items: stretch; flex-direction: column; }
    .backup-choice-actions { align-items: stretch; flex-direction: column; }
    .backup-choice-actions form { width: 100%; }
    .backup-choice-actions button { width: 100%; }
    .backup-primary-action .backup-download-form { width: 100%; }
    .backup-primary-action .primary-button { width: 100%; }
    .backup-rehearsal-card { align-items: stretch; flex-direction: column; }
    .backup-rehearsal-card form,
    .backup-rehearsal-card button { width: 100%; }
    .backup-auto-form { grid-template-columns: 1fr; }
    .backup-auto-status { grid-template-columns: 1fr; }
    .full-restore-form { grid-template-columns: 1fr; }
    .full-restore-form button { width: 100%; }
    .dashboard-support-grid,
    .dashboard-news-grid { grid-template-columns: 1fr; }
    .today-command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operation-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .system-status-grid,
    .dashboard-support-grid .system-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-log-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-quality-checks,
    .dashboard-news-grid .news-quality-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-settings-split { grid-template-columns: 1fr; }
    .ai-run-grid { grid-template-columns: 1fr; }
    .ai-progress-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .radio-controls { grid-template-columns: 1fr; }
    .radio-controls button { width: 100%; }
    .radio-station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .blog-cover { height: clamp(420px, 64vw, 540px); }
    .cover-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .feed-post { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
    .admin-section-nav { top: 64px; }
    .admin-section-hero {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .admin-section-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .topbar-inner { width: min(100% - 24px, 1180px); min-height: 56px; }
    .wordmark { font-size: 19px; }
    .topnav a, .nav-button { padding: 7px 6px; font-size: 12px; }
    .blog-cover { height: 520px; }
    .national-flag-badge {
        top: 14px;
        right: 12px;
        gap: 9px;
        padding: 9px 11px;
    }
    .national-flag-badge small { display: none; }
    .taegukgi-mark { width: 54px; height: 36px; }
    .cover-copy { width: calc(100% - 32px); }
    .cover-copy h1 { font-size: clamp(36px, 12vw, 54px); }
    .cover-copy > span { font-size: 14px; }
    .cover-actions { margin-top: 16px; }
    .cover-latest {
        margin-top: 16px;
        padding: 13px 14px;
    }
    .cover-latest strong {
        font-size: 17px;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .cover-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
    .cover-stats span { padding: 10px 11px; font-size: 11px; }
    .cover-stats b { font-size: 18px; }
    .blog-shell { width: calc(100% - 20px); margin-top: 18px; }
    .blog-sidebar { grid-template-columns: 1fr; }
    .profile-block, .sidebar-section {
        padding: 15px;
        margin-bottom: 10px;
    }
    .profile-block { grid-column: auto; }
    .archive-section { display: none; }
    .post-feed { padding: 22px 14px; }
    .feed-header {
        padding-bottom: 18px;
    }
    .feed-header { align-items: start; }
    .ai-search-card { padding: 16px; }
    .feed-post { min-height: 0; grid-template-columns: 108px minmax(0, 1fr); gap: 13px; margin-top: 14px; padding: 12px; }
    .feed-thumb { align-self: stretch; aspect-ratio: 1 / 1; }
    .post-meta { flex-wrap: wrap; row-gap: 3px; }
    .feed-copy h3 { font-size: 19px; }
    .feed-copy p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; }
    .feed-copy small { display: block; margin-top: 10px; padding-top: 8px; font-size: 11px; }
    .article-shell { width: calc(100% - 20px); margin-top: 18px; }
    .post-article { padding: 28px 18px; }
    .article-header h1 { font-size: 31px; }
    .news-article .article-header h1 {
        font-size: 32px;
        line-height: 1.18;
    }
    .news-article .article-header {
        padding-bottom: 26px;
    }
    .article-stats { display: none; }
    .article-actions button { flex: 1 1 130px; justify-content: center; }
    .article-gallery { grid-template-columns: 1fr; }
    .article-gallery img { height: auto; aspect-ratio: auto; }
    .article-content { font-size: 16px; }
    .news-article .article-content { line-height: 1.9; }
    .article-content h2 { font-size: 22px; }
    .article-content h2.news-summary-title + ul li,
    .article-content h2.news-reference-title + ul li {
        padding: 12px;
    }
    .news-brief-card { padding: 14px; }
    .news-article .news-brief-card {
        padding: 16px 15px 16px 18px;
    }
    .news-article .news-brief-card::before {
        top: 16px;
        bottom: 16px;
    }
    .news-brief-card p { font-size: 15px; }
    .news-article .news-brief-card a {
        display: inline-flex;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .news-article > .news-date-note {
        display: block;
    }
    .news-article > .news-date-note::before {
        display: inline-block;
        margin: 0 7px 6px 0;
    }
    .news-candidate-grid { grid-template-columns: 1fr; }
    .news-quality-card { grid-template-columns: 1fr; }
    .news-quality-checks { grid-template-columns: 1fr; }
    .inline-admin-form { justify-content: stretch; }
    .inline-admin-form button { width: 100%; }
    .post-navigation { grid-template-columns: 1fr; }
    .post-navigation a.older { text-align: left; }
    .comment-fields { grid-template-columns: 1fr; }
    .comments-title { align-items: start; }
    .comments-title > p { display: none; }
    .admin-layout { width: calc(100% - 20px); margin-top: 18px; }
    .admin-section-nav {
        top: 58px;
        gap: 6px;
        padding: 8px;
        margin-bottom: 12px;
    }
    .admin-section-nav a {
        padding: 9px 11px;
        font-size: 12px;
    }
    .admin-section-hero {
        padding: 16px;
    }
    .admin-section-stats {
        grid-template-columns: 1fr;
    }
    .admin-section-actions {
        grid-template-columns: 1fr;
    }
    .dashboard-panel,
    .dashboard-grid,
    .dashboard-grid > *,
    .top-posts-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }
    .admin-summary { grid-template-columns: 1fr; }
    .admin-summary article { padding: 14px; }
    .admin-summary div { padding: 8px 0; }
    .today-command-grid { grid-template-columns: 1fr; }
    .today-command-card { min-height: auto; }
    .operation-check-grid { grid-template-columns: 1fr; }
    .backup-actions { align-items: stretch; flex-direction: column; }
    .backup-rehearsal-result li {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .backup-rehearsal-result .backup-health {
        justify-self: start;
    }
    .system-status-grid,
    .dashboard-support-grid .system-status-grid { grid-template-columns: 1fr; }
    .stats-chart-wrap {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 6px;
        padding: 12px 8px 10px;
        overflow: hidden;
    }
    .stats-y-axis {
        font-size: 9px;
        padding-bottom: 24px;
    }
    .stats-chart {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
        padding-inline: 8px;
        overflow: hidden;
    }
    .stats-chart span:nth-last-child(n+6) { display: none; }
    .stats-chart span { min-width: 0; }
    .stats-chart b { font-size: 9px; justify-self: center; }
    .admin-panel { padding: 0; overflow: hidden; }
    .admin-collapse-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border: 0;
        background: transparent;
        color: var(--ink);
        padding: 18px;
        text-align: left;
        font-family: var(--title-font);
        font-size: 18px;
        font-weight: 900;
    }
    .admin-collapse-toggle b {
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .18s ease;
    }
    .admin-panel.is-collapsed .admin-collapse-toggle b { transform: rotate(-45deg); }
    .admin-panel-body {
        display: block;
        border-top: 1px solid var(--soft-line);
        padding: 20px 18px 24px;
    }
    .admin-panel.is-collapsed .admin-panel-body { display: none; }
    .admin-panel-body > .panel-heading:first-child,
    .admin-panel-body > h1:first-child,
    .admin-panel-body > h2:first-child { display: none; }
    .panel-heading { align-items: start; }
    .panel-heading > span { display: none; }
    .ai-writing-actions a { width: 100%; }
    .news-log-grid { grid-template-columns: 1fr; }
    .news-log-detail p { grid-template-columns: 1fr; gap: 3px; }
    .scheduler-copy { grid-template-columns: 1fr; }
    .scheduler-copy button { width: 100%; }
    .editor-preview-head { display: grid; align-items: start; }
    .preview-refresh { justify-self: start; }
    .ai-progress-top { display: grid; gap: 4px; }
    .radio-station-grid { grid-template-columns: 1fr; }
    .ai-progress-steps { grid-template-columns: 1fr; }
    .selected-images, .existing-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-list article { display: grid; gap: 12px; }
    .admin-filter-bar {
        grid-template-columns: 1fr;
    }
    .admin-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-filter-actions .primary-button,
    .admin-filter-actions a {
        width: 100%;
    }
    .row-actions { justify-content: flex-start; }
    .peter-chat { right: 12px; bottom: 12px; }
    .peter-panel { width: calc(100vw - 24px); max-height: calc(100vh - 110px); }
    .peter-log { max-height: calc(100vh - 240px); }
}

@media (max-width: 480px) {
    .topbar-inner { width: calc(100% - 18px); gap: 8px; }
    .wordmark { font-size: 18px; }
    .topnav { gap: 2px; }
    .theme-toggle { width: 34px; height: 34px; }
    .blog-cover { height: 560px; }
    .cover-copy { width: calc(100% - 24px); }
    .cover-copy h1 { font-size: clamp(34px, 13vw, 48px); }
    .cover-copy > span { max-width: 100%; line-height: 1.55; }
    .cover-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .blog-shell { width: calc(100% - 14px); }
    .post-feed { padding: 18px 12px; }
    .feed-header h2 { font-size: 28px; line-height: 1.22; }
    .feed-post {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    .feed-thumb {
        width: 100%;
        aspect-ratio: 16 / 10;
    }
    .feed-copy + .feed-thumb { display: none; }
    .feed-copy h3 {
        margin-top: 7px;
        font-size: 21px;
        line-height: 1.28;
    }
    .feed-copy p {
        -webkit-line-clamp: 3;
        line-height: 1.65;
    }
    .article-shell { width: calc(100% - 14px); }
    .post-article { padding: 24px 15px; }
    .article-header h1,
    .news-article .article-header h1 {
        font-size: 29px;
        line-height: 1.2;
    }
    .article-byline {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }
    .article-actions { gap: 8px; }
    .article-actions button { min-width: 0; padding: 8px 10px; }
    .article-content,
    .news-article .article-content {
        font-size: 15.5px;
        line-height: 1.86;
    }
    .news-article .article-content > p:first-of-type {
        font-size: 1.03em;
    }
    .news-article .article-content h2.news-section-title {
        font-size: 21px;
        gap: 8px;
    }
    .news-article .article-content h2.news-reference-title + ul a {
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .gallery-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .gallery-stats {
        width: 100%;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gallery-shell {
        width: calc(100% - 18px);
        margin-top: 18px;
    }
    .gallery-hero,
    .gallery-filter {
        padding: 16px;
    }
    .gallery-stats {
        grid-template-columns: 1fr;
    }
    .gallery-stats span {
        border-left: 0;
        border-top: 1px solid rgba(51, 126, 92, .14);
    }
    .gallery-stats span:first-child { border-top: 0; }
    .gallery-filter {
        grid-template-columns: 1fr;
    }
    .gallery-filter button,
    .gallery-filter a {
        width: 100%;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .gallery-card span,
    .gallery-card strong,
    .gallery-card small {
        margin-inline: 10px;
    }
    .gallery-card strong {
        min-height: 42px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
