body.admin-body { font-family: var(--sans); font-size: 14px; background: var(--bg); }
.admin-topbar { height: 88px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 12px 32px; gap: 25px; }
.admin-brand { font-family: var(--serif); font-size: 35px; font-weight: 700; line-height: 1.55; min-width: 208px; }
.admin-brand span { display: block; font-family: var(--sans); font-size: 10px; color: var(--muted); font-weight: 400; }
.admin-top-actions { display: flex; align-items: center; gap: 22px; }
.admin-profile-link { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.admin-menu-button { display: none; }
.admin-shell { display: grid; grid-template-columns: 240px minmax(0,1fr); max-width: 1800px; margin: auto; }
.admin-sidebar { border-right: 1px solid var(--line); min-height: calc(100vh - 88px); padding: 23px 17px; align-self: start; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 13px; min-height: 45px; padding: 9px 12px; color: var(--muted); border-left: 2px solid transparent; font-size: 13px; }
.admin-sidebar nav a:hover { background: var(--soft); color: var(--ink); }
.admin-sidebar nav a[aria-current] { background: var(--soft); color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.admin-sidebar svg { width: 18px; height: 18px; }
.sidebar-logout { width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); margin-top: 22px; padding: 15px 12px; background: none; display: flex; align-items: center; gap: 13px; color: var(--muted); }
.sidebar-role { padding: 10px 12px; font-size: 11px; color: var(--muted); }
.admin-main { padding: 32px 38px; min-width: 0; }
.admin-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.admin-page-heading .eyebrow { font-size: 11px; color: var(--muted); }
.admin-page-heading h1 { font-family: var(--serif); font-size: 32px; margin-top: 6px; }
.admin-page-heading .button { font-size: 13px; min-height: 44px; }
.admin-panel { border: 1px solid var(--line); background: var(--surface); padding: 25px; margin-bottom: 25px; min-width: 0; }
.admin-panel h2 { font-family: var(--serif); font-size: 23px; margin-bottom: 16px; }
.admin-panel h3 { font-size: 19px; margin-bottom: 12px; }
.admin-panel > p { line-height: 1.95; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 15px; }
.panel-heading h2 { margin-bottom: 6px; }
.dashboard-welcome { padding: 26px 30px; margin-bottom: 25px; background: var(--soft); border-left: 3px solid var(--accent); }
.dashboard-welcome h2 { font-size: 27px; font-family: var(--serif); }
.dashboard-welcome p { color: var(--muted); margin-top: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; margin-bottom: 25px; }
.stats-grid.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.stat-card { padding: 20px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.stat-card span { display: block; font-size: 12px; color: var(--muted); }
.stat-card strong { display: block; font-size: 35px; margin-top: 12px; line-height: 1.65; font-family: var(--serif); font-weight: 500; }
.admin-two-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
.admin-two-columns.wide-left { grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); }
.dashboard-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.dashboard-row:last-child { border-bottom: 0; }
.dashboard-row strong { font-weight: 500; }
.dashboard-row p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.status-badge { display: inline-flex; align-items: center; min-height: 30px; font-size: 11px; padding: 4px 10px; background: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.status-published, .status-approved { color: #236340; background: #eff6ee; border-color: #cddfca; }
.status-scheduled, .status-pending { color: #74591c; background: #faf5e7; border-color: #e6dbc0; }
.status-trash, .status-spam { color: #963e37; background: #f8efec; border-color: #e3cbc4; }
html[data-theme=dark] .status-badge { background: var(--soft); color: var(--ink); border-color: var(--line); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { font-size: 11px; color: var(--muted); background: var(--soft); font-weight: 500; white-space: nowrap; }
th, td { padding: 14px 13px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.9; }
td ul { padding-left: 16px; margin: 0; }
td input[type=checkbox], th input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; }
.post-title-cell { min-width: 230px; max-width: 450px; }
.row-links { display: flex; gap: 13px; flex-wrap: wrap; font-size: 11px; align-items: center; margin-top: 4px; }
.row-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--accent); }
.empty-message { padding: 30px 12px; text-align: center; color: var(--muted); }
.content-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.content-tabs a { min-height: 44px; display: flex; align-items: center; padding: 10px 16px; border-bottom: 2px solid transparent; font-size: 12px; }
.content-tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.admin-form { display: grid; gap: 19px; }
.admin-form label, .filter-bar label, .editor-form label { display: grid; gap: 8px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.admin-form label input, .admin-form label textarea, .admin-form label select, .editor-form input, .editor-form textarea, .editor-form select { color: var(--ink); }
select { width: 100%; font-family: var(--sans); font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 11px 13px; min-height: 46px; border-radius: 0; }
select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.admin-form input, .admin-form textarea { font-size: 14px; padding: 12px 14px; }
.admin-form .button { justify-self: start; }
.checkbox-label, .admin-form .checkbox-label, .editor-form .checkbox-label { display: flex; gap: 10px; align-items: center; min-height: 44px; color: var(--ink); }
.checkbox-label input { width: 19px; height: 19px; padding: 0; flex-shrink: 0; }
.filter-bar { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin: 20px 0 25px; }
.filter-bar label { min-width: 150px; flex: 1; }
.filter-bar input { padding: 10px 13px; font-size: 13px; }
.filter-bar .button { min-height: 46px; font-size: 13px; padding: 11px 17px; }
.filter-bar .text-link { font-size: 12px; }
.bulk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-bottom: 24px; }
.bulk-bar select { width: auto; min-width: 155px; }
.bulk-bar .small-muted { margin-left: auto; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--soft); color: var(--accent); filter: none; }
.link-button { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: none; padding: 6px 0; color: var(--accent); font-size: 12px; }
.danger { color: #a24238; }
.danger-button { background: #9b3e34; border-color: #9b3e34; color: #fff; }
.danger-panel { border-left: 3px solid #a24238; }
.flash { padding: 14px 20px; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--accent); margin-bottom: 24px; font-size: 14px; }
.flash.error { border-left-color: #a24238; }
.admin-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 45px; color: var(--muted); font-size: 10px; }
.editor-command-bar { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: var(--soft); padding: 15px 20px; margin-bottom: 25px; }
.editor-command-bar > div { display: flex; gap: 12px; }
.editor-save-status { font-size: 12px; color: var(--muted); }
.editor-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 25px; }
.editor-form label { margin-bottom: 19px; }
.editor-form .editor-title { font-family: var(--serif); font-size: 28px; line-height: 1.8; padding: 16px; }
.editor-form .small-muted { margin-bottom: 20px; }
.editor-form .admin-panel > textarea { margin-bottom: 23px; }
.editor-title-label { color: var(--ink) !important; }
.editor-settings .admin-panel { padding: 22px; }
.editor-settings h2 { font-size: 21px; }
.term-checkboxes { max-height: 240px; overflow-y: auto; border-top: 1px solid var(--line); padding-top: 13px; }
.term-checkboxes .checkbox-label { margin-bottom: 0; }
.featured-preview { width: 100%; height: auto; max-height: 220px; object-fit: cover; margin-bottom: 18px; }
.snippet-preview { border: 1px solid var(--line); padding: 22px; margin: 24px 0; overflow-wrap: anywhere; }
.snippet-preview > span { font-size: 12px; }
.snippet-preview > div { font-size: 11px; color: var(--muted); margin: 4px 0 10px; }
.snippet-preview strong { font-family: var(--serif); font-size: 22px; color: #285795; font-weight: 500; }
.snippet-preview p { font-size: 14px; margin-top: 10px; color: var(--muted); }
html[data-theme=dark] .snippet-preview strong { color: #b7c9e4; }
.seo-check-list { padding-left: 20px; font-size: 12px; color: var(--muted); }
.seo-check-list li { margin-bottom: 9px; }
.social-preview { padding: 24px; background: var(--soft); border: 1px solid var(--line); margin-top: 20px; }
.social-preview p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.code-input, .log-entry { font-family: monospace; }
.media-dialog { max-width: 850px; width: calc(100% - 40px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 25px; max-height: 85vh; }
.media-dialog::backdrop { background: #0009; }
.media-picker-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.media-picker-item { background: var(--surface); border: 1px solid var(--line); padding: 0; text-align: left; }
.media-picker-item img { aspect-ratio: 1.5; }
.media-picker-item span { display: block; padding: 10px; font-size: 11px; }
.media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px; }
.media-card h2 { font-family: var(--sans); font-size: 14px; margin-top: 18px; }
.media-card img { aspect-ratio: 1.5; height: auto; object-fit: cover; }
.upload-form { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.upload-form label { flex: 1; font-size: 13px; }
.upload-form input { margin-top: 10px; }
details { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
summary { cursor: pointer; min-height: 44px; display: list-item; font-weight: 500; font-size: 13px; padding-block: 8px; }
details .admin-form { margin: 18px 0; }
.profile-panel { max-width: 850px; }
.profile-panel > p { margin-bottom: 25px; }
.form-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.message-body { font-size: 16px; line-height: 2; padding-block: 12px; }
.settings-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
fieldset { border: 1px solid var(--line); padding: 17px; margin: 0; }
legend { color: var(--muted); font-size: 12px; padding: 0 7px; }
.menu-builder { list-style: none; padding: 0; margin: 20px 0; }
.menu-builder li { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); background: var(--soft); margin-bottom: 9px; padding: 8px 12px; }
.menu-builder li > span:nth-child(2) { flex: 1; min-width: 0; }
.menu-builder li small { display: block; color: var(--muted); font-size: 10px; }
.menu-builder li > div { display: flex; }
.menu-builder .drag-handle { font-size: 20px; cursor: grab; color: var(--muted); }
.menu-builder li.is-dragging { opacity: .55; }
.traffic-chart { margin-block: 25px; width: 100%; }
.traffic-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); fill: none; stroke-width: 1; }
.chart-line { stroke: var(--accent); fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.traffic-chart text { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.health-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 30px; }
.health-grid p { display: flex; gap: 20px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; font-size: 12px; }
.health-grid strong { font-weight: 500; text-align: right; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 25px; }
.restore-summary { padding: 22px; background: var(--soft); margin-top: 25px; }
.restore-summary > p { margin-bottom: 15px; }
.endpoint-links { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-block: 20px; }
.log-entry { padding: 15px; background: var(--soft); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bengali-list { list-style-type: bengali; }
.auth-page { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 65px 24px; }
.auth-panel { width: 100%; max-width: 510px; border: 1px solid var(--line); background: var(--surface); padding: 36px 40px; }
.auth-brand { display: block; font-size: 56px; font-family: var(--serif); text-align: center; font-weight: 700; line-height: 1.7; padding-bottom: 22px; margin-bottom: 25px; border-bottom: 2px solid var(--ink); }
.auth-brand span { display: block; font-size: 12px; font-family: var(--sans); color: var(--muted); font-weight: 400; }
.auth-panel h1 { font-size: 27px; margin-bottom: 14px; }
.auth-panel .admin-form { margin-top: 25px; }
.auth-panel > .text-link { margin-top: 16px; }
@media(max-width:1300px) { .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .editor-grid { grid-template-columns: minmax(0,1fr) 270px; gap: 22px; } .admin-main { padding: 28px; } .admin-two-columns.wide-left { grid-template-columns: minmax(0,1fr); } .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:1000px) { .admin-shell { grid-template-columns: 210px minmax(0,1fr); } .admin-sidebar { padding-inline: 12px; } .admin-main { padding: 25px 22px; } .admin-two-columns, .editor-grid { grid-template-columns: minmax(0,1fr); } .editor-settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; } .settings-fields { grid-template-columns: minmax(0,1fr); } .admin-topbar { padding-inline: 22px; } .admin-profile-link > span:last-child { display: none; }
}
@media(max-width:750px) { .admin-topbar { height: 85px; padding: 12px 18px; } .admin-brand { min-width: 0; font-size: 33px; } .admin-top-actions { gap: 4px; } .admin-top-actions > .text-link { display: none; } .admin-menu-button { display: inline-flex; } .admin-profile-link { margin-left: 4px; } .admin-profile-link .avatar { width: 36px; height: 36px; } .admin-shell { display: block; } .admin-sidebar { display: none; position: static; max-height: none; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); } .admin-sidebar.is-open { display: block; } .admin-sidebar nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; } .admin-sidebar nav a { font-size: 12px; min-height: 46px; } .admin-main { padding: 26px 18px; } .admin-page-heading { align-items: flex-start; gap: 14px; margin-bottom: 25px; } .admin-page-heading h1 { font-size: 27px; } .admin-page-heading .button { font-size: 11px; gap: 7px; padding: 10px 12px; } .admin-page-heading .button svg { width: 16px; } .admin-panel { padding: 20px 17px; } .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; } .stat-card { padding: 15px 12px; } .stat-card span { font-size: 10px; } .stat-card strong { font-size: 29px; } .dashboard-welcome { padding: 22px; } .dashboard-welcome h2 { font-size: 24px; } .editor-settings { grid-template-columns: minmax(0,1fr); gap: 0; } .editor-command-bar { flex-wrap: wrap; padding: 15px; } .editor-command-bar > div { width: 100%; } .editor-form .editor-title { font-size: 25px; padding: 15px 12px; } .editor-form label { font-size: 12px; } .media-grid { grid-template-columns: minmax(0,1fr); } .media-picker-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .panel-heading { flex-wrap: wrap; } .health-grid, .form-row { grid-template-columns: minmax(0,1fr); } .filter-bar label { min-width: 130px; } .analytics-filter { gap: 12px; } .bulk-bar { gap: 12px; } .bulk-bar select { width: 100%; } .bulk-bar .small-muted { margin-left: 0; } .content-tabs { gap: 0; } .content-tabs a { padding: 8px 12px; font-size: 11px; } .table-wrap th, .table-wrap td { padding: 12px 10px; font-size: 12px; } .post-title-cell { min-width: 190px; } .admin-footer { flex-direction: column; gap: 5px; } .auth-page { padding: 30px 18px; } .auth-panel { padding: 27px 24px; } .auth-panel h1 { font-size: 25px; } .auth-brand { font-size: 47px; }
}
@media(max-width:360px) { .stats-grid, .stats-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); } .admin-sidebar nav { grid-template-columns: minmax(0,1fr); } .admin-page-heading { flex-wrap: wrap; }
}
@media print { .admin-sidebar, .admin-topbar, .admin-page-heading, .admin-footer, .admin-panel .button { display: none !important; } .admin-shell { display: block; } .admin-main { padding: 0; } .admin-panel { border: 0; background: #fff; color: #000; }
}
.chart-point { fill: var(--accent); stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.chart-point:hover, .chart-point:focus { r: 7; stroke: var(--ink); outline: none; }
.chart-readout { color: var(--muted); font-size: 12px; padding: 10px 0; }
.bulk-edit-options { margin-bottom: 24px; }
[data-featured-picker] { margin-bottom: 20px; }

.social-preview img {display:block;width:100%;height:auto;max-height:240px;object-fit:cover;margin-bottom:16px}.social-preview img[hidden] {display:none}
