/* Scoped admin editor. Existing public artwork, layout and cards are unchanged. */
.cms-multiline { white-space:pre-wrap; overflow-wrap:anywhere; }
.cms-root { min-width:0; display:grid; gap:18px; }
.cms-heading { padding:24px 26px; display:flex; gap:22px; align-items:center; background:linear-gradient(120deg,rgba(30,21,8,.96),rgba(15,8,27,.98)); }
.cms-heading h2 { font-size:clamp(25px,2.4vw,37px); margin:14px 0 6px; }
.cms-heading p { color:#c4c0cf; max-width:740px; margin:0; line-height:1.65; }
.cms-heading .tag .icon { width:14px; height:14px; }
.cms-version { margin-inline-start:auto; padding:10px 15px; border:1px solid #705227; border-radius:10px; color:#f7d676; font-weight:700; white-space:nowrap; }
.cms-actions { padding:14px 18px; display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:12px; }
.cms-actions>div { display:flex; flex-wrap:wrap; gap:8px; }
.cms-actions .btn { min-height:37px; }
.cms-filters { padding:20px; display:grid; grid-template-columns:180px minmax(190px,1fr) minmax(200px,1.3fr); gap:16px; align-items:end; margin-bottom:16px; }
.cms-filters .field { margin:0; }
.cms-filters input,.cms-filters select,.cms-text-row textarea,.cms-faq-editor textarea { width:100%; min-width:0; }
.cms-filters>p:not(.cms-language-note) { grid-column:span 2; margin:0; align-self:center; }
.cms-language-note { grid-column:1/-1; margin:0; }
.cms-root input,.cms-root select,.cms-root textarea { background:#080b12; color:#f3eff7; border:1px solid #444052; border-radius:9px; padding:12px 14px; font:inherit; line-height:1.55; }
.cms-root textarea { resize:vertical; min-height:80px; }
.cms-root input:focus,.cms-root select:focus,.cms-root textarea:focus { outline:2px solid #c367fa; outline-offset:2px; }
.cms-savebar { position:sticky; top:78px; z-index:5; padding:15px 20px; margin-bottom:18px; display:flex; align-items:center; justify-content:space-between; gap:14px; background:rgba(12,9,20,.98); border-color:#624981; box-shadow:0 8px 24px #0008; }
.cms-savebar small { display:block; margin-top:5px; color:#9997ad; }
.cms-savebar strong { color:#eadabb; }
.cms-root button:disabled { opacity:.38; cursor:not-allowed; }
#cms-text-list { display:grid; gap:14px; }
.cms-text-row { padding:20px 22px; background:linear-gradient(130deg,#121014,#0b0e14); }
.cms-text-row.is-dirty { border-color:#ce84ff; box-shadow:0 0 18px #a53bff15; }
.cms-text-meta { display:flex; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.cms-group-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.09em; color:#e5bf73; }
.cms-text-meta code { margin-inline-start:auto; font-size:11px; color:#9290a3; overflow-wrap:anywhere; }
.cms-text-meta .tag { font-size:9px; }
.cms-text-row .field>span { font-size:13px; line-height:1.6; font-weight:500; color:#d6d0df; }
.cms-row-bottom { display:flex; align-items:start; gap:16px; justify-content:space-between; margin-top:8px; }
.cms-row-bottom small { color:#9290a3; line-height:1.6; }
.cms-text-button { color:#e5bcf9; padding:0; background:none; border:0; cursor:pointer; text-decoration:underline; text-underline-offset:3px; font-size:12px; white-space:nowrap; }
.cms-original { margin-top:13px; border-top:1px solid #262333; padding-top:9px; font-size:12px; color:#a6a0b6; }
.cms-original summary { cursor:pointer; }
.cms-original p { white-space:pre-wrap; line-height:1.7; }
.cms-pagination { display:flex; align-items:center; justify-content:center; gap:22px; margin:20px 0; }
.cms-boundary { padding:8px 10px; line-height:1.7; }
.cms-faq-layout { display:grid; grid-template-columns:minmax(230px,.85fr) minmax(0,1.7fr); gap:18px; align-items:start; }
.cms-faq-list { padding:16px; }
.cms-faq-list>.btn { width:100%; margin-bottom:14px; }
.cms-faq-item { padding:12px 9px; border:1px solid #30303d; border-radius:9px; margin-top:9px; background:#0a0c12; }
.cms-faq-item.selected { border-color:#af5cef; box-shadow:0 0 16px #9b3ef51c; background:#1c1129; }
.cms-faq-select { display:flex; gap:10px; width:100%; padding:0; text-align:start; color:#e2dce9; border:0; background:none; cursor:pointer; line-height:1.55; }
.cms-faq-select span { color:#e9c764; font-size:12px; padding-top:1px; }
.cms-faq-select strong { font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.cms-faq-status { display:flex; align-items:center; gap:7px; margin-top:9px; }
.cms-faq-status small { color:#9990a7; font-size:10px; margin-inline-end:auto; }
.cms-faq-status .icon-btn { width:26px; height:25px; font-size:16px; border:1px solid #38303e; border-radius:5px; }
.cms-faq-editor { padding:22px; }
.cms-faq-editor h3 { font-size:26px; margin:0 0 10px; }
.cms-faq-editor .field { margin-top:18px; }
.cms-faq-editor .field>span { color:#e6d3a0; font-size:13px; }
.cms-faq-editor textarea { display:block; }
.cms-checkbox { margin:18px 0 12px; display:flex; align-items:start; gap:11px; line-height:1.5; font-size:13px; }
.cms-checkbox input { width:18px; height:18px; accent-color:#b750eb; margin:1px 0 0; }
.cms-faq-buttons { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cms-live-preview { margin-top:28px; padding-top:18px; border-top:1px solid #4b374e; }
.cms-live-preview details { margin-top:12px; border:1px solid #664c24; border-radius:9px; background:#100e14; padding:14px 16px; }
.cms-live-preview summary { color:#f8d88b; font-weight:600; cursor:pointer; overflow-wrap:anywhere; }
.cms-live-preview p { line-height:1.75; font-size:13px; color:#d0c9dd; }
.cms-history-list { display:grid; gap:9px; margin-top:22px; }
.cms-history-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:15px 17px; background:#0a0d13; border:1px solid #36303f; border-radius:8px; }
.cms-history-row small { display:block; margin-top:8px; color:#a59db2; font-size:12px; }
@media (max-width:1100px) {
 .cms-filters { grid-template-columns:1fr 1fr; }
 .cms-search { grid-column:1/-1; }
 .cms-faq-layout { grid-template-columns:1fr; }
 .cms-faq-list { max-height:380px; overflow:auto; }
 .cms-filters>p:not(.cms-language-note) { grid-column:1/-1; }
}
@media (max-width:650px) {
 .cms-heading,.cms-text-row,.cms-faq-editor { padding:17px; }
 .cms-heading .cms-version { display:none; }
 .cms-filters { grid-template-columns:1fr; padding:17px; }
 .cms-filters>p:not(.cms-language-note),.cms-search { grid-column:auto; }
 .cms-savebar { top:66px; flex-wrap:wrap; padding:12px; }
 .cms-savebar>.btn { width:100%; }
 .cms-text-meta code { margin-inline-start:0; width:100%; }
 .cms-row-bottom { flex-direction:column; gap:10px; }
 .cms-history-row { flex-direction:column; align-items:start; }
 .cms-actions { padding:12px; }
 .cms-actions .btn { font-size:11px; }
 .cms-root .btn { white-space:normal; text-align:center; }
}
