/* =========================================
   Post Editor Sidebar CSS
   ========================================= */

.classics-list {
    --dr-primary: var(--color-primary);
    --dr-primary-dark: #3a5a8a;
    --dr-bg: #f4f7fc;
    --dr-surface: #ffffff;
    --dr-text: #1f2f46;
    --dr-muted: #627087;
    --dr-border: #dbe4f1;

    flex: 0 0 38%;
    max-width: 520px;
    min-width: 320px;
    background: #ffffff;
    border-left: 1px solid #dbe4f1;
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: stretch;
    /* Match height of post-editor */
    position: sticky;
    top: 0;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.classics-list .container,
.classics-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--dr-surface);
}

/* Sidebar Toggle Logic */
.classics-list.hidden {
    display: none;
}

/* Collapsible Desktop Sidebar */


/* Sidebar Title Bar */
.classics-panel-header {
    padding: 0.75rem 1.5rem 1rem 1.5rem;
    /* Reduced top padding to move chip up */
    flex: 0 0 auto;
}

.classics-panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.classics-panel-header .classic-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    margin: 0;
}

.classics-panel-header .classic-breadcrumb-link {
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.classics-panel-header .classic-breadcrumb-link:hover {
    color: #355587;
}

.classics-panel-header .classic-breadcrumb-sep,
.classics-panel-header .classic-breadcrumb-current {
    display: none;
}

.classics-panel-header .classic-breadcrumb-sep {
    color: #97a5ba;
    font-size: 0.72rem;
}

.classics-panel-header .classic-breadcrumb-current {
    color: #5b6f8d;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
}

.classics-list.is-list-mode .classics-panel-header .classic-breadcrumb-sep,
.classics-list.is-list-mode .classics-panel-header .classic-breadcrumb-current {
    display: inline-flex;
}

.classics-panel-header p {
    margin: 0;
    color: var(--dr-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.9;
}


/* Sidebar Toggle Logic */
.classics-list.hidden {
    display: none;
}

/* Collapsible Desktop Sidebar */



/* Search Area */
.classics-panel-tools {
    padding: 0 1.5rem 1.5rem 1.5rem;
    flex: 0 0 auto;
    margin: 0;
    transition: margin 260ms ease, padding 260ms ease, transform 260ms ease;
}

.classics-panel-tools .search-container {
    margin: 0;
    padding: 0;
}

.classics-search-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    height: 40px;
    overflow: visible;
}

.classics-search-stage .search-container {
    position: static;
    width: 100%;
    display: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.classics-search-stage .search-container-home {
    display: block;
}

.classics-search-stage .search-container-title {
    display: none;
}

.classics-list.is-list-mode .classics-search-stage .search-container-home {
    display: none;
}

.classics-list.is-list-mode .classics-search-stage .search-container-title {
    display: block;
}

.classics-list.is-search-home .classics-search-stage .search-container-home {
    display: block;
}

.classics-list.is-search-home .classics-search-stage .search-container-title {
    display: none;
}

.classics-panel-tools .search-box.content-search-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.classics-list .card-container {
    padding: 0 1.5rem 1.5rem 1.5rem;
    flex: 1;
    overflow-y: auto;
    align-content: start;
    align-items: start;
    grid-auto-rows: max-content;
    transition: opacity 240ms ease, transform 240ms ease;
}

/* Initial mode: search-first layout */
.classics-list.is-search-home .classics-panel-header {
    opacity: 1;
    max-height: none;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
    overflow: visible;
    pointer-events: auto;
}

.classics-list.is-search-home .classics-panel-content {
    justify-content: flex-start;
    padding-top: 0;
}

.classics-list.is-search-home .classics-panel-tools {
    margin: 0;
    padding: clamp(0.9rem, 2.4vh, 1.4rem) 1.5rem 0.65rem 1.5rem;
}

.classics-list.is-search-home .card-container {
    flex: 0 0 auto !important;
    overflow: visible !important;
    padding: 0 1.5rem 0.4rem 1.5rem;
    min-height: 0;
}

.classics-list.is-search-home .classics-panel-tools #search {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
}

.classic-search-home {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.2rem 0 0.25rem;
    text-align: center;
    color: #526175;
}

.classic-search-home-top {
    max-width: 440px;
    margin: 0 auto 0.66rem;
}

.classic-search-home-bottom {
    max-width: 440px;
    margin: 0.6rem auto 0;
    text-align: center;
}

.classic-search-home-icon {
    display: none;
}

.classic-search-home h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #2b3d57;
}

.classic-search-home p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
}

.classic-search-home-hanja {
    margin: 0 !important;
    font-size: clamp(2.2rem, 5.2vw, 3.8rem) !important;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700 !important;
    color: #22344f;
}

.classic-search-home-break {
    display: block;
    width: 100%;
    height: 0;
}

.classic-search-home-ko {
    margin-top: 0.5rem !important;
    font-size: 1.02rem !important;
    letter-spacing: 0.01em;
    line-height: 1.45;
    color: #65758b;
}

.classic-search-home-cta {
    margin-top: 1.2rem;
}

.classic-search-home-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.46rem 0.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, #d8e1ef 82%, var(--color-primary) 18%);
    background: color-mix(in srgb, #ffffff 85%, transparent);
    color: color-mix(in srgb, var(--color-primary-strong) 88%, #1f2f46 12%);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.classic-search-home-list-btn:hover {
    background: #eef4fc;
    border-color: #c7d4e7;
}

@media (max-width: 640px) {
    .classic-search-home-hanja {
        font-size: clamp(2.6rem, 13.8vw, 4.2rem) !important;
    }

    .classic-search-home-ko {
        font-size: 0.92rem !important;
    }
}

/* Classic-list parity card design */
.classics-list .crl-card {
    position: relative;
    background: #fcfcfc;
    border: 1px solid #dddddd;
    border-radius: 16px;
    padding: 0.86rem;
    display: grid;
    gap: 0.58rem;
    min-height: 120px;
    height: auto;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.classics-list .crl-card-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 0.6rem;
    background: transparent;
    color: inherit;
    padding: 0;
    box-shadow: none;
    position: static;
}

.classics-list .crl-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
}

.classics-list .crl-open-icon-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #d7dfe9;
    border-radius: 7px;
    background: #f8fbff;
    color: #3f6498;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0;
}

.classics-list .crl-open-icon-btn:hover {
    background: #eef4fd;
}

/* Volume modal: isolate from global .modal collisions */
.classic-volume-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.52) !important;
    z-index: 7000 !important;
}

.classic-volume-modal .classic-volume-modal-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: min(560px, calc(100vw - 40px)) !important;
    max-width: 560px !important;
    max-height: min(82vh, 680px) !important;
    overflow-y: auto;
    background: #ffffff !important;
    border: 1px solid #dbe4f1 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 40px rgba(21, 33, 52, 0.22) !important;
}

.classic-volume-modal .classic-volume-modal-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #ffffff;
    border-bottom: 1px solid #e6edf7;
}

.classic-volume-modal .classic-volume-modal-header h3 {
    color: #1f2f46;
}

.classic-volume-modal .modal-close-btn {
    color: #6d7f97;
}

.classic-volume-modal .modal-close-btn:hover {
    color: #2f4668;
    background: #eef3fb;
    border-radius: 8px;
}

.classic-volume-modal .volumes-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 4px;
}

.classic-volume-modal .volume-card {
    background: #f8fbff;
    border: 1px solid #d9e5f6;
    border-radius: 10px;
    padding: 12px;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.classic-volume-modal .volume-card:hover {
    background: #eef4fc;
    border-color: #bfd1ea;
    transform: none;
}

.classic-volume-modal .volume-number {
    font-size: 0.92rem;
    color: #2b4568;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.classics-list .crl-title-wrap {
    min-width: 0;
}

.classics-list .crl-title-wrap h2 {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.34;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.classics-list .crl-title-sub {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #6d6d6d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.classics-list .crl-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 0.22rem 0.54rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}

.classics-list .crl-badge-wait {
    background: #fff4e8;
    border-color: #f0d0ad;
    color: #8a5b1e;
}

.classics-list .crl-badge-done {
    background: #e9f7ef;
    border-color: #b8e6c8;
    color: #1f6f43;
}

.classics-list .crl-badge-pending {
    background: #fff4e8;
    border-color: #f0d0ad;
    color: #8a5b1e;
}

.classics-list .crl-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.36rem;
}

.classics-list .crl-meta {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: transparent;
    padding: 0.24rem 0.4rem;
}

.classics-list .crl-meta b {
    font-size: 0.7rem;
    color: #6f7f94;
    font-weight: 700;
}

.classics-list .crl-meta em {
    margin: 0;
    font-size: 0.84rem;
    font-style: normal;
    color: #22354f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.classics-list .crl-card-skeleton {
    pointer-events: none;
}

.classics-list .crl-sk-line,
.classics-list .crl-sk-pill,
.classics-list .crl-sk-tag,
.classics-list .crl-sk-btn {
    position: relative;
    overflow: hidden;
    background: #edf2fa;
    border-radius: 9px;
}

.classics-list .crl-sk-line::after,
.classics-list .crl-sk-pill::after,
.classics-list .crl-sk-tag::after,
.classics-list .crl-sk-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
    animation: postCrlShimmer 1.1s infinite;
}

.classics-list .crl-sk-title {
    height: 16px;
    width: 74%;
}

.classics-list .crl-sk-sub {
    height: 12px;
    width: 48%;
}

.classics-list .crl-sk-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.52rem;
}

.classics-list .crl-sk-pill {
    height: 30px;
}

.classics-list .crl-sk-foot {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.classics-list .crl-sk-tag {
    height: 26px;
    width: 82px;
}

.classics-list .crl-sk-btn {
    height: 32px;
    width: 76px;
}

@keyframes postCrlShimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Search Bar - Fixed Padding */
.content-search-box input {
    padding-left: 42px !important;
    /* Increase space for icon */
    padding-right: 52px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--dr-border);
}

/* Override global #search rule in styles.css for post-editor sidebar only */
.classics-panel-tools #search {
    width: 100%;
    padding: 0.58rem 2.7rem 0.58rem 2.25rem;
    height: 40px;
    border: 1px solid var(--dr-border);
    border-radius: 999px;
    font-size: 0.9rem;
    outline: none;
    background-color: #fff;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.classics-panel-tools #search:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.search-box .search-icon-left {
    position: absolute;
    left: 14px;
    /* Fixed distance from left */
    top: 50%;
    transform: translateY(-50%);
    color: var(--dr-primary);
    font-size: 1rem;
    z-index: 10;
    pointer-events: none;
}

/* Sidebar Cards & Layout Components */
/* (Styles consolidated in the main .card-container block above) */

/* Placeholder Card - Clean Modern Design */
.classic-placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    background: #fafbfc;
    border: 1px solid #e1e8ed;
    border-radius: 0;
    min-height: 280px;
}

.classic-placeholder-card .placeholder-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    flex: 0 0 64px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0fb 0%, #d4e4f7 100%);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.classic-placeholder-card .placeholder-icon i {
    font-size: 28px;
    color: var(--color-primary);
    line-height: 1;
    display: block;
    transform: translateZ(0);
}

.classic-placeholder-card .placeholder-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.classic-placeholder-card .placeholder-description {
    font-size: 0.95rem;
    color: #5a6c7d;
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.classic-placeholder-card .placeholder-hint {
    font-size: 0.85rem;
    color: #8895a7;
    margin: 0;
    line-height: 1.5;
}

/* Error State */
.classic-placeholder-card.error .placeholder-icon {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
}

.classic-placeholder-card.error .placeholder-icon i {
    color: #d63031;
}

.classic-placeholder-card.error .placeholder-title {
    color: #d63031;
}

.classic-empty-preview {
    margin-top: 0.9rem;
}

.classic-empty-pagination {
    margin: 0.25rem 0 0.35rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.42rem;
}

.classic-empty-page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 0.45rem;
    border: 1px solid #d7dfe9;
    border-radius: 999px;
    background: #f8fbff;
    color: #3f6498;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.classic-empty-page-btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.classic-empty-page-btn:disabled {
    opacity: 0.45;
}

.search-empty-card {
    border: 1px solid #e3e8f1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(27, 43, 66, 0.06);
    padding: 1.35rem 1.25rem;
    margin: 0 0.65rem;
    text-align: center;
    color: #526175;
}

.search-empty-card .search-empty-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.62rem;
    background: #eef3fb;
    color: #6f86a8;
}

.search-empty-card h3 {
    margin: 0 0 0.42rem;
    color: #2a3a52;
    font-size: 1.02rem;
}

.search-empty-card p {
    margin: 0.18rem 0 0;
    line-height: 1.58;
    font-size: 0.9rem;
}

.classic-title-empty-card {
    border: 1px solid #e3e8f1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(27, 43, 66, 0.06);
    padding: 1.35rem 1.15rem;
    margin: 0 0.65rem;
    text-align: center;
    color: #526175;
}

.classic-title-empty-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.62rem;
    background: #eef3fb;
    color: #6f86a8;
}

.classic-title-empty-card h3 {
    margin: 0 0 0.42rem;
    color: #2a3a52;
    font-size: 1.02rem;
}

.classic-title-empty-card p {
    margin: 0.2rem 0 0;
    line-height: 1.55;
    font-size: 0.9rem;
}

.classic-title-empty-keyword {
    color: #6b7b92;
}

.classic-title-empty-reset-btn {
    margin-top: 0.82rem;
    border: 1px solid #c8d6eb;
    border-radius: 999px;
    background: #f4f8ff;
    color: #3f6498;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.44rem 0.78rem;
    cursor: pointer;
}

.classic-title-empty-reset-btn:hover {
    background: #eaf2ff;
    border-color: #b6c8e3;
}

.classic-no-data-card {
    border: 1px solid #e3e8f1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(27, 43, 66, 0.06);
    padding: 1.4rem 1.15rem;
    margin: 0 0.65rem;
    text-align: center;
    color: #526175;
}

.classic-no-data-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.62rem;
    background: #eef3fb;
    color: #6f86a8;
}

.classic-no-data-card h3 {
    margin: 0 0 0.42rem;
    color: #2a3a52;
    font-size: 1.02rem;
}

.classic-no-data-card p {
    margin: 0.2rem 0 0;
    line-height: 1.55;
    font-size: 0.9rem;
}

.classic-no-data-hint {
    color: #6b7b92;
}

.post-classics-pagination-wrap {
    margin: 0.35rem 0.65rem 0;
    padding-top: 0.35rem;
}

.post-classics-pagination-info {
    font-size: 0.78rem;
    color: #687a92;
    text-align: center;
    margin-bottom: 0.34rem;
}

.post-classics-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.34rem;
}

.post-classics-page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 0.46rem;
    border: 1px solid #d7dfe9;
    border-radius: 999px;
    background: #f8fbff;
    color: #3f6498;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.post-classics-page-btn:hover:not(:disabled) {
    background: #eef4fd;
    border-color: #c6d4e8;
}

.post-classics-page-btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.post-classics-page-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.post-classics-page-ellipsis {
    font-size: 0.84rem;
    color: #8494aa;
    padding: 0 0.14rem;
}

.post-content-pagination-wrap {
    margin: 0.8rem 0 0.2rem;
    padding-top: 0.35rem;
}

.post-content-pagination-info {
    font-size: 0.78rem;
    color: #687a92;
    text-align: center;
    margin-bottom: 0.34rem;
}

.post-content-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.34rem;
}

.post-content-page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 0.46rem;
    border: 1px solid #d7dfe9;
    border-radius: 999px;
    background: #f8fbff;
    color: #3f6498;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.post-content-page-btn:hover:not(:disabled) {
    background: #eef4fd;
    border-color: #c6d4e8;
}

.post-content-page-btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.post-content-page-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.post-content-page-ellipsis {
    font-size: 0.84rem;
    color: #8494aa;
    padding: 0 0.14rem;
}

/* Sidebar Toggle Button (Floating/Fixed) */
#toggleClassicSidebar {
    position: absolute;
    top: 12px;
    right: 21px;
    /* Centered for 84px slim rail */
    width: 42px;
    height: 42px;
    background: linear-gradient(180deg, rgba(103, 137, 184, 0.12), rgba(86, 122, 172, 0.09));
    color: #3f6698;
    border: 1px solid rgba(93, 127, 176, 0.62);
    cursor: pointer;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -18px rgba(46, 78, 121, 0.38);
    z-index: 100 !important;
    pointer-events: auto !important;
    transition: all 280ms ease;
}

#toggleClassicSidebar:hover {
    background: linear-gradient(180deg, rgba(103, 137, 184, 0.18), rgba(86, 122, 172, 0.14));
    box-shadow: 0 10px 24px -16px rgba(46, 78, 121, 0.45);
}


/* Mobile FAB Style (Up to Tablet) */
@media (max-width: 1024px) {
    #toggleClassicSidebar {
        position: fixed;
        top: auto;
        bottom: 80px;
        right: 20px;
        width: 48px;
        height: 48px;
        z-index: 3200;
        background: #fff;
        border: 1px solid #dbe4f1;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 0;
    }

    #toggleClassicSidebar i {
        font-size: 1.2rem;
        color: var(--color-primary);
    }
}

/* =========================================
   Sidebar Collapsed State
   ========================================= */

/* Hide the sidebar */
/* Hide the sidebar content but keep the slim rail */
.split-container.classics-collapsed .classics-list {
    flex-basis: 84px !important;
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    opacity: 1 !important;
    border-left: 0;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    overflow: hidden;
}

.split-container.classics-collapsed .classics-panel-content {
    display: none;
}

/* Make editor take full width when sidebar is collapsed */
.split-container.classics-collapsed .post-editor {
    flex: 1;
    max-width: 100%;
}

/* Adjust toggle button position when collapsed */
/* (Handled by existing rule above) */

/* Search Bar Components */
.search-container {
    padding: 0;
    background-color: transparent;
    border: none;
}

.search-box {
    position: relative;
    display: flex;
    gap: 8px;
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.search-box .search-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.search-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-btn:hover {
    background-color: #3a5a8a;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    padding: 0 1rem 0.8rem 1rem;
    gap: 8px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.filter-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.filter-btn.active {
    background-color: #e8edf5;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Filter Button (Restored) */
.content-search-filter-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    /* Ensure flex for centering icon */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(58, 90, 138, 0.2);
    z-index: 10;
    transition: all 0.2s ease;
}

.content-search-filter-btn i {
    color: #fff;
    font-size: 0.85rem;
}

.content-search-filter-btn:hover {
    background-color: #3a5a8a;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(58, 90, 138, 0.3);
}

/* Classics Content List */
#classics-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Content Items (Cards) */
.classic-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.classic-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #dbe4f1;
}

.classic-title {
    padding: 10px 15px;
    font-weight: 600;
    color: #333;
    background: #fcfcfc;
    border-bottom: 1px solid #f0f0f0;
}

.classic-body {
    padding: 12px 15px;
}

/* Dark mode: rely on html[data-theme] so it applies before body is parsed */
html[data-theme="dark"] .classics-list,
html[data-theme="dark"] .classics-panel-content {
    background: #171717;
    border-left-color: #2c2c2b;
}

html[data-theme="dark"] #toggleClassicSidebar {
    background: #2f5f96 !important;
    color: #f5f8fc !important;
    border-color: #2f5f96 !important;
    box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] #toggleClassicSidebar:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

html[data-theme="dark"] .classics-panel-tools #search {
    background: #151514;
    color: #f3f4f6;
    border-color: #323231;
    box-shadow: none;
}

html[data-theme="dark"] .classics-panel-tools #search:focus {
    border-color: #3a6aa3;
    box-shadow: 0 0 0 3px rgba(58, 106, 163, 0.22);
}

html[data-theme="dark"] .classics-panel-header p,
html[data-theme="dark"] .loading-spinner,
html[data-theme="dark"] .text-preview {
    color: #b9bec7;
}

html[data-theme="dark"] .classics-panel-header .classic-breadcrumb-link {
    color: #9cb9d7;
}

html[data-theme="dark"] .classics-panel-header .classic-breadcrumb-link:hover {
    color: #bfd4eb;
}

html[data-theme="dark"] .classics-panel-header .classic-breadcrumb-sep {
    color: #7f8ea3;
}

html[data-theme="dark"] .classics-panel-header .classic-breadcrumb-current {
    color: #b9c4d4;
}

html[data-theme="dark"] .classics-list .crl-card,
html[data-theme="dark"] .classic-placeholder-card {
    background: #1a1a19;
    border-color: #2e2e2d;
    box-shadow: none;
}

html[data-theme="dark"] .classics-list .crl-title-wrap h2,
html[data-theme="dark"] .classic-placeholder-card .placeholder-title {
    color: #edf0f3;
}

html[data-theme="dark"] .classic-search-home {
    background: transparent;
    border-color: transparent;
    color: #c0c7d1;
}

html[data-theme="dark"] .classic-search-home-top,
html[data-theme="dark"] .classic-search-home-bottom {
    color: #c0c7d1;
}

html[data-theme="dark"] .classic-search-home-icon {
    background: #262b33;
    color: #93add0;
}

html[data-theme="dark"] .classic-search-home h3 {
    color: #f0f3f8;
}

html[data-theme="dark"] .classic-search-home-hanja {
    color: #e8edf4;
}

html[data-theme="dark"] .classic-search-home-ko {
    color: #a9b4c2;
}

html[data-theme="dark"] .classic-search-home-list-btn {
    background: color-mix(in srgb, #1a1d22 88%, transparent);
    border-color: #344050;
    color: #c2d4ec;
}

html[data-theme="dark"] .classic-search-home-list-btn:hover {
    background: #26303d;
    border-color: #3f4f65;
}

html[data-theme="dark"] .classics-list .crl-title-sub,
html[data-theme="dark"] .classic-placeholder-card .placeholder-description,
html[data-theme="dark"] .classic-placeholder-card .placeholder-hint {
    color: #b9bec7;
}

html[data-theme="dark"] .classics-list .crl-meta {
    border-color: #323231;
}

html[data-theme="dark"] .classics-list .crl-meta b {
    color: #aeb6c1;
}

html[data-theme="dark"] .classics-list .crl-meta em {
    color: #edf0f3;
}

html[data-theme="dark"] .classics-list .crl-badge-wait {
    background: #3a2f1f;
    border-color: #5a4930;
    color: #e1c89e;
}

html[data-theme="dark"] .classics-list .crl-badge-done {
    background: #1f3a2b;
    border-color: #2e5b42;
    color: #b9e7cc;
}

html[data-theme="dark"] .classics-list .crl-badge-pending {
    background: #3a2f1f;
    border-color: #5a4930;
    color: #e1c89e;
}

html[data-theme="dark"] .classics-list .crl-open-icon-btn {
    background: #232a36;
    border-color: #3a465b;
    color: #bfd3f0;
}

html[data-theme="dark"] .classics-list .crl-open-icon-btn:hover {
    background: #2a3344;
    border-color: #4a5f80;
}

html[data-theme="dark"] .classic-volume-modal {
    background: rgba(4, 5, 7, 0.64) !important;
}

html[data-theme="dark"] .classic-volume-modal .classic-volume-modal-content {
    background: #17191d !important;
    border-color: #313744 !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] .classic-volume-modal .classic-volume-modal-header {
    background: #17191d;
    border-bottom-color: #2b3240;
}

html[data-theme="dark"] .classic-volume-modal .classic-volume-modal-header h3 {
    color: #edf2f8;
}

html[data-theme="dark"] .classic-volume-modal .modal-close-btn {
    color: #b7c3d6;
}

html[data-theme="dark"] .classic-volume-modal .modal-close-btn:hover {
    color: #e7edf7;
    background: #252d3a;
}

html[data-theme="dark"] .classic-volume-modal .volume-card {
    background: #1f2530;
    border-color: #354258;
}

html[data-theme="dark"] .classic-volume-modal .volume-card:hover {
    background: #273244;
    border-color: #476082;
    transform: none;
}

html[data-theme="dark"] .classic-volume-modal .volume-number {
    color: #d6e3f5;
}

html[data-theme="dark"] .classics-list .crl-sk-line,
html[data-theme="dark"] .classics-list .crl-sk-pill,
html[data-theme="dark"] .classics-list .crl-sk-tag,
html[data-theme="dark"] .classics-list .crl-sk-btn {
    background: #252524;
}

html[data-theme="dark"] .classics-list .crl-sk-line::after,
html[data-theme="dark"] .classics-list .crl-sk-pill::after,
html[data-theme="dark"] .classics-list .crl-sk-tag::after,
html[data-theme="dark"] .classics-list .crl-sk-btn::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

html[data-theme="dark"] .classic-empty-page-btn {
    background: #1f1f1f;
    border-color: #323231;
    color: #c0c8d1;
}

html[data-theme="dark"] .classic-empty-page-btn.is-active {
    background: #2f5f96;
    border-color: #2f5f96;
    color: #f5f8fc;
}

html[data-theme="dark"] .search-empty-card {
    background: #1a1c20;
    border-color: #2f333b;
    color: #b9c2cf;
    box-shadow: none;
}

html[data-theme="dark"] .search-empty-card .search-empty-icon {
    background: #252b35;
    color: #9fb5d4;
}

html[data-theme="dark"] .search-empty-card h3 {
    color: #eef3f8;
}

html[data-theme="dark"] .classic-title-empty-card {
    background: #1a1c20;
    border-color: #2f333b;
    color: #b9c2cf;
    box-shadow: none;
}

html[data-theme="dark"] .classic-title-empty-icon {
    background: #252b35;
    color: #9fb5d4;
}

html[data-theme="dark"] .classic-title-empty-card h3 {
    color: #eef3f8;
}

html[data-theme="dark"] .classic-title-empty-keyword {
    color: #a8b4c6;
}

html[data-theme="dark"] .classic-title-empty-reset-btn {
    background: #212a38;
    border-color: #3a4b66;
    color: #bfd3f0;
}

html[data-theme="dark"] .classic-title-empty-reset-btn:hover {
    background: #2a3648;
    border-color: #496188;
}

html[data-theme="dark"] .classic-no-data-card {
    background: #1a1c20;
    border-color: #2f333b;
    color: #b9c2cf;
    box-shadow: none;
}

html[data-theme="dark"] .classic-no-data-icon {
    background: #252b35;
    color: #9fb5d4;
}

html[data-theme="dark"] .classic-no-data-card h3 {
    color: #eef3f8;
}

html[data-theme="dark"] .classic-no-data-hint {
    color: #a8b4c6;
}

html[data-theme="dark"] .post-classics-pagination-info {
    color: #9eabbb;
}

html[data-theme="dark"] .post-classics-page-btn {
    background: #1f1f1f;
    border-color: #323231;
    color: #c0c8d1;
}

html[data-theme="dark"] .post-classics-page-btn:hover:not(:disabled) {
    background: #262626;
    border-color: #3c3c3b;
}

html[data-theme="dark"] .post-classics-page-btn.is-active {
    background: #2f5f96;
    border-color: #2f5f96;
    color: #f5f8fc;
}

html[data-theme="dark"] .post-classics-page-ellipsis {
    color: #8f9eb0;
}

html[data-theme="dark"] .post-content-pagination-info {
    color: #9eabbb;
}

html[data-theme="dark"] .post-content-page-btn {
    background: #1f1f1f;
    border-color: #323231;
    color: #c0c8d1;
}

html[data-theme="dark"] .post-content-page-btn:hover:not(:disabled) {
    background: #262626;
    border-color: #3c3c3b;
}

html[data-theme="dark"] .post-content-page-btn.is-active {
    background: #2f5f96;
    border-color: #2f5f96;
    color: #f5f8fc;
}

html[data-theme="dark"] .post-content-page-ellipsis {
    color: #8f9eb0;
}

.text-preview {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cite-btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
    background-color: #eef2f7;
    color: var(--color-primary);
    border-radius: 4px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
}

.cite-btn-sm:hover {
    background-color: #dce5f0;
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}



/* =========================================
   Title Filter Modal (Restored)
   ========================================= */
.title-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    /* Changed from flex to none default, toggled by JS to flex */
    justify-content: center;
    align-items: center;
    z-index: 6000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.title-filter-modal.active,
.title-filter-modal.open {
    /* Support both class names */
    display: flex;
    opacity: 1;
    visibility: visible;
}

.title-filter-modal-card {
    background: white;
    width: min(500px, 94%);
    /* Wider and consistent width */
    border-radius: 16px;
    /* Elegant rounded corners restored */
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.title-filter-modal.active .title-filter-modal-card,
.title-filter-modal.open .title-filter-modal-card {
    transform: translateY(0);
}

.title-filter-modal-head {
    margin-bottom: 20px;
    text-align: center;
}

.title-filter-modal-chip {
    display: inline-block;
    padding: 5px 14px;
    background-color: #eef3f9;
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.title-filter-modal-head h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #333;
}

.title-filter-modal-head p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.title-filter-modal .search-box {
    margin-bottom: 24px;
    width: 100%;
}

.title-filter-modal .search-box input {
    width: 100% !important;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Slightly softer for the modal input */
    font-size: 1rem;
}

.title-filter-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    /* Align to the right */
}

.title-filter-modal-btn {
    padding: 10px 24px;
    /* Maintain content-based width */
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.title-filter-modal-btn.primary,
.title-filter-modal-btn.ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(103, 137, 184, 0.12), rgba(86, 122, 172, 0.09));
    color: #3f6698;
    border: 1px solid rgba(93, 127, 176, 0.62);
    border-radius: 999px;
    /* Pill shape like header's Write Post button */
    padding: 0.45rem 1rem;
    /* Compact width */
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px -18px rgba(46, 78, 121, 0.38);
    min-width: 80px;
    /* Reduced min-width */
}

.title-filter-modal-btn.primary {
    background: #4a70aa;
    /* Solid primary color for contrast */
    color: white;
    border: none;
}

.title-filter-modal-btn.primary:hover {
    background: #3c6195;
    box-shadow: 0 10px 24px -16px rgba(46, 78, 121, 0.45);
}

.title-filter-modal-btn.ghost:hover {
    background: linear-gradient(180deg, rgba(103, 137, 184, 0.2), rgba(86, 122, 172, 0.15));
    border-color: rgba(93, 127, 176, 0.82);
}

.title-filter-modal-btn.subtle {
    background: none;
    color: #888;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
    /* Pushes other buttons to the right */
}

.cite-btn:hover {
    background-color: #3a5a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cite-btn-inline,
.cite-btn-block {
    background-color: var(--color-primary);
}

.cite-btn-inline:hover,
.cite-btn-block:hover {
    background-color: #3a5a8a;
}

/* =========================================
   고전 인용 — 모달이 기본, 원하면 사이드바로 (원장 지시 260918)

   body[data-cite] 가 closed | modal | dock 셋을 가른다(post-editor-ui.js).
   1024 이하는 이 갈래를 쓰지 않는다 — 거기는 `.classics-list.active` 바텀 시트다.

   머리줄은 새로 만들지 않고 패널이 원래 갖고 있던 .classics-panel-header 를 쓴다.
   브레드크럼(nav.classic-breadcrumb)을 밖으로 빼면 위쪽
   `.classics-list.is-list-mode .classics-panel-header .classic-breadcrumb-sep` 가
   조상을 잃어 「› 도서관」이 영영 안 켜진다. 그래서 옮기지 않는다.
   ========================================= */

@media (min-width: 1025px) {

    /* 문은 툴바의 「인용」 하나다 — 떠 있던 토글과 안내문은 이 화면에서 쓰지 않는다 */
    body[data-chrome="editor"] #toggleClassicSidebar,
    body[data-chrome="editor"] .classics-panel-header > p { display: none; }

    body[data-chrome="editor"] .classics-list { display: none; }

    /* ── 모달 ── */
    body[data-chrome="editor"][data-cite="modal"] .classics-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        z-index: 3000;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(960px, 92vw);
        height: min(78vh, 780px);
        max-width: none;
        min-width: 0;
        flex: 0 0 auto;
        padding: 0;
        overflow: hidden;
        visibility: visible;
        border-radius: 16px;
        background: #ffffff;
        border: 1px solid #e0e4e9;
        box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    }

    /* ── 사이드바 ── */
    body[data-chrome="editor"][data-cite="dock"] .classics-list {
        display: flex;
        flex-direction: column;
        position: static;
        transform: none;
        flex: 0 0 420px;
        width: 420px;
        max-width: 420px;
        min-width: 0;
        height: auto;
        padding: 0;
        overflow: hidden;
        visibility: visible;
        border-radius: 0;
        box-shadow: none;
        border-left: 1px solid #e9ecef;
        background: #fbfcfd;
    }

    /* ── 머리줄 ── */
    body[data-chrome="editor"][data-cite="modal"] .classics-panel-header,
    body[data-chrome="editor"][data-cite="dock"] .classics-panel-header {
        flex: 0 0 auto;
        margin: 0;
        padding: 12px 18px;
        border-bottom: 1px solid #e9ecef;
    }

    body[data-chrome="editor"][data-cite="modal"] .classics-panel-header-row,
    body[data-chrome="editor"][data-cite="dock"] .classics-panel-header-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    body[data-chrome="editor"] .classic-breadcrumb {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-right: auto;
    }

    body[data-chrome="editor"] #classicBreadcrumbRoot {
        padding: 0;
        border: 0;
        background: none;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: #2f3a49;
        cursor: pointer;
    }

    /* 밑줄은 긋지 않는다 — 까닭은 classic-detail.css 의 .cd-breadcrumb a:hover 주석에 */
    body[data-chrome="editor"] #classicBreadcrumbRoot:hover {
        color: var(--color-primary-strong);
        text-decoration: none;
    }

    body[data-chrome="editor"] .classic-breadcrumb-sep { font-size: 0.66rem; }

    body[data-chrome="editor"] .classic-breadcrumb-current {
        font-size: 0.95rem;
        font-weight: 600;
    }

    body[data-chrome="editor"] .classic-breadcrumb-sep,
    body[data-chrome="editor"] .classic-breadcrumb-current { color: #8a94a2; }

    .cite-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .cite-action {
        padding: 5px 10px;
        border: 1px solid #dfe3e8;
        border-radius: 8px;
        background: transparent;
        color: #56606e;
        font-size: 0.8rem;
        font-weight: 600;
        line-height: 1.4;
        cursor: pointer;
    }

    .cite-action:hover { background: #f0f2f5; }

    /* ── 모달 속 — 넓은 판의 짜임 ── */
    body[data-chrome="editor"][data-cite="modal"] .classics-panel-content { padding-top: 0; }

    body[data-chrome="editor"][data-cite="modal"] .classics-panel-tools { padding: 22px 20px 16px; }

    body[data-chrome="editor"][data-cite="modal"] .classics-search-stage .search-box {
        max-width: 560px;
        margin: 0 auto;
    }

    body[data-chrome="editor"][data-cite="modal"] #classicsContainer {
        padding: 0 20px 20px;
        grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    }

    /* 검색 첫 화면은 세로로도 가운데 놓는다. .classics-panel-header 가
       .classics-panel-content 안에 있어서 내용을 통째로 가운데 두면 머리줄까지
       내려온다 — 머리줄은 위에 붙여 두고 검색 뭉치에만 auto 여백을 준다. */
    body[data-chrome="editor"][data-cite="modal"] .classics-list.is-search-home .classics-panel-content {
        justify-content: flex-start;
        padding-bottom: 0;
    }

    body[data-chrome="editor"][data-cite="modal"] .classics-list.is-search-home .classics-panel-tools {
        flex: 0 0 auto;
        margin-top: auto;
        margin-bottom: auto;
    }

    /* 첫 화면의 카드판은 비어 있다 — 패딩까지 0 이라야 위아래 여백이 같아진다 */
    body[data-chrome="editor"][data-cite="modal"] .classics-list.is-search-home #classicsContainer {
        flex: 0 0 auto;
        padding: 0;
    }

    /* 「고전 데이터가 없습니다」는 세로 320px 카드가 아니라 한 줄 띠로 */
    body[data-chrome="editor"][data-cite="modal"] #classicsContainer > .classic-placeholder-card,
    body[data-chrome="editor"][data-cite="modal"] #classicsContainer > .classic-empty-preview,
    body[data-chrome="editor"][data-cite="modal"] #classicsContainer > .classic-empty-pagination {
        grid-column: 1 / -1;
    }

    body[data-chrome="editor"][data-cite="modal"] .classic-placeholder-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        min-height: 0;
        margin-bottom: 4px;
        padding: 14px 18px;
        border-radius: 12px;
        text-align: left;
        background: #f6f8fa;
        border: 1px solid #e8ecf0;
    }

    body[data-chrome="editor"][data-cite="modal"] .classic-placeholder-card .placeholder-icon {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        margin: 0;
        background: #e8edf3;
        color: #62707f;
    }

    body[data-chrome="editor"][data-cite="modal"] .classic-placeholder-card .placeholder-icon i { font-size: 15px; }

    body[data-chrome="editor"][data-cite="modal"] .classic-placeholder-card .placeholder-title {
        flex: 0 0 auto;
        margin: 0;
        font-size: 0.9rem;
        color: #2f3a49;
    }

    body[data-chrome="editor"][data-cite="modal"] .classic-placeholder-card .placeholder-description {
        flex: 1 1 auto;
        margin: 0;
        font-size: 0.82rem;
        color: #7b8694;
    }

    body[data-chrome="editor"][data-cite="modal"] .classic-placeholder-card .placeholder-hint { display: none; }

    body[data-chrome="editor"][data-cite="modal"] .classic-empty-preview {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
        gap: 12px;
    }

    body[data-chrome="editor"][data-cite="modal"] .classic-empty-pagination {
        justify-content: center;
        padding-top: 18px;
    }

    /* 파란 채움 버튼은 쓰지 않는다 — 무채색 반전으로 */
    body[data-chrome="editor"][data-cite="modal"] .classic-empty-page-btn.is-active {
        background: #15171a;
        border-color: #15171a;
        color: #ffffff;
        box-shadow: none;
    }

    /* ── 다크 ── */
    body[data-theme="dark"][data-chrome="editor"][data-cite="modal"] .classics-list {
        background: #171717;
        border-color: #3a3a3a;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    }

    body[data-theme="dark"][data-chrome="editor"][data-cite="dock"] .classics-list {
        border-left-color: #2a2a2a;
        background: #141414;
    }

    body[data-theme="dark"][data-chrome="editor"][data-cite="modal"] .classics-panel-header,
    body[data-theme="dark"][data-chrome="editor"][data-cite="dock"] .classics-panel-header { border-bottom-color: #2a2a2a; }

    body[data-theme="dark"][data-chrome="editor"] #classicBreadcrumbRoot { color: #edf0f3; }
    body[data-theme="dark"][data-chrome="editor"] #classicBreadcrumbRoot:hover { color: #9cb9d7; }

    body[data-theme="dark"][data-chrome="editor"] .classic-breadcrumb-sep,
    body[data-theme="dark"][data-chrome="editor"] .classic-breadcrumb-current { color: #9a9a9a; }

    body[data-theme="dark"] .cite-action {
        border-color: #3a3a3a;
        color: #c2c8d0;
    }

    body[data-theme="dark"] .cite-action:hover { background: #262626; }

    body[data-theme="dark"][data-chrome="editor"][data-cite="modal"] .classic-placeholder-card {
        background: #1d1d1d;
        border-color: #2f2f2f;
    }

    body[data-theme="dark"][data-chrome="editor"][data-cite="modal"] .classic-placeholder-card .placeholder-icon {
        background: #2a2a2a;
        color: #c2c8d0;
    }

    body[data-theme="dark"][data-chrome="editor"][data-cite="modal"] .classic-placeholder-card .placeholder-title { color: #edf0f3; }
    body[data-theme="dark"][data-chrome="editor"][data-cite="modal"] .classic-placeholder-card .placeholder-description { color: #9a9a9a; }

    body[data-theme="dark"][data-chrome="editor"][data-cite="modal"] .classic-empty-page-btn.is-active {
        background: #edf0f3;
        border-color: #edf0f3;
        color: #15171a;
    }
}

/* .cite-actions 는 .classics-panel-header-row 에 붙는데, 그 줄은 모바일 바텀 시트도
   같이 쓴다. 모바일은 인용을 시트로 여닫으므로 이 단추 셋을 쓰지 않는다. */
@media (max-width: 1024px) {
    .cite-actions { display: none; }
}
