:root {
    color-scheme: light;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    --bg: #edf3f3;
    --panel: #ffffff;
    --text: #1d2935;
    --muted: #64748b;
    --line: #d1dee5;
    --primary: #0d6d77;
    --primary-strong: #0a525a;
    --sidebar: #0d2530;
    --sidebar-line: rgba(255, 255, 255, 0.08);
    --sidebar-text: #e7f0f2;
    --soft: #f5f9fa;
    --danger: #c2410c;
    --success: #15803d;
    --warning: #b7791f;
    --shadow: 0 24px 60px rgba(24, 39, 75, 0.08);
    --radius: 8px;
    --control-height: 40px;
    --control-height-sm: 32px;
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(13, 109, 119, 0.08), transparent 30%),
        linear-gradient(180deg, #f6fafb 0%, var(--bg) 100%);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid rgba(13, 109, 119, 0.18);
    outline-offset: 2px;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    width: min(440px, calc(100% - 32px));
    place-content: center;
    padding: 40px 0;
}

.auth-brand-panel {
    margin-bottom: 16px;
}

.auth-copy {
    margin: 12px 0 0;
    color: var(--muted);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(13, 109, 119, 0.16), rgba(13, 109, 119, 0.04));
    border: 1px solid rgba(13, 109, 119, 0.14);
    flex: 0 0 auto;
}

.brand-mark span {
    position: absolute;
    border-radius: 999px;
    background: var(--primary);
}

.brand-mark span:first-child {
    width: 16px;
    height: 6px;
    top: 9px;
    left: 10px;
}

.brand-mark span:last-child {
    width: 6px;
    height: 16px;
    top: 10px;
    left: 15px;
}

.auth-shell h1 {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 700;
}

.auth-shell form {
    width: 100%;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.auth-shell form > div,
.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

input,
select,
textarea,
.form-control {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    padding: 9px 11px;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.16);
    outline: none;
}

button,
.btn {
    display: inline-flex;
    min-height: var(--control-height);
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #edf4f6;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 8px 14px;
    text-decoration: none;
    transition:
        transform 140ms ease,
        background-color 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease;
}

button:hover,
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary,
button[type="submit"] {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: var(--primary-strong);
}

.btn-secondary {
    border-color: var(--line);
    background: #ffffff;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-success {
    background: var(--success);
    color: #ffffff;
}

.btn-sm {
    min-height: var(--control-height-sm);
    padding: 5px 10px;
    font-size: 14px;
}

h1 {
    margin: 0 0 24px;
    font-size: 34px;
}

h2,
h3,
h4 {
    margin-top: 0;
}

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

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

.table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.alert {
    margin-top: 16px;
    border-radius: 6px;
    padding: 12px;
}

.alert-danger {
    background: #fff7ed;
    color: #9a3412;
}

.alert-success {
    background: #edf9f0;
    color: #18794e;
}

.rz-dialog-wrapper.platform-side-dialog-wrapper {
    backdrop-filter: blur(4px);
}

.rz-dialog-wrapper.platform-modal-dialog-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.rz-dialog.platform-side-dialog {
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: var(--panel);
    box-shadow: -24px 0 60px rgba(24, 39, 75, 0.12);
}

.rz-dialog.platform-side-dialog .rz-dialog-titlebar {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #f7fbfb;
}

.rz-dialog.platform-side-dialog .rz-dialog-title {
    color: var(--text);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
}

.rz-dialog.platform-side-dialog .rz-dialog-content {
    padding: 18px;
    background: transparent;
}

.rz-dialog.platform-side-dialog .rz-dialog-titlebar-close {
    color: var(--muted);
}

.rz-dialog.platform-modal-dialog {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    margin: 0;
}

.rz-dialog.platform-modal-dialog .rz-dialog-titlebar {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #f7fbfb;
}

.rz-dialog.platform-modal-dialog .rz-dialog-title {
    color: var(--text);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
}

.rz-dialog.platform-modal-dialog .rz-dialog-content {
    padding: 18px;
    max-height: min(calc(100vh - 120px), 760px);
    overflow: auto;
    background: transparent;
}

.dialog-stack {
    display: grid;
    gap: 16px;
}

[data-ui-density="comfortable"] .table th,
[data-ui-density="comfortable"] .table td {
    padding: 16px;
}

[data-ui-density="comfortable"] .panel,
[data-ui-density="comfortable"] .metric-card,
[data-ui-density="comfortable"] .detail-card {
    padding: 22px;
}

.platform-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    background: #f4f7f8;
}

.platform-shell.sidebar-collapsed {
    grid-template-columns: 92px minmax(0, 1fr);
}

.shell-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 18px;
    background: #102833;
    color: var(--sidebar-text);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    min-height: 100vh;
}

.sidebar-header,
.sidebar-section {
    display: grid;
    gap: 12px;
}

.sidebar-section-label {
    margin: 0;
    color: rgba(231, 240, 242, 0.54);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.platform-shell.sidebar-collapsed .sidebar-section-label,
.platform-shell.sidebar-collapsed .brand-block .eyebrow,
.platform-shell.sidebar-collapsed .brand-copy,
.platform-shell.sidebar-collapsed .sidebar-footnote,
.platform-shell.sidebar-collapsed .brand-lockup h1 {
    display: none;
}

.brand-block h1,
.shell-topbar h2 {
    margin: 0;
}

.brand-copy,
.sidebar-footnote p {
    margin: 8px 0 0;
    color: rgba(231, 240, 242, 0.68);
    font-size: 14px;
    line-height: 1.45;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.shell-sidebar .eyebrow {
    color: rgba(231, 240, 242, 0.62);
}

.shell-nav {
    display: grid;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 600;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-footnote {
    margin-top: auto;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.shell-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-start,
.topbar-end {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-end {
    justify-content: flex-end;
}

.chrome-toggle {
    min-width: 36px;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
}

.chrome-toggle:hover {
    color: var(--text);
    border-color: #b7c9d3;
    background: #ffffff;
}

.shell-slot {
    min-width: 0;
}

.shell-slot-fallback {
    display: none;
}

.shell-slot-title:empty + .shell-slot-fallback {
    display: block;
}

.shell-slot-actions:empty {
    display: none;
}

.shell-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 368px;
    min-height: calc(100vh - 69px);
}

.platform-shell.inspector-collapsed .shell-body {
    grid-template-columns: minmax(0, 1fr);
}

.shell-content {
    min-width: 0;
    padding: 24px 24px 32px;
}

.shell-inspector {
    min-width: 0;
    padding: 16px;
    border-left: 1px solid var(--line);
    background: #fbfcfd;
}

.platform-shell.inspector-collapsed .shell-inspector {
    display: none;
}

.shell-inspector-header {
    margin-bottom: 12px;
}

.shell-inspector-content {
    display: grid;
    gap: 14px;
}

.shell-inspector-content:empty::before {
    content: "No context selected yet.";
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.header-actions,
.hero-actions,
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.hero-copy {
    max-width: 70ch;
    margin: 10px 0 0;
    color: var(--muted);
}

.stats-grid,
.platform-dashboard-grid,
.attention-grid {
    display: grid;
    gap: 16px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.compact-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-dashboard-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(280px, 0.9fr);
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-workbench-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.overview-surface,
.attention-surface {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 18px;
}

.overview-surface-primary {
    background: linear-gradient(135deg, #10323c 0%, #154654 100%);
    color: #ffffff;
    border-color: transparent;
}

.overview-surface-primary .eyebrow,
.overview-surface-primary .surface-copy,
.overview-surface-primary .overview-stat-label {
    color: rgba(255, 255, 255, 0.74);
}

.surface-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.surface-heading h3 {
    margin: 0;
}

.surface-copy {
    margin: 10px 0 0;
    color: var(--muted);
}

.overview-stat-row,
.overview-inline-metrics,
.attention-strip {
    display: grid;
    gap: 12px;
}

.overview-stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-inline-metrics,
.attention-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-stat-block,
.overview-inline-metrics > div {
    display: grid;
    gap: 6px;
}

.overview-stat-value,
.overview-inline-value,
.attention-surface-value {
    margin: 0;
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
}

.overview-stat-label,
.overview-inline-label {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.workbench-list {
    display: grid;
    gap: 10px;
}

.workbench-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    text-align: left;
}

.workbench-row:hover {
    border-color: rgba(13, 109, 119, 0.22);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(24, 39, 75, 0.06);
}

.workbench-row-main,
.workbench-row-meta {
    display: grid;
    gap: 6px;
}

.workbench-row-meta {
    justify-items: end;
}

.detail-layout,
.create-layout,
.inspector-layout {
    display: grid;
    gap: 16px;
}

.detail-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.inspector-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    align-items: start;
}

.console-context {
    display: grid;
    gap: 16px;
}

.context-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 16px;
}

.context-card h3,
.context-card h4 {
    margin: 0 0 8px;
}

.context-stat {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.create-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.metric-card,
.panel,
.empty-state,
.detail-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    animation: rise-in 220ms ease;
}

.metric-card {
    padding: 18px;
}

.accent-card {
    background: linear-gradient(135deg, #0d6d77 0%, #144652 100%);
    color: #ffffff;
}

.accent-card .metric-label,
.accent-card .metric-footnote {
    color: rgba(255, 255, 255, 0.78);
}

.metric-label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-value {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.metric-value-sm {
    font-size: 24px;
    line-height: 1.2;
}

.metric-footnote {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.panel {
    padding: 18px;
}

.detail-panel,
.create-panel {
    min-width: 0;
}

.surface-stack,
.detail-stack {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.detail-card {
    padding: 18px;
    position: sticky;
    top: 28px;
}

.panel-header,
.registry-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.panel-header {
    margin-bottom: 14px;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
}

.stack-list {
    display: grid;
    gap: 10px;
}

.list-row-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    text-align: left;
    transition:
        transform 140ms ease,
        border-color 140ms ease,
        background-color 140ms ease,
        box-shadow 140ms ease;
}

.list-row-button:hover {
    border-color: rgba(13, 109, 119, 0.22);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(24, 39, 75, 0.06);
    transform: translateY(-1px);
}

.list-title,
.list-subtitle {
    margin: 0;
}

.list-title {
    font-weight: 700;
}

.list-subtitle,
.list-meta {
    color: var(--muted);
    font-size: 14px;
}

.list-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.attention-grid {
    grid-template-columns: 1fr;
}

.attention-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.attention-label,
.attention-value,
.attention-copy {
    margin: 0;
}

.attention-label,
.attention-copy {
    color: var(--muted);
}

.attention-value {
    margin: 8px 0;
    font-size: 30px;
    font-weight: 800;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pill.success {
    background: #e8f7ee;
    color: #18794e;
}

.status-pill.warning {
    background: #fff5e6;
    color: var(--warning);
}

.status-pill.danger {
    background: #fff0eb;
    color: var(--danger);
}

.status-pill.neutral {
    background: #edf4f6;
    color: #4b6470;
}

.registry-toolbar {
    margin-bottom: 18px;
}

.search-field {
    flex: 1 1 360px;
}

.search-field label {
    display: block;
    margin-bottom: 8px;
}

.filter-chip {
    min-height: var(--control-height);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    padding: 0 14px;
}

.filter-chip.active {
    border-color: transparent;
    background: var(--primary);
    color: #ffffff;
}

.tab-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-chip {
    min-height: var(--control-height);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    padding: 0 16px;
}

.tab-chip.active {
    border-color: transparent;
    background: var(--sidebar);
    color: #ffffff;
}

.table-shell {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.toolbar-meta,
.table-footer,
.pagination,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toolbar-meta,
.table-footer {
    color: var(--muted);
    font-size: 14px;
}

.toolbar-meta p,
.table-footer p,
.section-heading p,
.section-heading span {
    margin: 0;
}

.pagination span,
.section-heading span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.tenants-table {
    min-width: 820px;
}

.jobs-table,
.audit-table {
    min-width: 760px;
}

.table thead th {
    position: sticky;
    top: 0;
    background: #f8fbfb;
    z-index: 1;
}

.data-row {
    cursor: pointer;
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.data-row:hover td {
    background: #f6fbfb;
}

.data-row.selected td {
    background: #ecf6f7;
}

.tenant-cell {
    display: grid;
    gap: 4px;
}

.actions-cell {
    width: 1%;
    white-space: nowrap;
}

.actions-cell .btn + .btn {
    margin-left: 6px;
}

.empty-state {
    padding: 28px;
}

.empty-state h3,
.empty-state h4,
.empty-state p,
.compact-empty p {
    margin: 0;
}

.empty-state p {
    margin-top: 8px;
    color: var(--muted);
}

.compact-empty {
    padding: 18px;
    background: var(--soft);
    box-shadow: none;
}

.detail-section {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.detail-title,
.detail-copy {
    margin: 0;
}

.detail-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

.detail-copy {
    color: var(--text);
}

.detail-code {
    margin: 0;
    max-height: 220px;
    overflow: auto;
    border-radius: 8px;
    background: #0f1720;
    color: #d9e4ec;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.step-list {
    display: grid;
    gap: 10px;
}

.step-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

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

.kv-item {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.kv-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.kv-value {
    font-weight: 700;
    word-break: break-word;
}

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

.form-span-2 {
    grid-column: span 2;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1100px) {
    .platform-shell {
        grid-template-columns: 1fr;
    }

    .shell-sidebar {
        gap: 18px;
    }

    .stats-grid,
    .compact-stats,
    .platform-dashboard-grid,
    .detail-layout,
    .create-layout,
    .inspector-layout {
        grid-template-columns: 1fr 1fr;
    }

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

    .shell-inspector {
        position: static;
        min-height: auto;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .shell-topbar,
    .page-hero,
    .panel-header,
    .registry-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid,
    .compact-stats,
    .platform-dashboard-grid,
    .detail-layout,
    .create-layout,
    .inspector-layout,
    .kv-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-span-2 {
        grid-column: span 1;
    }

    h1 {
        font-size: 28px;
    }

    .metric-value {
        font-size: 34px;
    }

    .detail-card {
        position: static;
        top: auto;
    }

    .shell-content {
        padding: 18px 16px 24px;
    }

    .toolbar-meta,
    .table-footer,
    .pagination,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }
}
