:root,
html[data-theme='dark'] {
    color-scheme: dark;
    /* Dark theme - refined zinc ladder */
    --page-bg: #09090b; /* zinc-950 */
    --shell-bg: #18181b; /* zinc-900 */
    --surface-soft: #1f1f23; /* inset panels */
    --shell-border: rgba(255, 255, 255, 0.08);
    --hover-wash: rgba(255, 255, 255, 0.045);
    --active-wash: rgba(255, 255, 255, 0.08);
    --header-top: rgba(24, 24, 27, 0.85); /* glass */
    --header-tab: #18181b;

    --text-main: #e4e4e7; /* zinc-200 */
    --text-title: #ffffff;
    --text-sub: #a1a1aa; /* zinc-400 */
    --text-soft: #71717a; /* zinc-500 */

    --blue: #3b82f6;
    --blue-hover: #60a5fa;
    --blue-soft: rgba(59, 130, 246, 0.12);
    --blue-ring: rgba(59, 130, 246, 0.22);
    --reply-bg: rgba(59, 130, 246, 0.03);
    --reply-border: rgba(96, 165, 250, 0.14);
    --reply-line: rgba(96, 165, 250, 0.46);
    --hot: #fb923c;
    --hot-video: #ec4899;
    --role-manager: #fb923c;
    --role-submanager: #38bdf8;
    --warn: #f59e0b;
    --warn-border: rgba(245, 158, 11, 0.5);
    --warn-soft: rgba(245, 158, 11, 0.08);

    --shell-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    --btn-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    --btn-shadow-hover: 0 6px 16px rgba(59, 130, 246, 0.4);

    /* Metrics & Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --global-transition: color 0.24s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.24s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.24s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.24s cubic-bezier(0.25, 1, 0.5, 1), transform 0.24s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.24s cubic-bezier(0.25, 1, 0.5, 1);
}

html[data-theme='light'] {
    color-scheme: light;
    /* Light theme - Toss-inspired: soft gray canvas, decisive blue, hairline dividers */
    --page-bg: #f2f4f6; /* Toss Gray 100 */
    --shell-bg: #ffffff;
    --surface-soft: #f9fafb; /* Toss Gray 50 */
    --shell-border: #e5e8eb; /* Toss Gray 200 hairline */
    --hover-wash: #f2f4f6;
    --active-wash: #e9ecef;
    --header-top: rgba(255, 255, 255, 0.9);
    --header-tab: #ffffff;

    --text-main: #333d4b; /* Toss Gray 800 */
    --text-title: #191f28; /* Toss Gray 900 */
    --text-sub: #6b7684; /* Toss Gray 600 */
    --text-soft: #8b95a1; /* Toss Gray 500 */

    --blue: #3182f6; /* Toss Blue */
    --blue-hover: #1b64da;
    --blue-soft: rgba(49, 130, 246, 0.09);
    --blue-ring: rgba(49, 130, 246, 0.18);
    --reply-bg: rgba(49, 130, 246, 0.032);
    --reply-border: rgba(49, 130, 246, 0.12);
    --reply-line: rgba(49, 130, 246, 0.42);
    --hot: #f04452; /* Toss Red */
    --hot-video: #f04452;
    --role-manager: #ff6b00;
    --role-submanager: #3182f6;
    --warn: #f59e0b;
    --warn-border: rgba(245, 158, 11, 0.45);
    --warn-soft: rgba(245, 158, 11, 0.08);

    --shell-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --btn-shadow: 0 1px 2px rgba(49, 130, 246, 0.24);
    --btn-shadow-hover: 0 4px 12px rgba(49, 130, 246, 0.26);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--page-bg);
    color: var(--text-main);
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--global-transition);
}

/* Base Layout */
.app-shell {
    max-width: 32rem; /* slightly wider for more breathing room (512px) */
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--shell-bg);
    border-left: 1px solid var(--shell-border);
    border-right: 1px solid var(--shell-border);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shell-shadow);
    position: relative;
    z-index: 1;
}

/* Header & Nav */
.app-header {
    background: var(--header-top);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--shell-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-top {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-title);
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.brand span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: 0;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
}

.theme-toggle,
.dccon-toggle {
    border: 0;
    color: var(--text-sub);
    font-size: 1.125rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--global-transition);
}

.dccon-toggle {
    font-size: 1rem;
}

.theme-toggle:hover,
.dccon-toggle:hover {
    color: var(--text-title);
    background: var(--hover-wash);
    transform: rotate(15deg);
}

.theme-toggle:active,
.dccon-toggle:active {
    transform: scale(0.96) rotate(15deg);
}

.main-tabs {
    display: flex;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0 8px 8px;
    gap: 6px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    color: var(--text-sub);
    border-radius: var(--radius-sm);
    transition: var(--global-transition);
}

.tab-item:hover {
    color: var(--text-main);
    background: var(--hover-wash);
}

.tab-item.active {
    color: var(--blue);
    background: var(--blue-soft);
}

.tab-item:active {
    transform: scale(0.96);
}

/* Sections & Forms */
.content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.jump-panel {
    padding: 24px 20px;
    border-bottom: 1px solid var(--shell-border);
    background: var(--surface-soft);
}

.jump-panel-bottom {
    margin-top: 24px;
    border-top: 1px solid var(--shell-border);
    border-bottom: none;
}

.jump-panel h2 {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-title);
    letter-spacing: -0.01em;
}

.jump-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-sub);
}

.jump-form input,
.jump-form select,
.jump-form button {
    border-radius: var(--radius-sm);
    border: 1px solid var(--shell-border);
    background: var(--shell-bg);
    color: var(--text-main);
    font-size: 0.9375rem;
    padding: 12px 14px;
    transition: var(--global-transition);
    font-family: inherit;
}

.jump-form input {
    width: 100%;
}

.jump-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-ring);
    background: var(--shell-bg);
}

.jump-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.jump-row label {
    margin: 0;
}

.jump-row button {
    cursor: pointer;
    background: var(--blue);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    box-shadow: var(--btn-shadow);
}

.jump-row button:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--btn-shadow-hover);
}

.jump-row button:active {
    transform: scale(0.96);
}

/* Feeds & Lists */
.feed-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feed-list li {
    border-bottom: 1px solid var(--shell-border);
    animation: slideUpFade 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(12px);
}

/* Stagger animations for feed items */
.feed-list li:nth-child(1) { animation-delay: 0.05s; }
.feed-list li:nth-child(2) { animation-delay: 0.10s; }
.feed-list li:nth-child(3) { animation-delay: 0.15s; }
.feed-list li:nth-child(4) { animation-delay: 0.20s; }
.feed-list li:nth-child(5) { animation-delay: 0.25s; }
.feed-list li:nth-child(6) { animation-delay: 0.30s; }
.feed-list li:nth-child(7) { animation-delay: 0.35s; }
.feed-list li:nth-child(8) { animation-delay: 0.40s; }
.feed-list li:nth-child(9) { animation-delay: 0.45s; }
.feed-list li:nth-child(10) { animation-delay: 0.50s; }
.feed-list li:nth-child(n+11) { animation-delay: 0.55s; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-item {
    display: block;
    padding: 18px 20px;
    transition: var(--global-transition);
    position: relative;
    background: transparent;
}

.feed-item:hover {
    background: var(--hover-wash);
}

.feed-item:active {
    background: var(--active-wash);
}

.feed-item.is-read .feed-title,
.feed-item.is-read .reply-count,
.feed-item.is-read .feed-image-icon,
.feed-item.is-read .feed-play-icon,
.feed-item.is-read .post-subject,
.feed-item.is-read .author-text,
.feed-item.is-read .feed-meta-left,
.feed-item.is-read .feed-meta-right {
    color: var(--text-soft) !important;
}

.feed-title-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.feed-image-icon,
.feed-play-icon,
.feed-recommend-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--text-soft);
}

.feed-recommend-icon.is-hot {
    color: var(--hot);
}

.feed-recommend-icon.is-video {
    color: var(--hot-video);
}

.feed-recommend-icon.is-plain {
    color: var(--text-soft);
}

.feed-image-icon svg,
.feed-play-icon svg,
.feed-recommend-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.feed-image-icon rect,
.feed-image-icon path,
.feed-image-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feed-play-icon {
    color: var(--text-soft);
}

.feed-play-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.feed-play-icon path {
    fill: currentColor;
    stroke: none;
}

.feed-recommend-icon .flame-outer,
.feed-recommend-icon .flame-inner {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feed-recommend-icon .flame-inner {
    stroke-width: 1.7;
}

.feed-recommend-icon.is-hot .flame-outer {
    fill: currentColor;
    stroke: var(--hot);
}

.feed-recommend-icon.is-hot .flame-inner {
    fill: #ffe0a3;
    stroke: #fff3d6;
}

.feed-recommend-icon.is-video .flame-outer {
    fill: currentColor;
    stroke: var(--hot-video);
}

.feed-recommend-icon.is-video .flame-inner {
    fill: #ffd0d6;
    stroke: #fff0f2;
}

.feed-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--text-title);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.reply-count {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--blue);
    white-space: nowrap;
    background: var(--blue-soft);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-variant-numeric: tabular-nums;
}

.search-highlight {
    display: inline;
    padding: 0;
    border-radius: 0;
    color: var(--blue-hover);
    background: transparent;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.feed-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--text-sub);
}

.feed-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
    min-width: 0;
}

.feed-meta-left .sep {
    color: var(--shell-border);
}

.post-subject {
    color: var(--text-sub);
    font-weight: 600;
}

.author-text {
    font-weight: 600;
    color: var(--text-main);
}

.author-text.author-role-manager {
    color: var(--role-manager);
}

.author-text.author-role-submanager {
    color: var(--role-submanager);
}

.feed-meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue);
    flex-shrink: 0;
}

.feed-meta-right.soft {
    color: var(--text-soft);
    font-weight: 500;
}

.score-box {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-soft);
    background: var(--surface-soft);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    font-variant-numeric: tabular-nums;
}

.score-box b {
    font-weight: 700;
    color: var(--blue);
}

.board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--shell-border);
    background: var(--surface-soft);
}

.board-head h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-title);
    letter-spacing: -0.01em;
}

.board-head a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
}

.board-head a:hover {
    color: var(--blue-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.board-head-note {
    font-size: 0.75rem;
    color: var(--text-soft);
}

.board-category-tabs {
    border-bottom: 1px solid var(--shell-border);
    background: var(--surface-soft);
}

.board-category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
}

.board-category-scroll::-webkit-scrollbar {
    display: none;
}

.board-category-tab {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--text-sub);
    font-size: 0.875rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: var(--global-transition);
}

.board-category-tab:hover {
    color: var(--text-title);
    background: var(--hover-wash);
}

.board-category-tab.active {
    color: var(--blue);
    background: var(--blue-soft);
}

.board-search-form {
    display: grid;
    grid-template-columns: auto 112px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--shell-border);
    background: var(--surface-soft);
}

.board-search-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-sub);
}

.board-search-select,
.board-search-input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    background: var(--shell-bg);
    font: inherit;
    font-size: 0.875rem;
    outline: none;
    transition: var(--global-transition);
}

.board-search-select {
    padding: 10px 28px 10px 10px;
}

.board-search-input {
    padding: 10px 12px;
}

.board-search-input:focus,
.board-search-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-ring);
    background: var(--shell-bg);
}

.board-search-submit,
.board-search-clear {
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    background: var(--surface-soft);
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--global-transition);
}

.board-search-submit {
    padding: 12px 14px;
}

.board-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    color: var(--text-soft);
}

.board-search-submit:hover,
.board-search-clear:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue);
}

.board-search-summary {
    padding: 10px 20px;
    border-bottom: 1px solid var(--shell-border);
    color: var(--text-sub);
    font-size: 0.8125rem;
    background: var(--blue-soft);
}

.board-search-summary b {
    color: var(--blue-hover);
}

.empty-row {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.9375rem;
}

/* Pagination */
.pager-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 24px 20px;
    border-top: 1px solid var(--shell-border);
    background: var(--surface-soft);
}

.board-pager {
    position: relative;
}

.board-pager .pager-home {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.board-pager .pager-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pager-row.single {
    justify-content: flex-end;
}

.pager-btn {
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    background: var(--shell-bg);
    cursor: pointer;
    box-shadow: none;
    transition: var(--global-transition);
}

.pager-btn:hover:not(.off) {
    background: var(--hover-wash);
    transform: translateY(-1px);
}

.pager-btn:active:not(.off) {
    transform: scale(0.96);
}

.pager-btn.off {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
    box-shadow: none;
}

.pager-current {
    min-width: 32px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-sub);
    font-variant-numeric: tabular-nums;
}

.article-head {
    padding: 28px 20px;
    border-bottom: 1px solid var(--shell-border);
    background: var(--shell-bg);
}

.article-head h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-title);
    letter-spacing: -0.02em;
}

.article-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--text-sub);
}

.article-meta span:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--shell-border);
    margin-left: 12px;
    vertical-align: middle;
}

.article-body {
    padding: 32px 20px;
    border-bottom: 1px solid var(--shell-border);
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.article-body img,
.article-body video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.article-body video {
    background: #05070b;
}

.article-body a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: var(--blue-ring);
    text-underline-offset: 0.16em;
}

.article-body a:hover {
    color: var(--blue-hover);
    text-decoration-color: var(--blue-hover);
}

.article-body iframe {
    display: block;
    width: 100%;
    margin: 18px 0;
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-md);
}

.article-body iframe[src*="/poll"] {
    min-height: 400px;
    background: #fff;
}

.article-body iframe[src*="/board/movie/movie_view"],
.article-body iframe[src*="/movie/player"],
.article-body iframe[src^="/movie"] {
    aspect-ratio: 9 / 16;
    height: auto;
    width: min(100%, 360px);
    max-height: min(82vh, 820px);
    margin-right: auto;
    margin-left: auto;
    background: #05070b;
}

.article-body iframe[src*="youtube.com/embed"],
.article-body iframe[src*="youtube-nocookie.com/embed"] {
    aspect-ratio: 16 / 9;
    height: auto;
    background: #05070b;
}

.dc-poll-card {
    margin: 22px 0;
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-soft);
}

.dc-poll-title {
    margin: 0;
    padding: 18px 18px 14px;
    color: var(--text-title);
    font-size: 1.05rem;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.dc-poll-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 14px 18px;
    border-top: 1px solid var(--shell-border);
    border-bottom: 1px solid var(--shell-border);
    list-style: none;
    color: var(--text-sub);
    font-size: 0.8125rem;
    background: var(--shell-bg);
}

.dc-poll-meta li:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: var(--text-soft);
}

.dc-poll-options {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 18px;
    list-style: none;
    counter-reset: poll-option;
}

.dc-poll-options li {
    counter-increment: poll-option;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    background: var(--shell-bg);
}

.dc-poll-options li::before {
    content: counter(poll-option);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-size: 0.75rem;
    font-weight: 800;
}

.dc-poll-results {
    padding: 18px;
}

.dc-poll-results-title {
    margin-bottom: 10px;
    color: var(--blue-hover);
    font-size: 0.8125rem;
    font-weight: 800;
}

.dc-poll-result-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dc-poll-result-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-md);
    background: var(--blue-soft);
}

.dc-poll-result-option {
    min-width: 0;
    color: var(--text-main);
    font-weight: 650;
}

.dc-poll-result-stats {
    color: var(--blue-hover);
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
}

.dc-poll-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 0 18px 18px;
}

.dc-poll-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    color: #fff;
    background: var(--blue);
    font-size: 0.875rem;
    font-weight: 800;
}

.dc-poll-link-secondary {
    color: var(--text-main);
    border: 1px solid var(--shell-border);
    background: var(--surface-soft);
}

.dc-poll-link:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
}

.dc-poll-link-secondary:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: var(--blue-soft);
}

/* Comments */
.comment-shell {
    padding: 24px 20px;
    background: var(--surface-soft);
}

.comment-shell h2 {
    margin: 0 0 20px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.comment-list li {
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-md);
    padding: 20px;
    background: var(--shell-bg);
    transition: var(--global-transition);
    min-width: 0;
}

.comment-list li:hover {
    background: var(--surface-soft);
}

.comment-list li.is-reply {
    margin-left: 32px;
    border-color: var(--reply-border);
    background: var(--reply-bg);
    position: relative;
}

.comment-list li.is-reply::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 32px;
    width: 16px;
    height: 1px;
    background: var(--reply-line);
}

.reply-badge {
    display: inline-block;
    margin: 0 0 10px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.comment-main p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-main);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
}

.comment-main a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-main .reply-badge {
    order: 1;
}

.comment-main .dccon-frame,
.comment-main .dccon,
.comment-main p {
    order: 2;
}

.dccon {
    max-width: 140px;
    height: auto;
    border-radius: var(--radius-sm);
}

.dccon-frame {
    display: inline-flex;
    align-items: flex-start;
    max-width: 100%;
}

.comment-meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
    font-size: 0.8125rem;
}

.comment-spam-toggle {
    margin: 0 0 20px;
    border: 1px solid var(--shell-border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-main);
    background: var(--surface-soft);
    cursor: pointer;
    transition: var(--global-transition);
}

.comment-spam-toggle:hover {
    background: var(--hover-wash);
}

.comment-spam-hidden {
    display: none !important;
}

.comment-dccon-block-hidden {
    display: none !important;
}

.comment-spam-highlight {
    border-color: var(--warn-border) !important;
    background: var(--warn-soft) !important;
}

/* Utility Animations */
.related-shell {
    animation: fadeIn 0.5s ease;
    overflow: hidden;
}

.related-head {
    justify-content: center;
    background: var(--surface-soft);
}

.related-more-wrap {
    border-bottom: 1px solid var(--shell-border);
    background: var(--surface-soft);
}

.related-more-btn {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 0;
    padding: 12px 20px 14px;
    color: var(--text-sub);
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--global-transition);
}

.related-more-label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.related-more-arrow {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    transition: transform 0.24s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.24s ease;
}

.related-more-btn:hover:not(:disabled) {
    color: var(--text-title);
    background: var(--hover-wash);
}

.related-more-btn:hover:not(:disabled) .related-more-arrow {
    transform: translateY(3px) rotate(45deg);
}

.related-more-btn:active:not(:disabled) {
    background: var(--active-wash);
}

.related-more-btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -3px;
}

.related-more-btn.is-loading .related-more-arrow {
    animation: relatedArrowPulse 0.8s ease-in-out infinite;
}

.related-more-btn.is-terminal .related-more-arrow {
    opacity: 0;
    transform: translateY(-2px) rotate(45deg) scale(0.7);
}

.related-more-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

@keyframes relatedArrowPulse {
    0%, 100% {
        transform: translateY(-1px) rotate(45deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(4px) rotate(45deg);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .app-shell {
        border-left: none;
        border-right: none;
        max-width: 100%;
        box-shadow: none;
    }

    .board-search-form {
        grid-template-columns: 96px minmax(0, 1fr) auto auto;
    }

    .board-search-label {
        display: none;
    }

    .board-search-submit {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .feed-list li {
        opacity: 1;
        transform: none;
    }
}
