* {
    box-sizing: border-box;
}

/* Admin workspace: grouped navigation, focused editing, reusable panels. */
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; background: white; padding: 12px; }
.skip-link:focus { top: 8px; }
.nav-group { border: 0; }
.nav-group summary { padding: 12px 16px 6px; color: #a7aaad; cursor: pointer; font-size: 12px; }
.nav-group a { display: block; }
.content-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.editor-main, .editor-sidebar { min-width: 0; align-content: start; }
.editor-main input[name="title"] { font-size: 25px; padding: 12px; }
.editor-box { border: 1px solid #dcdcde; background: #fff; padding: 16px; }
.editor-box summary { font-weight: 600; cursor: pointer; }
.editor-box > label { display: block; margin-top: 14px; }
.editor-box h2 { margin: 0 0 12px; font-size: 15px; }
.editor-box button { margin-top: 12px; }
.editor-box small[data-save-state] { display: block; margin-top: 10px; }
.workflow-list { display: grid; gap: 20px; margin-top: 20px; }
.workflow-item { background: #fff; border: 2px solid #c3c4c7; border-radius: 6px; padding: 20px; box-shadow: 0 3px 9px rgba(0,0,0,.07); }
.workflow-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.workflow-item h2 { margin: 5px 0 0; font-size: 1.25rem; }
.workflow-kind, .workflow-public-state { color: #50575e; }
.approval-badge { display: inline-block; padding: 5px 10px; border-radius: 20px; background: #f0f0f1; color: #1d2327; font-weight: 700; white-space: nowrap; }
.approval-badge.pending { background: #fff2c9; color: #614200; }
.approval-badge.approved { background: #e6f4e9; color: #135c2b; }
.approval-badge.rejected { background: #fce8e8; color: #9b1c1c; }
.workflow-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.workflow-action { flex: 1 1 180px; }
.workflow-action button { width: 100%; }
.workflow-action small { display: block; margin-top: 5px; color: #50575e; }
.workflow-rejection { margin: 14px 0; padding: 12px 14px; border-left: 4px solid #b32d2e; background: #fcf0f1; }
.workflow-rejection p { margin: 6px 0 0; white-space: normal; }
.workflow-button { border: 1px solid transparent; border-radius: 4px; min-height: 42px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.workflow-button-approved { background: #16803d; border-color: #116631; color: #fff; }
.workflow-button-rejected { background: #b32d2e; border-color: #8f2424; color: #fff; }
.workflow-button-pending { background: #f1b929; border-color: #b38200; color: #312400; }
.workflow-button-draft { background: #50575e; border-color: #3b4147; color: #fff; }
.workflow-button:hover { filter: brightness(.9); }
.workflow-button-approved:hover { background: #16803d; border-color: #116631; }
.workflow-button-rejected:hover { background: #b32d2e; border-color: #8f2424; }
.workflow-button-pending:hover { background: #f1b929; border-color: #b38200; }
.workflow-button-draft:hover { background: #50575e; border-color: #3b4147; }
.workflow-button:focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }
.workflow-action-pending small { color: #755600; }
.workflow-action-draft small { color: #3b4147; }
.rejected-dashboard { border-left: 5px solid #b32d2e; }
.rejected-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.rejected-list li { border: 1px solid #dcdcde; padding: 12px; }
.rejected-list .approval-badge { margin-left: 8px; }
.rejected-list p { margin: 8px 0 0; }
.editor-sidebar .media-picker-row { display: flex; flex-wrap: wrap; }
.editor-sidebar .media-picker-row input { flex-basis: 100%; }
.list-toolbar, .status-tabs, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.list-toolbar { justify-content: space-between; margin: 20px 0; }
.status-tabs a[aria-current] { color: #1d2327; font-weight: 700; text-decoration: none; }
.row-title { font-size: 15px; font-weight: 600; text-decoration: none; }
.table-scroll { overflow-x: auto; }
.pagination { margin-top: 16px; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; margin-top: 24px; }
.template-card { border: 1px solid #dcdcde; background: #fff; overflow: hidden; }
.template-card.is-active { border: 2px solid #2271b1; }
.template-card-body { padding: 18px; }
.template-card h2 { margin-top: 0; }
.template-cover { width: 100%; height: 180px; border: 0; background: #f0f0f1; pointer-events: none; }
.template-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.preview-stage { overflow: auto; background: #dcdcde; padding: 20px; }
.preview-frame { display: block; width: 100%; max-width: 100%; min-height: 72vh; border: 0; margin: auto; background: white; }
.preview-stage[data-device="mobile"] .preview-frame { width: 390px; }
.preview-stage[data-device="tablet"] .preview-frame { width: 768px; }
@media (max-width: 1100px) { .content-editor { grid-template-columns: minmax(0,1fr) 260px; gap: 16px; } }
@media (max-width: 850px) { .content-editor { grid-template-columns: minmax(0,1fr); } .topbar-brand { flex-wrap: wrap; } }

body {
    margin: 0;
    background: #f0f0f1;
    color: #1d2327;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: #2271b1;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 1px solid #2271b1;
    border-radius: 3px;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
    min-height: 32px;
    padding: 6px 14px;
}

button:hover {
    background: #135e96;
    border-color: #135e96;
}

select,
textarea,
input {
    background: #fff;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    color: #2c3338;
    padding: 6px 8px;
    width: 100%;
}

select:focus,
textarea:focus,
input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.topbar {
    align-items: center;
    background: #1d2327;
    color: #f0f0f1;
    display: flex;
    justify-content: space-between;
    grid-column: 1 / -1;
    min-height: 32px;
    padding: 0 16px;
}

.topbar a {
    color: #f0f0f1;
    text-decoration: none;
}

.topbar-brand,
.topbar-account {
    align-items: center;
    display: flex;
    gap: 12px;
}

.topbar span {
    color: #c3c4c7;
}

.topbar-publish { margin: 0; }
.topbar-publish button { padding: 5px 10px; }

.wp-shell {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-nav {
    background: #1d2327;
    display: flex;
    flex-direction: column;
    grid-column: 1;
    padding: 8px 0 24px;
}

.admin-nav a {
    border-left: 4px solid transparent;
    color: #c3c4c7;
    padding: 8px 16px 8px 12px;
    text-decoration: none;
}

.admin-nav a.child {
    font-size: 13px;
    padding-left: 28px;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: #2c3338;
    border-left-color: #72aee6;
    color: #fff;
}

.admin-nav-title {
    color: #8c8f94;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 16px 8px;
    text-transform: uppercase;
}

.admin {
    grid-column: 2;
    max-width: 1180px;
    padding: 24px 32px 48px;
    width: 100%;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-grid {
    display: grid;
    gap: 12px;
}
.settings-group { display: grid; gap: 12px; min-width: 0; border: 1px solid #dcdcde; padding: 16px; }
.settings-group legend { font-weight: 700; padding: 0 6px; }

.inline-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inline-action {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-action input,
.inline-action select,
.compact-list input {
    width: auto;
}

.page-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.page-heading h1 {
    color: #1d2327;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 8px;
    margin-top: 0;
}

.page-heading p,
.muted {
    color: #646970;
    margin-top: 0;
}

.dashboard-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 16px;
}

.stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.stats strong {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 2px;
    padding: 14px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    color: #1d2327;
    display: grid;
    gap: 8px;
    padding: 16px;
    text-decoration: none;
}

.dashboard-card:hover {
    border-color: #2271b1;
}

.dashboard-card span,
label small {
    color: #646970;
}

label small {
    display: block;
    font-size: 0.86rem;
    margin: 2px 0 6px;
}

.panel,
.login-box {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    padding: 16px;
}

.editor {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    padding: 12px 0;
}

.editor h2,
.editor form {
    padding-left: 16px;
    padding-right: 16px;
}

.editor summary {
    cursor: pointer;
    font-weight: 700;
}

.compact-list {
    display: grid;
    gap: 8px;
    padding-left: 18px;
}

.compact-list li {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.compact-list li form {
    display: inline;
    margin-left: 8px;
}

.menu-list-actions {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0;
}

.menu-item-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 180px 100px auto auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid #dcdcde; background: #fff; }
.menu-item-fields > label:not(.check) { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 600; }
.menu-item-fields .menu-item-name { grid-column: 1 / -1; }
.menu-item-fields .menu-visibility { display: grid; gap: 4px; align-self: end; font-size: 13px; font-weight: 600; }
.menu-item-fields .menu-visibility .check { min-height: 34px; font-size: 14px; font-weight: 400; white-space: nowrap; }
.menu-item-fields button { align-self: end; }
.page-menu-choices { display: grid; gap: 8px; border: 1px solid #dcdcde; padding: 12px; }
.page-menu-choices legend { font-weight: 600; padding: 0 4px; }
.state-help { display: block; color: #50575e; margin-top: 3px; }
.publication-guidance { background: #f0f6fc; border-left: 4px solid #2271b1; padding: 10px; }
@media (max-width: 1000px) { .menu-item-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .menu-item-fields { grid-template-columns: minmax(0, 1fr); } }

.user-list {
    display: grid;
    gap: 16px;
}

.user-list .editor-box form + form { margin-top: 12px; }

.admin-table {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-collapse: collapse;
    margin-top: 16px;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #dcdcde;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #f6f7f7;
    color: #1d2327;
    font-weight: 600;
}

.admin-table code {
    background: transparent;
    color: #50575e;
}

.check {
    align-items: center;
    display: flex;
    gap: 8px;
}

.check input {
    width: auto;
}

.checkbox-group {
    border: 1px solid #dcdcde;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px;
}

.checkbox-group legend {
    font-weight: 600;
    padding: 0 4px;
}

.slug-validation {
    color: #646970;
    margin: -6px 0 0;
}

.slug-validation.ok {
    color: #008a20;
}

.slug-validation.error {
    color: #b32d2e;
}

.notice {
    border-left: 4px solid #646970;
    padding: 10px 12px;
}

.notice ul {
    margin-bottom: 0;
}

.notice.success {
    background: #f0f6fc;
    border-left-color: #008a20;
}

.notice.error {
    background: #fcf0f1;
    border-left-color: #b32d2e;
    color: #1d2327;
}

.button-secondary {
    background: #f6f7f7;
    border: 1px solid #2271b1;
    border-radius: 3px;
    color: #2271b1;
    min-height: 32px;
    padding: 5px 12px;
    text-decoration: none;
}

.button-secondary:hover {
    background: #f0f6fc;
    color: #135e96;
}

.social-settings { border: 1px solid #dcdcde; padding: 12px; }
.social-settings-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(220px, 3fr) auto; gap: 8px; align-items: end; margin: 8px 0; }
.social-settings-row label { margin: 0; }
.social-settings-row.has-error input { border-color: #b32d2e; }
.social-field-error { color: #b32d2e; font-weight: 600; grid-column: 1 / -1; }
@media (max-width: 650px) { .social-settings-row { grid-template-columns: 1fr; } }

.media-picker-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(180px, 1fr) auto auto;
}

.rich-editor {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    overflow: hidden;
}

.rich-editor-label {
    display: grid;
    gap: 6px;
}

.rich-editor-tabs {
    align-items: flex-end;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
    display: flex;
    gap: 4px;
    padding: 8px 8px 0;
}

.rich-editor-tabs button {
    background: #f0f0f1;
    border-color: #c3c4c7;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    color: #1d2327;
    min-height: 30px;
}

.rich-editor-tabs button.active {
    background: #fff;
    color: #000;
    margin-bottom: -1px;
    padding-bottom: 7px;
}

.rich-toolbar {
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
}

.rich-toolbar select {
    max-width: 140px;
    min-height: 32px;
    width: auto;
}

.rich-toolbar button {
    background: #fff;
    border-color: #8c8f94;
    color: #1d2327;
}

.rich-toolbar button:hover,
.rich-toolbar select:hover {
    border-color: #2271b1;
}

.rich-visual {
    background: #fff;
    min-height: 320px;
    outline: 0;
    overflow: auto;
    padding: 14px;
}

.rich-visual-frame {
    display: block;
    width: 1200px;
    min-height: 520px;
    border: 0;
    background: #fff;
}

.rich-device-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.rich-device-controls button[aria-pressed="true"] { background: #2271b1; border-color: #2271b1; color: #fff; }
.rich-width-label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rich-width-label input { width: 82px; }
.rich-device-controls input[type="range"] { width: 140px; }
.rich-visual-stage { overflow: auto; background: #dcdcde; padding: 12px; }
.rich-visual-stage[data-device="mobile"] .rich-visual-frame { width: 390px; }
.rich-visual-stage[hidden], .rich-device-controls[hidden] { display: none; }

.page-preview-stage .preview-frame { width: 1200px; max-width: none; }
.page-preview-stage[data-device="tablet"] .preview-frame { width: 768px; }
.page-preview-stage[data-device="mobile"] .preview-frame { width: 390px; }
.page-preview-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 20px; background: #fff; border-bottom: 1px solid #c3c4c7; }
.page-preview-toolbar .rich-device-controls { margin: 0 0 0 auto; }

.rich-visual-frame[hidden] {
    display: none;
}

.rich-visual:focus {
    box-shadow: inset 0 0 0 1px #2271b1;
}

.rich-visual h1,
.rich-visual h2,
.rich-visual h3,
.rich-visual h4 {
    line-height: 1.35;
    margin: 1em 0 0.45em;
}

.rich-visual p,
.rich-visual ul,
.rich-visual ol,
.rich-visual blockquote,
.rich-visual table,
.rich-visual figure {
    margin: 0 0 1em;
}

.rich-visual blockquote {
    border-left: 4px solid #dcdcde;
    color: #50575e;
    padding-left: 12px;
}

.rich-visual table {
    border-collapse: collapse;
    width: 100%;
}

.rich-visual th,
.rich-visual td {
    border: 1px solid #dcdcde;
    padding: 8px;
}

.rich-visual img {
    height: auto;
    max-width: 100%;
}

.rich-editor textarea {
    border: 0;
    border-radius: 0;
    font-family: Consolas, Monaco, "Courier New", monospace;
    min-height: 320px;
    resize: vertical;
    width: 100%;
}

.rich-code {
    position: relative;
    background: #fff;
}

.rich-code[hidden],
.rich-code-status[hidden],
[data-rich-check][hidden] {
    display: none;
}

.rich-code pre,
.rich-code textarea {
    box-sizing: border-box;
    font: 14px/1.6 Consolas, Monaco, "Courier New", monospace;
    letter-spacing: normal;
    overflow-wrap: anywhere;
    padding: 14px;
    tab-size: 4;
    white-space: pre-wrap;
}

.rich-code pre {
    inset: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.rich-code.is-highlighted textarea {
    background: transparent;
    caret-color: #1d2327;
    color: transparent;
    position: relative;
    -webkit-text-fill-color: transparent;
    z-index: 1;
}

.rich-code.is-highlighted textarea::selection {
    background: #9dc9f6;
}

.rich-code .token-tag { color: #075cab; }
.rich-code .token-attribute { color: #8b3fa9; }
.rich-code .token-value { color: #a14d13; }
.rich-code .token-comment { color: #64748b; }
.rich-code .token-punctuation { color: #475569; }
.rich-code .token-error { text-decoration: underline wavy #c83030; text-underline-offset: 3px; }

.rich-code-status {
    border-top: 1px solid #dcdcde;
    color: #3c434a;
    font-size: 13px;
    padding: 8px 12px;
}

.rich-code-status.has-errors { color: #a12727; }
.rich-code-status button {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: block;
    font: inherit;
    padding: 4px 0;
    text-align: left;
}

.rich-editor-help {
    background: #f6f7f7;
    border-top: 1px solid #dcdcde;
    color: #646970;
    font-size: 12px;
    margin: 0;
    padding: 8px 10px;
}

.media-dialog {
    border: 1px solid #8c8f94;
    max-width: 860px;
    width: min(860px, calc(100vw - 32px));
}

.media-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    margin-bottom: 16px;
}
.media-selection { border-top: 1px solid #dcdcde; padding: 16px 0; display: grid; gap: 10px; }
.media-selection[hidden] { display: none; }
.media-selection img { max-width: 240px; max-height: 180px; object-fit: contain; }
.media-selection label { display: grid; gap: 4px; }

.media-tile {
    background: #fff;
    border: 1px solid #dcdcde;
    color: #1d2327;
    display: grid;
    gap: 6px;
    min-height: 0;
    padding: 8px;
}

.media-tile img,
.media-thumb {
    aspect-ratio: 1;
    background: #f6f7f7;
    object-fit: cover;
    width: 100%;
}

.media-thumb {
    height: 48px;
    width: 48px;
}

.file-icon {
    background: #d63638;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px;
}

.placeholder-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.placeholder-grid code {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    padding: 8px;
}

.remote-fields {
    display: grid;
    gap: 12px;
}

.media-dialog-upload {
    border-top: 1px solid #dcdcde;
    padding-top: 16px;
}

.danger {
    background: #b32d2e;
    border-color: #b32d2e;
    padding: 5px 10px;
}

.delete-form {
    margin-top: 8px;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.login-box {
    width: min(420px, calc(100vw - 32px));
}

.login-box form {
    display: grid;
    gap: 14px;
}

.error {
    color: #b42318;
}

@media (max-width: 640px) {
    .wp-shell {
        display: block;
    }

    .page-heading {
        display: grid;
    }

    .topbar {
        gap: 6px;
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .topbar span {
        display: none;
    }

    .admin-nav {
        border-top: 1px solid #2c3338;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .admin-nav a {
        border-left: 0;
        border-bottom: 3px solid transparent;
        flex: 0 0 auto;
        padding: 10px 12px 7px;
    }

    .admin-nav a.child {
        padding-left: 12px;
    }

    .admin-nav a.active,
    .admin-nav a:hover {
        border-bottom-color: #72aee6;
    }

    .admin-nav-title {
        display: none;
    }

    .admin {
        padding: 16px;
    }
    .nav-group[open] { display: flex; flex-wrap: wrap; }
    .nav-group summary { padding: 8px 16px; }
}
[hidden] { display: none !important; }
.media-dialog { max-height: 85vh; overflow-y: auto; border-radius: 8px; padding: 24px; }
.media-dialog::backdrop { background: #10182088; }
.media-tile:focus-visible { outline: 3px solid #2271b1; }
.revision-compare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.revision-compare pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; background: #f6f7f7; padding: 12px; }
@media(max-width:700px) { .revision-compare { grid-template-columns: 1fr; } }
/* Navigation, explicit editing context, and plugin workspaces. */
.wp-shell { grid-template-columns: 220px minmax(0,1fr); grid-template-rows: auto 1fr; background: linear-gradient(to right,#1d2327 220px,transparent 220px); }
.topbar { flex-wrap: wrap; gap: 12px 20px; padding: 12px 16px 0; }
.topbar-brand > strong { font-size: 16px; letter-spacing: .02em; margin-right: 8px; }
.topbar-account .account-email { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-context { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; flex: 1 0 calc(100% + 32px); margin: 0 -16px; padding: 14px 24px; border-bottom: 1px solid #ccd8e5; background: #f7fbff; color: #172d43; }
.workspace-current { display: grid; gap: 3px; flex: 1 1 230px; min-width: 0; }
.workspace-current strong { font-size: 18px; overflow-wrap: anywhere; }
.topbar .workspace-label { display: block; color: #52677a; font-size: 12px; }
.topbar .workspace-domain { display: block; color: #536575; font-size: 13px; overflow-wrap: anywhere; }
.site-switcher { display: grid; grid-template-columns: minmax(220px,340px) auto; align-items: center; gap: 5px 8px; margin: 0; max-width: 100%; }
.site-switcher label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; }
.site-switcher select, .site-switcher button { min-height: 40px; }
.site-switcher select { min-width: 0; width: 100%; }
.site-switcher button { white-space: nowrap; }
.admin-nav { align-self: start; position: sticky; top: 0; min-height: 0; max-height: 100vh; overflow-y: auto; padding-top: 12px; }
.nav-group { margin-bottom: 5px; }
.nav-group summary { position: relative; padding: 12px 34px 12px 18px; color: #c7cdd3; font-size: 13px; font-weight: 600; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: '›'; position: absolute; right: 18px; top: 9px; font-size: 20px; transform: rotate(0); }
.nav-group[open] summary::after { transform: rotate(90deg); }
.nav-group summary:hover { color: #fff; background: #29343e; }
.admin-nav a { min-height: 40px; padding: 10px 16px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-nav a.child { padding-left: 28px; font-size: 13px; }
.admin-nav a.active { background: #14344d; border-left-color: #8dccff; font-weight: 600; }
.admin-nav a:focus-visible, .plugin-tabs a:focus-visible, .plugin-workspace summary:focus-visible, .button-primary:focus-visible { outline: 3px solid #72aee6; outline-offset: -3px; }
.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px solid #2271b1; border-radius: 5px; padding: 8px 15px; background: #2271b1; color: #fff; text-decoration: none; font-weight: 600; }
.button-primary:hover { background: #135e96; color: #fff; }
.plugin-workspace { min-width: 0; }
.plugin-page-heading { margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.plugin-tabs { display: flex; gap: 4px; border-bottom: 1px solid #cbd5df; margin-bottom: 24px; overflow-x: auto; }
.plugin-tabs > a { flex: 0 0 auto; padding: 11px 18px; min-height: 44px; border-bottom: 3px solid transparent; color: #526475; text-decoration: none; white-space: nowrap; }
.plugin-tabs > a[aria-current] { color: #164f7e; border-bottom-color: #2271b1; font-weight: 700; }
.plugin-tabs > a:hover { background: #eaf1f8; }
.plugin-tabs > .plugin-tab-disabled { flex: 0 0 auto; padding: 11px 18px; min-height: 44px; color: #85919e; white-space: nowrap; }
.plugin-tabs > a span { display: inline-block; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: #e1e8f0; font-size: 12px; }
.plugin-list-panel { padding: 0; overflow: hidden; }
.plugin-list-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px 24px; background: #f8fafc; border-bottom: 1px solid #dce3eb; }
.plugin-list-toolbar .status-tabs { gap: 14px; }
.plugin-search { display: flex; gap: 8px; align-items: center; margin: 0; }
.plugin-search input { max-width: 240px; min-width: 0; }
.plugin-card { padding: 24px; border-bottom: 1px solid #dce3eb; scroll-margin-top: 20px; }
.plugin-card:last-child { border-bottom: 0; }
.plugin-card-heading, .plugin-heading-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.plugin-card-heading { justify-content: space-between; gap: 12px; }
.plugin-heading-line h1, .plugin-heading-line h2, .plugin-heading-line h3 { margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.plugin-card h2 { font-size: 18px; font-weight: 650; }
.plugin-description { margin: 12px 0 6px; max-width: 760px; color: #374b5e; }
.plugin-meta { font-size: 12px; color: #607284; margin: 6px 0 16px; overflow-wrap: anywhere; }
.plugin-status, .plugin-scope { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.plugin-status.is-active { color: #19623a; background: #e7f5ec; }
.plugin-status.is-inactive { color: #526270; background: #eef1f4; }
.plugin-status.is-suspended { color: #805c08; background: #fff2d4; }
.plugin-scope { color: #36566f; background: #edf3f9; }
.plugin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.plugin-actions form { margin: 0; }
.plugin-workspace button, .plugin-workspace .button-secondary { min-height: 40px; width: auto; border-radius: 5px; }
.plugin-workspace .button-secondary { display: inline-flex; align-items: center; justify-content: center; border-color: #a5b9cc; color: #245780; background: #fff; }
.plugin-workspace .button-secondary:hover { border-color: #2271b1; color: #164f7e; background: #edf4fb; }
.plugin-workspace .button-text { padding: 6px 2px; border-color: transparent; background: transparent; color: #526475; }
.plugin-workspace .button-text:hover { color: #174f7c; text-decoration: underline; }
.plugin-activation { margin-top: 14px; }
.plugin-activation > summary { width: fit-content; padding: 8px 14px; min-height: 40px; border: 1px solid #2271b1; border-radius: 5px; color: #1d639a; font-weight: 600; cursor: pointer; }
.plugin-activation form { margin-top: 12px; max-width: 620px; padding: 16px; background: #f7fafc; border: 1px solid #dce3eb; border-radius: 6px; }
.plugin-activation p { margin: 0; }
.plugin-advanced { margin-top: 18px; padding-top: 12px; border-top: 1px solid #edf0f3; }
.plugin-advanced > summary, .plugin-recovery > summary, .plugin-maintenance > summary { padding: 6px 0; font-weight: 600; color: #526475; cursor: pointer; }
.plugin-advanced-body { padding-top: 10px; max-width: 850px; }
.plugin-advanced h3 { font-size: 14px; }
.plugin-details { display: grid; grid-template-columns: minmax(110px,160px) minmax(0,1fr); gap: 8px 16px; font-size: 13px; }
.plugin-details dt { font-weight: 600; color: #526475; }
.plugin-details dd { margin: 0; overflow-wrap: anywhere; }
.plugin-detail-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid #dce3eb; }
.plugin-detail-section h3 { margin-top: 0; }
.plugin-detail-section .form-grid, .plugin-recovery form { margin-top: 12px; }
.plugin-safety-note { color: #647487; font-size: 12px; margin: -6px 0 24px; }
.plugin-empty { text-align: center; padding: 36px 20px 44px; }
.plugin-empty h2 { font-size: 18px; }
.plugin-empty p, .plugin-empty-copy { color: #607284; }
.plugin-maintenance { color: #526475; }
.plugin-maintenance h2 { font-size: 17px; margin-top: 24px; }
.plugin-maintenance .plugin-actions + .plugin-actions { margin-top: 12px; }
.plugin-steps { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0 0 24px; color: #607284; }
.plugin-steps li { padding: 8px 14px; border-radius: 5px; background: #e9edf2; }
.plugin-steps li[aria-current] { background: #dfefff; color: #174f7c; font-weight: 700; }
.plugin-library { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 18px; margin-top: 20px; }
.plugin-library-card { border: 1px solid #d8e2ec; border-radius: 8px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.plugin-library-card h3, .plugin-library-card p { margin: 0; }
.plugin-library-card form { margin-top: auto; padding-top: 6px; }
.plugin-install-preview details { margin: 18px 0; }
.plugin-install-preview .form-grid { margin-top: 20px; }
.plugin-upload form { max-width: 650px; }
.plugin-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #607284; margin-bottom: 18px; }
.plugin-workspace-heading { margin: 0 0 22px; }
.plugin-workspace-heading h1 { font-size: 24px; font-weight: 650; }
.plugin-workspace-heading p { color: #526475; margin: 10px 0 6px; }
.plugin-settings-panel h2 { margin-top: 0; font-size: 19px; }
.plugin-settings-form { max-width: 760px; margin-top: 24px; gap: 22px; }
.plugin-setting-field { display: grid; gap: 7px; min-width: 0; }
.plugin-setting-field > label:not(.check) { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.plugin-setting-field small, .plugin-form-footer small { color: #607284; font-size: 12px; }
.plugin-setting-field input:not([type=checkbox]), .plugin-setting-field select { min-height: 42px; }
.plugin-setting-field textarea { min-height: 130px; font: inherit; resize: vertical; }
.plugin-setting-field .check, .plugin-workspace .check { align-items: flex-start; line-height: 1.6; gap: 10px; }
.plugin-workspace .check input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: #2271b1; }
.field-required { font-size: 11px; font-weight: 400; color: #6b5961; background: #f3edf0; padding: 1px 6px; border-radius: 3px; }
.plugin-form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 18px; border-top: 1px solid #dce3eb; }
.site-management-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; }
.site-management-picker label { font-weight: 600; }
.site-management-picker select { width: auto; max-width: 100%; flex: 1 1 260px; }
.site-row-url { display: block; color: #607284; font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.site-management-table td { padding-top: 18px; padding-bottom: 18px; }
.site-management-table td:first-child { min-width: 200px; }
.member-role-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.member-role-form select { width: auto; max-width: 100%; flex: 1 1 230px; }
.site-choice-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; }
.site-choice { border: 1px solid #dce3eb; border-radius: 8px; padding: 20px; }
.site-choice h2 { font-size: 18px; margin: 0; }
.site-choice p { color: #607284; overflow-wrap: anywhere; }
@media(max-width:850px) {
    .workspace-current { flex-basis: 100%; }
    .site-switcher { grid-template-columns: minmax(0,1fr) auto; width: 100%; }
}
@media(max-width:640px) {
    .wp-shell { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto 1fr; background: none; }
    .admin-nav { position: static; max-height: none; min-height: 0; padding: 8px 0; }
    .admin-nav .nav-group[open] { display: block; }
    .admin-nav .nav-group summary { padding: 12px 36px 12px 16px; }
    .admin-nav a { border-bottom: 0; border-left: 4px solid transparent; }
    .admin-nav a.active { border-left-color: #8dccff; }
    .admin-nav a.child { padding-left: 28px; }
    .admin { grid-column: 1; padding: 20px 16px; }
    .topbar { padding: 12px 16px 0; }
    .topbar-brand { flex-wrap: wrap; }
    .topbar-account { flex-wrap: wrap; gap: 12px; }
    .workspace-context { padding: 14px 16px; gap: 12px; }
    .workspace-current strong { font-size: 17px; }
    .plugin-card, .plugin-list-toolbar { padding: 18px; }
    .plugin-search { width: 100%; }
    .plugin-search input { flex: 1; max-width: none; }
    .plugin-card-heading { align-items: flex-start; }
    .plugin-details { grid-template-columns: 1fr; gap: 4px; }
    .plugin-details dd { margin-bottom: 10px; }
    .plugin-library { grid-template-columns: 1fr; }
    .plugin-form-footer { align-items: flex-start; }
    .site-management-picker, .member-role-form { align-items: stretch; }
    .site-management-picker select { flex-basis: 100%; }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
