/* ==========================================================================
   百草居 · 名家论药 / 评方 / 医友 UGC 生产样式表
   严格限定作用域于 #write .bc-ms-*，与 narrow.css 宣纸色调完全融合
   ========================================================================== */

#write .bc-card-sec.bc-ms-section {
    padding: 18px 20px 20px;
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid #e2d3be;
    box-shadow: 0 2px 10px rgba(110, 72, 50, 0.05);
}
#write .bc-ms-hd-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 14px;
    margin-bottom: 8px;
}
#write .bc-ms-hd-row .bc-section-hd {
    margin-bottom: 0;
    flex: 1 1 auto;
}
#write .bc-ms-intro {
    margin: 0 0 14px !important;
    padding: 9px 13px;
    background: #f9f2e4;
    border-radius: 8px;
    border: 1px dashed #dfcbb0;
    font-size: 13px;
    line-height: 1.68;
    color: #6d4f3b;
    text-indent: 0 !important;
}

#write .bc-ms-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eadec9;
}
#write .bc-ms-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
#write .bc-ms-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #decbb0;
    background: #fbf7ee;
    color: #6b4c35;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
}
#write .bc-ms-tab:hover {
    border-color: #9b2c23;
    color: #9b2c23;
    background: #fffdf8;
}
#write .bc-ms-tab.is-active {
    background: #783f04;
    border-color: #783f04;
    color: #fffdf8;
    font-weight: 600;
}
#write .bc-ms-tab-cnt {
    display: inline-block;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11.5px;
    background: rgba(120, 63, 4, 0.1);
    color: inherit;
}
#write .bc-ms-tab.is-active .bc-ms-tab-cnt {
    background: rgba(255, 255, 255, 0.22);
}

#write .bc-ms-angles-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}
#write .bc-ms-angles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
#write .bc-ms-angles-label {
    font-size: 12px;
    color: #937863;
    font-weight: 600;
    margin-right: 2px;
}
#write .bc-ms-angle-pill {
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #e6dac8;
    background: #fffdf8;
    color: #6d4f3b;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}
#write .bc-ms-angle-pill:hover {
    border-color: #3d6b44;
    color: #3d6b44;
}
#write .bc-ms-angle-pill.is-active {
    background: #3d6b44;
    border-color: #3d6b44;
    color: #fffdf8;
    font-weight: 600;
}
#write .bc-ms-count-info {
    font-size: 12px;
    color: #8c705b;
}

#write .bc-ms-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
#write .bc-ms-card {
    display: flex;
    gap: 14px;
    padding: 15px 16px;
    background: #fffdf9;
    border: 1px solid #e7dac7;
    border-radius: 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#write .bc-ms-card:hover {
    border-color: #cfb796;
    box-shadow: 0 3px 12px rgba(110, 72, 50, 0.08);
}
#write .bc-ms-card.is-ugc {
    background: #fafcf9;
    border-color: #cfe0d2;
    border-left: 3px solid #3d6b44;
}
#write .bc-ms-card.is-pending {
    border-style: dashed;
    background: #fffdf4;
}
#write .bc-ms-card.is-hidden {
    display: none;
}

#write .bc-ms-avatar-col {
    flex: 0 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
#write a.bc-ms-avatar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d9c3a3;
    background: #f5ebd8;
    box-shadow: 0 2px 6px rgba(93, 61, 39, 0.14);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease;
}
#write a.bc-ms-avatar-link:hover {
    transform: translateY(-1px);
    border-color: #9b2c23;
}
#write .bc-ms-avatar-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 未配生成头像时使用宋明篆刻书法降级圆章，确保视觉绝不破图 */
#write .bc-ms-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 35% 30%, #fbf3e3 0%, #ead6b5 100%);
    color: #6c3219;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
#write .bc-ms-avatar-fallback.is-lg {
    font-size: 36px;
}
#write .bc-ms-region-mini {
    font-size: 11px;
    color: #8c705b;
    background: #f5ecdc;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

#write .bc-ms-body-col {
    flex: 1 1 auto;
    min-width: 0;
}
#write .bc-ms-card-hd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    margin-bottom: 7px;
}
#write .bc-ms-author-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
#write a.bc-ms-name {
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 17px;
    font-weight: 700;
    color: #4b2b17;
    text-decoration: none;
    line-height: 1.25;
}
#write a.bc-ms-name:hover {
    color: #9b2c23;
    text-decoration: underline;
    font-weight: 700;
}

#write .bc-ms-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.45;
}
#write .bc-ms-badge.is-master {
    background: #9b2c23;
    color: #fbf0eb;
}
#write .bc-ms-badge.is-deceased {
    background: #eee7db;
    color: #6b5748;
    border: 1px solid #d7cab7;
    font-weight: 500;
}
#write .bc-ms-badge.is-verified {
    background: #3d6b44;
    color: #f4faf5;
}
#write .bc-ms-badge.is-member {
    background: #783f04;
    color: #fffdf8;
}
#write .bc-ms-badge.is-alive {
    background: #e7f2e8;
    color: #2f5a36;
    border: 1px solid #b9d7be;
    font-weight: 500;
}
#write .bc-ms-badge.is-pending-tag {
    background: #fff2d6;
    color: #9a5d07;
    border: 1px solid #e6c687;
}
#write .bc-ms-era-tag {
    font-size: 12px;
    color: #846853;
}
#write .bc-ms-angle-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: #f4ead9;
    border: 1px solid #dcc5a1;
    color: #783f04;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
#write .bc-ms-card.is-ugc .bc-ms-angle-badge {
    background: #e8f3ea;
    border-color: #bfd9c3;
    color: #2e5935;
}

#write .bc-ms-summary {
    margin: 0 0 10px !important;
    font-size: 14.8px;
    line-height: 1.8;
    color: #3f2b1d;
    text-indent: 0 !important;
    text-align: justify;
}
#write .bc-ms-quote-box {
    margin: 8px 0 10px;
    padding: 10px 13px;
    background: #f8f1e4;
    border-left: 3px solid #b68449;
    border-radius: 0 7px 7px 0;
    display: none;
}
#write .bc-ms-quote-box.is-open {
    display: block;
}
#write .bc-ms-quote-text {
    margin: 0 0 6px !important;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "FangSong", "SimSun", serif;
    font-size: 14.3px;
    line-height: 1.85;
    color: #51341f;
    text-indent: 0 !important;
}
#write .bc-ms-quote-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    color: #846853;
}
#write a.bc-ms-book-link {
    color: #783f04;
    font-weight: 600;
    text-decoration: none;
}
#write a.bc-ms-book-link:hover {
    color: #9b2c23;
    text-decoration: underline;
    font-weight: 600;
}

#write .bc-ms-card-ft {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding-top: 6px;
    border-top: 1px dashed #ece1cf;
}
#write .bc-ms-source-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8c705b;
}
#write .bc-ms-source-kind {
    padding: 1px 6px;
    border-radius: 4px;
    background: #f3eadc;
    color: #775943;
    font-size: 11.5px;
}
#write .bc-ms-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
#write .bc-ms-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #e3d5c1;
    background: #fffdf8;
    color: #6b4e38;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.14s ease;
}
#write .bc-ms-act-btn:hover {
    border-color: #b78d59;
    background: #fbf3e6;
    color: #4b2b17;
}
#write .bc-ms-act-btn.is-liked {
    background: #fdf0ed;
    border-color: #d99b91;
    color: #9b2c23;
    font-weight: 600;
}
#write .bc-ms-act-btn.is-saved {
    background: #edf6ee;
    border-color: #9dc5a4;
    color: #2f5c36;
    font-weight: 600;
}
#write .bc-ms-act-btn.is-quote-open {
    background: #f5ebd8;
    border-color: #c5a170;
    color: #6c3804;
    font-weight: 600;
}

#write .bc-ms-replies {
    margin-top: 10px;
    padding: 10px 12px;
    background: #faf5eb;
    border: 1px solid #e8dcc8;
    border-radius: 8px;
    display: none;
}
#write .bc-ms-replies.is-open {
    display: block;
}
#write .bc-ms-reply-item {
    padding: 7px 0;
    border-bottom: 1px dashed #e3d6c0;
    font-size: 13px;
    line-height: 1.68;
    color: #4d3524;
}
#write .bc-ms-reply-item:first-child {
    padding-top: 0;
}
#write .bc-ms-reply-hd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}
#write .bc-ms-reply-user {
    font-weight: 600;
    color: #5c3720;
}
#write .bc-ms-reply-role {
    font-size: 11px;
    padding: 0 5px;
    border-radius: 3px;
    background: #e6efe7;
    color: #33613b;
}
#write .bc-ms-reply-time {
    font-size: 11.5px;
    color: #9b826e;
}
#write .bc-ms-reply-text {
    margin: 0 !important;
    text-indent: 0 !important;
}
#write .bc-ms-reply-form {
    display: flex;
    gap: 8px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #e6dac6;
}
#write .bc-ms-reply-input {
    flex: 1 1 auto;
    padding: 6px 10px;
    border: 1px solid #d7c4aa;
    border-radius: 6px;
    background: #fffdf9;
    font-size: 13px;
    color: #4b2b17;
}
#write .bc-ms-reply-submit {
    flex: 0 0 auto;
    padding: 6px 13px;
    border: none;
    border-radius: 6px;
    background: #783f04;
    color: #fffdf8;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
#write .bc-ms-reply-submit:hover {
    background: #5b2f02;
}

#write .bc-ms-ugc-cta {
    margin-top: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f5f9f5 0%, #edf4ee 100%);
    border: 1px solid #c8dccb;
    border-radius: 10px;
}
#write .bc-ms-ugc-cta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
}
#write .bc-ms-ugc-cta-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #2d5533;
    margin-bottom: 3px;
}
#write .bc-ms-ugc-cta-desc {
    font-size: 12.8px;
    color: #4f6c54;
    line-height: 1.55;
}
#write .bc-ms-ugc-toggle-btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #3d6b44;
    background: #3d6b44;
    color: #fffdf8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
#write .bc-ms-ugc-toggle-btn:hover {
    background: #2f5635;
}
#write .bc-ms-ugc-form {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #b9d2bd;
}
#write .bc-ms-ugc-form.is-open {
    display: block;
}
#write .bc-ms-field {
    margin-bottom: 10px;
}
#write .bc-ms-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #456049;
    margin-bottom: 4px;
}
#write .bc-ms-field select,
#write .bc-ms-field textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #c3d6c6;
    border-radius: 6px;
    background: #fffdf9;
    font-size: 13px;
    color: #333;
}
#write .bc-ms-ugc-form-ft {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
#write .bc-ms-ugc-tip {
    font-size: 12px;
    color: #5c7660;
}
#write .bc-ms-ugc-submit {
    padding: 7px 16px;
    border: none;
    border-radius: 7px;
    background: #9b2c23;
    color: #fffdf8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
#write .bc-ms-ugc-msg {
    margin-top: 8px;
    font-size: 12.5px;
    color: #2f5a36;
}
#write .bc-ms-ugc-msg.is-err {
    color: #9b2c23;
}

/* 名家档案主页 & 总录页 */
#write .bc-ms-profile-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 8px 0 20px;
    margin-bottom: 18px;
    border-bottom: 3px double rgba(110, 72, 50, 0.22);
}
#write .bc-ms-profile-avatar {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #d9c3a3;
    background: #f5ebd8;
    box-shadow: 0 4px 14px rgba(110, 72, 50, 0.16);
}
#write .bc-ms-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#write .bc-ms-profile-main {
    flex: 1 1 auto;
    min-width: 0;
}
#write .bc-ms-profile-sub {
    font-size: 13.5px;
    color: #7c604b;
    margin: 4px 0 8px;
}
#write .bc-ms-archive-note {
    margin: 10px 0 0 !important;
    padding: 8px 12px;
    background: #f7efe2;
    border: 1px solid #e2d1b7;
    border-radius: 7px;
    font-size: 12.5px;
    color: #71543f;
    text-indent: 0 !important;
}
#write .bc-ms-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 20px;
}
#write .bc-ms-stat-box {
    padding: 11px 12px;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid #e6dac8;
    border-radius: 8px;
    text-align: center;
}
#write .bc-ms-stat-num {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 22px;
    font-weight: 700;
    color: #783f04;
    line-height: 1.2;
}
#write .bc-ms-stat-lbl {
    font-size: 12px;
    color: #8c705b;
    margin-top: 3px;
}
#write .bc-ms-work-item {
    padding: 13px 15px;
    background: #fffdf9;
    border: 1px solid #e6dac8;
    border-radius: 9px;
    margin-bottom: 12px;
}
#write .bc-ms-work-item:last-child {
    margin-bottom: 0;
}
#write .bc-ms-work-hd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 6px;
}
#write a.bc-ms-work-title {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 17px;
    font-weight: 700;
    color: #4b2b17;
    text-decoration: none;
}
#write a.bc-ms-work-title:hover {
    color: #9b2c23;
    text-decoration: underline;
    font-weight: 700;
}
#write .bc-ms-work-quote {
    margin: 0 0 8px !important;
    font-size: 14.3px;
    line-height: 1.78;
    color: #4e3626;
    text-indent: 0 !important;
}
#write .bc-ms-work-ft {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    color: #8c705b;
}

/* 总录网格 */
#write .bc-ms-dir-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
#write a.bc-ms-dir-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    background: #fffdf9;
    border: 1px solid #e6dac8;
    border-radius: 9px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}
#write a.bc-ms-dir-card:hover {
    border-color: #9b2c23;
    box-shadow: 0 3px 10px rgba(110, 72, 50, 0.09);
    font-weight: normal;
}
#write .bc-ms-dir-card.is-hidden {
    display: none;
}
#write .bc-ms-dir-av {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #d9c3a3;
    background: #f5ebd8;
}
#write .bc-ms-dir-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#write .bc-ms-dir-info {
    min-width: 0;
    flex: 1 1 auto;
}
#write .bc-ms-dir-name {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #4b2b17;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#write .bc-ms-dir-meta {
    font-size: 11.5px;
    color: #846853;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#write .bc-ms-dir-cnt {
    font-size: 11.5px;
    color: #3d6b44;
    margin-top: 2px;
}

@media (max-width: 720px) {
    #write .bc-ms-dir-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    #write .bc-card-sec.bc-ms-section {
        padding: 14px 13px 16px;
    }
    #write .bc-ms-card {
        flex-direction: column;
        gap: 10px;
        padding: 13px;
    }
    #write .bc-ms-avatar-col {
        flex-direction: row;
        flex: none;
        gap: 10px;
    }
    #write a.bc-ms-avatar-link {
        width: 48px;
        height: 48px;
    }
    #write .bc-ms-profile-hero {
        flex-direction: column;
        gap: 12px;
    }
    #write .bc-ms-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #write .bc-ms-dir-grid {
        grid-template-columns: 1fr;
    }
}

/* 管理员前台全能管理栏与弹窗 */
#write .bc-ms-admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 0 0 12px;
    padding: 8px 12px;
    background: #fdf6e9;
    border: 1px solid #dcc095;
    border-left: 4px solid #783f04;
    border-radius: 8px;
    font-size: 12.5px;
    color: #5c3a1e;
}
#write .bc-ms-admin-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
#write .bc-ms-adm-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #c9a777;
    background: #fffdf8;
    color: #5c3818;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
#write .bc-ms-adm-btn:hover {
    background: #783f04;
    border-color: #783f04;
    color: #fff;
}
#write .bc-ms-adm-btn.is-add {
    background: #3d6b44;
    border-color: #3d6b44;
    color: #fff;
}
#write .bc-ms-act-btn.is-adm-edit {
    border-color: #c8ad84;
    color: #6b4319;
}
#write .bc-ms-act-btn.is-adm-del {
    border-color: #deb2ac;
    color: #9b2c23;
}
#write .bc-ms-act-btn.is-adm-pass {
    border-color: #9ec5a4;
    background: #eef7ef;
    color: #2c5e34;
    font-weight: 600;
}
#write .bc-ms-reply-adm {
    margin-left: auto;
    display: inline-flex;
    gap: 6px;
}
#write .bc-ms-reply-adm button {
    border: none;
    background: none;
    font-size: 11.5px;
    color: #783f04;
    cursor: pointer;
    padding: 0 3px;
}
#write .bc-ms-reply-adm button.is-del {
    color: #9b2c23;
}

.bc-cm-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(34, 20, 10, 0.56);
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.bc-cm-modal-mask.is-open {
    display: flex;
}
.bc-cm-modal {
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fcf8ef;
    border: 1px solid #d9c3a3;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(26, 14, 7, 0.32);
    padding: 18px 20px;
    color: #3f2818;
}
.bc-cm-modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e6d7c1;
}
.bc-cm-modal-hd h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #4b2b17;
}
.bc-cm-modal-x {
    border: 1px solid #dfc9aa;
    background: #fffdf8;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #783f04;
}
.bc-cm-mfield {
    margin-bottom: 10px;
}
.bc-cm-mfield label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6d4f3b;
    margin-bottom: 4px;
}
.bc-cm-mfield input,
.bc-cm-mfield select,
.bc-cm-mfield textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d5c1a3;
    border-radius: 6px;
    background: #fffdf9;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
}
.bc-cm-mrow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.bc-cm-modal-ft {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e6d7c1;
}
.bc-cm-btn-cancel {
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #d5c1a3;
    background: #fff;
    color: #6b4e38;
    cursor: pointer;
}
.bc-cm-btn-save {
    padding: 7px 16px;
    border-radius: 6px;
    border: none;
    background: #9b2c23;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   名家名师个人主页升级：典籍线装书架、先贤祭拜礼坛、Follow & AI 问学筹备、真分页
   ========================================================================== */
#write .bc-ms-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
#write .bc-ms-avatar-era {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: #f3e8d7;
    border: 1px solid #dec9ad;
    color: #783f04;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
#write .bc-ms-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 14px;
}
#write .bc-ms-follow-btn,
#write .bc-ms-tribute-jump-btn,
#write .bc-ms-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
}
#write .bc-ms-follow-btn {
    background: #783f04;
    border: 1px solid #733004;
    color: #fffdf8;
    box-shadow: 0 2px 8px rgba(120, 63, 4, 0.2);
}
#write .bc-ms-follow-btn:hover {
    background: #5b2f02;
    border-color: #5b2f02;
}
#write .bc-ms-follow-btn.is-following {
    background: #eef6ef;
    border-color: #6b9e73;
    color: #2f5e36;
    box-shadow: none;
}
#write .bc-ms-follow-btn .js-follow-cnt {
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}
#write .bc-ms-follow-btn.is-following .js-follow-cnt {
    background: rgba(47, 94, 54, 0.14);
}
#write .bc-ms-tribute-jump-btn {
    background: #fbf4e7;
    border: 1px solid #d9bf9c;
    color: #783f04;
}
#write .bc-ms-tribute-jump-btn:hover {
    background: #f3e4cd;
    border-color: #b88b5a;
}
#write .bc-ms-ai-btn {
    background: #fffdf9;
    border: 1px dashed #c89f74;
    color: #6f482b;
}
#write .bc-ms-ai-btn:hover {
    background: #fbf3e4;
    border-style: solid;
    border-color: #9b2c23;
    color: #9b2c23;
}
#write .bc-ms-ai-tag {
    padding: 0 6px;
    border-radius: 4px;
    background: rgba(155, 44, 35, 0.1);
    color: #9b2c23;
    font-size: 11px;
    font-weight: 700;
}
#write .bc-ms-action-hint {
    display: none;
    margin-top: 9px;
    padding: 7px 11px;
    border-radius: 7px;
    background: #fbf5ea;
    border: 1px solid #e2d1b7;
    font-size: 12.5px;
    color: #5e3e27;
}
#write .bc-ms-action-hint.is-err {
    background: #fdf3f1;
    border-color: #e4bcb4;
    color: #9b2c23;
}
#write .bc-ms-action-hint a {
    color: #9b2c23;
    font-weight: 600;
    text-decoration: underline;
}

/* 可点击统计条 */
#write .bc-ms-stat-strip {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}
#write a.bc-ms-stat-box {
    display: block;
    text-decoration: none;
    color: inherit;
    font-weight: normal;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
#write a.bc-ms-stat-box:hover {
    transform: translateY(-1px);
    border-color: #b88b5a;
    box-shadow: 0 4px 12px rgba(110, 72, 50, 0.08);
    font-weight: normal;
}

/* 传世典籍线装书架 */
#write .bc-ms-books-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(110, 72, 50, 0.18);
}
#write .bc-ms-books-subhd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #6b4b34;
}
#write .bc-ms-bookshelf {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
#write .bc-ms-bookshelf.is-single {
    grid-template-columns: 1fr;
}
#write a.bc-ms-book-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 13px 15px;
    background: linear-gradient(180deg, #fffefb 0%, #faf3e6 100%);
    border: 1px solid #e2d3be;
    border-radius: 10px;
    text-decoration: none;
    color: #4b2b17;
    font-weight: normal;
    box-shadow: 0 1px 5px rgba(110, 72, 50, 0.05);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
#write a.bc-ms-book-card:hover {
    transform: translateY(-2px);
    border-color: #9b2c23;
    box-shadow: 0 7px 18px rgba(110, 72, 50, 0.11);
    font-weight: normal;
}
#write .bc-ms-book-card .bc-mini-cover {
    width: 54px;
    height: 76px;
    margin-top: 2px;
}
#write .bc-ms-book-card .bc-mini-cover.is-cover-b {
    background: linear-gradient(145deg, #365162 0%, #243846 65%, #192833 100%);
}
#write .bc-ms-book-card .bc-mini-cover.is-cover-c {
    background: linear-gradient(145deg, #3d6346 0%, #2a4731 65%, #1d3323 100%);
}
#write .bc-ms-book-card .bc-mini-slip {
    top: 6px;
    right: 7px;
    bottom: 7px;
    width: 21px;
}
#write .bc-ms-book-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
#write .bc-ms-book-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}
#write .bc-ms-book-title {
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 16.5px;
    font-weight: 700;
    color: #4b2b17;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#write a.bc-ms-book-card:hover .bc-ms-book-title {
    color: #9b2c23;
}
#write .bc-ms-book-role {
    flex-shrink: 0;
    padding: 1px 7px;
    border-radius: 4px;
    background: #f2e5d2;
    border: 1px solid #dcc4a2;
    color: #783f04;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 11px;
    font-weight: 700;
}
#write .bc-ms-book-excerpt {
    margin: 0 0 8px !important;
    font-size: 12.6px;
    line-height: 1.62;
    color: #735743;
    text-indent: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#write .bc-ms-book-ft {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #967c67;
}
#write .bc-ms-book-go {
    color: #783f04;
    font-weight: 600;
}
#write a.bc-ms-book-card:hover .bc-ms-book-go {
    color: #9b2c23;
}

/* 已故先贤杏林追思与祭拜礼坛 */
#write .bc-ms-shrine {
    background: linear-gradient(180deg, #fffdf9 0%, #f8f0e1 100%);
    border: 1px solid #e2d1b9;
    border-top: 3px solid #8a5628;
    transition: box-shadow 0.35s ease;
}
#write .bc-ms-shrine.is-ceremony {
    animation: bcShrineGlow 1.3s ease;
}
@keyframes bcShrineGlow {
    0%   { box-shadow: 0 0 0 0 rgba(155, 44, 35, 0.24); }
    45%  { box-shadow: 0 0 22px 4px rgba(196, 132, 54, 0.32); }
    100% { box-shadow: 0 2px 10px rgba(110, 72, 50, 0.05); }
}
#write .bc-ms-shrine-hd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
}
#write .bc-ms-shrine-hd .bc-section-hd {
    margin-bottom: 0;
    flex: 1 1 auto;
}
#write .bc-ms-shrine-badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: #efe2cd;
    border: 1px solid #d9c09b;
    color: #783f04;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
#write .bc-ms-shrine-desc {
    margin: 0 0 14px !important;
    font-size: 13.5px;
    line-height: 1.7;
    color: #6b503b;
    text-indent: 0 !important;
}
#write .bc-ms-ritual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}
#write .bc-ms-ritual-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 13px 10px 11px;
    border-radius: 10px;
    border: 1px solid #dfc9aa;
    background: #fffdf8;
    color: #4b2b17;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
#write .bc-ms-ritual-btn:hover {
    transform: translateY(-2px);
    border-color: #9b2c23;
    background: #fdf6ea;
    box-shadow: 0 5px 14px rgba(110, 72, 50, 0.1);
}
#write .bc-ms-ritual-btn.is-done {
    background: #faf4e7;
    border-color: #cfb796;
}
#write .bc-ms-ritual-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(120, 63, 4, 0.08);
    color: #783f04;
}
#write .bc-ms-ritual-btn:hover .bc-ms-ritual-ico {
    background: rgba(155, 44, 35, 0.12);
    color: #9b2c23;
}
#write .bc-ms-ritual-name {
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 15px;
    font-weight: 700;
    color: #4b2b17;
}
#write .bc-ms-ritual-sub {
    font-size: 11.5px;
    color: #8c705b;
}
#write .bc-ms-ritual-cnt {
    margin-top: 2px;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    color: #783f04;
}
#write .bc-ms-tribute-msg-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
#write .bc-ms-tribute-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding: 5px 11px;
    border: 1px solid #dcc7a9;
    border-radius: 7px;
    background: #fffdf9;
    font-size: 13px;
    color: #4b2b17;
}
#write .bc-ms-tribute-log {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(110, 72, 50, 0.18);
}
#write .bc-ms-tribute-row {
    padding: 7px 4px;
    border-bottom: 1px dashed rgba(110, 72, 50, 0.1);
    font-size: 12.5px;
}
#write .bc-ms-tribute-row:last-child {
    border-bottom: none;
}
#write .bc-ms-tribute-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: #8c705b;
}
#write .bc-ms-tribute-user {
    font-weight: 600;
    color: #5b3820;
    text-decoration: none;
}
#write a.bc-ms-tribute-user:hover {
    color: #9b2c23;
    font-weight: 600;
    text-decoration: underline;
}
#write .bc-ms-tribute-to {
    color: #7c614b;
}
#write .bc-ms-tribute-to strong {
    color: #4b2b17;
    font-weight: 600;
}
#write .bc-ms-tribute-act {
    padding: 0 6px;
    border-radius: 4px;
    background: rgba(120, 63, 4, 0.08);
    color: #783f04;
    font-size: 11.5px;
}
#write .bc-ms-tribute-date {
    margin-left: auto;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}
#write .bc-ms-tribute-msg {
    margin-top: 3px;
    color: #543b29;
    line-height: 1.55;
}
#write .bc-ms-tribute-empty {
    font-size: 12.5px;
    color: #967c67;
    padding: 4px 0;
}

/* 论药 / 评方工具栏、标签印章与真分页 */
#write .bc-ms-works-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eadec9;
}
#write .bc-ms-works-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
#write .bc-ms-works-search {
    width: 195px;
    height: 32px;
    padding: 4px 10px;
    border: 1px solid #d9c5a7;
    border-radius: 7px;
    background: #fffdf9;
    font-size: 12.5px;
    color: #4b2b17;
}
#write .bc-ms-works-angle {
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #d9c5a7;
    border-radius: 7px;
    background: #fffdf9;
    font-size: 12.5px;
    color: #5a3b25;
}
#write .bc-ms-works-meta {
    font-size: 12px;
    color: #8c705b;
    white-space: nowrap;
}
#write .bc-ms-work-seal {
    display: inline-block;
    margin-right: 7px;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 11.5px;
    font-weight: 700;
    vertical-align: 1px;
}
#write .bc-ms-work-seal.is-herb {
    background: #3d6b44;
    color: #fff;
}
#write .bc-ms-work-seal.is-formula {
    background: #783f04;
    color: #fff;
}
#write .is-loading {
    opacity: 0.55;
    pointer-events: none;
}
#write .bc-ms-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(110, 72, 50, 0.16);
}
#write .bc-ms-page-btn {
    padding: 4px 11px;
    border-radius: 6px;
    border: 1px solid #dcc8ad;
    background: #fffdf8;
    color: #63432d;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.14s ease;
}
#write .bc-ms-page-btn:hover:not(:disabled) {
    background: #f3e6d1;
    border-color: #b88b5a;
    color: #783f04;
}
#write .bc-ms-page-btn.is-active {
    background: #783f04;
    border-color: #733004;
    color: #fffdf8;
    font-weight: 600;
}
#write .bc-ms-page-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}
#write .bc-ms-page-dots {
    color: #9c826c;
    padding: 0 3px;
}
#write .bc-ms-page-info {
    margin-left: 6px;
    font-size: 12px;
    color: #8c705b;
    font-variant-numeric: tabular-nums;
}

/* AI 先贤数字分身弹窗 */
.bc-ms-ai-mask {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(34, 20, 10, 0.56);
}
.bc-ms-ai-mask.is-open {
    display: flex;
}
.bc-ms-ai-dialog {
    width: 100%;
    max-width: 500px;
    background: #fcf8ef;
    border: 1px solid #d9c3a3;
    border-top: 3px solid #9b2c23;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(26, 14, 7, 0.32);
    padding: 20px 22px;
    color: #4b2b17;
}
.bc-ms-ai-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e6d7c1;
}
.bc-ms-ai-hd h3 {
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 18px;
    font-weight: 700;
    color: #4b2b17;
}
.bc-ms-ai-body p {
    font-size: 13.8px;
    line-height: 1.78;
    color: #5a402e;
    margin: 0 0 10px;
}
.bc-ms-ai-corpus {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 12px;
    background: #f5ecdc;
    border-radius: 8px;
    font-size: 12.5px;
    color: #6b482e;
}
.bc-ms-ai-ft {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #dfcbb0;
}

/* 三色主题适配（护眼浅绿 / 夜间深色：全量覆盖名家论药评方、医友分享、管理员弹窗、名家档案与追思礼坛） */
body.bc-theme-green #write .bc-card-sec.bc-ms-section,
body.bc-theme-green #write .bc-ms-card,
body.bc-theme-green #write .bc-ms-stat-box,
body.bc-theme-green #write a.bc-ms-book-card,
body.bc-theme-green #write .bc-ms-work-item,
body.bc-theme-green #write a.bc-ms-dir-card,
body.bc-theme-green #write .bc-ms-ritual-btn {
    background: #f2f8ef;
    border-color: #c5d9be;
}
body.bc-theme-green #write .bc-ms-card.is-ugc {
    background: #e9f5e6;
    border-color: #b7d3b0;
}
body.bc-theme-green #write .bc-ms-intro,
body.bc-theme-green #write .bc-ms-quote-box,
body.bc-theme-green #write .bc-ms-replies,
body.bc-theme-green #write .bc-ms-admin-bar,
body.bc-theme-green #write .bc-ms-action-hint {
    background: #e6f2e2;
    border-color: #bfd6b7;
}
body.bc-theme-green #write .bc-ms-toolbar {
    border-bottom-color: #c5d9be;
}
body.bc-theme-green #write .bc-ms-tab,
body.bc-theme-green #write .bc-ms-angle-pill,
body.bc-theme-green #write .bc-ms-act-btn,
body.bc-theme-green #write .bc-ms-adm-btn,
body.bc-theme-green #write .bc-ms-tribute-jump-btn,
body.bc-theme-green #write .bc-ms-ai-btn {
    background: #f5faf2;
    border-color: #bdd4b5;
    color: #2b4a30;
}
body.bc-theme-green #write .bc-ms-tab.is-active {
    background: #35683d;
    border-color: #295330;
    color: #fffdf8;
}
body.bc-theme-green #write .bc-ms-reply-input,
body.bc-theme-green #write .bc-ms-field select,
body.bc-theme-green #write .bc-ms-field textarea {
    background: #f8fcf6;
    border-color: #b7d0ae;
    color: #243b27;
}
body.bc-theme-green #write .bc-ms-ugc-cta {
    background: linear-gradient(135deg, #ebf5e7 0%, #e1efe0 100%);
    border-color: #bdd4b5;
}
body.bc-theme-green #write .bc-ms-shrine {
    background: linear-gradient(180deg, #f3f9f0 0%, #e4f0df 100%);
    border-color: #bfd5b8;
}
body.bc-theme-green .bc-cm-modal,
body.bc-theme-green .bc-ms-ai-dialog {
    background: #f2f8ef;
    border-color: #bdd4b5;
}

body.bc-theme-night #write .bc-ms-profile-hero {
    border-bottom-color: rgba(230, 213, 188, 0.16);
}
body.bc-theme-night #write .bc-card-sec.bc-ms-section,
body.bc-theme-night #write .bc-ms-stat-box,
body.bc-theme-night #write a.bc-ms-book-card,
body.bc-theme-night #write .bc-ms-work-item,
body.bc-theme-night #write a.bc-ms-dir-card,
body.bc-theme-night #write .bc-ms-shrine,
body.bc-theme-night #write .bc-ms-ritual-btn {
    background: #2a2723;
    border-color: #3f3932;
    color: #d6cfc4;
}
body.bc-theme-night #write .bc-ms-card {
    background: #2d2925;
    border-color: #423c34;
    color: #d6cfc4;
}
body.bc-theme-night #write .bc-ms-card:hover {
    border-color: #6b5842;
}
body.bc-theme-night #write .bc-ms-card.is-ugc {
    background: #232d25;
    border-color: #374f3b;
    border-left-color: #4d8a57;
}
body.bc-theme-night #write .bc-ms-card.is-pending {
    background: #332d22;
}
body.bc-theme-night #write .bc-ms-intro {
    background: #312c26;
    border-color: #4a4136;
    color: #cbbfa9;
}
body.bc-theme-night #write .bc-ms-toolbar,
body.bc-theme-night #write .bc-ms-works-bar {
    border-bottom-color: #3f3932;
}
body.bc-theme-night #write .bc-ms-card-ft {
    border-top-color: #3d3730;
}
body.bc-theme-night #write .bc-ms-tab,
body.bc-theme-night #write .bc-ms-angle-pill,
body.bc-theme-night #write .bc-ms-act-btn,
body.bc-theme-night #write .bc-ms-adm-btn,
body.bc-theme-night #write .bc-ms-tribute-jump-btn,
body.bc-theme-night #write .bc-ms-ai-btn {
    background: #342f2a;
    border-color: #4d453c;
    color: #d6cfc4;
}
body.bc-theme-night #write .bc-ms-tab:hover,
body.bc-theme-night #write .bc-ms-act-btn:hover,
body.bc-theme-night #write .bc-ms-ritual-btn:hover,
body.bc-theme-night #write a.bc-ms-book-card:hover {
    background: #3b352f;
    border-color: #7d5932;
    color: #f0e2ce;
}
body.bc-theme-night #write .bc-ms-tab.is-active {
    background: #9a5717;
    border-color: #9a5717;
    color: #fffdf8;
}
body.bc-theme-night #write .bc-ms-angle-pill.is-active {
    background: #3d6b44;
    border-color: #3d6b44;
    color: #fff;
}
body.bc-theme-night #write .bc-ms-act-btn.is-liked {
    background: #3e2624;
    border-color: #8c4b43;
    color: #f09e93;
}
body.bc-theme-night #write .bc-ms-act-btn.is-saved {
    background: #223627;
    border-color: #4b7d54;
    color: #8ee09c;
}
body.bc-theme-night #write .bc-ms-act-btn.is-quote-open {
    background: #3b3226;
    border-color: #7c6240;
    color: #e2b47c;
}
body.bc-theme-night #write a.bc-ms-name,
body.bc-theme-night #write .bc-ms-book-title,
body.bc-theme-night #write .bc-ms-ritual-name,
body.bc-theme-night #write a.bc-ms-work-title,
body.bc-theme-night #write .bc-ms-dir-name,
body.bc-theme-night #write .bc-ms-tribute-user,
body.bc-theme-night #write .bc-ms-reply-user,
body.bc-theme-night #write .bc-ms-tribute-to strong {
    color: #eadac2;
}
body.bc-theme-night #write .bc-ms-summary,
body.bc-theme-night #write .bc-ms-quote-text,
body.bc-theme-night #write .bc-ms-work-quote,
body.bc-theme-night #write .bc-ms-tribute-msg,
body.bc-theme-night #write .bc-ms-reply-item {
    color: #d6cfc4;
}
body.bc-theme-night #write .bc-ms-profile-sub,
body.bc-theme-night #write .bc-ms-stat-lbl,
body.bc-theme-night #write .bc-ms-book-excerpt,
body.bc-theme-night #write .bc-ms-book-ft,
body.bc-theme-night #write .bc-ms-shrine-desc,
body.bc-theme-night #write .bc-ms-ritual-sub,
body.bc-theme-night #write .bc-ms-work-ft,
body.bc-theme-night #write .bc-ms-tribute-meta,
body.bc-theme-night #write .bc-ms-dir-meta,
body.bc-theme-night #write .bc-ms-works-meta,
body.bc-theme-night #write .bc-ms-era-tag,
body.bc-theme-night #write .bc-ms-quote-meta,
body.bc-theme-night #write .bc-ms-source-info,
body.bc-theme-night #write .bc-ms-count-info,
body.bc-theme-night #write .bc-ms-reply-time,
body.bc-theme-night #write .bc-ms-angles-label {
    color: #a89d8e;
}
body.bc-theme-night #write .bc-ms-quote-box,
body.bc-theme-night #write .bc-ms-replies {
    background: #24201c;
    border-color: #3f3932;
}
body.bc-theme-night #write .bc-ms-reply-item {
    border-bottom-color: #3a342d;
}
body.bc-theme-night #write .bc-ms-reply-form {
    border-top-color: #3f3932;
}
body.bc-theme-night #write .bc-ms-angle-badge,
body.bc-theme-night #write .bc-ms-source-kind,
body.bc-theme-night #write .bc-ms-region-mini,
body.bc-theme-night #write .bc-ms-book-role,
body.bc-theme-night #write .bc-ms-avatar-era {
    background: #38322b;
    border-color: #4f473d;
    color: #decbb1;
}
body.bc-theme-night #write .bc-ms-card.is-ugc .bc-ms-angle-badge,
body.bc-theme-night #write .bc-ms-reply-role {
    background: #233828;
    border-color: #3b5f42;
    color: #8ed89a;
}
body.bc-theme-night #write .bc-ms-ugc-cta {
    background: linear-gradient(135deg, #233026 0%, #1e2821 100%);
    border-color: #39553f;
}
body.bc-theme-night #write .bc-ms-ugc-cta-title,
body.bc-theme-night #write .bc-ms-field label {
    color: #a5dda9;
}
body.bc-theme-night #write .bc-ms-ugc-cta-desc,
body.bc-theme-night #write .bc-ms-ugc-tip {
    color: #97baa0;
}
body.bc-theme-night #write .bc-ms-admin-bar {
    background: #312a21;
    border-color: #544532;
    color: #e2cfb4;
}
body.bc-theme-night #write .bc-ms-action-hint {
    background: #332e28;
    border-color: #4d4438;
    color: #e2c8a2;
}
body.bc-theme-night #write .bc-ms-follow-btn.is-following {
    background: #223627;
    border-color: #4b7d54;
    color: #8ee09c;
}
body.bc-theme-night #write a.bc-ms-book-link,
body.bc-theme-night #write .bc-ms-stat-num,
body.bc-theme-night #write .bc-ms-book-go,
body.bc-theme-night #write .bc-ms-ritual-cnt {
    color: #e0a96d;
}
body.bc-theme-night #write .bc-ms-archive-note,
body.bc-theme-night #write .bc-ms-tribute-input,
body.bc-theme-night #write .bc-ms-works-search,
body.bc-theme-night #write .bc-ms-works-angle,
body.bc-theme-night #write .bc-ms-reply-input,
body.bc-theme-night #write .bc-ms-field select,
body.bc-theme-night #write .bc-ms-field textarea,
body.bc-theme-night #write .bc-ms-page-btn {
    background: #1d1b18;
    border-color: #4d453c;
    color: #ece3d5;
}
body.bc-theme-night #write .bc-ms-page-btn.is-active {
    background: #9a5717;
    border-color: #9a5717;
    color: #fff;
}
body.bc-theme-night .bc-cm-modal,
body.bc-theme-night .bc-ms-ai-dialog {
    background: #282420;
    border-color: #4a4136;
    color: #e6d5bc;
}
body.bc-theme-night .bc-cm-modal-hd,
body.bc-theme-night .bc-cm-modal-ft,
body.bc-theme-night .bc-ms-ai-hd,
body.bc-theme-night .bc-ms-ai-ft {
    border-color: #423b33;
}
body.bc-theme-night .bc-cm-modal-hd h3,
body.bc-theme-night .bc-ms-ai-hd h3 {
    color: #eadac2;
}
body.bc-theme-night .bc-cm-mfield label {
    color: #c8b8a4;
}
body.bc-theme-night .bc-cm-mfield input,
body.bc-theme-night .bc-cm-mfield select,
body.bc-theme-night .bc-cm-mfield textarea {
    background: #1d1b18;
    border-color: #4d453c;
    color: #ece3d5;
}
body.bc-theme-night .bc-cm-btn-cancel,
body.bc-theme-night .bc-cm-modal-x {
    background: #35302a;
    border-color: #4f473d;
    color: #e0d6c8;
}
body.bc-theme-night .bc-ms-ai-body p {
    color: #d0c6b8;
}
body.bc-theme-night .bc-ms-ai-corpus {
    background: #332e28;
    color: #d8c7b0;
}

@media (max-width: 680px) {
    #write .bc-ms-bookshelf,
    #write .bc-ms-ritual-grid {
        grid-template-columns: 1fr;
    }
    #write .bc-ms-works-search {
        width: 100%;
    }
    #write .bc-ms-works-filters {
        width: 100%;
    }
}


