body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: #f1f3f5; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cms-alert:not(.cms-alert-success) { background: #fbeaea; color: #a94442; padding: 10px 14px; border-radius: 6px; margin-bottom: 15px; }
.cms-alert-success { background: #e7f6ec; color: #176b35; padding: 10px 14px; border-radius: 6px; margin-bottom: 15px; }
.orders-list { display: grid; gap: 18px; margin-top: 20px; }
.order-card { padding: 20px; border: 1px solid #dcdcde; border-radius: 10px; background: #fff; }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e8e8e8; }
.order-card-head p, .order-card-grid p { margin: 6px 0; }
.order-status-badge { padding: 5px 10px; border-radius: 999px; background: #eef0f2; font-size: .85rem; font-weight: 700; }
.order-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 16px 0; }
.order-card-grid h3 { margin: 0 0 8px; }
.order-item-list { padding-left: 20px; }
.order-status-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid #e8e8e8; }
.order-status-form label { font-weight: 600; }
.order-status-form select { width: auto; min-width: 180px; margin: 0; }
.order-status-form button { padding: 9px 14px; border: 0; border-radius: 6px; background: #2271b1; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 700px) { .order-card-grid { grid-template-columns: 1fr; } }

/* Боковая панель (меню) */
.cms-sidebar { 
    width: 240px; 
    background: #23282d; 
    color: #eee; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    flex-shrink: 0;
}

.cms-menu-header { 
    padding: 18px 20px; 
    background: #1d2125; 
    font-size: 1.15em; 
    font-weight: bold; 
    color: #fff; 
    border-bottom: 1px solid #2d3339; 
}

.cms-menu-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.cms-menu-item {
    margin: 0;
    padding: 0;
}

.cms-menu-item a { 
    display: block; 
    padding: 12px 20px; 
    color: #c3c4c7; 
    text-decoration: none; 
    border-bottom: 1px solid #1d2125; 
    transition: all 0.2s ease; 
    font-size: 0.95em; 
}

.cms-menu-item a:hover {
    background: #3c434a;
    color: #2271b1;
}

.cms-menu-item.active a { 
    background: #2271b1; 
    color: #fff; 
    font-weight: 600;
}

/* Основной контент справа */
.cms-content { 
    flex: 1; 
    padding: 30px; 
    overflow-y: auto; 
    box-sizing: border-box; 
}

.cms-top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #dcdcde; 
    padding-bottom: 15px; 
    margin-bottom: 25px; 
}

.cms-top-bar h2 {
    margin: 0;
    font-size: 1.6em;
    color: #1d2327;
}

/* Общие элементы форм */
input[type="text"], select, textarea { 
    width: 100%; 
    padding: 10px; 
    margin: 8px 0 20px 0; 
    border: 1px solid #8c8f94; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 14px; 
    background: #fff;
}

input[type="text"]:focus, select:focus, textarea:focus {
    border-color: #2271b1;
    outline: 2px solid #2271b1;
}

.btn { 
    background: #2271b1; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    cursor: pointer; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 14px; 
    text-decoration: none; 
    display: inline-block; 
}

.btn:hover {
    background: #135e96;
}

.msg { 
    background: #edfaef; 
    color: #135e96; 
    padding: 15px; 
    border-left: 4px solid #00a32a; 
    margin-bottom: 20px; 
    border-radius: 4px; 
}
/* ======== Расширение: материалы, переводы, AI, ключи доступа ======== */
.cms-menu-label { padding: 14px 20px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7f8a95; }
.cms-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; font-size: 11px; line-height: 18px; text-align: center; border-radius: 9px; background: #2d3339; color: #c3c4c7; }
.cms-menu-item.active .cms-count { background: rgba(255,255,255,.22); color: #fff; }
.cms-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #ff9f43; vertical-align: middle; }
.cms-flash { padding: 10px 14px; margin-bottom: 15px; border-radius: 4px; font-size: 14px; }
.cms-flash-ok { background: #e6f4ea; color: #1e6b3a; }
.cms-flash-err { background: #fbeaea; color: #a94442; }

.cms-card { background: #fff; padding: 20px 22px; border: 1px solid #e2e8f0; border-radius: 6px; margin: 0 0 20px; max-width: 1000px; }
.plugin-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.plugin-card-head h3 { margin-bottom: 6px; }
.plugin-state { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.plugin-state.is-on { color: #116149; background: #e6f5ef; }
.plugin-state.is-off { color: #6b7280; background: #eef0f2; }
.plugin-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.plugin-inline-form { display: inline-flex; margin: 0; }
.plugin-upload-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plugin-upload-form input[type="file"] { max-width: 100%; }
@media (max-width: 640px) { .plugin-card-head { flex-direction: column; gap: 8px; } .plugin-upload-form { align-items: flex-start; flex-direction: column; } }
.cms-card h3 { margin: 0 0 14px; font-size: 1.1em; color: #1d2327; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-header h3 { margin: 0; }
.card-actions, .inline-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-add, .btn-save, .btn-secondary, .btn-danger-solid, .btn-ai { display: inline-block; padding: 8px 14px; border-radius: 4px; border: 1px solid transparent; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.3; }
.btn-add, .btn-save { background: #10634a; color: #fff; }
.btn-secondary { background: #f1f3f5; color: #1d2327; border-color: #d0d7de; }
.btn-danger-solid { background: #d63638; color: #fff; }
.btn-ai { background: #5b3df5; color: #fff; }
button[disabled], .btn-ai[disabled] { opacity: .5; cursor: not-allowed; }
.btn-cancel { margin-left: 12px; color: #646970; text-decoration: none; font-size: 14px; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 18px; }
.form-grid .form-wide, .form-wide { grid-column: 1 / -1; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; color: #3c434a; }
.form-control { width: 100%; padding: 8px 10px; border: 1px solid #c3c4c7; border-radius: 4px; font: inherit; box-sizing: border-box; background: #fff; }
.form-control:focus { outline: 2px solid #5b3df5; outline-offset: 1px; }
textarea.body-area { font-family: ui-monospace, Consolas, monospace; line-height: 1.5; }
.help { display: block; margin-top: 4px; color: #646970; font-size: 12px; line-height: 1.4; }
.req { color: #d63638; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 6px 0; cursor: pointer; }
.chk input { width: 18px; height: 18px; }
.empty-note { color: #8c8f94; padding: 14px 0; }
.list-filter { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.list-filter .form-control { width: auto; min-width: 200px; }

.rep { display: flex; flex-direction: column; gap: 8px; }
.rep-row { display: flex; gap: 8px; align-items: flex-end; padding: 8px; background: #f6f7f7; border: 1px solid #e2e4e7; border-radius: 4px; flex-wrap: wrap; }
.rep-cell { flex: 1 1 140px; min-width: 120px; }
.rep-cell.rep-url, .rep-cell.rep-label { flex-basis: 220px; }
.rep-label { display: block; font-size: 11px; color: #646970; margin-bottom: 2px; }
.rep-del { width: 30px; height: 34px; border: 0; border-radius: 4px; background: #fbeaea; color: #a94442; font-size: 18px; cursor: pointer; }
.btn-add-row { align-self: flex-start; padding: 6px 12px; border: 1px dashed #8c8f94; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }

.tr-panel { border: 1px solid #d0d7de; border-radius: 6px; padding: 14px 18px; margin: 0 0 20px; background: #fbfaff; max-width: 1000px; }
.tr-panel legend { padding: 0 8px; font-weight: 700; color: #3c2fb0; }
.tr-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tr-tab { padding: 6px 12px; border: 1px solid #c3c4c7; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.tr-tab.active { background: #5b3df5; border-color: #5b3df5; color: #fff; }
.tr-pane { display: none; }
.tr-pane.active { display: block; }
.tr-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tr-status { font-size: 13px; color: #3c434a; }
.tr-badge { display: inline-block; padding: 1px 7px; border-radius: 9px; background: #efe9ff; color: #5b3df5; font-size: 11px; font-weight: 700; }

.table-wrap { overflow-x: auto; }
.cms-table { width: 100%; border-collapse: collapse; }
.cms-table th, .cms-table td { padding: 9px 10px; border-bottom: 1px solid #edf0f2; text-align: left; font-size: 14px; vertical-align: middle; }
.cms-table th { background: #f6f7f7; font-weight: 600; color: #50575e; }
.cms-table .slug { color: #8c8f94; font-size: 12px; }
.row-muted td { opacity: .55; }
.col-actions { white-space: nowrap; text-align: right; }
.btn-action { text-decoration: none; margin-right: 8px; }
.btn-link-reset { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.inline-form { display: inline; margin: 0; }
.status { padding: 2px 8px; border-radius: 9px; font-size: 12px; background: #e6f4ea; color: #1e6b3a; }
.status-draft, .status-paid { background: #fff4e5; color: #9a5b00; }
.tr-dots .dot { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.dot-src { background: #e5e7eb; color: #4b5563; }
.dot-ok { background: #dcfce7; color: #166534; }
.dot-ai { background: #efe9ff; color: #5b3df5; }
.dot-no { background: #fee2e2; color: #991b1b; }
.admin-pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.admin-pager a { padding: 5px 11px; border: 1px solid #c3c4c7; border-radius: 4px; text-decoration: none; color: #1d2327; font-size: 13px; }
.admin-pager a.current { background: #10634a; border-color: #10634a; color: #fff; }
.danger-zone { max-width: 1000px; margin: 0 0 30px; display: flex; gap: 14px; align-items: center; }

.dash-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; margin-bottom: 20px; border-radius: 8px; background: linear-gradient(120deg, #1d2125, #3c2fb0); color: #fff; max-width: 1000px; }
.dash-hero h3 { margin: 0 0 6px; font-size: 1.3em; color: #fff; }
.dash-hero p { margin: 0; opacity: .9; }
.dash-hero a { color: #ffd84a; }
.dash-hero .btn-add { background: #ffd84a; color: #1d2125; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; max-width: 1000px; }
.stat-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; text-decoration: none; color: #1d2327; }
.stat-card:hover { border-color: #5b3df5; }
.stat-num { font-size: 28px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 13px; color: #646970; }
.stat-card.ok .stat-num { color: #10634a; }
.stat-card.warn .stat-num { color: #d97706; }
.steps { margin: 0; padding-left: 22px; line-height: 2; }
.steps li.done a { color: #8c8f94; text-decoration: line-through; }

.progress { height: 10px; background: #e5e7eb; border-radius: 5px; overflow: hidden; margin: 12px 0; }
.progress-bar { height: 100%; width: 0; background: #5b3df5; transition: width .3s; }
.bulk-log { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow: auto; font-size: 13px; }
.bulk-log li { padding: 3px 0; border-bottom: 1px solid #f0f0f1; }
.bulk-log li.bad { color: #a94442; }
.storage-switch { display: flex; gap: 8px; margin: 0 0 14px; }
.storage-switch a { padding: 6px 12px; border: 1px solid #c3c4c7; border-radius: 4px; text-decoration: none; color: #1d2327; font-size: 13px; }
.storage-switch a.active { background: #1d2125; border-color: #1d2125; color: #fff; }
.key-code { cursor: copy; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.new-keys textarea { font-family: ui-monospace, Consolas, monospace; }
.theme-desc { margin: 0 0 8px; color: #50575e; font-size: 13px; line-height: 1.45; }
.theme-types { margin: 0 0 10px; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 9px; background: #f0f0f1; font-size: 12px; margin: 0 2px 2px 0; }

/* Shared admin, sign-in and first-run setup interface */
:root {
    color-scheme: light;
    --cms-ink: #172b3a;
    --cms-muted: #526579;
    --cms-brand: #10634a;
    --cms-brand-dark: #0b4937;
    --cms-border: #d7e1e8;
    --cms-focus: #1769aa;
}

body {
    color: var(--cms-ink);
    background: #f3f6f8;
    font-size: 15px;
}

.cms-sidebar {
    width: 252px;
    background: #173a35;
    color: #eef7f4;
}

.cms-sidebar-main { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.cms-sidebar-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cms-menu-header { padding: 20px 22px; background: #102d29; font-size: 1.2rem; letter-spacing: .02em; }
.cms-menu-label { padding: 18px 20px 7px; color: #b7cfc9; }
.cms-menu-item a { padding: 11px 20px; border: 0; border-left: 3px solid transparent; color: #e0ece9; }
.cms-menu-item a:hover { background: #244b44; color: #fff; }
.cms-menu-item.active a { background: #2a5149; border-left-color: #7ed2ae; color: #fff; }
.cms-menu-item a:focus-visible, .cms-sidebar-footer a:focus-visible { outline: 3px solid #f9d978; outline-offset: -3px; }
.cms-sidebar-footer { padding: 10px 0; border-top: 1px solid #34564f; }
.cms-sidebar-footer a { display: block; padding: 11px 20px; color: #e0ece9; text-decoration: none; }
.cms-sidebar-footer a:hover { background: #244b44; color: #fff; }
.cms-sidebar-footer a:last-child { color: #ffcfcc; }
.cms-count { background: #3a6259; color: #fff; }

.cms-content { min-width: 0; padding: 26px clamp(18px, 3vw, 40px); }
.cms-top-bar {
    min-height: 64px;
    padding: 12px 0 18px;
    border-bottom: 1px solid var(--cms-border);
    margin-bottom: 24px;
    gap: 16px;
}
.cms-top-heading { display: flex; min-width: 0; align-items: center; gap: 14px; }
.cms-top-bar h1 { margin: 0; color: var(--cms-ink); font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.25; }
.cms-nav-toggle { display: none; align-items: center; gap: 8px; }
.cms-sidebar-backdrop { display: none; }
.cms-language-switch { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--cms-muted); }
.cms-language-switch a { padding: 6px 8px; border-radius: 6px; color: #275b4b; font-size: .85rem; font-weight: 700; text-decoration: none; }
.cms-language-switch a:hover, .cms-language-switch a[aria-current="true"] { background: #e3f1eb; color: #124734; }

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select,
textarea {
    max-width: 100%;
    min-height: 42px;
    border: 1px solid #aebdc8;
    border-radius: 7px;
    color: var(--cms-ink);
    font: inherit;
}
textarea { min-height: 100px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid var(--cms-focus);
    outline-offset: 2px;
}
.btn, .btn-add, .btn-save, .btn-secondary, .btn-danger-solid, .btn-ai { min-height: 40px; border-radius: 7px; }
.btn-add, .btn-save { background: var(--cms-brand); }
.btn-add:hover, .btn-save:hover { background: var(--cms-brand-dark); }
.cms-card { border-color: var(--cms-border); border-radius: 10px; box-shadow: 0 2px 8px rgba(23, 43, 58, .04); }
.stat-card { border-color: var(--cms-border); border-radius: 10px; }
.stat-card:hover { border-color: var(--cms-brand); box-shadow: 0 3px 12px rgba(16, 99, 74, .1); }
.dash-hero { background: linear-gradient(120deg, #173a35, #245d50); border-radius: 12px; }
.dash-hero a { color: #ffdf86; }
.dash-hero .btn-add { background: #ffdf86; color: #173a35; }
.dash-audience { max-width: 1000px; margin: -4px 0 20px; color: var(--cms-muted); line-height: 1.6; }
.steps { line-height: 1.8; }

.auth-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
    height: auto;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: clamp(16px, 4vw, 44px);
    box-sizing: border-box;
    background: radial-gradient(ellipse at 10% 10%, #e1f1eb 0, transparent 42%), #f3f6f8;
}
.auth-shell { width: min(100%, 520px); margin: auto; }
.setup-shell { width: min(100%, 620px); }
.auth-brand { margin: 0 0 18px; color: var(--cms-brand); font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.auth-card { padding: clamp(22px, 5vw, 36px); border: 1px solid var(--cms-border); border-radius: 14px; background: #fff; box-shadow: 0 14px 40px rgba(23, 43, 58, .09); }
.auth-card h1 { margin: 0 0 8px; color: var(--cms-ink); font-size: clamp(1.45rem, 4vw, 1.8rem); text-align: center; }
.auth-intro { margin: 0 0 24px; color: var(--cms-muted); line-height: 1.55; text-align: center; }
.auth-card label { display: block; margin: 0 0 7px; color: #2b3d4c; font-weight: 650; }
.auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.auth-card select { width: 100%; min-height: 46px; margin: 0 0 17px; padding: 10px 12px; border: 1px solid #aebdc8; border-radius: 7px; box-sizing: border-box; }
.auth-card .btn { width: 100%; min-height: 48px; margin-top: 6px; background: var(--cms-brand); font-size: 1rem; }
.auth-card .btn:hover { background: var(--cms-brand-dark); }
.auth-error, .error-block { padding: 12px 14px; border: 1px solid #f0c1bf; border-radius: 8px; margin: 0 0 18px; background: #fff3f2; color: #872e2b; line-height: 1.5; }
.auth-error:focus { outline: 3px solid #a7342c; outline-offset: 2px; }
.auth-language { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.auth-language a { padding: 7px 10px; border-radius: 6px; color: #275b4b; font-size: .9rem; font-weight: 700; text-decoration: none; }
.auth-language a:hover, .auth-language a[aria-current="true"] { background: #e3f1eb; }
.auth-footer { margin: 18px 0 0; color: var(--cms-muted); font-size: .88rem; line-height: 1.5; text-align: center; }
.setup-card { width: 100%; box-sizing: border-box; }
.setup-title { margin: 0 0 8px; color: var(--cms-brand); text-align: center; }
.setup-success { color: #1d603f; text-align: center; }
.setup-success a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 7px; background: var(--cms-brand); color: #fff; font-weight: 700; text-decoration: none; }
.req-list { padding: 14px 16px; border: 1px solid var(--cms-border); border-radius: 8px; margin: 0 0 20px; background: #f7fafb; }
.req-item { display: flex; justify-content: space-between; gap: 14px; margin: 7px 0; line-height: 1.45; }
.req-item span:first-child { flex: 1; }
.req-item .ok, .req-item .fail { flex: 0 0 auto; }
.setup-card label { margin-top: 12px; }
.setup-card .btn { width: 100%; }

@media (max-width: 980px) {
    body:not(.auth-page) { display: block; height: 100vh; }
    .cms-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: min(300px, calc(100vw - 56px)); height: 100dvh; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 8px 0 28px rgba(0, 0, 0, .18); }
    body.cms-nav-open .cms-sidebar { transform: translateX(0); }
    body.cms-nav-open .cms-sidebar-backdrop { position: fixed; z-index: 19; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: rgba(15, 30, 40, .48); }
    .cms-content { height: 100vh; overflow-y: auto; padding: 18px clamp(14px, 3vw, 28px); }
    .cms-nav-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
    .cms-content { padding: 14px 12px; }
    .cms-top-bar { align-items: flex-start; flex-direction: column; }
    .cms-top-heading { align-items: flex-start; }
    .cms-top-bar h1 { padding-top: 5px; }
    .cms-language-switch { align-self: flex-end; }
    .cms-card { padding: 16px; }
    .dash-hero { padding: 18px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-page { padding: 14px; }
    .req-item { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Grouped administration layout */
.cms-sidebar {
    width: 272px;
    background: #102d29;
    border-right: 1px solid #294c45;
}
.cms-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px 20px;
    border-bottom: 1px solid #294c45;
    color: #f2faf7;
    text-decoration: none;
}
.cms-brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #2e7963;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .04em;
}
.cms-brand-copy { display: grid; gap: 3px; }
.cms-brand-copy strong { font-size: 1.02rem; }
.cms-brand-copy small { color: #b7cfc9; font-size: .78rem; }
.cms-menu-list { display: grid; gap: 5px; padding: 14px 10px 24px; }
.cms-menu-list > .cms-menu-item > a,
.cms-menu-group > details > summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: #e0ece9;
    font-size: .92rem;
    font-weight: 650;
    text-decoration: none;
}
.cms-menu-list > .cms-menu-item > a { border-left: 3px solid transparent; }
.cms-menu-list > .cms-menu-item > a:hover,
.cms-menu-group > details > summary:hover { background: #1d423b; color: #fff; }
.cms-menu-list > .cms-menu-item.active > a {
    border-left-color: #83d8b5;
    background: #245247;
    color: #fff;
}
.cms-menu-group > details > summary { cursor: pointer; list-style: none; }
.cms-menu-group > details > summary::-webkit-details-marker { display: none; }
.cms-menu-group > details > summary::after {
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
    transition: transform .16s ease;
}
.cms-menu-group > details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.cms-menu-group > details > ul { display: grid; gap: 3px; margin: 4px 0 8px; padding: 0 0 0 8px; list-style: none; }
.cms-menu-group .cms-menu-item a {
    min-height: 38px;
    padding: 9px 10px 9px 16px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 7px;
    color: #c6d9d4;
    font-size: .88rem;
}
.cms-menu-group .cms-menu-item a:hover { background: #1d423b; color: #fff; }
.cms-menu-group .cms-menu-item.active a { border-left-color: #83d8b5; background: #245247; color: #fff; }
.cms-menu-group .cms-count { margin-left: auto; }
.cms-menu-group > details > summary:focus-visible,
.cms-brand:focus-visible,
.cms-menu-list a:focus-visible,
.cms-sidebar-footer a:focus-visible { outline: 3px solid #f9d978; outline-offset: 2px; }
.cms-sidebar-footer { padding: 10px; }
.cms-sidebar-footer a { padding: 11px 12px; border-radius: 8px; }
.cms-sidebar-footer a:hover { background: #1d423b; }
.cms-content { padding: 24px clamp(18px, 3vw, 48px); }
.cms-top-bar { position: sticky; top: -24px; z-index: 5; background: #f3f6f8; }
.cms-top-actions { display: flex; align-items: center; gap: 14px; }
.cms-view-site {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--cms-border);
    border-radius: 8px;
    background: #fff;
    color: var(--cms-brand-dark);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.cms-view-site:hover { border-color: var(--cms-brand); background: #f5fbf8; }
.cms-content h2 { color: var(--cms-ink); font-size: clamp(1.25rem, 2vw, 1.65rem); }
.cms-card { max-width: 1280px; padding: 22px; border-radius: 12px; }
.cms-table { border: 1px solid var(--cms-border); border-radius: 10px; overflow: hidden; }
.cms-table th { background: #edf3f5; color: #33495b; }
.cms-table tbody tr:hover { background: #f7fafb; }
.form-control { min-height: 42px; border-radius: 8px; }
.cms-flash { border: 1px solid transparent; border-radius: 8px; }
.cms-flash-ok { border-color: #b9dfc8; }
.cms-flash-err { border-color: #f0c1bf; }
.dash-hero { max-width: 1280px; padding: 24px 26px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.dash-hero .dash-actions a { display: inline-flex; min-height: 42px; align-items: center; padding: 0 15px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.dash-hero .dash-actions .btn-add { background: #ffdf86; color: #173a35; }
.dash-hero .dash-actions .btn-secondary { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.stat-grid { max-width: 1280px; }
.stat-card { min-height: 82px; justify-content: center; padding: 16px 18px; }
.quick-start-note { max-width: 1280px; padding: 16px 18px; border: 1px solid var(--cms-border); border-radius: 10px; margin: 0 0 18px; background: #fff; color: var(--cms-muted); }
.demo-tools { max-width: 1280px; }
.demo-tools summary { cursor: pointer; color: var(--cms-ink); font-weight: 750; }
.theme-admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 5px; border: 1px solid var(--cms-border); border-radius: 10px; margin-bottom: 16px; background: #eaf0f2; }
.theme-admin-tabs a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 15px; border-radius: 7px; color: var(--cms-muted); font-weight: 700; text-decoration: none; }
.theme-admin-tabs a:hover { background: #fff; color: var(--cms-ink); }
.theme-admin-tabs a[aria-current="page"] { background: #fff; color: var(--cms-brand-dark); box-shadow: 0 1px 4px rgba(23, 43, 58, .12); }
.theme-page-intro { max-width: 760px; margin: 0 0 18px; color: var(--cms-muted); line-height: 1.6; }
.themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; margin-top: 20px; }
.theme-card { overflow: hidden; padding: 14px; border: 1px solid var(--cms-border); border-radius: 13px; background: #fff; box-shadow: 0 3px 12px rgba(23, 43, 58, .045); }
.theme-card.is-active { border-color: #3b8c70; box-shadow: 0 0 0 2px rgba(59, 140, 112, .14), 0 8px 22px rgba(23, 43, 58, .08); }
.theme-screenshot { height: 164px; overflow: hidden; border: 1px solid #e4eaed; border-radius: 9px; margin-bottom: 13px; background: #e8edef; }
.theme-screenshot > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme-preview { display: flex; height: 100%; flex-direction: column; gap: 14px; padding: 12px; background: var(--preview-bg, #f3f6f5); }
.theme-preview-top { display: flex; align-items: center; gap: 5px; height: 20px; }
.theme-preview-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--preview-accent); opacity: .8; }
.theme-preview-top span { width: 34%; height: 6px; border-radius: 6px; margin-left: auto; background: #aab8b4; opacity: .5; }
.theme-preview-hero { display: grid; gap: 7px; padding: 12px; border-radius: 7px; background: color-mix(in srgb, var(--preview-accent) 9%, #fff); }
.theme-preview-hero b { width: 54%; height: 11px; border-radius: 6px; background: var(--preview-accent); opacity: .82; }
.theme-preview-hero i { width: 76%; height: 6px; border-radius: 6px; background: #9daaa6; opacity: .5; }
.theme-preview-cards { display: grid; flex: 1; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-preview-cards i { min-height: 26px; border: 1px solid rgba(95, 116, 108, .18); border-radius: 6px; background: #fff; box-shadow: inset 0 14px 0 color-mix(in srgb, var(--preview-accent) 11%, #fff); }
.theme-preview.preview-newsroom, .theme-preview.preview-editorial { gap: 9px; background: #f7f5f1; }
.preview-newsroom .theme-preview-top, .preview-editorial .theme-preview-top { height: 24px; padding: 0 7px; background: #25231f; }
.preview-newsroom .theme-preview-top i, .preview-editorial .theme-preview-top i { background: var(--preview-accent); }
.preview-newsroom .theme-preview-top span, .preview-editorial .theme-preview-top span { background: #fffefa; }
.preview-newsroom .theme-preview-hero, .preview-editorial .theme-preview-hero { grid-template-columns: 1.25fr .75fr; align-items: end; gap: 8px; border-bottom: 3px double #25231f; border-radius: 0; background: transparent; }
.preview-newsroom .theme-preview-hero b, .preview-editorial .theme-preview-hero b { width: 82%; height: 18px; grid-row: span 2; border-radius: 0; }
.preview-newsroom .theme-preview-hero i, .preview-editorial .theme-preview-hero i { width: 100%; }
.preview-newsroom .theme-preview-cards, .preview-editorial .theme-preview-cards { grid-template-columns: 1.2fr 1fr 1fr; gap: 5px; }
.preview-newsroom .theme-preview-cards i, .preview-editorial .theme-preview-cards i { border: 0; border-bottom: 1px solid #d9d3c7; border-radius: 0; background: transparent; box-shadow: none; }
.preview-newsroom .theme-preview-cards i:first-child, .preview-editorial .theme-preview-cards i:first-child { grid-row: span 2; background: linear-gradient(180deg, color-mix(in srgb, var(--preview-accent) 20%, #fff) 0 38%, transparent 38%); }
.theme-preview.preview-minimal { gap: 18px; padding: 15px 20px; background: #fbfcfa; }
.preview-minimal .theme-preview-top { border-bottom: 1px solid #e6ebe6; }
.preview-minimal .theme-preview-top i { width: 4px; height: 4px; }
.preview-minimal .theme-preview-hero { gap: 10px; padding: 2px 0 8px; border-bottom: 1px solid #18231c; border-radius: 0; background: transparent; }
.preview-minimal .theme-preview-hero b { width: 46%; height: 13px; border-radius: 0; }
.preview-minimal .theme-preview-cards { grid-template-columns: 1fr 1fr; gap: 0 12px; }
.preview-minimal .theme-preview-cards i { border: 0; border-top: 1px solid #e6ebe6; border-radius: 0; background: transparent; box-shadow: none; }
.theme-preview.preview-studio { background: #10151c; }
.preview-studio .theme-preview-top { padding: 0 7px; border: 1px solid #344250; border-radius: 6px; }
.preview-studio .theme-preview-top span { background: #aab7c4; }
.preview-studio .theme-preview-hero { padding: 14px; border: 1px solid #344250; border-radius: 9px; background: radial-gradient(circle at 90% 20%, rgba(45,212,191,.22), transparent 50%), #1a222c; }
.preview-studio .theme-preview-hero i { background: #aab7c4; }
.preview-studio .theme-preview-cards i { border-color: #344250; border-radius: 8px; background: #1a222c; box-shadow: inset 0 14px 0 rgba(45,212,191,.12); }
.theme-preview.preview-neutral { background: #f4f6f5; }
.preview-neutral .theme-preview-hero { border-left: 3px solid var(--preview-accent); border-radius: 2px; background: #fff; }
.preview-neutral .theme-preview-cards { grid-template-columns: repeat(2, 1fr); gap: 9px; }
.preview-neutral .theme-preview-cards i { position: relative; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 3px 8px rgba(29,55,47,.12); }
.preview-neutral .theme-preview-cards i::after { position: absolute; right: 7px; bottom: 5px; left: 7px; height: 4px; border-radius: 4px; background: var(--preview-accent); content: ""; }
.theme-preview.preview-universal { gap: 11px; background: #f3f6f5; }
.preview-universal .theme-preview-hero { padding: 11px 15px; border: 1px solid #dce6e4; border-radius: 9px; background: linear-gradient(115deg,#fff,color-mix(in srgb,var(--preview-accent) 15%,#fff)); }
.preview-universal .theme-preview-cards i { border-radius: 8px; box-shadow: 0 3px 8px rgba(25,57,53,.08); }
.theme-preview.preview-vlog { background: #f1f2ff; }
.preview-vlog .theme-preview-hero { position: relative; padding: 0; overflow: hidden; border-radius: 6px; background: linear-gradient(145deg,#222653,#5057bd); }
.preview-vlog .theme-preview-hero b { align-self: end; width: auto; height: 10px; margin: 0 8px 7px; background: #ffd84a; }
.preview-vlog .theme-preview-hero i { width: 90%; height: 5px; margin: 0 8px 8px; background: rgba(255,255,255,.7); }
.preview-vlog .theme-preview-cards i { border-radius: 7px; box-shadow: inset 0 22px 0 #cfd2ff; }
.theme-preview.preview-cinema { background: #110e2a; }
.preview-cinema .theme-preview-hero { background: linear-gradient(100deg,#2a2170,#1c1842); }
.preview-cinema .theme-preview-cards { grid-template-columns: repeat(4,1fr); gap: 6px; }
.preview-cinema .theme-preview-cards i { border: 0; border-radius: 4px; background: #272157; box-shadow: inset 0 30px 0 color-mix(in srgb,var(--preview-accent) 25%,#272157); }
.theme-preview.preview-courses { background-color: #fbfcff; background-image: linear-gradient(#e3eaf8 1px,transparent 1px),linear-gradient(90deg,#e3eaf8 1px,transparent 1px); background-size: 15px 15px; }
.preview-courses .theme-preview-hero { border: 1px solid #14213d; border-radius: 3px; background: #fff; box-shadow: 3px 3px 0 #14213d; }
.preview-courses .theme-preview-cards i { border: 1px solid #14213d; border-radius: 3px; box-shadow: 3px 3px 0 #14213d,inset 0 14px 0 #ffe14d; }
.theme-preview.preview-signs { background: #e8f0f1; }
.preview-signs .theme-preview-top { padding: 0 6px; border-radius: 5px; background: #0a5f66; }
.preview-signs .theme-preview-top i, .preview-signs .theme-preview-top span { background: #fff; }
.preview-signs .theme-preview-hero { border-radius: 8px; background: linear-gradient(125deg,#0a5f66,#0b3f52); }
.preview-signs .theme-preview-hero b { background: #fff; }
.preview-signs .theme-preview-hero i { background: rgba(255,255,255,.65); }
.preview-signs .theme-preview-cards i { border-left: 4px solid var(--preview-accent); border-radius: 4px; }
.theme-preview.preview-kubrick { background: #e9eef8; }
.preview-kubrick .theme-preview-top { border-bottom: 4px solid #365899; }
.preview-kubrick .theme-preview-hero { border-radius: 0; background: #fff; }
.preview-kubrick .theme-preview-cards i { border-radius: 0; box-shadow: inset 0 20px 0 #dce5f2; }
.theme-preview.preview-zoo { background: #f5f1e8; }
.preview-zoo .theme-preview-top { height: 28px; padding: 0 8px; border-radius: 3px; background: #1b4d3e; }
.preview-zoo .theme-preview-top i, .preview-zoo .theme-preview-top span { background: #f47e00; }
.preview-zoo .theme-preview-hero { border-radius: 3px; background: #e8dfcc; }
.preview-zoo .theme-preview-cards i { border-radius: 3px; box-shadow: inset 0 24px 0 #e5d6b7; }
.theme-preview.preview-portfolio { gap: 12px; padding: 14px 18px; background: #f4f1eb; }
.preview-portfolio .theme-preview-top { border-bottom: 1px solid #1d201d; }
.preview-portfolio .theme-preview-hero { grid-template-columns: 1.3fr .7fr; align-items: end; padding: 8px 0; border-radius: 0; background: transparent; }
.preview-portfolio .theme-preview-hero b { width: 70%; height: 22px; border-radius: 0; }
.preview-portfolio .theme-preview-cards { grid-template-columns: 2fr 1fr 1fr; gap: 5px; }
.preview-portfolio .theme-preview-cards i { border: 0; border-radius: 2px; background: #e7e2d9; box-shadow: none; }
.preview-portfolio .theme-preview-cards i:first-child { grid-row: span 2; background: #ec5b3e; }
.theme-preview.preview-agency { background: #f5f5ff; }
.preview-agency .theme-preview-hero { position: relative; min-height: 60px; padding: 10px 12px; border: 1px solid #deddf3; border-radius: 10px; background: linear-gradient(110deg,#fff,#e9e7ff); }
.preview-agency .theme-preview-hero::after { position: absolute; top: 8px; right: 12px; width: 38px; height: 38px; border: 1px solid #5b54e8; border-radius: 50%; content: ""; }
.preview-agency .theme-preview-cards i { border: 1px solid #deddf3; border-radius: 8px; box-shadow: 0 3px 8px rgba(49,45,115,.08); }
.theme-preview.preview-cafe { background: #f8f2e8; }
.preview-cafe .theme-preview-hero { border: 1px solid #e8d9c4; border-radius: 10px; background: #fffaf1; }
.preview-cafe .theme-preview-hero b { background: #a9432f; }
.preview-cafe .theme-preview-cards { grid-template-columns: repeat(3,1fr); gap: 5px; }
.preview-cafe .theme-preview-cards i { border: 1px solid #e8d9c4; border-radius: 5px; background: #fffaf1; box-shadow: inset 0 16px 0 #efe3d2; }
.theme-preview.preview-travel { background: #eff5f0; }
.preview-travel .theme-preview-hero { position: relative; min-height: 54px; padding: 10px 14px; border-radius: 14px 30px 12px 22px; background: linear-gradient(130deg,#d9eae1,#f8f7ed 62%,#d1e8e3); }
.preview-travel .theme-preview-hero::after { position: absolute; top: 10px; right: 13px; width: 21px; height: 21px; border-radius: 50%; background: #e9a65a; content: ""; }
.preview-travel .theme-preview-cards { grid-template-columns: repeat(4,1fr); gap: 5px; }
.preview-travel .theme-preview-cards i { border: 0; border-radius: 7px; background: #fff; box-shadow: 0 3px 8px rgba(25,65,57,.1); }
.preview-travel .theme-preview-cards i:nth-child(2n) { transform: translateY(5px); }
.theme-preview.preview-videohub { position: relative; gap: 8px; padding-left: 35px; background: #f2f4f6; }
.preview-videohub::before { position: absolute; inset: 0 auto 0 0; width: 26px; border-right: 1px solid #dce2e8; background: #1d2732; content: ""; }
.preview-videohub .theme-preview-top { border-bottom: 1px solid #dce2e8; }
.preview-videohub .theme-preview-top i { background: #e66b3d; }
.preview-videohub .theme-preview-hero { position: relative; min-height: 46px; border: 1px solid #dce2e8; border-radius: 8px; background: linear-gradient(110deg,#fff,#e7ebef); }
.preview-videohub .theme-preview-hero b { background: #e66b3d; }
.preview-videohub .theme-preview-cards { grid-template-columns: repeat(3,1fr); gap: 5px; }
.preview-videohub .theme-preview-cards i { border: 0; border-radius: 5px; background: #fff; box-shadow: inset 0 18px 0 #dce2e8; }
.theme-preview.preview-library { gap: 11px; background: #f5f1e8; }
.preview-library .theme-preview-top { border-bottom: 1px solid #ded4c5; }
.preview-library .theme-preview-top i, .preview-library .theme-preview-top span { background: #8a5637; }
.preview-library .theme-preview-hero { border-left: 3px solid #8a5637; border-radius: 2px; background: #fffaf3; }
.preview-library .theme-preview-hero b { background: #8a5637; }
.preview-library .theme-preview-cards { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.preview-library .theme-preview-cards i { min-height: 34px; border: 0; border-radius: 3px 7px 7px 3px; background: #fffaf3; box-shadow: inset 6px 0 #d6bd9f, 2px 3px 6px rgba(62,45,28,.12); }
.theme-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.theme-card-title h3 { margin: 0; color: var(--cms-ink); font-size: 1.08rem; }
.theme-active-badge { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; background: #e3f3eb; color: #176345; font-size: .73rem; font-weight: 800; }
.theme-desc { min-height: 56px; margin: 9px 0 12px; color: var(--cms-muted); font-size: .88rem; line-height: 1.5; }
.theme-types { min-height: 24px; }
.btn-theme-activate { width: 100%; min-height: 42px; border: 1px solid var(--cms-brand); border-radius: 8px; background: var(--cms-brand); color: #fff; cursor: pointer; font: inherit; font-weight: 750; }
.btn-theme-activate:hover { border-color: var(--cms-brand-dark); background: var(--cms-brand-dark); }
.btn-theme-activate.is-current { border-color: var(--cms-border); background: #f0f4f3; color: var(--cms-muted); cursor: default; }
.theme-settings-card h2 { margin: 0 0 8px; font-size: 1.3rem; }
.theme-settings-card .help { margin: 0; }
.theme-settings-card + .cms-card { margin-top: 18px !important; }

@media (max-width: 980px) {
    .cms-top-bar { top: -18px; }
    .cms-content { padding: 18px clamp(14px, 3vw, 28px); }
}
@media (max-width: 560px) {
    .cms-top-bar { top: -14px; }
    .cms-top-actions { width: 100%; justify-content: space-between; }
    .cms-view-site { min-height: 36px; }
    .cms-card { padding: 16px; }
    .dash-hero { align-items: flex-start; }
    .dash-actions { width: 100%; }
}
