@import "tailwindcss";

:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    color: #18241d;
    background: #fafaf5;
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
}
button,
input,
select,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
[x-cloak] {
    display: none !important;
}
.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;
}
.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 100;
    padding: 12px 18px;
    background: #fff;
    color: #10452b;
}
.skip-link:focus {
    top: 12px;
}
:focus-visible {
    outline: 3px solid #e8a43c;
    outline-offset: 2px;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    transition: grid-template-columns 0.2s ease;
}
.admin-shell.sidebar-collapsed {
    grid-template-columns: 74px minmax(0, 1fr);
}
.admin-sidebar {
    background: #103e29;
    color: #eef7ed;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #547563 #103e29;
    z-index: 30;
}
.sidebar-brand {
    min-height: 100px;
    display: flex;
    align-items: flex-start;
    padding: 24px 15px 18px 22px;
    gap: 8px;
}
.brand-wordmark {
    font-size: 18px;
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: 0.065em;
    white-space: nowrap;
}
.brand-wordmark span {
    display: block;
    font-weight: 600;
    letter-spacing: 0.12em;
}
.brand-wordmark small {
    display: block;
    margin-top: 12px;
    font-size: 8px;
    letter-spacing: 0.2em;
    color: #bcd8c5;
}
.sidebar-collapse {
    margin-left: auto;
    border: 1px solid #496956;
    color: #d2e6d7;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    background: transparent;
    line-height: 1;
    flex: 0 0 auto;
}
.sidebar-collapse:hover {
    background: #1f573b;
}
.sidebar-nav {
    padding: 0 10px 20px;
}
.side-link {
    height: 39px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 550;
    border-radius: 8px;
    color: #e2efe5;
    white-space: nowrap;
}
.side-link:hover {
    background: #21563c;
}
.side-link.active {
    background: #246d43;
    color: white;
    box-shadow: inset 3px 0 0 #b3e0a3;
}
.nav-icon {
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}
.side-group-label {
    margin: 21px 10px 8px;
    padding-top: 12px;
    border-top: 1px solid #48705a;
    color: #b6d1be;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.sidebar-footer {
    margin-top: auto;
    padding: 18px 22px 23px;
    font-size: 11px;
    color: #b8d1bf;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #42664f;
    white-space: nowrap;
}
.sidebar-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b5e3a5;
}
.sidebar-collapsed .nav-label,
.sidebar-collapsed .brand-wordmark span,
.sidebar-collapsed .brand-wordmark small {
    display: none;
}
.sidebar-collapsed .brand-wordmark {
    font-size: 10px;
    letter-spacing: -0.02em;
}
.sidebar-collapsed .sidebar-brand {
    padding: 24px 8px;
    display: block;
    text-align: center;
    min-height: 100px;
}
.sidebar-collapsed .sidebar-collapse {
    margin: 14px auto 0;
    display: block;
    transform: rotate(180deg);
}
.sidebar-collapsed .side-group-label {
    margin: 15px 10px 4px;
}
.sidebar-collapsed .side-link {
    justify-content: center;
    padding: 0;
}
.sidebar-collapsed .sidebar-footer {
    justify-content: center;
    padding-inline: 0;
}

.admin-main-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e0e6df;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px clamp(20px, 2.2vw, 36px);
}
.topbar-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.topbar-heading h1 {
    margin: 0;
    font-size: clamp(23px, 2.2vw, 30px);
    font-weight: 740;
    letter-spacing: -0.04em;
    line-height: 1.15;
}
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 7px;
    color: #66746b;
    font-size: 11px;
}
.breadcrumb a {
    color: #166534;
    font-weight: 650;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 17px;
}
.admin-search {
    position: relative;
    width: min(26vw, 300px);
    min-width: 175px;
}
.admin-search input {
    width: 100%;
    height: 36px;
    padding: 0 33px 0 12px;
    border: 1px solid #d8ded8;
    border-radius: 7px;
    background: #fbfcfa;
    font-size: 11px;
}
.admin-search > span {
    position: absolute;
    right: 11px;
    top: 6px;
    color: #4c6152;
    font-size: 20px;
    pointer-events: none;
}
.search-menu {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 60;
    background: white;
    border: 1px solid #d8ded8;
    border-radius: 8px;
    box-shadow: 0 12px 24px #14271b20;
    padding: 5px;
}
.search-menu a,
.search-menu p {
    display: block;
    margin: 0;
    padding: 9px 10px;
    font-size: 12px;
    border-radius: 5px;
}
.search-menu a:hover {
    background: #eef5ed;
}
.topbar-popover {
    position: relative;
}
.topbar-icon-button {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #295a3b;
    padding: 5px;
}
.tiny-popover {
    position: absolute;
    z-index: 60;
    top: 38px;
    right: 0;
    width: 250px;
    padding: 15px;
    background: white;
    border: 1px solid #dae2da;
    border-radius: 9px;
    box-shadow: 0 12px 26px #102d1c26;
    font-size: 12px;
}
.tiny-popover p {
    margin: 6px 0 0;
    color: #647269;
    line-height: 1.5;
}
.public-link {
    white-space: nowrap;
    color: #155a37;
    font-size: 12px;
    font-weight: 700;
}
.public-link:hover {
    text-decoration: underline;
}
.demo-profile {
    border-left: 1px solid #dce2dd;
    padding-left: 14px;
    font-size: 11px;
    font-weight: 700;
    color: #506454;
}
.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 22px;
    color: #10452b;
}

.admin-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 22px clamp(20px, 2.2vw, 36px) 60px;
    flex: 1;
}
.demo-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff8e9;
    border: 1px solid #eed7a8;
    border-radius: 8px;
    color: #5f471c;
    padding: 13px 16px;
    font-size: 12px;
    line-height: 1.45;
}
.demo-banner strong {
    color: #3b311d;
    font-weight: 750;
    white-space: nowrap;
}
.page-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 25px 0 18px;
}
.page-intro h2 {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 740;
    letter-spacing: -0.03em;
}
.page-intro p,
.panel-heading p,
.editor-header p {
    margin: 0;
    color: #67746b;
    font-size: 12px;
    line-height: 1.5;
}
.page-context {
    color: #718075;
    font-size: 11px;
}
.intro-actions,
.panel-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 7px;
    border: 1px solid #cbd7cc;
    font-size: 11px;
    font-weight: 720;
    white-space: nowrap;
    transition:
        background 0.16s,
        border-color 0.16s,
        transform 0.16s;
}
.button:hover:not(:disabled) {
    transform: translateY(-1px);
}
.button-primary {
    background: #145b37;
    color: #fff;
    border-color: #145b37;
}
.button-primary:hover:not(:disabled) {
    background: #0c4427;
}
.button-secondary {
    background: #fff;
    color: #195339;
}
.button-secondary:hover:not(:disabled) {
    background: #f0f7ef;
    border-color: #87a891;
}
.button:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}
.admin-panel {
    min-width: 0;
    background: #fff;
    border: 1px solid #dce3dc;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0d271807;
    overflow: hidden;
}
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 19px 15px;
}
.panel-heading h3,
.analytics-panel h3 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 740;
    letter-spacing: -0.02em;
}
.panel-heading a {
    color: #145b37;
    font-size: 11px;
    font-weight: 740;
    white-space: nowrap;
}
.panel-heading a:hover {
    text-decoration: underline;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 17px;
}
.stat-card {
    min-height: 105px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border: 1px solid #dce3dc;
    background: #fff;
    border-radius: 9px;
    transition:
        border-color 0.16s,
        box-shadow 0.16s;
}
.stat-card:hover {
    border-color: #8cb397;
    box-shadow: 0 5px 18px #11391e12;
}
.stat-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    background: #edf5ed;
    color: #155a35;
    border-radius: 7px;
    font-size: 21px;
}
.stat-card > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.stat-label {
    color: #647168;
    font-size: 11px;
    font-weight: 700;
}
.stat-card strong {
    margin: 3px 0 5px;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.03em;
}
.stat-link {
    color: #17613a;
    font-size: 10px;
    font-weight: 700;
}
.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}
.table-scroll {
    width: 100%;
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 11px;
}
.admin-table thead {
    background: #f6f8f5;
}
.admin-table th {
    color: #405448;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}
.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e8ece7;
    vertical-align: middle;
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}
.admin-table tbody tr:hover {
    background: #fbfdfb;
}
.admin-table td strong,
.admin-table td small {
    display: block;
}
.admin-table td strong {
    font-size: 11px;
}
.admin-table td small {
    color: #718077;
    font-size: 10px;
    margin-top: 3px;
}
.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #edf4ed;
    color: #255b39;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.status-tag.is-published {
    background: #e0f2df;
    color: #145632;
}
.table-action {
    font-size: 11px;
    font-weight: 700;
    color: #17613a;
}
.readiness-list {
    padding: 0 18px 10px;
    margin: 0;
    list-style: none;
}
.readiness-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid #ebeeea;
}
.readiness-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: #f0f5ef;
    color: #23613c;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    flex: 0 0 auto;
}
.readiness-list li div {
    flex: 1;
}
.readiness-list strong {
    display: block;
    font-size: 11px;
}
.readiness-list p {
    color: #68766d;
    margin: 4px 0 0;
    font-size: 10px;
    line-height: 1.4;
}
.readiness-list a {
    color: #17613a;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.quick-actions {
    margin-bottom: 15px;
}
.quick-grid {
    padding: 0 19px 19px;
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.analytics-panel {
    padding: 19px;
}
.empty-mini {
    margin-top: 12px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd8cc;
    background: #f9fbf8;
    border-radius: 7px;
    text-align: center;
}
.empty-mini span {
    color: #75927b;
    font-size: 24px;
}
.empty-mini strong {
    font-size: 12px;
}
.empty-mini p {
    color: #6c796e;
    font-size: 11px;
    margin: 4px 0 0;
}
.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #e4e9e3;
    padding: 14px 32px;
    color: #768078;
    font-size: 10px;
}
.admin-footer button {
    border: 0;
    padding: 0;
    background: none;
    font-size: 10px;
    color: #65746a;
}

.workspace {
    min-width: 0;
}
.list-panel {
    margin-bottom: 17px;
}
.count-inline {
    margin-left: 6px;
    color: #5d7664;
    font-size: 11px;
}
.list-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 19px 15px;
    flex-wrap: wrap;
}
.list-toolbar input,
.list-toolbar select,
.form-field input,
.form-field select,
.form-field textarea,
.preview-content input,
.preview-content textarea,
.section-fields input,
.section-fields select,
.section-fields textarea {
    width: 100%;
    border: 1px solid #ccd8ce;
    border-radius: 6px;
    padding: 9px 11px;
    background: #fff;
    color: #1c2d20;
    font-size: 12px;
}
.list-toolbar input {
    width: 240px;
}
.list-toolbar select {
    min-width: 140px;
}
.list-count {
    margin-left: auto;
    color: #68776d;
    font-size: 11px;
}
.checkbox-cell {
    width: 40px;
    text-align: center;
}
input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #166534;
}
.sort-header {
    border: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
}
.sort-header:hover {
    color: #166534;
}
.row-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}
.row-actions button,
.row-actions a {
    border: 1px solid #dae4db;
    background: #fff;
    color: #1d603b;
    border-radius: 5px;
    padding: 5px 7px;
    font-size: 10px;
    font-weight: 650;
    text-decoration: none;
}
.row-actions button:hover:not(:disabled),
.row-actions a:hover {
    background: #eef6ee;
}
.list-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 19px;
    border-top: 1px solid #e8eee8;
    color: #68766c;
    font-size: 11px;
}
.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}
.pagination button,
.text-button {
    border: 0;
    background: none;
    color: #166534;
    font-weight: 700;
    font-size: 11px;
}
.text-button {
    margin-left: 10px;
}
.empty-state {
    text-align: center;
    padding: 55px 20px 65px;
    border-top: 1px solid #e9eee9;
}
.empty-state > span {
    display: block;
    color: #96ad9a;
    font-size: 37px;
}
.empty-state h4 {
    margin: 9px 0 5px;
    font-size: 16px;
}
.empty-state p {
    margin: 0 auto 15px;
    color: #6b796e;
    font-size: 12px;
    max-width: 400px;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 0 19px 19px;
}
.media-tile {
    min-height: 145px;
    border: 1px solid #dfe7de;
    background: #f8fbf7;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.media-tile > span {
    font-size: 30px;
    color: #699472;
}
.media-tile strong {
    font-size: 11px;
}
.media-tile small {
    font-size: 10px;
    color: #718075;
}
.tab-row {
    display: flex;
    overflow-x: auto;
    gap: 3px;
    margin-bottom: 12px;
    border-bottom: 1px solid #dbe5da;
}
.tab-row button,
.editor-tabs button {
    white-space: nowrap;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 14px;
    color: #607166;
    font-size: 11px;
    font-weight: 730;
}
.tab-row button.active,
.editor-tabs button.active {
    color: #145c37;
    border-bottom-color: #17643d;
}
.nav-preview {
    padding: 0 18px 20px;
}
.nav-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #e7ece7;
    font-size: 12px;
}
.nav-preview-item > span {
    min-width: 130px;
    font-weight: 700;
}
.nav-preview-item small {
    color: #6b7b6d;
    flex: 1;
}
.nav-preview-item button {
    border: 1px solid #d9e3da;
    background: white;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 10px;
}
.hint {
    color: #738075;
    font-size: 10px;
    line-height: 1.5;
}
.permission-table input {
    display: block;
    margin: auto;
}
.permission-table + .hint {
    padding: 0 18px 12px;
}

.editor-panel {
    margin-bottom: 17px;
}
.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 20px 0;
}
.editor-header h3 {
    font-size: 16px;
    margin: 0 0 4px;
}
.editor-shell {
    padding: 0 20px 20px;
}
.editor-tabs {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    margin: 16px 0 22px;
    border-bottom: 1px solid #e1e8e0;
}
.editor-tabs button {
    padding: 10px 12px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 20px;
}
.form-field,
.section-fields label,
.preview-content label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    color: #334c3a;
    font-size: 11px;
    font-weight: 720;
}
.form-field.span-full,
.section-fields .span-full {
    grid-column: 1 / -1;
}
.form-field textarea {
    resize: vertical;
    min-height: 95px;
    line-height: 1.55;
}
.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
    background: #f6f8f5;
}
.check-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 37px;
    font-weight: 500;
}
.check-field input {
    width: 16px;
}
.field-error {
    color: #a73325;
    font-weight: 500;
}
.editor-footer {
    border-top: 1px solid #e4ebe4;
    margin-top: 25px;
    padding-top: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.editor-footer > div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.unsaved-indicator {
    color: #526b57;
    font-size: 11px;
}
.editor-form > .hint {
    margin: 12px 0 0;
}
.section-builder {
    margin-top: 28px;
    border-top: 1px solid #e3e9e3;
}
.section-builder .panel-heading {
    padding-left: 0;
    padding-right: 0;
}
.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid #e8eee8;
}
.section-row-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
}
.section-order {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: #edf4ec;
    color: #24633e;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 750;
}
.section-row-head strong,
.section-row-head small {
    display: block;
}
.section-row-head strong {
    font-size: 11px;
}
.section-row-head small {
    color: #718174;
    font-size: 10px;
    margin-top: 3px;
}
.section-fields {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    border-radius: 7px;
    background: #f8faf7;
}
.section-fields .hint {
    grid-column: 1/-1;
    margin: 0;
}
.theme-preview {
    margin: 0 19px 20px;
    border: 1px solid #dbe7d8;
    border-radius: 8px;
    overflow: hidden;
    background: var(--preview-background);
    color: var(--preview-text);
}
.theme-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: var(--preview-secondary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.theme-preview-header span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
}
.theme-preview-body {
    padding: 34px 25px 40px;
}
.theme-preview-body h4 {
    max-width: 490px;
    font-family: Georgia, serif;
    font-size: clamp(21px, 3vw, 33px);
    line-height: 1.13;
    margin: 0 0 9px;
}
.theme-preview-body p {
    font-size: 12px;
}
.theme-preview-body button {
    margin-top: 9px;
    padding: 9px 14px;
    border: none;
    border-radius: 5px;
    background: var(--preview-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
}
.seo-preview {
    margin: 0 19px 10px;
    max-width: 640px;
    padding: 18px;
    border: 1px solid #e2e9e1;
    border-radius: 6px;
}
.seo-preview small,
.seo-preview strong,
.seo-preview p {
    display: block;
}
.seo-preview small {
    color: #28653d;
    font-size: 11px;
}
.seo-preview strong {
    margin-top: 5px;
    color: #2353a4;
    font-size: 18px;
    font-weight: 500;
}
.seo-preview p {
    color: #4c5a4f;
    font-size: 12px;
    line-height: 1.5;
}
.seo-preview + .hint {
    margin: 0 19px 20px;
}
.meta-grid {
    padding: 0 19px 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.meta-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #e7ece6;
    padding-top: 10px;
    font-size: 11px;
}
.meta-grid span {
    color: #65766a;
}
.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    max-width: 360px;
    padding: 14px 17px;
    background: #123e2a;
    color: white;
    border-radius: 8px;
    box-shadow: 0 12px 24px #07180b30;
    font-size: 12px;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: #0d251c85;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.admin-modal {
    width: min(720px, 100%);
    max-height: min(90vh, 950px);
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 70px #07180b55;
}
.modal-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid #e4ebe3;
}
.modal-heading h3 {
    font-size: 16px;
    margin: 0;
}
.modal-heading button {
    width: 27px;
    height: 27px;
    border: 0;
    background: #eef4ec;
    border-radius: 5px;
    color: #175b37;
    font-size: 19px;
}
.preview-content {
    padding: 20px 22px 25px;
    display: grid;
    gap: 14px;
}
.preview-content > div {
    border-bottom: 1px solid #e8eee8;
    padding-bottom: 9px;
}
.preview-content strong {
    font-size: 10px;
    color: #56715e;
}
.preview-content p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.modal-editor .editor-shell {
    padding: 0 22px 22px;
}

@media (max-width: 1100px) {
    .topbar-actions {
        gap: 10px;
    }
    .admin-search {
        width: 180px;
    }
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 820px) {
    .admin-shell,
    .admin-shell.sidebar-collapsed {
        display: block;
    }
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.2s;
        box-shadow: 8px 0 35px #081d0d25;
    }
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    .mobile-scrim {
        position: fixed;
        inset: 0;
        background: #081c0d80;
        z-index: 25;
    }
    .mobile-menu-button {
        display: block;
    }
    .sidebar-collapse {
        display: none;
    }
    .sidebar-collapsed .nav-label,
    .sidebar-collapsed .brand-wordmark span,
    .sidebar-collapsed .brand-wordmark small {
        display: initial;
    }
    .sidebar-collapsed .brand-wordmark span,
    .sidebar-collapsed .brand-wordmark small {
        display: block;
    }
    .sidebar-collapsed .brand-wordmark {
        font-size: 18px;
    }
    .sidebar-collapsed .sidebar-brand {
        min-height: 100px;
        padding: 24px 15px 18px 22px;
        text-align: left;
    }
    .sidebar-collapsed .side-link {
        justify-content: flex-start;
        padding: 0 12px;
    }
    .sidebar-collapsed .sidebar-footer {
        justify-content: flex-start;
        padding: 18px 22px 23px;
    }
    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 650px) {
    .admin-topbar {
        min-height: 70px;
        padding: 12px 16px;
    }
    .topbar-heading h1 {
        font-size: 20px;
    }
    .admin-search,
    .topbar-icon-button,
    .demo-profile {
        display: none;
    }
    .public-link span {
        display: none;
    }
    .admin-content {
        padding: 16px 14px 45px;
    }
    .demo-banner {
        display: block;
        font-size: 11px;
    }
    .demo-banner strong {
        display: block;
        margin-bottom: 3px;
    }
    .page-intro {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 22px;
    }
    .page-context {
        display: none;
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .stat-card {
        padding: 12px;
        min-height: 95px;
    }
    .stat-icon {
        width: 30px;
        height: 30px;
        font-size: 17px;
    }
    .dashboard-columns {
        gap: 12px;
    }
    .panel-heading {
        padding: 15px;
        flex-wrap: wrap;
    }
    .admin-table th,
    .admin-table td {
        padding: 10px;
    }
    .list-toolbar {
        padding: 0 15px 15px;
    }
    .list-toolbar .search-field,
    .list-toolbar input {
        width: 100%;
    }
    .list-toolbar select {
        min-width: 0;
        max-width: 145px;
    }
    .list-count {
        margin: 0;
    }
    .list-footer {
        flex-wrap: wrap;
    }
    .editor-header {
        padding: 16px 15px 0;
        flex-wrap: wrap;
    }
    .editor-shell {
        padding: 0 15px 15px;
    }
    .form-grid,
    .section-fields {
        grid-template-columns: 1fr;
    }
    .editor-footer {
        flex-wrap: wrap;
    }
    .editor-footer > div {
        width: 100%;
    }
    .editor-footer .button {
        flex: 1;
    }
    .nav-preview-item {
        flex-wrap: wrap;
    }
    .nav-preview-item small {
        flex-basis: calc(100% - 150px);
    }
    .meta-grid {
        grid-template-columns: 1fr;
    }
    .admin-footer {
        padding: 12px 15px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
