.novel-tag-policy-note {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #d9dedb;
    border-radius: 8px;
    line-height: 1.65;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.novel-tag-policy-note summary { cursor: pointer; font-weight: 600; }
.novel-tag-policy-note button { margin-bottom: 6px; }
.novel-tag-info {
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px;
}
.night-mode .novel-tag-policy-note { border-color: #45574d; }

.novel-tag-beta-entry {
    display: none;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #17845b;
    border-radius: 6px;
    background: #fff;
    color: #126747;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.novel-tag-beta-entry.is-visible {
    display: inline-flex;
    align-items: center;
}

.novel-file-tag-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 34px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #d9dedb;
    font-size: 12px;
}

.novel-file-tag-prefix {
    color: #52605a;
    font-weight: 600;
}

.novel-file-tag-chips {
    display: flex;
    flex: 1 1 180px;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.novel-file-tag-chip,
.novel-file-tag-more {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid #c9d2ce;
    border-radius: 5px;
    background: #f7f9f8;
    color: #41504a;
    line-height: 1.35;
}

.novel-file-tag-chip.is-effective {
    border-color: #8bc7ae;
    background: #ecf8f2;
    color: #11633f;
}

.novel-file-tag-chip.is-disputed {
    border-color: #e0b96c;
    background: #fff8e8;
    color: #785513;
}

.novel-file-tag-empty {
    color: #89928e;
}

.novel-file-tag-add,
.novel-tag-vote,
.novel-tag-appeal {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #208863;
    border-radius: 6px;
    background: #fff;
    color: #126747;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.novel-tag-appeal {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #7d8883;
    border-radius: 6px;
    background: #fff;
    color: #52605a;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.novel-tag-appeal:disabled {
    cursor: default;
    opacity: 0.55;
}

.novel-tag-beta-overlay {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(20, 27, 24, 0.58);
}

.novel-tag-beta-overlay.is-open {
    display: flex;
}

body.novel-tag-modal-open {
    overflow: hidden;
}

.novel-tag-beta-tool {
    display: flex;
    width: min(920px, 100%);
    max-height: min(88vh, 900px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #cbd4d0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
    color: #26332d;
}

.novel-tag-beta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e1e6e3;
    background: #f7f9f8;
}

.novel-tag-beta-title {
    font-size: 18px;
    font-weight: 700;
}

.novel-tag-beta-subtitle {
    margin-top: 3px;
    color: #6d7973;
    font-size: 12px;
}

.novel-tag-icon-btn {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid #c8d0cc;
    border-radius: 6px;
    background: #fff;
    color: #46524c;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.novel-tag-beta-body {
    overflow: auto;
    padding: 18px;
}

.novel-tag-message {
    min-height: 20px;
    margin-bottom: 8px;
    color: #52605a;
    font-size: 13px;
}

.novel-tag-message.is-error {
    color: #b42318;
}

.novel-file-tag-file-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e7e4;
}

.novel-file-tag-file-name {
    overflow-wrap: anywhere;
    font-size: 17px;
    font-weight: 700;
}

.novel-file-tag-file-meta,
.novel-tag-search-meta {
    margin-top: 5px;
    color: #6f7c76;
    font-size: 12px;
    line-height: 1.6;
}

.novel-tag-section-title {
    margin: 18px 0 10px;
    color: #26332d;
    font-size: 14px;
    font-weight: 700;
}

.novel-file-tag-relations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.novel-file-tag-relation,
.novel-tag-search-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid #d8dfdc;
    border-radius: 7px;
    background: #fff;
}

.novel-file-tag-relation.is-effective {
    border-left: 4px solid #18845b;
}

.novel-file-tag-relation.is-disputed {
    border-left: 4px solid #c78a15;
}

.novel-file-tag-relation.is-hidden {
    border-left: 4px solid #b42318;
    background: #fff8f7;
}

.novel-file-tag-relation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.novel-file-tag-status {
    flex: 0 0 auto;
    color: #68756f;
    font-size: 12px;
}

.novel-file-tag-counts {
    margin: 8px 0;
    color: #66736d;
    font-size: 12px;
    line-height: 1.5;
}

.novel-file-tag-vote-actions,
.novel-tag-actions,
.novel-tag-search-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.novel-tag-vote.confirm.is-selected {
    border-color: #177653;
    background: #177653;
    color: #fff;
}

.novel-tag-vote.reject {
    border-color: #ba4a40;
    color: #9f2f26;
}

.novel-tag-vote.reject.is-selected {
    background: #a63b31;
    color: #fff;
}

.novel-tag-input,
.novel-tag-select,
.novel-tag-note {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid #c7d0cc;
    border-radius: 6px;
    background: #fff;
    color: #24322c;
    font: inherit;
    font-size: 14px;
}

.novel-tag-note {
    min-height: 92px;
    resize: vertical;
}

.novel-tag-catalog-count {
    min-height: 20px;
    margin-top: 7px;
    color: #66736d;
    font-size: 12px;
    line-height: 20px;
}

.novel-tag-catalog {
    max-height: min(48vh, 460px);
    margin-top: 4px;
    overflow: auto;
    border: 1px solid #dde3e0;
    border-radius: 7px;
}

.novel-tag-catalog-group {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e9e7;
}

.novel-tag-catalog-group:last-child {
    border-bottom: 0;
}

.novel-tag-group-title {
    margin-bottom: 8px;
    color: #596761;
    font-size: 12px;
    font-weight: 700;
}

.novel-tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.novel-tag-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 5px 8px;
    border: 1px solid #d1d9d5;
    border-radius: 6px;
    background: #f9faf9;
    cursor: pointer;
}

.novel-tag-option:has(input:checked) {
    border-color: #1b8060;
    background: #eaf7f1;
    color: #125f43;
}

.novel-tag-command {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #177653;
    border-radius: 6px;
    background: #177653;
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.novel-tag-command.danger {
    border-color: #a63b31;
    background: #a63b31;
}

.novel-tag-command:disabled {
    cursor: wait;
    opacity: 0.6;
}

.novel-tag-actions {
    margin-top: 12px;
}

.novel-tag-officer-panel {
    margin-top: 20px;
    padding-top: 2px;
    border-top: 1px solid #dfe5e2;
}

.novel-tag-officer-panel > * + * {
    margin-top: 9px;
}

.novel-tag-search-controls {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, auto) minmax(180px, auto);
    gap: 8px;
    margin-bottom: 10px;
}

.novel-tag-results {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.novel-tag-selected,
.novel-tag-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
}

.novel-tag-selected-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid #8bc7ae;
    border-radius: 5px;
    background: #ecf8f2;
    color: #11633f;
    font: inherit;
    overflow-wrap: anywhere;
    text-align: left;
    cursor: pointer;
}

.novel-tag-selection-count {
    flex: 0 0 auto;
}

.novel-tag-coverage {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.novel-tag-download-status {
    display: none;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.novel-tag-empty-state .novel-tag-actions {
    justify-content: center;
}

.novel-tag-search-actions button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.novel-tag-search-name {
    overflow-wrap: anywhere;
    font-weight: 700;
}

.novel-tag-search-actions {
    margin-top: 9px;
}

.novel-tag-search-actions a {
    color: #126747;
    font-size: 13px;
}

.novel-tag-empty-state {
    padding: 16px;
    color: #79847f;
    font-size: 13px;
    text-align: center;
}

body.night-mode .novel-tag-beta-tool,
body.night-mode .novel-tag-input,
body.night-mode .novel-tag-select,
body.night-mode .novel-tag-note,
body.night-mode .novel-file-tag-relation,
body.night-mode .novel-tag-search-item,
body.night-mode .novel-tag-icon-btn,
body.night-mode .novel-file-tag-add,
body.night-mode .novel-tag-vote,
body.night-mode .novel-tag-appeal {
    border-color: #4a5751;
    background: #202723;
    color: #e7ece9;
}

body.night-mode .novel-tag-beta-head,
body.night-mode .novel-tag-option {
    border-color: #46524c;
    background: #29312d;
    color: #e1e7e4;
}

body.night-mode .novel-tag-beta-subtitle,
body.night-mode .novel-file-tag-file-meta,
body.night-mode .novel-file-tag-counts,
body.night-mode .novel-tag-catalog-count,
body.night-mode .novel-tag-search-meta {
    color: #aeb8b3;
}

body.night-mode .novel-tag-section-title,
body.night-mode .novel-tag-group-title,
body.night-mode .novel-tag-selection-count,
body.night-mode .novel-tag-empty-state {
    color: #b9c6bf;
}

body.night-mode .novel-tag-selected-chip {
    background: #234b3b;
    color: #e2f5ea;
    border-color: #6db58f;
}

@media (max-width: 700px) {
    .novel-tag-beta-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .novel-tag-beta-tool {
        width: 100%;
        max-height: 94vh;
        border-radius: 8px 8px 0 0;
    }

    .novel-tag-beta-body {
        padding: 14px;
    }

    .novel-file-tag-relations,
    .novel-tag-search-controls {
        grid-template-columns: 1fr;
    }

    .novel-file-tag-summary {
        align-items: flex-start;
    }

    .novel-file-tag-add {
        flex: 0 0 auto;
    }
}

/* Reading-preference studio. Scoped tokens keep the rest of the site intact. */
.novel-tag-beta-overlay {
    --nt-bg: #fbfaf7; --nt-surface: #fff; --nt-soft: #f3f2ed;
    --nt-ink: #303c37; --nt-muted: #6c7770; --nt-line: #e4e8df;
    --nt-green: #276950; --nt-mint: #edf6ed; --nt-pink: #faeeee;
    --nt-rose: #975365; --nt-lilac: #f1edf9; --nt-purple: #705695;
    background: rgba(35, 45, 39, .4);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
.novel-tag-beta-overlay *, .novel-tag-beta-overlay *::before, .novel-tag-beta-overlay *::after { box-sizing: border-box; }
.novel-tag-beta-overlay [hidden] { display: none !important; }
.novel-tag-beta-overlay .novel-tag-beta-tool {
    width: min(980px, 100%); max-height: min(92dvh, 960px);
    border: 1px solid var(--nt-line); border-radius: 26px;
    background: var(--nt-bg); color: var(--nt-ink);
    box-shadow: 0 24px 90px #142d2829;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.novel-tag-beta-overlay .novel-tag-beta-head {
    flex: 0 0 auto; padding: 23px 26px 20px; border: 0;
    background: radial-gradient(ellipse at 90% 0, var(--nt-pink), transparent 65%), var(--nt-bg);
}
.novel-tag-heading { display: flex; align-items: center; gap: 13px; min-width: 0; }
.novel-tag-bookmark { display: grid; place-items: center; width: 50px; height: 54px; flex: 0 0 auto; border-radius: 16px 16px 21px 16px; color: var(--nt-green); background: var(--nt-mint); transform: rotate(-6deg); }
.novel-tag-bookmark svg { width: 30px; height: 30px; }
.novel-tag-beta-title { font-size: 23px; letter-spacing: .035em; }
.novel-tag-beta-overlay .novel-tag-beta-subtitle { margin-top: 6px; font-size: 12px; color: var(--nt-muted); }
.novel-tag-beta-overlay .novel-tag-icon-btn { border: 1px solid var(--nt-line); border-radius: 50%; background: var(--nt-surface); color: var(--nt-muted); width: 38px; height: 38px; }
.novel-tag-beta-body { padding: 0 26px 22px; overscroll-behavior: contain; scrollbar-width: thin; }
.novel-tag-message:empty { display: none; }
.novel-tag-message:not(:empty) { padding: 10px 12px; background: var(--nt-mint); border-radius: 12px; margin: 0 0 12px; min-height: 0; }
.novel-tag-message.is-error { background: var(--nt-pink); color: var(--nt-rose); }
.novel-tag-beta-overlay .novel-tag-policy-note { margin: 0 0 12px; padding: 11px 14px; border: 1px solid var(--nt-line); border-radius: 14px; background: var(--nt-surface); font-size: 12px; color: var(--nt-muted); }
.novel-tag-policy-note summary { color: var(--nt-ink); font-size: 12px; font-weight: 600; }
.novel-tag-policy-note summary::marker { color: var(--nt-green); }
.novel-tag-policy-note[open] summary { margin-bottom: 14px; }
#novelTagSearchRules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#novelTagSearchRules p { margin: 0; padding: 12px; border-radius: 12px; background: var(--nt-soft); }
#novelTagSearchRules p:nth-child(1) { background: var(--nt-mint); }
#novelTagSearchRules p:nth-child(2) { background: var(--nt-lilac); }
#novelTagSearchRules p:nth-child(n+3) { grid-column: 1 / -1; }
#novelTagSearchRules strong { display: block; margin-bottom: 4px; color: var(--nt-ink); }
.novel-tag-coverage { margin: 0 0 12px; color: var(--nt-muted); font-size: 11px; }
.novel-tag-search-layout { display: grid; grid-template-columns: 266px minmax(0, 1fr); gap: 18px; }
.novel-tag-criteria, .novel-tag-library { min-width: 0; }
.novel-tag-criteria { background: var(--nt-soft); border-radius: 18px; padding: 17px; }
.novel-tag-library { padding: 17px; background: var(--nt-surface); border: 1px solid var(--nt-line); border-radius: 18px; }
.novel-tag-step { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.novel-tag-step > span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--nt-green); background: var(--nt-mint); font-size: 11px; font-weight: 700; }
.novel-tag-search-controls { grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
.novel-tag-field { display: grid; gap: 7px; color: var(--nt-muted); font-size: 11px; position: relative; }
.novel-tag-field > span { position: absolute; right: 0; top: 0; font-size: 10px; }
.novel-tag-beta-overlay .novel-tag-input, .novel-tag-beta-overlay .novel-tag-select, .novel-tag-beta-overlay .novel-tag-note {
    border: 1px solid var(--nt-line); background: var(--nt-surface); color: var(--nt-ink);
    border-radius: 11px; min-height: 42px; padding: 10px 12px; font-size: 13px; min-width: 0;
}
.novel-tag-beta-overlay input::placeholder { color: var(--nt-muted); opacity: .85; }
.novel-tag-bucket-title { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 9px; color: var(--nt-muted); font-size: 11px; }
.novel-tag-bucket-title > span { font-size: 10px; }
.novel-tag-buckets { display: grid; gap: 8px; }
.novel-tag-bucket { --bucket-color: var(--nt-green); --bucket-bg: var(--nt-mint); display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; padding: 11px; border: 1px solid var(--nt-line); border-radius: 12px; background: var(--nt-surface); color: var(--nt-ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.novel-tag-bucket[data-search-bucket="any"] { --bucket-color: var(--nt-purple); --bucket-bg: var(--nt-lilac); }
.novel-tag-bucket[data-search-bucket="exclude"] { --bucket-color: var(--nt-rose); --bucket-bg: var(--nt-pink); }
.novel-tag-bucket[aria-pressed="true"] { background: var(--bucket-bg); border-color: var(--bucket-color); box-shadow: inset 0 0 0 1px var(--bucket-color); }
.novel-tag-bucket-symbol { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--bucket-bg); color: var(--bucket-color); font-size: 16px; }
.novel-tag-bucket strong { display: block; font-size: 12px; font-weight: 600; }
.novel-tag-bucket small { display: block; margin-top: 3px; font-size: 10px; color: var(--nt-muted); }
.novel-tag-bucket b { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--bucket-color); }
.novel-tag-safety-note { margin: 12px 0 0; color: var(--nt-muted); font-size: 10px; line-height: 1.7; }
.novel-tag-picker-top { display: flex; align-items: center; gap: 12px; }
.novel-tag-filter-wrap { position: relative; flex: 1; min-width: 0; }
.novel-tag-filter-wrap > span { position: absolute; top: 7px; left: 12px; font-size: 22px; color: var(--nt-muted); pointer-events: none; }
.novel-tag-filter-wrap .novel-tag-input { padding-left: 36px; }
.novel-tag-beta-overlay .novel-tag-catalog-count { margin: 0; color: var(--nt-muted); font-size: 10px; }
.novel-tag-bucket-hint { margin: 10px 0; color: var(--nt-green); font-size: 11px; line-height: 1.6; }
[data-bucket="any"] .novel-tag-bucket-hint { color: var(--nt-purple); }
[data-bucket="exclude"] .novel-tag-bucket-hint { color: var(--nt-rose); }
.novel-tag-catalog { max-height: 334px; border: 0; border-radius: 0; scrollbar-width: thin; scrollbar-color: var(--nt-line) transparent; overscroll-behavior: contain; }
.novel-tag-catalog-group { padding: 14px 0; border-bottom: 1px dashed var(--nt-line); }
.novel-tag-catalog-group:first-child { padding-top: 4px; }
.novel-tag-beta-overlay .novel-tag-group-title { color: var(--nt-muted); font-size: 11px; letter-spacing: .06em; margin-bottom: 10px; }
.novel-tag-options { gap: 8px; }
.novel-tag-beta-overlay .novel-tag-option { max-width: 100%; min-height: 34px; padding: 6px 10px; border: 1px solid var(--nt-line); border-radius: 10px; background: var(--nt-surface); color: var(--nt-ink); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.novel-tag-option input { width: 13px; height: 13px; flex: 0 0 auto; margin: 0 2px 0 0; accent-color: var(--nt-green); }
.novel-tag-beta-overlay .novel-tag-option:has(input:checked) { color: var(--nt-green); background: var(--nt-mint); border-color: var(--nt-green); }
[data-bucket="any"] .novel-tag-option input { accent-color: var(--nt-purple); }
.novel-tag-beta-overlay [data-bucket="any"] .novel-tag-option:has(input:checked) { color: var(--nt-purple); background: var(--nt-lilac); border-color: var(--nt-purple); }
[data-bucket="exclude"] .novel-tag-option input { accent-color: var(--nt-rose); }
.novel-tag-beta-overlay [data-bucket="exclude"] .novel-tag-option:has(input:checked) { color: var(--nt-rose); background: var(--nt-pink); border-color: var(--nt-rose); }
.novel-tag-info { font-size: 10px; text-decoration-style: dotted; }
.novel-tag-search-footer { position: sticky; bottom: -22px; z-index: 2; display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 0 16px; background: var(--nt-bg); border-top: 1px solid var(--nt-line); }
.novel-tag-search-footer .novel-tag-selected { flex: 1; min-width: 0; gap: 6px; padding: 0; max-height: 116px; overflow-y: auto; }
.novel-tag-search-footer .novel-tag-actions { flex: 0 0 auto; margin: 0; }
.novel-tag-selection-count { width: 100%; font-size: 11px; color: var(--nt-muted); }
.novel-tag-selection-empty { font-size: 12px; color: var(--nt-muted); }
.novel-tag-beta-overlay .novel-tag-selected-chip { font-size: 11px; border-radius: 8px; border: 1px solid var(--nt-line); background: var(--nt-mint); color: var(--nt-green); min-height: 28px; padding: 4px 7px; }
.novel-tag-beta-overlay .novel-tag-selected-chip[data-bucket="any"] { background: var(--nt-lilac); color: var(--nt-purple); }
.novel-tag-beta-overlay .novel-tag-selected-chip[data-bucket="exclude"] { background: var(--nt-pink); color: var(--nt-rose); }
.novel-tag-beta-overlay .novel-tag-command { background: var(--nt-green); color: var(--nt-surface); border: 1px solid var(--nt-green); border-radius: 11px; font-size: 12px; }
.novel-tag-beta-overlay .novel-tag-command.danger { background: var(--nt-rose); border-color: var(--nt-rose); }
#novelTagSearchSubmit { min-height: 45px; padding: 11px 27px; font-weight: 600; box-shadow: 0 4px 12px #27695018; }
.novel-tag-beta-overlay .novel-file-tag-add, .novel-tag-beta-overlay .novel-tag-vote, .novel-tag-beta-overlay .novel-tag-appeal { border-radius: 9px; background: var(--nt-surface); border-color: var(--nt-line); color: var(--nt-green); }
.novel-tag-beta-overlay .novel-tag-vote.is-selected { background: var(--nt-green); color: var(--nt-surface); }
.novel-tag-beta-overlay .novel-tag-vote.reject { color: var(--nt-rose); }
.novel-tag-beta-overlay .novel-tag-vote.reject.is-selected { background: var(--nt-rose); color: var(--nt-surface); }
.novel-tag-beta-overlay .novel-file-tag-relation, .novel-tag-beta-overlay .novel-tag-search-item { border-radius: 15px; background: var(--nt-surface); border-color: var(--nt-line); padding: 16px; color: var(--nt-ink); }
.novel-tag-beta-overlay .novel-tag-section-title { color: var(--nt-ink); }
.novel-tag-beta-overlay .novel-tag-search-meta, .novel-tag-beta-overlay .novel-file-tag-counts, .novel-tag-beta-overlay .novel-file-tag-file-meta, .novel-tag-beta-overlay .novel-file-tag-status, .novel-tag-beta-overlay .novel-tag-empty-state { color: var(--nt-muted); }
.novel-tag-results:empty, .novel-tag-pagination:empty { display: none; }
.novel-tag-beta-overlay :is(button, input, select, textarea, summary, a):focus-visible { outline: 2px solid var(--nt-green); outline-offset: 3px; }
body.night-mode .novel-tag-beta-overlay { --nt-bg: #202926; --nt-surface: #28332e; --nt-soft: #24302a; --nt-ink: #e8eee7; --nt-muted: #b1bdb4; --nt-line: #405047; --nt-green: #a2d6b4; --nt-mint: #304b3c; --nt-pink: #47343d; --nt-rose: #efb3c6; --nt-lilac: #39354c; --nt-purple: #c6b8eb; }
@media (max-width: 700px) {
    .novel-tag-beta-overlay .novel-tag-beta-tool { max-height: 95vh; max-height: 95dvh; border-radius: 24px 24px 0 0; }
    .novel-tag-beta-overlay .novel-tag-beta-head { padding: 18px 18px 15px; }
    .novel-tag-beta-title { font-size: 21px; }
    .novel-tag-bookmark { width: 42px; height: 46px; border-radius: 13px 13px 18px 13px; }
    .novel-tag-bookmark svg { width: 27px; height: 27px; }
    .novel-tag-beta-body { padding: 0 15px max(14px, env(safe-area-inset-bottom)); }
    .novel-tag-search-layout { grid-template-columns: 1fr; gap: 12px; }
    .novel-tag-criteria { padding: 13px; }
    .novel-tag-library { padding: 13px; }
    .novel-tag-step { margin-bottom: 11px; font-size: 12px; }
    .novel-tag-search-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 13px; }
    .novel-tag-beta-overlay .novel-tag-input, .novel-tag-beta-overlay .novel-tag-select, .novel-tag-beta-overlay .novel-tag-note { font-size: 16px; }
    .novel-tag-buckets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .novel-tag-bucket { position: relative; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 8px; }
    .novel-tag-bucket b { position: absolute; right: 9px; top: 13px; }
    .novel-tag-bucket strong { font-size: 11px; letter-spacing: -.03em; }
    .novel-tag-bucket small { font-size: 10px; }
    .novel-tag-bucket-symbol { width: 23px; height: 23px; }
    .novel-tag-catalog { max-height: 255px; }
    .novel-tag-picker-top { gap: 8px; }
    #novelTagSearchCatalogCount { max-width: 63px; flex-shrink: 0; line-height: 1.6; }
    .novel-tag-search-footer { bottom: calc(-1 * max(14px, env(safe-area-inset-bottom))); margin-top: 10px; padding: 12px 0 max(14px, env(safe-area-inset-bottom)); gap: 8px; }
    #novelTagSearchSubmit { padding: 11px 17px; }
    #novelTagSearchRules { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .novel-tag-bucket { transition: none; } }

/* Hello Kitty stationery theme. Decorative only; existing controls and states remain. */
.novel-tag-beta-overlay {
    --nt-bg: #fff8fb; --nt-surface: #fff; --nt-soft: #fff0f5;
    --nt-ink: #583c49; --nt-muted: #886674; --nt-line: #f1ccda;
    --nt-green: #b62e60; --nt-mint: #ffe8f1; --nt-pink: #fff0ed;
    --nt-rose: #b4454f; --nt-lilac: #f4ecff; --nt-purple: #8054a1;
    --nt-bow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cpath d='M18 13C9 2 2 2 2 8v12c0 8 10 4 16-4m4-3C31 2 38 2 38 8v12c0 8-10 4-16-4' fill='%23ed5278' stroke='%23b62e60' stroke-width='2'/%3E%3Cellipse cx='20' cy='14' rx='5' ry='6' fill='%23f57494' stroke='%23b62e60' stroke-width='2'/%3E%3C/svg%3E");
    background: rgba(88, 48, 67, .38);
}
.novel-tag-beta-overlay .novel-tag-beta-tool {
    border: 2px solid var(--nt-line);
    box-shadow: 0 24px 90px #7f355c33, inset 0 0 0 5px var(--nt-surface);
    background-color: var(--nt-bg);
    background-image: radial-gradient(var(--nt-line) .7px, transparent .7px);
    background-size: 12px 12px;
}
.novel-tag-beta-overlay .novel-tag-beta-head {
    position: relative; padding-top: 20px; padding-bottom: 23px;
    background-color: var(--nt-soft);
    background-image: linear-gradient(90deg, #ee89ab0c 50%, transparent 50%), linear-gradient(#ee89ab0c 50%, transparent 50%);
    background-size: 20px 20px;
    border-bottom: 1px dashed var(--nt-line);
    margin-bottom: 15px;
}
.novel-tag-beta-head::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px;
    background: radial-gradient(circle at 7px 0, var(--nt-soft) 7px, transparent 7.5px) 0 0 / 14px 8px repeat-x;
    pointer-events: none;
}
.novel-tag-bookmark { width: 68px; height: 65px; background: transparent; border-radius: 0; transform: rotate(-5deg); filter: drop-shadow(0 3px 0 #e895b333); }
.novel-tag-bookmark svg { width: 68px; height: 60px; }
.novel-tag-heading { gap: 15px; }
.novel-tag-kitty-kicker { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 9px; letter-spacing: .16em; font-weight: 800; color: var(--nt-green); }
.novel-tag-kitty-kicker::before { content: ''; width: 16px; height: 12px; background: var(--nt-bow) center / contain no-repeat; }
.novel-tag-beta-title { color: var(--nt-green); font-weight: 800; letter-spacing: .06em; }
.novel-tag-beta-overlay .novel-tag-beta-subtitle { color: var(--nt-muted); font-size: 11px; }
.novel-tag-beta-overlay .novel-tag-icon-btn { color: var(--nt-green); border-color: var(--nt-line); box-shadow: 0 3px 0 var(--nt-line); border-radius: 13px; }
.novel-tag-beta-overlay .novel-tag-policy-note { border-style: dashed; border-radius: 12px; box-shadow: 0 3px 0 #eaa4bd0d; }
.novel-tag-policy-note summary { color: var(--nt-green); }
.novel-tag-policy-note summary::after { content: ''; display: inline-block; vertical-align: middle; width: 20px; height: 14px; margin-left: 8px; background: var(--nt-bow) center / contain no-repeat; }
.novel-tag-criteria { border: 1px solid var(--nt-line); background: var(--nt-soft); box-shadow: 0 4px 0 #eaa4bd12; }
.novel-tag-library { box-shadow: 0 4px 0 #eaa4bd12; }
.novel-tag-step > span { border: 1px solid var(--nt-line); background: var(--nt-surface); border-radius: 8px 8px 11px 8px; box-shadow: 2px 2px 0 var(--nt-line); font-size: 10px; }
.novel-tag-step > strong { color: var(--nt-ink); }
.novel-tag-bucket { border-radius: 14px; box-shadow: 0 3px 0 var(--nt-line); }
.novel-tag-bucket[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--bucket-color), 0 3px 0 var(--nt-line); }
.novel-tag-bucket-symbol { border-radius: 50%; font-size: 17px; }
.novel-tag-bucket b { min-width: 17px; min-height: 17px; text-align: center; line-height: 17px; background: var(--bucket-bg); border-radius: 50%; }
.novel-tag-beta-overlay .novel-tag-input, .novel-tag-beta-overlay .novel-tag-select, .novel-tag-beta-overlay .novel-tag-note { box-shadow: inset 0 2px 4px #a84b6e05; }
.novel-tag-beta-overlay .novel-tag-option { border-radius: 12px 12px 12px 5px; box-shadow: 0 2px 0 #eaa4bd12; }
.novel-tag-beta-overlay .novel-tag-option:has(input:checked) { box-shadow: 0 2px 0 var(--nt-line); }
.novel-tag-beta-overlay .novel-tag-group-title { display: flex; align-items: center; gap: 6px; }
.novel-tag-group-title::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--nt-line); }
.novel-tag-search-footer { border-top: 1px dashed var(--nt-line); background: var(--nt-bg); box-shadow: 0 -6px 12px var(--nt-bg); }
.novel-tag-beta-overlay .novel-tag-command { box-shadow: 0 3px 0 #7f17412e; font-weight: 600; }
#novelTagSearchSubmit { position: relative; border: 1px solid #bb2d5a; border-radius: 14px; background: #c93063; color: #fff; box-shadow: 0 4px 0 #ad2a52, inset 0 1px 0 #ffffff4d; min-height: 46px; padding-left: 40px; }
#novelTagSearchSubmit::before { content: ''; position: absolute; left: 12px; top: 50%; width: 22px; height: 17px; transform: translateY(-50%); background: var(--nt-bow) center / contain no-repeat; filter: brightness(0) invert(1); pointer-events: none; }
.novel-tag-beta-overlay .novel-tag-selected-chip { border-style: dashed; border-radius: 8px; }
.novel-tag-beta-overlay .novel-tag-search-name { color: var(--nt-ink); }
.novel-tag-beta-overlay .novel-tag-search-actions a { color: var(--nt-green); }
.novel-tag-beta-overlay .novel-file-tag-relation.is-effective { border-left-color: var(--nt-green); }
.novel-tag-beta-overlay .novel-file-tag-relation.is-disputed { border-left-color: #b4873e; }
.novel-tag-beta-overlay .novel-file-tag-relation.is-hidden { border-left-color: var(--nt-rose); background: var(--nt-pink); }
body.night-mode .novel-tag-beta-overlay {
    --nt-bg: #2b2029; --nt-surface: #362832; --nt-soft: #3b2935;
    --nt-ink: #ffeaf2; --nt-muted: #d3afbf; --nt-line: #654254;
    --nt-green: #ffabc9; --nt-mint: #512c41; --nt-pink: #4d2e34;
    --nt-rose: #ffb5b4; --nt-lilac: #3d304e; --nt-purple: #d9bbff;
}
/* Override the legacy body.night-mode specificity as well as its green palette. */
body.night-mode .novel-tag-beta-overlay .novel-tag-beta-tool { background-color: var(--nt-bg); border-color: var(--nt-line); color: var(--nt-ink); }
body.night-mode .novel-tag-beta-overlay .novel-tag-beta-head {
    background-color: var(--nt-soft);
    background-image: linear-gradient(90deg, #ee89ab0c 50%, transparent 50%), linear-gradient(#ee89ab0c 50%, transparent 50%);
    background-size: 20px 20px;
}
body.night-mode .novel-tag-beta-overlay :is(.novel-tag-input, .novel-tag-select, .novel-tag-note, .novel-tag-icon-btn, .novel-file-tag-add, .novel-tag-vote, .novel-tag-appeal, .novel-tag-option, .novel-file-tag-relation, .novel-tag-search-item) { background: var(--nt-surface); border-color: var(--nt-line); color: var(--nt-ink); }
body.night-mode .novel-tag-beta-overlay .novel-tag-selected-chip,
body.night-mode .novel-tag-beta-overlay .novel-tag-option:has(input:checked),
body.night-mode .novel-tag-beta-overlay .novel-tag-vote.is-selected { background: var(--nt-mint); color: var(--nt-green); border-color: var(--nt-green); }
body.night-mode .novel-tag-beta-overlay .novel-tag-selected-chip[data-bucket="any"],
body.night-mode .novel-tag-beta-overlay [data-bucket="any"] .novel-tag-option:has(input:checked) { background: var(--nt-lilac); color: var(--nt-purple); border-color: var(--nt-purple); }
body.night-mode .novel-tag-beta-overlay .novel-tag-selected-chip[data-bucket="exclude"],
body.night-mode .novel-tag-beta-overlay [data-bucket="exclude"] .novel-tag-option:has(input:checked),
body.night-mode .novel-tag-beta-overlay .novel-tag-vote.reject.is-selected { background: var(--nt-pink); color: var(--nt-rose); border-color: var(--nt-rose); }
body.night-mode .novel-tag-beta-overlay .novel-file-tag-relation.is-effective { border-left-color: var(--nt-green); }
body.night-mode .novel-tag-beta-overlay .novel-file-tag-relation.is-disputed { border-left-color: #d3b36e; }
body.night-mode .novel-tag-beta-overlay .novel-file-tag-relation.is-hidden { border-left-color: var(--nt-rose); background: var(--nt-pink); }
@media (max-width: 700px) {
    .novel-tag-beta-overlay .novel-tag-beta-head { padding: 15px 17px 20px; }
    .novel-tag-heading { gap: 11px; }
    .novel-tag-bookmark { width: 57px; height: 57px; }
    .novel-tag-bookmark svg { width: 57px; height: 52px; }
    .novel-tag-beta-title { font-size: 21px; }
    .novel-tag-kitty-kicker { font-size: 8px; letter-spacing: .12em; }
    .novel-tag-beta-overlay .novel-tag-beta-subtitle { font-size: 10px; }
    .novel-tag-bucket { padding-top: 10px; padding-bottom: 11px; }
    .novel-tag-bucket strong { font-size: 11px; }
    #novelTagSearchSubmit { padding-right: 15px; padding-left: 37px; }
}
@media (max-width: 350px) {
    .novel-tag-heading { gap: 8px; }
    .novel-tag-bookmark { width: 48px; }
    .novel-tag-bookmark svg { width: 48px; }
    .novel-tag-beta-overlay .novel-tag-beta-head { gap: 8px; padding-left: 13px; padding-right: 13px; }
    .novel-tag-beta-overlay .novel-tag-beta-subtitle { letter-spacing: -.02em; }
    .novel-tag-bucket { padding-left: 5px; padding-right: 5px; }
    .novel-tag-bucket strong { font-size: 10.5px; letter-spacing: -.04em; }
}

/* Private tag entry belongs to the all-books search field, not the global nav. */
.novel-input-actions #novelTagBetaEntry {
    display: none; flex: 0 0 auto; justify-content: center;
    min-height: 34px; height: 34px; padding: 0 9px;
    border: 1px solid #edb0c8; border-radius: 10px;
    background: #fff0f6; color: #a52d5b;
    font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    white-space: nowrap; box-shadow: 0 2px 0 #f2ccdc;
}
.search-box:has(.tab-btn[data-tab="all"].active) .novel-input-actions #novelTagBetaEntry { display: inline-flex; }
.search-box:has(.tab-btn[data-tab="all"].active) .novel-input-field:has(#novelTagBetaEntry) #searchInput { padding-right: 186px !important; }
body.night-mode .novel-input-actions #novelTagBetaEntry { background: #4b2c3d; color: #ffd1e2; border-color: #925773; box-shadow: 0 2px 0 #36212d; }
@media (max-width: 560px) {
    .search-box:has(.tab-btn[data-tab="all"].active) .novel-input-field:has(#novelTagBetaEntry) {
        border: 1px solid #f0bfd3; border-radius: 14px; background: #fffafd;
        box-shadow: inset 0 1px 3px #d897b015; overflow: hidden;
    }
    .search-box:has(.tab-btn[data-tab="all"].active) .novel-input-field:has(#novelTagBetaEntry) #searchInput {
        min-height: 44px; height: 44px !important; padding: 10px 12px !important;
        border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
        background: transparent !important; font-size: 16px !important;
    }
    .search-box:has(.tab-btn[data-tab="all"].active) .novel-input-field:has(#novelTagBetaEntry) .novel-input-actions {
        position: static; transform: none; padding: 0 8px 8px; gap: 6px;
    }
    .search-box:has(.tab-btn[data-tab="all"].active) .novel-input-actions #novelTagBetaEntry { margin-right: auto; }
    body.night-mode .search-box:has(.tab-btn[data-tab="all"].active) .novel-input-field:has(#novelTagBetaEntry) { background: #30232d; border-color: #85506b; }
}

/* Native details keeps pointer, keyboard and assistive-technology behavior in sync. */
#novelTagPolicyDetails > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 30px; list-style: none;
}
#novelTagPolicyDetails > summary::-webkit-details-marker { display: none; }
#novelTagPolicyDetails > summary::marker { content: ''; }
#novelTagPolicyDetails > summary::after { content: none; display: none; }
.novel-tag-policy-title { min-width: 0; }
.novel-tag-policy-title::after {
    content: ''; display: inline-block; vertical-align: middle;
    width: 18px; height: 13px; margin-left: 6px;
    background: var(--nt-bow) center / contain no-repeat;
}
.novel-tag-policy-toggle {
    display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
    padding: 5px 7px; border-radius: 8px;
    color: var(--nt-green); background: var(--nt-mint); font-size: 11px; font-weight: 500;
}
.novel-tag-policy-toggle svg { width: 13px; height: 13px; }
#novelTagPolicyDetails .novel-tag-policy-collapse { display: none; }
#novelTagPolicyDetails[open] .novel-tag-policy-expand { display: none; }
#novelTagPolicyDetails[open] .novel-tag-policy-collapse { display: inline; }
#novelTagPolicyDetails[open] .novel-tag-policy-toggle svg { transform: rotate(180deg); }

/* The checkbox and group selector are siblings, never nested controls. */
.novel-tag-preference-card {
    min-width: 0;
    border: 1px solid var(--nt-line);
    border-radius: 14px;
    background: var(--nt-surface);
    box-shadow: 0 3px 0 var(--nt-line);
    overflow: hidden;
}
.novel-tag-preference-card:has([aria-pressed="true"]) {
    border-color: var(--nt-green);
    background: var(--nt-mint);
}
.novel-tag-preference-card .novel-tag-bucket {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.novel-tag-preference-card .novel-tag-bucket:focus-visible {
    outline: 2px solid var(--nt-green);
    outline-offset: -3px;
}
.novel-tag-precise {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 38px;
    margin: 0 9px;
    padding: 7px 0;
    border-top: 1px dashed var(--nt-line);
    color: var(--nt-ink);
    font-size: 11px;
    cursor: pointer;
}
.novel-tag-precise input { width: 15px; height: 15px; margin: 0; accent-color: var(--nt-green); }
.novel-tag-precise input:focus-visible { outline: 2px solid var(--nt-green); outline-offset: 2px; }
.novel-tag-precise small { color: var(--nt-muted); font-size: 10px; }
.novel-tag-buckets { align-items: start; }
@media (max-width: 760px) {
    .novel-tag-buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .novel-tag-buckets > .novel-tag-bucket { align-self: stretch; justify-content: center; }
}

.novel-tag-exclude-card:has([aria-pressed="true"]) {
    border-color: var(--nt-rose);
    background: var(--nt-pink);
}
.novel-tag-exclude-card input { accent-color: var(--nt-rose); }
.novel-tag-exclude-card .novel-tag-bucket:focus-visible,
.novel-tag-exclude-card input:focus-visible { outline-color: var(--nt-rose); }
.novel-tag-buckets { align-items: stretch; }
.novel-tag-preference-card { display: flex; flex-direction: column; }
.novel-tag-preference-card .novel-tag-bucket { flex: 1; }
.novel-tag-precise small { display: block; flex-basis: 100%; padding-left: 20px; }

/* A small, optional lesson inside the existing dialog. */
.novel-tag-guide-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; color: var(--nt-muted); font-size: 12px; }
.novel-tag-guide-toolbar .novel-file-tag-add { flex-shrink: 0; }
.novel-tag-guide { margin: 0 0 16px; border: 1px solid var(--nt-line); border-radius: 18px; background: var(--nt-surface); color: var(--nt-ink); overflow: hidden; }
.novel-tag-guide[hidden] { display: none; }
.novel-tag-guide-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--nt-pink); }
.novel-tag-guide-top strong { color: var(--nt-rose); font-size: 13px; }
.novel-tag-guide-skip { border: 0; background: transparent; color: var(--nt-muted); font: inherit; font-size: 12px; padding: 8px; cursor: pointer; }
.novel-tag-guide-content { padding: 16px; }
.novel-tag-guide-progress { color: var(--nt-muted); font-size: 12px; }
.novel-tag-guide h3 { font-size: 18px; margin: 8px 0 10px; line-height: 1.4; color: var(--nt-ink); }
.novel-tag-guide p { font-size: 14px; line-height: 1.8; margin: 0 0 12px; overflow-wrap: anywhere; }
.novel-tag-guide-example { padding: 12px; border-radius: 12px; background: var(--nt-pink); }
.novel-tag-guide-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.novel-tag-guide-actions button { min-height: 40px; }
.novel-tag-guide-actions button:disabled { opacity: .4; cursor: default; }
.novel-tag-guide-track { height: 4px; background: var(--nt-line); }
.novel-tag-guide-meter { height: 100%; background: var(--nt-rose); }
.novel-tag-guide-skip:focus-visible, .novel-tag-guide h3:focus-visible { outline: 2px solid var(--nt-rose); outline-offset: 2px; }

/* Gold officer award notice, scoped to the existing rules disclosure. */
.novel-tag-policy-note .novel-tag-officer-reward {
    margin: 14px 0 18px; padding: 18px; border: 2px solid #daa629;
    border-radius: 18px; color: #614513; background: linear-gradient(135deg,#fff9df,#ffedb2);
    box-shadow: 0 5px 16px rgba(148,105,13,.12),inset 0 1px 0 #fffdf1;
    overflow-wrap: anywhere;
}
.novel-tag-officer-reward-heading { display: flex; align-items: center; gap: 10px; }
.novel-tag-officer-reward-star { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; color: #765000; background: #f8d36c; font-size: 24px; }
.novel-tag-officer-reward-kicker { display: block; color: #80600e; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.novel-tag-policy-note .novel-tag-officer-reward h3 { margin: 2px 0 0; color: #654407; font-size: 20px; font-weight: 800; line-height: 1.4; }
.novel-tag-policy-note .novel-tag-officer-reward p { margin: 9px 0; padding: 0; border: 0; background: transparent; color: inherit; font-size: 13px; line-height: 1.8; }
.novel-tag-officer-reward-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.novel-tag-officer-reward-step { min-width: 0; padding: 12px; border: 1px solid #e5c86b; border-radius: 12px; background: rgba(255,255,255,.58); }
.novel-tag-officer-reward strong { color: #76510a; font-size: 14px; }
.novel-tag-policy-note .novel-tag-officer-reward .novel-tag-officer-reward-note { font-size: 12px; color: #775b25; }
.novel-tag-officer-reward-progress { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #cba144; }
body.night-mode .novel-tag-policy-note .novel-tag-officer-reward { background: linear-gradient(135deg,#372c17,#44351b); border-color: #b78c30; color: #f7e4b6; box-shadow: none; }
body.night-mode .novel-tag-officer-reward-step { background: rgba(255,220,135,.06); border-color: #80672e; }
body.night-mode .novel-tag-policy-note .novel-tag-officer-reward h3,
body.night-mode .novel-tag-officer-reward strong { color: #ffdc85; }
body.night-mode .novel-tag-officer-reward-kicker,
body.night-mode .novel-tag-policy-note .novel-tag-officer-reward .novel-tag-officer-reward-note { color: #e2c790; }
@media(max-width:600px) {
    .novel-tag-policy-note .novel-tag-officer-reward { padding: 14px; }
    .novel-tag-officer-reward-steps { grid-template-columns: minmax(0,1fr); }
}
