@import url("../uif/uif.css");

:root {
    color-scheme: light;
    --bp-bg: #f5f7f9;
    --bp-bg-strong: #eef2f5;
    --bp-panel: #ffffff;
    --bp-panel-soft: #f8fafc;
    --bp-text: #111827;
    --bp-muted: #5b6773;
    --bp-line: #e1e6ec;
    --bp-accent: #0e68b0;
    --bp-accent-dark: #07497c;
    --bp-success: #00b696;
    --bp-danger: #dc2626;
    --bp-amber: #b45309;
    --bp-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    --bp-shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
    --bp-radius: 0.15rem;
}

.bp-uif-surface {
    background: var(--uif-surface-elevated, #ffffff);
    border: 1px solid var(--uif-border, var(--bp-line));
    border-radius: var(--bp-radius);
}

.bp-uif-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bp-uif-button,
.bp-uif-button-secondary {
    align-items: center;
    border-radius: var(--bp-radius);
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
}

.bp-uif-button {
    background: var(--bp-accent);
    border: 1px solid var(--bp-accent);
    color: #fff;
}

.bp-uif-button-secondary {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    color: var(--bp-text);
}

.bp-uif-notice,
.bp-uif-danger {
    border-radius: var(--bp-radius);
    padding: 12px 14px;
}

.bp-uif-notice {
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    color: #115e59;
}

.bp-uif-danger {
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.bp-uif-table {
    border-collapse: collapse;
    width: 100%;
}

.bp-uif-table th,
.bp-uif-table td {
    border-bottom: 1px solid var(--bp-line);
    padding: 10px 8px;
    text-align: left;
}

.bp-uif-field {
    display: grid;
    gap: 6px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bp-bg);
    color: var(--bp-text);
    font-family: "proxima-nova", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.bp-admin-shell h1,
.bp-admin-shell h2,
.bp-admin-shell h3,
.bp-admin-shell h4,
.bp-admin-shell strong,
.bp-admin-shell b,
.bp-admin-shell button,
.bp-admin-shell .bp-button,
.bp-admin-shell .uif-editor-button,
.bp-admin-shell .uif-button {
    font-weight: 600;
}

a {
    color: var(--bp-accent-dark);
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 12px;
}

p {
    margin: 0 0 14px;
}

.bp-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bp-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(217, 222, 232, 0.82);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.bp-nav {
    max-width: 1040px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.bp-brand {
    align-items: center;
    color: var(--bp-text);
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 600;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
}

.bp-brand-logo {
    display: block;
    flex: 0 1 auto;
    height: 42px;
    max-width: min(240px, 38vw);
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.bp-brand-name {
    overflow-wrap: anywhere;
}

.bp-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.bp-links a {
    border-radius: 6px;
    color: var(--bp-muted);
    font-weight: 600;
    padding: 6px 8px;
    text-decoration: none;
}

.bp-links a:hover {
    background: #eef7f5;
    color: var(--bp-accent-dark);
}

.bp-main {
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: 48px 20px;
}

.bp-article {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow);
    padding: clamp(24px, 5vw, 44px);
}

.bp-article h1 {
    margin-top: 0;
    line-height: 1.15;
}

.bp-meta,
.bp-footer {
    color: var(--bp-muted);
}

.bp-footer {
    padding-top: 18px;
}

.bp-post-list {
    display: grid;
    gap: 16px;
    padding: 0;
    list-style: none;
}

.bp-post-list li {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    padding: 22px;
}

.bp-post-list h2 {
    font-size: 1.15rem;
}

.bp-admin {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow);
    width: min(1040px, calc(100% - 32px));
    margin: 40px auto;
    padding: clamp(22px, 4vw, 36px);
}

.bp-admin-shell {
    display: grid;
    grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
    min-height: 100vh;
}

.bp-admin-sidebar {
    background: var(--bp-panel);
    border-right: 1px solid var(--bp-line);
    color: var(--bp-text);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
    padding: 0;
    position: sticky;
    top: 0;
}

.bp-admin-brand {
    align-items: center;
    border-bottom: 1px solid var(--bp-line);
    display: flex;
    gap: 10px;
    min-height: 64px;
    padding: 13px 16px;
}

.bp-admin-brand div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.bp-admin-brand span {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.bp-admin-brand small {
    color: var(--bp-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.bp-admin-brand-mark {
    align-items: center;
    background: rgba(14, 104, 176, 0.08);
    border: 1px solid rgba(14, 104, 176, 0.22);
    border-radius: var(--bp-radius);
    color: var(--bp-accent-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 600;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.bp-admin-brand-mark img {
    display: block;
    height: 26px;
    object-fit: contain;
    width: 26px;
}

.bp-admin-sidebar-nav {
    align-content: start;
    display: grid;
    gap: 12px;
    overflow: auto;
    padding: 12px 10px 16px;
}

.bp-admin-sidebar-nav section {
    display: grid;
    gap: 6px;
}

.bp-admin-sidebar-nav h2 {
    color: var(--bp-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 2px;
    padding: 0 9px;
    text-transform: uppercase;
}

.bp-admin-sidebar-nav a {
    align-items: center;
    border-radius: var(--bp-radius);
    border: 1px solid transparent;
    color: var(--bp-muted);
    display: flex;
    font-size: 0.92rem;
    gap: 8px;
    font-weight: 500;
    min-height: 32px;
    padding: 6px 9px;
    text-decoration: none;
}

.bp-admin-sidebar-nav a:hover,
.bp-admin-sidebar-nav a.is-active {
    background: #f3f4f6;
    color: var(--bp-text);
}

.bp-admin-sidebar-nav a.is-active {
    background: #e6f4ff;
    border-color: transparent;
    color: var(--bp-accent-dark);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--bp-accent);
}

.bp-nav-icon {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.bp-nav-label {
    min-width: 0;
}

.bp-admin-sidebar-footer {
    align-items: center;
    border-top: 1px solid var(--bp-line);
    color: var(--bp-muted);
    display: flex;
    gap: 10px;
    min-height: 56px;
    padding: 10px 16px;
}

.bp-admin-sidebar-footer strong,
.bp-admin-sidebar-footer small {
    display: block;
}

.bp-admin-sidebar-footer strong {
    color: var(--bp-text);
    font-size: 0.82rem;
    font-weight: 600;
}

.bp-admin-sidebar-footer small {
    font-size: 0.78rem;
}

.bp-status-dot {
    background: var(--bp-success);
    border-radius: 999px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bp-success), transparent 84%);
    display: inline-block;
    height: 9px;
    width: 9px;
}

.bp-svg-icon {
    display: block;
    fill: none;
    height: 1em;
    min-height: 1em;
    min-width: 1em;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1em;
}

.bp-nav-icon .bp-svg-icon {
    font-size: 0.95rem;
}

.bp-admin-workspace {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
}

.bp-admin-topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--bp-line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 24px;
    position: sticky;
    top: 0;
    z-index: 8;
    backdrop-filter: blur(12px);
}

.bp-admin-topbar-title {
    display: grid;
    gap: 1px;
}

.bp-admin-topbar strong {
    font-size: 0.94rem;
    font-weight: 600;
}

.bp-admin-topbar span {
    color: var(--bp-muted);
    font-size: 0.82rem;
}

.bp-admin-topbar nav,
.bp-admin-page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.bp-topbar-logout {
    display: inline-flex;
    margin: 0;
}

.bp-admin-command {
    align-items: center;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    color: var(--bp-muted);
    display: flex;
    gap: 8px;
    max-width: 360px;
    min-height: 36px;
    padding: 0 10px;
    width: min(32vw, 360px);
}

.bp-admin-command span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bp-admin-command input {
    background: transparent;
    border: 0;
    color: var(--bp-muted);
    min-width: 0;
    outline: 0;
    width: 100%;
}

.bp-admin-shell .bp-admin {
    border: 0;
    box-shadow: none;
    margin: 0;
    min-height: 0;
    overflow: visible;
    padding: clamp(20px, 2.2vw, 28px);
    width: 100%;
}

.bp-admin-statusbar {
    align-items: center;
    background: var(--bp-panel);
    border-top: 1px solid var(--bp-line);
    color: var(--bp-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    min-height: 38px;
    padding: 8px 24px;
    font-size: 0.82rem;
}

.bp-status-pill {
    align-items: center;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 600;
    gap: 6px;
    padding: 3px 8px;
}

.bp-status-pill i {
    background: var(--bp-success);
    border-radius: 999px;
    height: 7px;
    width: 7px;
}

.bp-admin-auth {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 24px;
}

.bp-admin-auth .bp-admin {
    margin: 0 auto;
    max-width: 520px;
}

.bp-admin-auth-brand {
    margin-bottom: 20px;
}

.bp-admin-page-header {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bp-admin-page-header h1 {
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    font-weight: 600;
    letter-spacing: 0;
}

.bp-admin-page-header p {
    color: var(--bp-muted);
    margin: 0;
    max-width: 720px;
}

.bp-admin-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin: 0 0 14px;
}

.bp-admin-stats-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.bp-admin-stat {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow);
    padding: 12px 14px;
}

.bp-admin-stat-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.bp-admin-stat-icon {
    align-items: center;
    background: rgba(14, 104, 176, 0.08);
    border-radius: var(--bp-radius);
    color: var(--bp-accent-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 600;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.bp-admin-stat-icon .bp-svg-icon,
.bp-admin-action-card em .bp-svg-icon {
    font-size: 1rem;
}

.bp-admin-stat dt {
    color: var(--bp-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.bp-admin-stat dd {
    color: var(--bp-text);
    font-size: 1.18rem;
    font-weight: 600;
    margin: 4px 0 0;
}

.bp-admin-stat p {
    color: var(--bp-muted);
    font-size: 0.8rem;
    margin: 4px 0 0;
}

.bp-admin-section {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow);
    margin: 0 0 14px;
    padding: 16px;
}

.bp-admin-section > header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bp-admin-section h2 {
    font-size: 0.98rem;
    font-weight: 600;
}

.bp-admin-section header p {
    color: var(--bp-muted);
    font-size: 0.84rem;
    margin: 0;
}

.bp-admin-action-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-admin-action-card {
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    color: var(--bp-text);
    display: grid;
    gap: 5px;
    min-height: 96px;
    padding: 12px;
    text-decoration: none;
}

.bp-admin-action-card em {
    align-items: center;
    background: rgba(14, 104, 176, 0.08);
    border-radius: var(--bp-radius);
    color: var(--bp-accent-dark);
    display: inline-flex;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 600;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.bp-admin-action-card:hover {
    background: var(--bp-panel-soft);
    border-color: rgba(14, 104, 176, 0.24);
}

.bp-admin-action-card.is-active-theme {
    background: #e6f4ff;
    border-color: var(--bp-accent);
    box-shadow: inset 3px 0 0 var(--bp-accent);
}

.bp-admin-action-card.is-active-theme > strong {
    color: var(--bp-accent-dark);
}

.bp-admin-action-card span {
    color: var(--bp-muted);
    font-size: 0.84rem;
}

.bp-admin-action-card .bp-button span,
.bp-admin-action-card button span {
    color: inherit;
}

.bp-admin-action-card .bp-uif-toolbar {
    align-items: stretch;
    margin-top: 6px;
}

.bp-admin-action-card .bp-inline-form {
    align-items: center;
    display: flex;
    gap: 6px;
    margin: 0;
}

.bp-admin-action-card .bp-inline-form input[type="text"] {
    min-width: 110px;
}

.bp-reorder-row {
    position: relative;
}

.bp-reorder-actions {
    align-items: center;
    display: flex;
    gap: 4px;
}

.bp-form .bp-reorder-actions button {
    min-height: 32px;
    padding: 5px 9px;
}

.bp-widget-rows {
    display: grid;
    gap: 12px;
}

.bp-widget-rows .bp-reorder-row {
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    display: grid;
    gap: 10px;
    padding: 12px;
}

.bp-command-hero {
    align-items: end;
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 0 16px;
    padding: 18px 20px;
}

.bp-command-hero h1 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 5px;
}

.bp-command-hero p {
    margin: 0;
}

.bp-command-hero p:not(.bp-section-kicker) {
    color: var(--bp-muted);
    font-size: 0.94rem;
    max-width: 680px;
}

.bp-command-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.bp-workflow-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-workflow-step {
    align-items: flex-start;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    display: flex;
    gap: 10px;
    padding: 12px;
}

.bp-workflow-step > span {
    align-items: center;
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: 999px;
    color: var(--bp-muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 600;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.bp-workflow-step strong {
    display: block;
    margin-bottom: 4px;
}

.bp-workflow-step p {
    color: var(--bp-muted);
    font-size: 0.82rem;
    margin: 0;
}

.bp-workflow-step.is-complete > span {
    background: var(--bp-success);
    border-color: var(--bp-success);
    color: #fff;
}

.bp-workflow-step.is-current {
    background: #e6f4ff;
    border-color: rgba(14, 104, 176, 0.28);
}

.bp-workflow-step.is-current > span {
    background: var(--bp-accent);
    border-color: var(--bp-accent);
    color: #fff;
}

.bp-admin-guidance-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-admin-guidance-grid article {
    align-items: flex-start;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    display: flex;
    gap: 10px;
    padding: 12px;
}

.bp-admin-guidance-grid span {
    align-items: center;
    background: rgba(14, 104, 176, 0.08);
    border-radius: var(--bp-radius);
    color: var(--bp-accent-dark);
    display: inline-flex;
    flex: 0 0 auto;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.bp-admin-guidance-grid strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.bp-admin-guidance-grid p {
    color: var(--bp-muted);
    font-size: 0.84rem;
    margin: 0;
}

.bp-dashboard-columns {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bp-chart-card,
.bp-dashboard-columns > .bp-admin-section {
    margin-bottom: 14px;
}

.bp-dashboard-chart {
    margin: 0 0 10px;
    max-height: 170px;
}

.bp-dashboard-chart text {
    font-weight: 600;
}

.bp-chart-legend {
    border-top: 1px solid var(--bp-line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 12px;
}

.bp-chart-legend span {
    align-items: center;
    color: var(--bp-muted);
    display: inline-flex;
    font-size: 0.82rem;
    gap: 6px;
}

.bp-chart-legend i {
    border-radius: 999px;
    display: inline-block;
    height: 8px;
    width: 8px;
}

.bp-readiness-list {
    display: grid;
    gap: 8px;
}

.bp-readiness-list > div {
    align-items: center;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 9px 10px;
}

.bp-readiness-list span {
    align-items: center;
    background: rgba(0, 182, 150, 0.1);
    border-radius: var(--bp-radius);
    color: var(--bp-success);
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.bp-readiness-list strong,
.bp-readiness-list small {
    display: block;
}

.bp-readiness-list small {
    color: var(--bp-muted);
    font-size: 0.82rem;
}

.bp-readiness-list em {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: 999px;
    color: var(--bp-muted);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 600;
    padding: 3px 8px;
}

.bp-mini-panel {
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    padding: 12px;
}

.bp-mini-panel h3 {
    font-size: 0.96rem;
    margin-bottom: 10px;
}

.bp-content-mini-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-content-mini-list li {
    align-items: center;
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: 6px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 9px 10px;
}

.bp-content-mini-list strong,
.bp-content-mini-list span {
    display: block;
}

.bp-content-mini-list span {
    color: var(--bp-muted);
    font-size: 0.8rem;
}

.bp-content-mini-list a {
    font-weight: 600;
}

.bp-dashboard-logout {
    justify-content: flex-end;
}

.bp-admin-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
}

.bp-admin-section-wide {
    grid-column: span 2;
}

.bp-compact-form {
    margin-top: 0;
}

.bp-admin-toolbar {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 0 0 16px;
}

.bp-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bp-admin-tab {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: 999px;
    color: var(--bp-muted);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 7px 10px;
}

.bp-admin-tab.is-active {
    background: #ecfdf5;
    border-color: #99f6e4;
    color: var(--bp-accent-dark);
}

.bp-admin-search {
    align-items: center;
    color: var(--bp-muted);
    display: flex;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
}

.bp-admin-search input {
    border: 1px solid var(--bp-line);
    border-radius: 6px;
    color: var(--bp-muted);
    min-height: 36px;
    padding: 8px 10px;
    width: 180px;
}

.bp-admin-search span,
.bp-field-help,
.bp-muted {
    color: var(--bp-muted);
    font-size: 0.86rem;
}

.bp-table-wrap {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    overflow-x: auto;
}

.bp-table-wrap .bp-table {
    margin-top: 0;
}

.bp-content-table td strong,
.bp-content-table td small {
    display: block;
}

.bp-content-table td small {
    color: var(--bp-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.bp-audit-details {
    display: grid;
    gap: 3px;
    max-width: 360px;
}

.bp-audit-details span {
    color: var(--bp-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.bp-audit-details strong {
    color: var(--bp-text);
    display: inline;
    font-weight: 600;
}

.bp-audit-filter-form {
    max-width: none;
}

.bp-audit-tools {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bp-audit-tools h3 {
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.bp-audit-tools p {
    color: var(--bp-muted);
    margin: 0 0 10px;
}

.bp-audit-tools .bp-inline-form {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.bp-audit-tools input[type='number'] {
    max-width: 160px;
}

.bp-aif-readiness {
    align-items: center;
}

.bp-aif-requirements {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-aif-requirements li {
    align-items: center;
    border-bottom: 1px solid var(--bp-line);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 8px 0;
}

.bp-aif-requirements li:last-child {
    border-bottom: 0;
}

.bp-aif-requirements strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.bp-aif-editor-panel header {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.bp-aif-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bp-aif-actions .bp-button {
    min-height: 34px;
    padding: 7px 10px;
}

.bp-aif-result {
    background: #f8fafc;
    border: 1px solid var(--bp-line);
    border-left: 3px solid var(--bp-blue);
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
}

.bp-aif-result.is-error {
    border-left-color: #b91c1c;
    color: #991b1b;
}

.bp-aif-result article {
    border-top: 1px solid var(--bp-line);
    display: grid;
    gap: 7px;
    padding-top: 10px;
}

.bp-aif-result article:first-of-type {
    border-top: 0;
}

.bp-aif-result article > strong {
    font-size: 0.78rem;
    text-transform: capitalize;
}

.bp-aif-result article p {
    color: var(--bp-text);
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.bp-aif-result .bp-button {
    justify-self: start;
}

.bp-aif-score {
    color: var(--bp-accent-dark);
    font-size: 1rem;
}

.bp-aif-checks {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-aif-checks li {
    font-size: 0.82rem;
    padding-left: 18px;
    position: relative;
}

.bp-aif-checks li::before {
    content: '•';
    left: 4px;
    position: absolute;
}

.bp-aif-checks .is-passed::before {
    color: var(--bp-success);
}

.bp-aif-checks .is-warning::before {
    color: #b45309;
}

.bp-user-role-guide {
    display: grid;
    gap: 12px;
    margin: 0;
}

.bp-user-role-guide div {
    border-bottom: 1px solid var(--bp-line);
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
}

.bp-user-role-guide div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.bp-user-role-guide dt {
    color: var(--bp-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.bp-user-role-guide dd {
    color: var(--bp-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
}

.bp-admin-checklist {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-admin-checklist li {
    align-items: flex-start;
    color: var(--bp-muted);
    display: flex;
    font-size: 0.88rem;
    gap: 9px;
    line-height: 1.45;
}

.bp-admin-checklist .bp-svg-icon {
    color: var(--bp-success);
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

.bp-pagination {
    align-items: center;
    border-top: 1px solid var(--bp-line);
    color: var(--bp-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding-top: 14px;
}

.bp-pagination > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bp-status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    padding: 7px 9px;
}

.bp-status-badge.is-published {
    background: #ecfdf5;
    color: #047857;
}

.bp-status-badge.is-draft {
    background: #fffbeb;
    color: #92400e;
}

.bp-status-badge.is-in-review,
.bp-status-badge.is-scheduled {
    background: #eff6ff;
    color: #0e68b0;
}

.bp-status-badge.is-approved {
    background: #ecfdf5;
    color: #047857;
}

.bp-status-badge.is-archived {
    background: #f3f4f6;
    color: #4b5563;
}

.bp-workflow-history {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.bp-workflow-history summary {
    color: #0e68b0;
    cursor: pointer;
    font-weight: 600;
}

.bp-workflow-history ol {
    margin: 0.65rem 0 0;
    padding-left: 1.2rem;
}

.bp-workflow-history li + li {
    margin-top: 0.55rem;
}

.bp-workflow-history small {
    display: block;
    color: #6b7280;
}

.bp-status-badge.is-disabled {
    background: #fef2f2;
    color: #991b1b;
}

.bp-role-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    padding: 7px 9px;
}

.bp-role-badge.is-owner {
    background: #e0f2fe;
    color: #075985;
}

.bp-role-badge.is-admin {
    background: #eef2ff;
    color: #3730a3;
}

.bp-role-badge.is-editor {
    background: #ecfdf5;
    color: #047857;
}

.bp-role-badge.is-author {
    background: #eff6ff;
    color: #1d4ed8;
}

.bp-role-badge.is-viewer {
    background: #f8fafc;
    color: #475569;
}

.bp-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bp-table-actions form {
    margin: 0;
}

.bp-table-actions a {
    font-weight: 600;
}

.bp-link-button {
    background: transparent;
    border: 0;
    color: var(--bp-accent);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0;
}

.bp-link-danger {
    color: var(--bp-danger);
}

.bp-filter-form {
    align-items: end;
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 200px) minmax(160px, 210px) max-content;
    margin: 16px 0;
    padding: 12px;
    width: 100%;
}

.bp-admin-grid > .bp-filter-form {
    grid-column: 1 / -1;
}

.bp-filter-form-media {
    grid-template-columns: minmax(260px, 1fr) minmax(130px, 170px) minmax(150px, 190px) max-content;
}

.bp-filter-form-compact {
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 200px) max-content;
}

.bp-filter-field {
    display: grid;
    gap: 5px;
    margin: 0;
}

.bp-filter-field label {
    color: var(--bp-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.bp-filter-field input,
.bp-filter-field select {
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    box-sizing: border-box;
    color: var(--bp-text);
    font: inherit;
    height: 38px;
    margin: 0;
    min-height: 38px;
    padding: 8px 10px;
    width: 100%;
}

.bp-filter-field-search input {
    min-width: 0;
}

.bp-filter-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
}

.bp-filter-actions button {
    align-items: center;
    background: var(--bp-accent);
    border: 1px solid var(--bp-accent);
    border-radius: var(--bp-radius);
    box-sizing: border-box;
    box-shadow: 0 1px 1px rgba(16, 24, 40, 0.08);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    gap: 7px;
    justify-content: center;
    height: 38px;
    min-height: 38px;
    padding: 8px 13px;
    white-space: nowrap;
}

.bp-filter-actions .bp-button {
    box-sizing: border-box;
    height: 38px;
    min-height: 38px;
    white-space: nowrap;
}

.bp-empty-state {
    background: var(--bp-panel);
    border: 1px dashed #b8c1d1;
    border-radius: var(--bp-radius);
    padding: clamp(22px, 4vw, 36px);
    text-align: center;
}

.bp-empty-state p {
    color: var(--bp-muted);
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
}

.bp-danger-zone {
    border-color: #fecaca;
}

.bp-danger-zone > header h2 {
    color: #991b1b;
}

.bp-danger-action button {
    background: #b91c1c;
}

.bp-check-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.bp-check-list li {
    padding-left: 4px;
}

.bp-admin-body,
.bp-install-body {
    min-height: 100vh;
}

.bp-installer-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) 0;
}

.bp-installer-hero {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.bp-installer-hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: 0;
}

.bp-installer-hero p {
    color: var(--bp-muted);
    font-size: 1.05rem;
    max-width: 620px;
}

.bp-installer-badge,
.bp-section-kicker {
    color: var(--bp-accent-dark);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.bp-installer-badge {
    background: rgba(0, 182, 150, 0.1);
    border: 1px solid rgba(0, 182, 150, 0.28);
    border-radius: 999px;
    flex: 0 0 auto;
    padding: 8px 12px;
}

.bp-installer-panel {
    box-shadow: var(--bp-shadow);
    margin: 12vh auto 0;
    max-width: 680px;
    padding: clamp(24px, 5vw, 40px);
}

.bp-admin-nav,
.bp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.bp-admin-nav a,
.bp-button {
    align-items: center;
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    color: var(--bp-text);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 600;
    gap: 7px;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    text-decoration: none;
}

.bp-button-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.bp-button-icon .bp-svg-icon {
    font-size: 1rem;
}

.bp-button {
    background: var(--bp-accent);
    border-color: var(--bp-accent);
    color: #fff;
    box-shadow: 0 1px 1px rgba(16, 24, 40, 0.08);
}

.bp-admin-nav a:hover,
.bp-button:hover,
.bp-form button:hover,
.bp-inline-form button:hover {
    filter: brightness(0.96);
}

.bp-button-secondary {
    background: var(--bp-panel);
    border-color: var(--bp-line);
    color: var(--bp-text);
    box-shadow: none;
}

.bp-button-danger {
    color: var(--bp-danger);
}

.bp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.bp-stats div {
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    padding: 16px;
}

.bp-stats dt {
    color: var(--bp-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.bp-stats dd {
    margin: 4px 0 0;
    color: var(--bp-text);
    font-weight: 600;
}

.bp-checks .is-ok {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.bp-checks .is-error {
    border-color: #fecaca;
    background: #fff1f2;
}

.bp-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.bp-installer-form {
    box-shadow: var(--bp-shadow);
    padding: clamp(20px, 4vw, 32px);
}

.bp-form-section {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.4fr);
    padding: 0 0 22px;
}

.bp-form-section + .bp-form-section {
    border-top: 1px solid var(--bp-line);
    padding-top: 22px;
}

.bp-form-section h2 {
    font-size: 1rem;
}

.bp-form-section p {
    color: var(--bp-muted);
    font-size: 0.92rem;
}

.bp-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bp-field-wide {
    grid-column: 1 / -1;
}

.bp-form-actions {
    align-items: center;
    border-top: 1px solid var(--bp-line);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
}

.bp-admin-editor {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
}

.bp-editor-main,
.bp-editor-side {
    display: grid;
    gap: 16px;
}

.bp-editor-panel {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    display: grid;
    gap: 16px;
    padding: 18px;
}

.bp-editor-panel header {
    border-bottom: 1px solid var(--bp-line);
    padding-bottom: 12px;
}

.bp-editor-panel h2 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.bp-editor-panel header p {
    color: var(--bp-muted);
    font-size: 0.88rem;
    margin: 0;
}

.bp-admin-editor .bp-form-actions {
    grid-column: 1 / -1;
}

.bp-settings-form {
    max-width: 980px;
}

.bp-favicon-current {
    align-items: center;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    display: flex;
    gap: 12px;
    padding: 12px;
}

.bp-favicon-current span {
    color: var(--bp-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.bp-favicon-current small {
    color: var(--bp-muted);
    font-size: 0.8rem;
}

.bp-favicon-current img {
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 8px;
    height: 40px;
    object-fit: contain;
    padding: 6px;
    width: 40px;
}

.bp-branding-current {
    align-items: center;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    display: grid;
    gap: 10px;
    min-height: 96px;
    padding: 14px;
}

.bp-branding-current img {
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    display: block;
    height: 54px;
    max-width: min(100%, 260px);
    object-fit: contain;
    object-position: left center;
    padding: 6px;
    width: auto;
}

.bp-segmented-control {
    display: inline-grid;
    gap: 2px;
    grid-auto-flow: column;
    justify-content: start;
}

.bp-segmented-control label {
    cursor: pointer;
    margin: 0;
}

.bp-segmented-control input {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.bp-segmented-control span {
    background: #fff;
    border: 1px solid var(--bp-line);
    color: var(--bp-muted);
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    min-height: 36px;
    padding: 8px 12px;
}

.bp-segmented-control input:checked + span {
    background: #e6f4ff;
    border-color: rgba(14, 104, 176, 0.42);
    color: var(--bp-accent-dark);
}

.bp-segmented-control input:focus-visible + span {
    outline: 2px solid var(--bp-accent);
    outline-offset: 2px;
}

.bp-editor-textarea {
    min-height: 420px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
}

.bp-admin-editor .uif-editor {
    border-color: var(--bp-line);
    border-radius: var(--bp-radius);
    box-shadow: none;
    overflow: visible;
}

.bp-admin-editor .uif-editor-toolbar {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid var(--bp-line);
    box-shadow: 0 2px 5px rgba(16, 24, 40, 0.08);
    gap: 3px;
    padding: 6px 8px;
    position: sticky;
    top: 64px;
    z-index: 9;
}

.bp-admin-editor .uif-editor-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--bp-radius);
    color: var(--bp-muted);
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}

.bp-admin-editor .uif-editor-button:hover,
.bp-admin-editor .uif-editor-button:focus-visible {
    background: #eef6ff;
    border-color: rgba(14, 104, 176, 0.32);
    color: var(--bp-accent);
    box-shadow: 0 0 0 3px rgba(14, 104, 176, 0.12);
}

.bp-admin-editor .uif-editor-button[aria-pressed='true'] {
    background: #e6f4ff;
    border-color: rgba(14, 104, 176, 0.28);
    color: var(--bp-accent-dark);
}

.bp-admin-editor .uif-editor-button svg,
.bp-admin-editor .uif-editor-button .uif-icon,
.bp-admin-editor .uif-editor-button-icon {
    height: 16px;
    width: 16px;
}

.bp-admin-editor .bp-editor-toolbar-action {
    gap: 5px;
    margin-left: 4px;
    padding: 0 8px;
    text-decoration: none;
    width: auto;
}

.bp-admin-editor .bp-editor-toolbar-action span {
    color: inherit;
    font-size: 0.76rem;
    font-weight: 600;
}

.bp-admin-editor .uif-editor-surface,
.bp-admin-editor .uif-editor-source,
.bp-admin-editor .uif-editor-preview {
    font-size: 0.95rem;
    line-height: 1.65;
    min-height: 360px;
}

.bp-admin-editor .uif-editor-surface {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 18px;
}

.bp-admin-editor .uif-editor-source {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bp-admin-editor .uif-editor-surface h1,
.bp-admin-editor .uif-editor-preview h1 {
    font-size: 1.65rem;
    line-height: 1.22;
    margin: 0 0 0.75rem;
}

.bp-admin-editor .uif-editor-surface h2,
.bp-admin-editor .uif-editor-preview h2 {
    font-size: 1.28rem;
    line-height: 1.3;
}

.bp-admin-editor .uif-editor-surface p,
.bp-admin-editor .uif-editor-preview p {
    margin: 0 0 0.9rem;
}

.bp-admin-editor .uif-editor-table-tools[hidden],
.bp-admin-editor .uif-editor-preview[hidden],
.bp-admin-editor .uif-editor-source[hidden] {
    display: none !important;
}

.bp-admin-editor .uif-editor-table-tools {
    align-items: center;
    background: #f8fafc;
    border-top: 1px solid var(--bp-line);
    gap: 6px;
    padding: 8px;
}

.bp-admin-editor .uif-editor-tool-chip {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    color: var(--bp-muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 28px;
    padding: 4px 8px;
}

.bp-admin-editor .uif-editor-tool-chip:hover,
.bp-admin-editor .uif-editor-tool-chip:focus-visible {
    background: #eef6ff;
    border-color: rgba(14, 104, 176, 0.32);
    color: var(--bp-accent-dark);
    outline: 0;
}

.bp-template-code-editor,
.bp-admin-editor .bp-template-code-editor {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: var(--bp-radius);
    color: #e5edf7;
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.6;
    min-height: 34rem;
    overflow: auto;
    padding: 16px;
    tab-size: 4;
    white-space: pre;
    width: 100%;
}

.bp-template-code-editor:focus {
    border-color: var(--bp-accent);
    box-shadow: 0 0 0 3px rgba(14, 104, 176, 0.18);
    outline: 0;
}

.bp-code-editor-label {
    color: var(--bp-text);
    gap: 8px;
}

.bp-code-editor-label > span {
    font-weight: 600;
}

.bp-code-editor-label > small {
    color: var(--bp-muted);
    font-size: 0.8rem;
}

.bp-admin-editor .uif-editor-status {
    color: var(--bp-muted);
}

.bp-content-editor {
    display: grid;
    gap: 7px;
}

.bp-content-editor > label {
    color: var(--bp-text);
    font-weight: 600;
}

.bp-editor-assistance {
    align-items: center;
    background: var(--bp-panel-soft);
    border-left: 3px solid var(--bp-accent);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(190px, 0.8fr) minmax(320px, 1.3fr) max-content;
    margin-top: 5px;
    padding: 12px 14px;
}

.bp-editor-assistance strong {
    display: block;
    margin-bottom: 3px;
}

.bp-editor-assistance p {
    color: var(--bp-muted);
    font-size: 0.82rem;
    margin: 0;
}

.bp-editor-assistance ol {
    color: var(--bp-muted);
    display: grid;
    font-size: 0.8rem;
    gap: 3px;
    margin: 0;
    padding-left: 20px;
}

.bp-editor-assistance .bp-button {
    white-space: nowrap;
}

.bp-editor-technical-help {
    grid-template-columns: minmax(190px, 0.8fr) minmax(320px, 1.3fr) max-content;
}

.bp-editor-helper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.bp-editor-helper-actions .bp-button {
    min-height: 32px;
    padding: 6px 9px;
}

.bp-editor-mode-switch {
    align-items: center;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 12px 14px;
}

.bp-editor-mode-switch p,
.bp-text-only-notice p {
    color: var(--bp-muted);
    font-size: 0.82rem;
    margin: 3px 0 0;
}

.bp-editor-mode-switch nav {
    display: flex;
    flex: 0 0 auto;
}

.bp-editor-mode-switch a {
    border: 1px solid var(--bp-line);
    color: var(--bp-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 10px;
    text-decoration: none;
}

.bp-editor-mode-switch a + a {
    border-left: 0;
}

.bp-editor-mode-switch a.is-active {
    background: #e6f4ff;
    color: var(--bp-accent-dark);
}

.bp-text-only-editor {
    gap: 12px;
}

.bp-text-only-notice {
    background: rgba(0, 182, 150, 0.08);
    border-left: 3px solid var(--bp-green);
    padding: 12px 14px;
}

.bp-text-only-fields {
    display: grid;
    gap: 10px;
}

.bp-text-only-fields label {
    display: grid;
    gap: 5px;
}

.bp-text-only-fields label > span {
    color: var(--bp-text);
    font-size: 0.86rem;
    font-weight: 600;
}

.bp-text-only-fields label small {
    color: var(--bp-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 400;
}

.bp-text-only-fields textarea {
    line-height: 1.55;
    min-height: 72px;
}

.bp-editor-focus-open {
    overflow: hidden;
}

.bp-editor-focus-open::before {
    background: rgba(17, 24, 39, 0.58);
    content: '';
    inset: 0;
    position: fixed;
    z-index: 1199;
}

.bp-admin-editor .uif-editor.bp-editor-focus-mode {
    background: var(--bp-panel);
    border-radius: var(--bp-radius);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.3);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    inset: 12px;
    overflow: hidden;
    position: fixed;
    z-index: 1200;
}

.bp-admin-editor .uif-editor.bp-editor-focus-mode .uif-editor-toolbar {
    position: relative;
    top: 0;
    z-index: 1;
}

.bp-admin-editor .uif-editor.bp-editor-focus-mode .uif-editor-body {
    min-height: 0;
    overflow: hidden;
}

.bp-admin-editor .uif-editor.bp-editor-focus-mode .uif-editor-surface,
.bp-admin-editor .uif-editor.bp-editor-focus-mode .uif-editor-source,
.bp-admin-editor .uif-editor.bp-editor-focus-mode .uif-editor-preview {
    height: 100% !important;
    min-height: 0;
    overflow: auto;
    resize: none;
}

.bp-admin-editor .uif-editor.bp-editor-focus-mode .uif-editor-status {
    background: var(--bp-panel-soft);
}

.bp-preview-banner {
    align-items: center;
    background: #111827;
    color: #fff;
    display: flex;
    font-size: 0.9rem;
    gap: 10px;
    justify-content: center;
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.bp-preview-banner a {
    color: #99f6e4;
    font-weight: 600;
}

.bp-snapshot-list {
    display: grid;
    gap: 8px;
}

.bp-snapshot-list .bp-inline-form {
    align-items: center;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    display: flex;
    justify-content: space-between;
    padding: 8px;
}

.bp-meta-list {
    border-top: 1px solid var(--bp-line);
    display: grid;
    gap: 10px;
    margin: 2px 0 0;
    padding-top: 14px;
}

.bp-meta-list div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.bp-meta-list dt {
    color: var(--bp-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.bp-meta-list dd {
    margin: 0;
    text-align: right;
}

.bp-menu-editor .bp-editor-main {
    min-width: 0;
}

.bp-menu-builder-toolbar {
    align-items: center;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px 12px;
}

.bp-menu-builder-toolbar > div {
    display: grid;
    gap: 2px;
}

.bp-menu-builder-toolbar span,
.bp-menu-item-summary small,
.bp-menu-library small,
.bp-menu-structure-preview small {
    color: var(--bp-muted);
    font-size: .8rem;
}

.bp-menu-builder-list {
    display: grid;
    gap: 8px;
}

.bp-menu-builder-item {
    background: #fff;
    border: 1px solid var(--bp-line);
    border-left: 3px solid transparent;
    margin-left: min(calc(var(--bp-menu-depth, 0) * 18px), 54px);
    min-width: 0;
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.bp-menu-builder-item:hover,
.bp-menu-builder-item:focus-within {
    border-color: #b8c5d0;
    box-shadow: 0 4px 12px rgba(17, 24, 39, .06);
}

.bp-menu-builder-item[style*="--bp-menu-depth:1"],
.bp-menu-builder-item[style*="--bp-menu-depth:2"],
.bp-menu-builder-item[style*="--bp-menu-depth:3"] {
    border-left-color: var(--bp-accent);
}

.bp-menu-builder-item.has-error {
    border-color: var(--bp-danger);
}

.bp-menu-builder-item.is-disabled {
    opacity: .68;
}

.bp-menu-builder-item.is-dragging {
    opacity: .45;
}

.bp-menu-item-summary {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 12px;
}

.bp-menu-item-summary > div:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.bp-menu-item-summary > div:nth-child(2) > span {
    align-items: center;
    display: flex;
    gap: 7px;
    min-width: 0;
}

.bp-menu-item-summary code {
    color: var(--bp-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp-menu-drag {
    background: transparent;
    border: 0;
    color: var(--bp-muted);
    cursor: grab;
    font-weight: 700;
    min-height: 32px;
    padding: 4px 6px;
}

.bp-menu-type-badge {
    background: #e6f4ff;
    color: var(--bp-accent-dark);
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 6px;
    text-transform: uppercase;
}

.bp-menu-item-summary .bp-reorder-actions .is-danger {
    color: var(--bp-danger);
}

.bp-menu-item-fields {
    border-top: 1px solid var(--bp-line);
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px;
}

.bp-menu-item-fields .bp-menu-description-field {
    grid-column: span 2;
}

.bp-menu-enabled {
    align-content: center;
    display: flex !important;
    gap: 8px !important;
}

.bp-menu-enabled input[type="checkbox"] {
    min-height: 16px;
    width: 16px;
}

.bp-menu-item-error {
    background: #fff1f0;
    border-top: 1px solid #f5c2be;
    color: var(--bp-danger);
    margin: 0;
    padding: 8px 12px;
}

.bp-menu-empty {
    border: 1px dashed var(--bp-line);
    color: var(--bp-muted);
    display: none;
    margin: 10px 0 0;
    padding: 18px;
    text-align: center;
}

.bp-menu-empty.is-visible {
    display: block;
}

.bp-menu-library {
    display: grid;
    gap: 6px;
    max-height: 360px;
    overflow: auto;
}

.bp-form .bp-menu-library button {
    align-items: start;
    background: #fff;
    border: 1px solid var(--bp-line);
    color: var(--bp-text);
    display: grid;
    justify-items: start;
    min-height: 0;
    padding: 9px 10px;
    text-align: left;
}

.bp-form .bp-menu-library button:hover {
    background: #e6f4ff;
    border-color: var(--bp-accent);
}

.bp-menu-structure-preview ol {
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-menu-structure-preview ol ol {
    border-left: 1px solid var(--bp-line);
    margin: 5px 0 0 12px;
    padding-left: 14px;
}

.bp-menu-structure-preview li > span {
    align-items: center;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 7px 9px;
}

.bp-menu-structure-preview li.is-disabled > span {
    opacity: .55;
}

.bp-details {
    display: grid;
    gap: 12px;
}

.bp-details summary {
    cursor: pointer;
    font-weight: 600;
}

.bp-connection-secret {
    background: #ecfdf5;
    border-color: #a7f3d0;
    margin-bottom: 18px;
}

.bp-connection-secret input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.bp-check-stack {
    display: grid;
    gap: 8px;
}

.bp-form .bp-check-option {
    align-items: start;
    background: var(--bp-panel-soft);
    border: 1px solid var(--bp-line);
    grid-template-columns: auto minmax(0, 1fr);
    padding: 9px;
}

.bp-check-option input {
    margin-top: 3px;
    width: auto;
}

.bp-check-option span,
.bp-check-option small {
    display: grid;
    gap: 2px;
}

.bp-check-option small {
    color: var(--bp-muted);
    font-weight: 400;
    line-height: 1.35;
}

.bp-token-scopes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.bp-token-scopes .bp-status-badge {
    background: var(--bp-panel-soft);
    color: var(--bp-muted);
    padding: 5px 7px;
}

.bp-details .bp-compact-form {
    display: grid;
    gap: 8px;
    min-width: 210px;
    padding-top: 10px;
}

.bp-form label {
    display: grid;
    gap: 6px;
    color: var(--bp-muted);
    font-weight: 600;
}

.bp-form input,
.bp-form textarea,
.bp-form select,
.bp-code-input {
    width: 100%;
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    background: #fff;
    padding: 9px 11px;
    color: var(--bp-text);
    font: inherit;
}

.bp-form input:focus,
.bp-form textarea:focus,
.bp-form select:focus,
.bp-code-input:focus {
    border-color: var(--bp-accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
    outline: 0;
}

.bp-code-input {
    background: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875rem;
    min-width: 220px;
}

.bp-media-table {
    min-width: 1060px;
}

.bp-media-table th:nth-child(5) {
    width: 40%;
}

.bp-media-code-stack {
    display: grid;
    gap: 8px;
    min-width: 360px;
}

.bp-media-code-field {
    display: grid;
    gap: 4px;
}

.bp-media-code-field > label {
    color: var(--bp-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.bp-media-code-field > div {
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.bp-media-code-field .bp-code-input {
    min-width: 0;
}

.bp-copy-button,
.bp-media-actions .bp-button {
    font-size: 0.82rem;
    min-height: 36px;
    padding: 7px 9px;
}

.bp-media-actions {
    align-items: center;
    flex-wrap: wrap;
}

.bp-media-actions .bp-inline-form {
    margin: 0;
}

.bp-media-actions .bp-button-danger {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    color: var(--bp-danger);
}

.bp-definition-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.bp-definition-list > div {
    border-left: 2px solid var(--bp-line);
    min-width: 0;
    padding-left: 10px;
}

.bp-definition-list dt {
    color: var(--bp-muted);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.bp-definition-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.bp-definition-list code {
    white-space: normal;
}

.bp-admin-editor-single {
    grid-template-columns: minmax(0, 1fr);
}

.bp-library-upload-form {
    align-items: end;
    border-bottom: 1px solid var(--bp-line);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.bp-library-upload-form button {
    min-height: 40px;
}

.bp-library-table {
    min-width: 760px;
}

.bp-library-actions {
    flex-wrap: nowrap;
}

.bp-library-actions .bp-inline-form {
    margin: 0;
}

.bp-library-actions .bp-button-secondary {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    color: var(--bp-text);
}

.bp-library-actions .bp-button-danger {
    color: var(--bp-danger);
}

.bp-inline-empty {
    background: var(--bp-panel-soft);
    border: 1px dashed var(--bp-line);
    display: grid;
    gap: 3px;
    padding: 14px;
}

.bp-inline-empty span {
    color: var(--bp-muted);
    font-size: 0.86rem;
}

.bp-form textarea {
    min-height: 120px;
    resize: vertical;
}

.bp-form button,
.bp-inline-form button {
    align-items: center;
    width: fit-content;
    border: 0;
    border-radius: var(--bp-radius);
    background: var(--bp-accent);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 600;
    gap: 7px;
    padding: 9px 14px;
}

.bp-topbar-logout .bp-button-secondary {
    background: var(--bp-panel);
    border: 1px solid var(--bp-line);
    color: var(--bp-danger);
    min-height: 38px;
    padding: 8px 13px;
}

.bp-inline-form {
    margin: 16px 0;
}

.bp-error {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #991b1b;
    border-radius: var(--bp-radius);
    padding: 12px 14px;
}

.bp-notice {
    border: 1px solid rgba(0, 182, 150, 0.28);
    background: rgba(0, 182, 150, 0.1);
    color: #006f5d;
    border-radius: var(--bp-radius);
    padding: 12px 14px;
}

.bp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.bp-table th,
.bp-table td {
    border-bottom: 1px solid var(--bp-line);
    padding: 10px 8px;
    text-align: left;
}

.bp-table th {
    color: var(--bp-muted);
    font-size: 0.875rem;
}

code {
    background: #edf2f7;
    border-radius: 4px;
    padding: 2px 5px;
}

:where(.bp-public-body .bp-prose) pre {
    background: #111827;
    border: 1px solid #243244;
    border-radius: 6px;
    color: #f8fafc;
    line-height: 1.65;
    overflow-x: auto;
    padding: 18px 20px;
    tab-size: 4;
}

:where(.bp-public-body .bp-prose) pre > code,
.bp-admin-editor .uif-editor-preview pre > code,
.bp-admin-editor .uif-editor-surface pre > code {
    background: transparent;
    border-radius: 0;
    color: inherit;
    display: block;
    padding: 0;
    white-space: pre;
}

.bp-code-block {
    background: #111827;
    border: 1px solid #243244;
    border-radius: 6px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.bp-code-block-header {
    align-items: center;
    background: #0b1220;
    border-bottom: 1px solid #243244;
    color: #aebed0;
    display: flex;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.74rem;
    font-weight: 600;
    justify-content: space-between;
    letter-spacing: 0.04em;
    min-height: 36px;
    padding: 6px 10px 6px 14px;
}

.bp-code-copy {
    background: transparent;
    border: 1px solid #3b4a5f;
    border-radius: 3px;
    color: #dbe7f3;
    cursor: pointer;
    font-size: 0.74rem;
    min-height: 26px;
    padding: 3px 8px;
}

.bp-code-copy:hover,
.bp-code-copy:focus-visible {
    background: #1e293b;
    border-color: #6b7f99;
    outline: 2px solid rgba(14, 104, 176, 0.45);
    outline-offset: 1px;
}

.bp-code-block > pre {
    border: 0;
    border-radius: 0;
    margin: 0;
}

:where(.bp-public-body .bp-prose) mjx-container[display='true'] {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.35rem 0;
}

@media (max-width: 720px) {
    .bp-nav,
    .bp-installer-hero,
    .bp-form-section,
    .bp-admin-page-header,
    .bp-command-hero {
        display: grid;
    }

    .bp-admin-shell {
        grid-template-columns: 1fr;
    }

    .bp-library-upload-form {
        grid-template-columns: 1fr;
    }

    .bp-admin-sidebar {
        height: auto;
        position: static;
    }

    .bp-admin-brand {
        min-height: auto;
    }

    .bp-admin-sidebar-nav {
        gap: 14px;
    }

    .bp-admin-sidebar-nav section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bp-admin-sidebar-nav h2 {
        grid-column: 1 / -1;
    }

    .bp-admin-topbar {
        align-items: stretch;
        display: grid;
        padding: 14px 16px;
        position: static;
    }

    .bp-admin-command {
        max-width: none;
        width: 100%;
    }

    .bp-admin-topbar nav,
    .bp-admin-page-actions,
    .bp-command-hero-actions {
        justify-content: stretch;
    }

    .bp-links,
    .bp-actions,
    .bp-admin-nav {
        gap: 8px;
    }

    .bp-main {
        padding: 28px 16px;
    }

    .bp-installer-shell,
    .bp-admin {
        width: min(100% - 24px, 1040px);
    }

    .bp-admin-shell .bp-admin {
        min-height: auto;
        padding: 20px 12px;
        width: 100%;
    }

    .bp-admin-stats,
    .bp-admin-stats-compact,
    .bp-admin-action-grid,
    .bp-admin-editor,
    .bp-admin-grid,
    .bp-audit-tools,
    .bp-definition-list,
    .bp-filter-form,
    .bp-menu-item-fields,
    .bp-workflow-grid,
    .bp-dashboard-columns {
        grid-template-columns: 1fr;
    }

    .bp-menu-item-fields .bp-menu-description-field {
        grid-column: auto;
    }

    .bp-menu-item-summary {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .bp-menu-item-summary .bp-reorder-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .bp-menu-builder-item {
        margin-left: min(calc(var(--bp-menu-depth, 0) * 10px), 30px);
    }

    .bp-admin-section-wide {
        grid-column: auto;
    }

    .bp-form-grid {
        grid-template-columns: 1fr;
    }

    .bp-admin-editor .uif-editor-toolbar {
        top: 0;
    }

    .bp-editor-assistance {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .bp-editor-mode-switch {
        align-items: stretch;
        display: grid;
    }

    .bp-editor-mode-switch nav {
        width: 100%;
    }

    .bp-editor-mode-switch a {
        flex: 1;
        text-align: center;
    }

    .bp-editor-helper-actions {
        justify-content: flex-start;
    }

    .bp-admin-editor .uif-editor.bp-editor-focus-mode {
        border: 0;
        border-radius: 0;
        inset: 0;
    }

    .bp-admin-toolbar,
    .bp-admin-search,
    .bp-meta-list div {
        align-items: stretch;
        display: grid;
    }

    .bp-admin-search input {
        width: 100%;
    }

    .bp-form-actions {
        justify-content: stretch;
    }

    .bp-form-actions button,
    .bp-inline-form button,
    .bp-button {
        width: 100%;
    }

    .bp-content-mini-list li,
    .bp-admin-statusbar {
        align-items: stretch;
        display: grid;
        justify-content: stretch;
    }
}
