.help-manage-wrap { max-width: 1280px; }
.help-manage-wrap [hidden] { display: none !important; }
.cms-heading,.cms-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.cms-heading h1 { margin: 0 0 .75rem; }
.cms-heading .body-s { margin: 0; }
.cms-stats-summary { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); }
.cms-stats-summary .help-admin-stat { padding: 1rem; }
.cms-stats-summary strong { font-size: 1.75rem; }
.cms-tabs { display: flex; gap: .5rem; flex-wrap: wrap; border-bottom: 1px solid var(--shade-40); padding-bottom: .75rem; margin-bottom: 1.5rem; }
.cms-tab,.cms-action { border: 1px solid var(--shade-40); border-radius: 4px; padding: .65rem 1rem; background: transparent; color: var(--shade-100); font: inherit; cursor: pointer; }
.cms-tab[aria-pressed="true"] { background: var(--shade-100); color: var(--shade-10); }
.cms-action { font-size: .8rem; padding: .45rem .65rem; margin: .2rem; }
.cms-action:hover,.cms-tab:hover { border-color: var(--shade-60); }
.cms-toolbar { justify-content: flex-start; margin: 1.5rem 0; }
.cms-toolbar > label { min-width: 180px; }
.cms-toolbar input[type="search"] { flex: 1; min-width: 160px; }
.cms-toolbar > select { width: auto; }
.cms-toolbar label,.cms-editor label { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.cms-toolbar .button { align-self: flex-end; }
.cms-panel { margin-top: 1.5rem; }
.cms-panel > h2,.cms-panel > h3 { margin-top: 2rem; margin-bottom: 1rem; }
.cms-table-wrap { overflow-x: auto; border: 1px solid var(--shade-40); border-radius: 4px; }
.cms-table { width: 100%; min-width: 640px; text-align: start; border-collapse: collapse; font-size: .85rem; }
.cms-table th { font-weight: 600; background: var(--shade-20); }
.cms-table th,.cms-table td { padding: 1rem; border-bottom: 1px solid var(--shade-40); vertical-align: middle; text-align: start; }
.cms-table tr:last-child td { border-bottom: 0; }
.cms-table td:first-child { max-width: 320px; overflow-wrap: anywhere; }
.cms-pagination { justify-content: space-between; }
.cms-pagination .button { align-self: center; }
.cms-editor { padding: 1.5rem; border: 1px solid var(--shade-40); border-radius: 4px; margin-top: 2rem; scroll-margin-top: 90px; }
.cms-editor fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cms-editor legend { margin-bottom: 1.5rem; }
.cms-editor label { margin-bottom: 1rem; }
.cms-editor .form-input { width: 100%; max-width: 100%; min-width: 0; }
.cms-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1rem; }
.cms-editor-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.cms-markdown { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .85rem; line-height: 1.6; resize: vertical; min-height: 360px; }
.cms-preview { min-height: 360px; max-height: 650px; overflow: auto; border: 1px solid var(--shade-40); padding: 1rem; border-radius: 4px; }
.cms-preview > :first-child { margin-top: 0; }
.cms-check { flex-direction: row !important; align-items: center; }
.cms-key-once { padding: 1.5rem; border: 1px solid var(--blue); background: var(--shade-20); margin: 1.5rem 0; }
.cms-key-once code { display: block; overflow-wrap: anywhere; margin: 1rem 0; user-select: all; }
.cms-api-help pre,.rich-text-content pre { overflow-x: auto; background: var(--shade-20); color: var(--shade-100); padding: 1rem; border: 1px solid var(--shade-40); border-radius: 4px; max-width: 100%; }
.cms-api-help { margin: 1.5rem 0; }
.cms-stats-daily { max-height: 360px; overflow-y: auto; border: 1px solid var(--shade-40); padding: 1rem; }
.cms-day { display: grid; grid-template-columns: 100px 1fr 70px; align-items: center; gap: 1rem; font-size: .8rem; margin: .6rem 0; }
.cms-day-track { height: 10px; border-radius: 2px; background: var(--shade-20); overflow: hidden; }
.cms-day-bar { display: block; height: 100%; background: var(--blue); }
.help-auth-message[data-error="true"] { color: #b62828; }
html[data-theme="dark"] .help-auth-message[data-error="true"] { color: #ffb0b0; }
button:disabled { opacity: .5; cursor: wait; }
.help-article-meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: .5rem 0 0; font-size: .8rem; }
.help-article-meta dt { color: var(--shade-60); font-weight: 400; }
.help-article-meta dd { margin: .25rem 0 0; }
.help-article-body { overflow-wrap: anywhere; }
.help-article-body img,.help-article-body video { max-width: 100%; height: auto; border-radius: 4px; }
.help-article-body table,.cms-preview table { display: block; max-width: 100%; overflow-x: auto; }
.help-article-body th,.help-article-body td { border: 1px solid var(--shade-40); padding: .5rem 1rem; }
.help-pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.layout-nav-list-item-link[aria-current="page"] { color: var(--blue); background: var(--shade-20); }
@media(max-width:900px) { .cms-editor-columns { grid-template-columns: 1fr; } }
@media(max-width:600px) {
 .cms-form-grid { grid-template-columns: 1fr; }
 .cms-editor { padding: 1rem; }
 .cms-toolbar { align-items: stretch; }
 .cms-toolbar > .button { width: auto; }
 .cms-heading > .button { width: auto; }
 .cms-tabs { gap: .4rem; }
 .cms-tab { padding: .6rem .7rem; font-size: .85rem; }
 .cms-day { grid-template-columns: 85px 1fr 35px; gap: .5rem; }
 .cms-stats-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.cms-media-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 1rem; margin: 1rem 0; }
.cms-media-card { border: 1px solid var(--shade-40); padding: 1rem; border-radius: 4px; display: flex; flex-direction: column; gap: .6rem; overflow-wrap: anywhere; }
.cms-media-card :is(img,video) { width: 100%; height: 140px; object-fit: contain; }
.cms-media-card input { max-width: 100%; }.cms-media-dialog { width: min(900px,95vw); }
.cms-history { padding: 1rem 0; border-top: 1px solid var(--shade-40); }.cms-history summary { cursor: pointer; font-weight: 600; }
.cms-version-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--shade-30); }
#cms-version-content { white-space: pre-wrap; overflow-wrap: anywhere; color: inherit; background: var(--shade-20); padding: 1rem; }
.cms-badge { display: inline-block; padding: .15rem .4rem; margin-inline-start: .4rem; border: 1px solid var(--shade-40); border-radius: 4px; font-size: .75rem; }
