@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    --bg: #f6f1e8;
    --bg-strong: #fbf7f0;
    --ink: #20303f;
    --muted: #6f655c;
    --line: rgba(30, 48, 63, 0.12);
    --card: rgba(255, 251, 245, 0.88);
    --accent: #d75c37;
    --accent-soft: #f2c868;
    --accent-deep: #a8472a;
    --success: #2f7d5f;
}

.pde-page {
    width: 100%;
    min-height: 100vh;
}

.pde-shell {
    display: grid;
    gap: 1.25rem;
}

.pde-hero,
.pde-panel,
.pde-metric {
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.92);
    box-shadow: 0 16px 40px rgba(59, 45, 30, 0.08);
}

.pde-hero,
.pde-panel {
    border-radius: 1.4rem;
    padding: 1.4rem;
}

.pde-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.pde-kicker,
.pde-section-kicker {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 700;
}

.pde-copy {
    max-width: 64ch;
    color: var(--muted);
}

.pde-actions,
.pde-inline-actions,
.pde-block-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pde-actions {
    justify-content: flex-end;
    align-content: start;
}

.pde-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.pde-metric {
    border-radius: 1.15rem;
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.25rem;
}

.pde-metric strong {
    font-size: 1.7rem;
}

.pde-metric span {
    color: var(--muted);
    font-size: 0.95rem;
}

.pde-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.65fr);
    gap: 1rem;
}

.pde-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pde-panel h3,
.pde-panel h4 {
    margin: 0;
}

.pde-template-list,
.pde-export-list,
.pde-palette,
.pde-canvas {
    display: grid;
    gap: 0.85rem;
}

.pde-export-list {
    margin-top: 1.2rem;
}

.pde-template-item,
.pde-export-item,
.pde-palette-item {
    width: 100%;
    border: 1px solid rgba(31, 47, 61, 0.12);
    background: #fffdfa;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    display: flex;
    align-items: start;
    gap: 0.85rem;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
}

.pde-template-item.active {
    border-color: rgba(215, 92, 55, 0.45);
    background: linear-gradient(180deg, rgba(255, 247, 239, 0.96), rgba(255, 252, 247, 0.98));
}

.pde-template-item strong,
.pde-export-item strong,
.pde-palette-item strong {
    display: block;
    font-size: 0.98rem;
}

.pde-template-item span,
.pde-export-item span,
.pde-palette-item span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.pde-template-swatch {
    width: 0.8rem;
    min-width: 0.8rem;
    height: 3rem;
    border-radius: 999px;
}

.pde-badge {
    margin-left: auto;
    background: rgba(31, 47, 61, 0.09);
    color: var(--ink);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pde-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.pde-field {
    display: grid;
    gap: 0.35rem;
}

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

.pde-field span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}

.pde-field input,
.pde-field select,
.pde-field textarea {
    width: 100%;
    border: 1px solid rgba(31, 47, 61, 0.12);
    border-radius: 0.9rem;
    background: #fffdfa;
    padding: 0.85rem 0.95rem;
    color: var(--ink);
    font: inherit;
}

.pde-inline-actions {
    margin: 1rem 0 1.15rem;
}

.pde-builder-columns {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.3fr);
    gap: 1rem;
}

.pde-block-card,
.pde-empty,
.pde-preview-sheet {
    border: 1px solid rgba(31, 47, 61, 0.12);
    background: #fffdfa;
    border-radius: 1rem;
}

.pde-block-card {
    padding: 0.95rem 1rem;
    display: grid;
    gap: 0.65rem;
}

.pde-block-card > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.pde-block-card span {
    color: var(--muted);
    font-size: 0.86rem;
}

.pde-block-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

.pde-block-actions button {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: rgba(31, 47, 61, 0.08);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.pde-block-actions .danger {
    background: rgba(168, 71, 42, 0.12);
    color: #9c3112;
}

.pde-empty {
    padding: 1rem;
    color: var(--muted);
}

.pde-preview-sheet {
    overflow: hidden;
}

.pde-preview-header {
    padding: 1.15rem 1.25rem;
    color: #fff;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.pde-preview-header h4 {
    margin: 0.2rem 0 0;
    font-size: 1.4rem;
}

.pde-preview-status,
.pde-preview-code {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

.pde-preview-code {
    white-space: nowrap;
}

.pde-preview-metrics,
.pde-preview-grid {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
}

.pde-preview-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pde-preview-metrics article,
.pde-preview-grid div,
.pde-preview-notes,
.pde-preview-rich,
.pde-preview-footer {
    border-top: 1px solid rgba(31, 47, 61, 0.08);
}

.pde-preview-metrics article {
    padding-top: 0.8rem;
}

.pde-preview-metrics span,
.pde-preview-grid strong {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
}

.pde-preview-metrics strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.15rem;
}

.pde-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pde-preview-grid div {
    padding-top: 0.85rem;
}

.pde-preview-grid span {
    display: block;
    margin-top: 0.2rem;
}

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

.pde-table thead {
    background: rgba(31, 47, 61, 0.06);
}

.pde-table th,
.pde-table td {
    text-align: left;
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(31, 47, 61, 0.08);
}

.pde-preview-notes,
.pde-preview-rich,
.pde-preview-footer {
    padding: 1rem 1.1rem;
    color: var(--muted);
}

.pde-preview-notes p + p {
    margin-top: 0.55rem;
}

@media (max-width: 1100px) {
    .pde-hero,
    .pde-grid,
    .pde-builder-columns {
        grid-template-columns: 1fr;
    }

    .pde-metrics,
    .pde-form-grid,
    .pde-preview-metrics,
    .pde-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pde-metrics,
    .pde-form-grid,
    .pde-preview-metrics,
    .pde-preview-grid {
        grid-template-columns: 1fr;
    }

    .pde-preview-header {
        flex-direction: column;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(242, 200, 104, 0.42), transparent 25%),
        radial-gradient(circle at top right, rgba(215, 92, 55, 0.18), transparent 28%),
        linear-gradient(180deg, #f8f4ec 0%, #f3ede1 100%);
    color: var(--ink);
    font-family: "Space Grotesk", sans-serif;
    overflow-x: clip;
}

body {
    line-height: 1.5;
}

a {
    color: inherit;
}

.builder-shell {
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(36, 58, 79, 0.12);
    background: rgba(251, 249, 243, 0.88);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 30;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #d75c37, #efc14b);
    color: #fff9f1;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(215, 92, 55, 0.24);
    flex: 0 0 auto;
}

.eyebrow {
    margin: 0;
    color: #7f7267;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-name {
    color: #1f2f3d;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.topnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    color: #33485a;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.topnav a:hover {
    background: rgba(31, 47, 61, 0.08);
    transform: translateY(-1px);
}

.topnav a.active {
    background: #1f2f3d;
    color: #fff8ef;
}

.page-frame {
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 5.75rem);
    margin: 0;
    padding: 1.25rem;
}

h1:focus {
    outline: none;
}

h1, h2, h3, .brand-name {
    line-height: 1.05;
    margin: 0;
}

h1 {
    font-family: "Instrument Serif", serif;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 400;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0;
}

.hero-panel,
.section-block,
.estimate-panel {
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 24px 60px rgba(68, 51, 35, 0.08);
}

.hero-panel {
    width: 100%;
    min-height: calc(100vh - 8.25rem);
    border-radius: 2rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.5rem;
}

.hero-kicker,
.section-kicker,
.aside-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 700;
}

.hero-copy,
.section-copy {
    max-width: 62ch;
    color: var(--muted);
    margin-top: 1rem;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #fffaf4;
}

.btn-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.82);
}

.hero-aside {
    border-radius: 1.5rem;
    background: rgba(32, 48, 63, 0.94);
    color: #fffaf4;
    padding: 1.2rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.metric-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.metric-card strong {
    display: block;
    font-size: 1.75rem;
}

.metric-card span {
    color: rgba(255, 250, 244, 0.78);
}

.section-block {
    width: 100%;
    min-height: calc(100vh - 8.25rem);
    margin-top: 1.5rem;
    border-radius: 1.75rem;
    padding: 1.5rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pillars-grid,
.module-grid,
.selector-grid {
    display: grid;
    gap: 1rem;
}

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

.pillar-card,
.module-card,
.selector-card,
.estimate-section {
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background: rgba(255, 253, 248, 0.92);
}

.pillar-card,
.module-card {
    padding: 1.2rem;
}

.module-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.module-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.module-link-card {
    display: flex;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.module-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 92, 55, 0.38);
    box-shadow: 0 20px 42px rgba(215, 92, 55, 0.12);
}

.module-link-hint {
    margin-top: auto;
    color: var(--accent-deep);
    font-size: 0.9rem;
    font-weight: 700;
}

.module-card-top,
.selector-meta,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.category-tag,
.maturity-tag,
.mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.category-tag {
    background: rgba(242, 200, 104, 0.25);
    color: #835c18;
}

.maturity-tag {
    background: rgba(32, 48, 63, 0.08);
    color: #30485e;
}

.mini-chip {
    background: rgba(215, 92, 55, 0.12);
    color: var(--accent-deep);
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.meta-list dt {
    color: var(--muted);
    font-size: 0.8rem;
}

.meta-list dd {
    margin: 0.2rem 0 0;
    font-weight: 700;
}

.sources-line,
.dependency-line {
    color: var(--muted);
    font-size: 0.92rem;
}

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

.group-block + .group-block {
    margin-top: 1.5rem;
}

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

.detail-card {
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background: rgba(255, 253, 248, 0.92);
    padding: 1.2rem;
    min-height: 100%;
}

.module-detail-hero {
    align-items: start;
}

.module-detail-hero .hero-copy {
    max-width: 58ch;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.feature-list li + li {
    margin-top: 0.45rem;
}

.estimator-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
}

.selector-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.selector-card {
    display: block;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.selector-card:hover,
.selector-card.selected {
    transform: translateY(-2px);
    border-color: rgba(215, 92, 55, 0.45);
    box-shadow: 0 18px 36px rgba(215, 92, 55, 0.12);
}

.selector-card input {
    width: 1rem;
    height: 1rem;
}

.selector-content {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.selector-meta {
    justify-content: space-between;
    font-weight: 700;
}

.estimate-panel {
    border-radius: 1.75rem;
    padding: 1.5rem;
    position: sticky;
    top: 6.3rem;
    align-self: start;
}

.estimate-subtitle {
    color: var(--muted);
    margin-top: 0.4rem;
}

.estimate-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 1.2rem 0;
}

.estimate-metrics dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.estimate-metrics dd {
    margin: 0.25rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.estimate-section {
    padding: 1rem;
}

.estimate-section + .estimate-section {
    margin-top: 0.9rem;
}

.estimate-section.warning {
    background: rgba(215, 92, 55, 0.07);
}

.ne-page {
    margin-top: 0;
}

.ne-page-fullbleed {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 1.5rem;
}

.ne-demo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 1rem;
}

.ne-demo-panel,
.ne-inbox,
.ne-panel {
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background: rgba(255, 252, 247, 0.94);
}

.ne-demo-panel,
.ne-inbox {
    padding: 1.2rem;
}

.ne-demo-header,
.ne-panel-header,
.ne-inbox-header,
.ne-card-top,
.ne-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
}

.ne-demo-header,
.ne-panel-header,
.ne-inbox-header {
    flex-wrap: wrap;
}

.ne-demo-actions,
.ne-user-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.ne-bell,
.ne-user-button,
.ne-secondary-button,
.ne-link-button {
    font: inherit;
}

.ne-bell {
    border: 1px solid var(--line);
    background: rgba(255, 248, 238, 0.98);
    border-radius: 999px;
    min-height: 2.8rem;
    padding: 0 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.ne-badge {
    min-width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff8ef;
    font-size: 0.82rem;
    font-weight: 700;
}

.ne-panel {
    margin-top: 0.8rem;
    padding: 1rem;
}

.ne-feed,
.ne-list {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.ne-item,
.ne-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1rem;
    background: #fffdf8;
}

.ne-item {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: start;
}

.ne-card {
    display: grid;
    gap: 0.75rem;
}

.ne-item.unread,
.ne-card.unread {
    box-shadow: inset 4px 0 0 var(--accent);
}

.ne-item-main {
    display: grid;
    gap: 0.35rem;
}

.ne-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    min-height: 1.8rem;
    padding: 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.ne-chip.info {
    background: rgba(43, 113, 163, 0.12);
    color: #1f5d8b;
}

.ne-chip.success {
    background: rgba(47, 125, 95, 0.12);
    color: #25624a;
}

.ne-chip.warning {
    background: rgba(219, 138, 51, 0.14);
    color: #9a5b10;
}

.ne-chip.critical {
    background: rgba(179, 50, 50, 0.12);
    color: #8a2020;
}

.ne-user-switcher span,
.ne-empty,
.ne-date,
.ne-item-main span,
.ne-panel-header p,
.ne-inbox-header p,
.ne-card p,
.ne-card-meta span {
    color: var(--muted);
}

.ne-user-button,
.ne-secondary-button {
    min-height: 2.5rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.88);
    cursor: pointer;
}

.ne-user-button.active {
    background: #1f2f3d;
    color: #fff8ef;
}

.ne-link-button {
    border: 0;
    background: transparent;
    color: var(--accent-deep);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.pb-fq-demo {
    position: relative;
}

.pb-fq-demo-shell {
    border: 1px solid rgba(19, 30, 39, 0.16);
    border-radius: 1.4rem;
    overflow: hidden;
    background: #eef2f6;
    min-height: 100vh;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.pb-fq-demo-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, #223241 0%, #1a2734 100%);
    color: #ecf3f8;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pb-fq-demo-brand {
    display: grid;
    gap: 0.2rem;
}

.pb-fq-demo-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(236, 243, 248, 0.66);
}

.pb-fq-demo-body {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-content: start;
}

.pb-fq-demo-card {
    border: 1px solid rgba(51, 71, 91, 0.12);
    border-radius: 1rem;
    background: #ffffff;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    box-shadow: 0 14px 28px rgba(24, 39, 56, 0.05);
}

.pb-fq-demo-card p {
    color: #607080;
}

.pb-fq-demo-actions,
.pb-fq-demo-users,
.pb-fq-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.pb-fq-user {
    min-height: 2.35rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    border: 1px solid #d9e0e7;
    background: #f8fafc;
    color: #1f2937;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.pb-fq-user.active {
    border-color: #892523;
    background: rgba(137, 37, 35, 0.08);
    color: #892523;
}

.nav-notifications {
    position: relative;
}

.pb-fq-inline-actions {
    justify-content: flex-end;
}

.notif-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #ecf3f8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.notif-btn:hover {
    background: rgba(255,255,255,0.18);
}

.notif-btn:active {
    transform: scale(0.95);
}

.notif-icon {
    width: 18px;
    height: 18px;
}

.notif-dot {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 10px;
    height: 10px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff6a00;
    color: white;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1f2937;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 2;
}

.notif-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.notif-new-badge {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    white-space: nowrap;
    background: #ff6a00;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.45);
    z-index: 1002;
    pointer-events: none;
    animation: notifBadgeIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both, notifBadgeFade 0.4s ease 3.6s both;
}

@keyframes notifBadgeIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.85); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes notifBadgeFade {
    from { opacity: 1; }
    to { opacity: 0; }
}

.notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 300px;
    max-width: calc(100vw - 20px);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    overflow: hidden;
    z-index: 1001;
    display: none;
    animation: notifFade 0.15s ease;
}

.notif-panel.open {
    display: block;
}

.notif-header {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #33475b;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.notif-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
}

.notif-item {
    padding: 12px 14px;
    font-size: 13px;
    color: #33475b;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #f5f8fa;
}

.notif-unread {
    background: #fffbf0;
    border-left: 3px solid #ff6a00;
}

.notif-unread:hover {
    background: #fff3e0;
}

.notif-item--link .notif-item-title::after {
    content: " ->";
    font-size: 11px;
    opacity: 0.5;
}

.notif-item-title {
    font-weight: 600;
    font-size: 12.5px;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.notif-item-msg {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

.notif-item-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.notif-mark-all-btn {
    background: none;
    border: none;
    font-size: 11px;
    color: #892523;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
}

.notif-mark-all-btn:hover {
    text-decoration: underline;
}

.notif-empty {
    padding: 26px 14px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

@keyframes notifFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.42);
    z-index: 1010;
}

.notif-drawer {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    width: min(420px, calc(100vw - 2.4rem));
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 28px 60px rgba(0,0,0,0.28);
    z-index: 1011;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.notif-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.notif-drawer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.notif-drawer-close {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: #eef2f6;
    cursor: pointer;
    font: inherit;
}

.notif-drawer-body {
    overflow-y: auto;
}

.dn-shell {
    display: grid;
    gap: 1rem;
}

.dn-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 252, 247, 0.94);
}

.dn-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-deep);
    font-size: 0.72rem;
    font-weight: 700;
}

.dn-mode-switch {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.dn-mode {
    min-height: 2.65rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 245, 0.88);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.dn-mode.active {
    background: #1f2f3d;
    color: #fff8ef;
}

.dn-stage {
    min-height: calc(100vh - 15rem);
    border: 1px solid rgba(19, 30, 39, 0.14);
    border-radius: 1.5rem;
    overflow: hidden;
    background: #eef2f6;
}

.dn-stage.management {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: 50px minmax(0, 1fr);
    background: #f5f8fa;
}

.dn-browse-bar {
    background: #f8fbfd;
    border-bottom: 1px solid rgba(15, 61, 46, 0.08);
    padding: 0 24px;
}

.dn-browse-inner {
    height: 60px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 20px;
}

.dn-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.dn-brand-icon {
    width: 42px;
    height: 42px;
    background: #0f3d2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dn-brand-icon svg {
    width: 24px;
    height: 24px;
}

.dn-brand-text {
    display: flex;
    flex-direction: column;
}

.dn-brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1f6f5a;
}

.dn-brand-tagline {
    font-size: 10px;
    font-style: italic;
    letter-spacing: 0.02em;
    color: #8faacc;
    margin-top: 2px;
}

.dn-search {
    display: flex;
    align-items: center;
    background: #f5f0e8;
    border-radius: 6px;
    overflow: hidden;
    height: 38px;
}

.dn-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0 14px;
    font: inherit;
    color: #333;
    outline: none;
}

.dn-search button {
    width: 44px;
    height: 38px;
    background: #0f3d2e;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dn-search svg {
    width: 18px;
    height: 18px;
}

.dn-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dn-lang a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #8faacc;
    text-decoration: none;
}

.dn-lang a.active {
    color: #1f6f5a;
}

.dn-lang span {
    color: #4a6278;
    font-size: 12px;
}

.dn-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dn-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    background: #0f3d2e;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: #fff;
}

.dn-icon-btn svg {
    width: 18px;
    height: 18px;
}

.dn-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    background: #0f3d2e;
    border: 2px solid #1a2a3a;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dn-browse-body {
    padding: 1.25rem;
}

.dn-browser-hero {
    min-height: calc(100vh - 22rem);
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(15,61,46,0.08), rgba(255,255,255,0.9));
    display: grid;
    align-content: start;
    gap: 1.25rem;
}

.dn-browser-grid,
.dn-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dn-browser-grid article,
.dn-admin-grid article,
.dn-admin-card {
    border: 1px solid rgba(15, 61, 46, 0.1);
    background: rgba(255,255,255,0.96);
    border-radius: 1rem;
    padding: 1rem;
}

.dn-browser-grid article,
.dn-admin-grid article {
    display: grid;
    gap: 0.35rem;
}

.dn-browser-grid span,
.dn-admin-grid span,
.dn-admin-card p {
    color: var(--muted);
}

.dn-manage-bar {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 2;
    width: 100%;
    height: 50px;
    background: #0f3d2e;
    color: #fff;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dn-manage-brand {
    font-size: 14px;
    font-weight: 700;
}

.dn-manage-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 4;
}

.dn-manage-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.dn-admin-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: calc(100vh - 15rem - 50px);
    background: #f5f8fa;
}

.dn-sidebar {
    position: relative;
    grid-column: 1;
    width: 56px;
    min-height: 100%;
    background: #0f3d2e;
    z-index: 1;
}

.dn-sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 2px;
    width: 100%;
}

.dn-nav-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd6e2;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.dn-nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.dn-nav-icon:hover,
.dn-nav-icon.active {
    background: #425b76;
    color: #fff;
}

.dn-flyout-group {
    position: relative;
}

.dn-flyout-group:hover .dn-flyout-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.dn-flyout-panel {
    position: absolute;
    left: calc(100% + 6px);
    top: 0;
    width: 220px;
    background: #0f3d2e;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
    padding: 6px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.dn-flyout-panel::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 14px;
    border: 6px solid transparent;
    border-right-color: #0f3d2e;
    border-left: none;
}

.dn-flyout-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd6e2;
    padding: 6px 10px 4px;
    opacity: 0.7;
}

.dn-flyout-link {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    color: #a8c0d6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.dn-flyout-link:hover,
.dn-flyout-link.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.dn-admin-content {
    grid-column: 2;
    min-height: calc(100vh - 15rem - 50px);
    padding: 0;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Dashboard reporting module */
.dbm-demo {
    width: 100%;
}

.dbm-demo .ds-page {
    min-height: 100vh;
    background: #f7f7fb;
    color: #101828;
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 1.5rem;
    overflow: hidden;
}

.dbm-demo .ds-container {
    padding: 1.5rem;
}

.dbm-wrap {
    display: grid;
    gap: 1rem;
}

.dbm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dbm-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b75b2b;
}

.dbm-header h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    color: #172b45;
}

.dbm-subtitle {
    margin: 0.65rem 0 0;
    max-width: 48rem;
    color: rgba(16,24,40,.72);
}

.dbm-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dbm-range-group {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 999px;
    border: 1px solid rgba(16,24,40,.1);
    background: rgba(255,255,255,.92);
}

.dbm-range-btn {
    border: none;
    background: transparent;
    color: #172b45;
    font: inherit;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
}

.dbm-range-btn:hover {
    background: rgba(16,24,40,.06);
}

.dbm-range-btn.active {
    background: #1f2f3d;
    color: #fff8ef;
}

.dbm-filters-card,
.dbm-panel-card {
    position: relative;
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
    background: rgba(255,255,255,.96);
}

.dbm-filters-card {
    padding: 1rem;
}

.dbm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.dbm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(16,24,40,.1);
    background: rgba(16,24,40,.03);
    font-size: 0.82rem;
}

.dbm-customizer {
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 1.25rem;
    background: rgba(255,255,255,.96);
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
    overflow: hidden;
}

.dbm-customizer-toggle {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
}

.dbm-customizer-toggle h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #172b45;
}

.dbm-customizer-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16,24,40,.06);
    color: #172b45;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dbm-customizer-body {
    padding: 0 1.1rem 1.1rem;
    display: grid;
    gap: 1rem;
    border-top: 1px solid rgba(16,24,40,.08);
}

.dbm-customizer-section {
    display: grid;
    gap: 0.75rem;
}

.dbm-customizer-section h4 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(16,24,40,.68);
}

.dbm-kpi-strip {
    margin-bottom: 0;
}

.dbm-grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.95fr);
    gap: 1rem;
}

.dbm-grid-main.single {
    grid-template-columns: 1fr;
}

.dbm-grid-secondary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dbm-grid-secondary.double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dbm-grid-secondary.single {
    grid-template-columns: 1fr;
}

.dbm-panel-copy {
    margin-bottom: 0.75rem;
    padding-right: 6rem;
}

.dbm-demo :root,
.dbm-demo {
    --ds-bg: #f7f7fb;
    --ds-surface: #ffffff;
    --ds-surface-2: #fcfcff;
    --ds-text: #101828;
    --ds-muted: rgba(16,24,40,.64);
    --ds-border: rgba(16,24,40,.10);
    --ds-border-strong: rgba(16,24,40,.16);
    --ds-shadow-sm: 0 1px 2px rgba(16,24,40,.06);
    --ds-shadow-md: 0 6px 18px rgba(16,24,40,.08);
    --ds-radius: 16px;
    --ds-radius-sm: 12px;
    --ds-pad: 16px;
    --ds-pad-lg: 20px;
    --ds-gap: 16px;
    --ds-h1: 26px;
    --ds-h2: 16px;
    --ds-kpi: 22px;
    --ds-primary: #0366d6;
    --ds-success: #16a34a;
    --ds-warning: #f59e0b;
    --ds-danger: #dc2626;
    --ds-info: #0891b2;
}

.dbm-demo .ds-card {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow-sm);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.dbm-demo .ds-card:hover {
    border-color: var(--ds-border-strong);
    box-shadow: var(--ds-shadow-md);
    transform: translateY(-1px);
}

.dbm-demo .ds-card-pad {
    padding: var(--ds-pad-lg);
}

.dbm-demo .ds-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dbm-demo .ds-card-title {
    margin: 0;
    font-size: var(--ds-h2);
    font-weight: 900;
    letter-spacing: -.01em;
}

.dbm-demo .ds-meta {
    margin-top: 8px;
    color: var(--ds-muted);
    font-size: 12px;
}

.dbm-demo .ds-kpi-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--ds-gap);
}

.dbm-demo .kpi-row {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--ds-gap);
    width: 100%;
}

.dbm-demo .kpi-row .ds-kpi-card {
    flex: 1 1 0;
    min-width: 220px;
}

.dbm-demo .ds-kpi-card {
    padding: 16px 16px 14px;
    border-radius: var(--ds-radius);
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    box-shadow: var(--ds-shadow-sm);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.dbm-demo .ds-kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--ds-border-strong);
    box-shadow: var(--ds-shadow-md);
}

.dbm-demo .ds-kpi-card .label {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--ds-muted);
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.dbm-demo .ds-kpi-card .value {
    margin: 0;
    font-size: var(--ds-kpi);
    font-weight: 950;
    letter-spacing: -.02em;
}

.dbm-demo .ds-kpi-card .sub {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--ds-muted);
}

.dbm-demo .ds-kpi-primary {
    border-left: 4px solid var(--ds-primary);
}

.dbm-demo .ds-kpi-success {
    border-left: 4px solid var(--ds-success);
}

.dbm-demo .ds-kpi-warning {
    border-left: 4px solid var(--ds-warning);
}

.dbm-demo .ds-kpi-danger {
    border-left: 4px solid var(--ds-danger);
}

.dbm-demo .ds-kpi-info {
    border-left: 4px solid var(--ds-info);
}

.dbm-demo .panel-title {
    font-weight: 800;
    letter-spacing: .2px;
}

.dbm-demo .panel-sub {
    font-size: .85rem;
    opacity: .72;
}

.dbm-demo .dash-loading {
    min-height: 240px;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.dbm-demo .dash-rel {
    position: relative;
}

.dbm-demo .dash-chart-switch {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--ds-border);
    background: rgba(255,255,255,.92);
    box-shadow: var(--ds-shadow-sm);
}

.dbm-demo .dash-chart-btn,
.dbm-demo .chart-type-btn {
    border: 0;
    background: transparent;
    padding: 6px 8px;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(16,24,40,.70);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dbm-demo .dash-chart-btn:hover,
.dbm-demo .chart-type-btn:hover {
    background: rgba(16,24,40,.06);
    color: rgba(16,24,40,.90);
}

.dbm-demo .dash-chart-btn.active,
.dbm-demo .chart-type-btn.active {
    background: rgba(3,102,214,.12);
    color: var(--ds-primary);
}

.dbm-demo .chart-type-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    gap: .25rem;
    background: white;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 10px;
    padding: .35rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.dbm-demo .ds-customizer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.dbm-demo .ds-toggle-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(0,0,0,.02);
    color: rgba(0,0,0,.78);
    cursor: pointer;
    user-select: none;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    font: inherit;
    font-weight: 700;
}

.dbm-demo .ds-toggle-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16,24,40,.08);
    border-color: rgba(16,24,40,.18);
}

.dbm-demo .ds-toggle-chip.active {
    background: rgba(3,102,214,.12);
    border-color: rgba(3,102,214,.24);
    color: #0b4ea2;
}

@media (max-width: 1100px) {
    .dbm-grid-main,
    .dbm-grid-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dbm-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dbm-actions {
        justify-content: flex-start;
    }

    .dbm-demo .ds-container {
        padding: 1rem;
    }

    .dbm-customizer-toggle {
        align-items: flex-start;
    }

    .dbm-demo .chart-type-switcher,
    .dbm-demo .dash-chart-switch {
        position: static;
        margin-bottom: 0.75rem;
        width: fit-content;
    }

    .dbm-panel-copy {
        padding-right: 0;
    }
}

/* Email engine module */
.ee-demo-shell {
    display: grid;
    gap: 1rem;
}

.ee-hero,
.ee-panel,
.ee-metric-card {
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 1.25rem;
    background: rgba(255,255,255,.96);
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
}

.ee-hero,
.ee-panel {
    padding: 1.25rem;
}

.ee-kicker,
.ee-section-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #892523;
}

.ee-hero h2,
.ee-panel h3 {
    margin: 0;
    color: #172b45;
}

.ee-copy {
    margin: 0.75rem 0 0;
    max-width: 58rem;
    color: rgba(16,24,40,.74);
}

.ee-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ee-metric-grid,
.ee-grid {
    display: grid;
    gap: 1rem;
}

.ee-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ee-grid {
    grid-template-columns: 1fr 1.2fr;
}

.ee-metric-card {
    padding: 1rem;
    display: grid;
    gap: 0.25rem;
}

.ee-metric-card strong {
    font-size: 1.55rem;
    color: #172b45;
}

.ee-metric-card span {
    color: rgba(16,24,40,.68);
    font-size: 0.92rem;
}

.ee-panel-head {
    margin-bottom: 1rem;
}

.ee-template-list {
    display: grid;
    gap: 0.75rem;
}

.ee-template-item {
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 0.9rem;
    padding: 0.9rem;
    display: grid;
    gap: 0.35rem;
    background: rgba(16,24,40,.02);
}

.ee-template-item span,
.ee-note,
.hs-muted {
    color: rgba(16,24,40,.64);
}

.hs-grid.ee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hs-field {
    display: grid;
    gap: 0.45rem;
}

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

.hs-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.hs-field input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(16,24,40,.12);
    background: #fff;
}

.hs-btn {
    border: 1px solid rgba(16,24,40,.12);
    background: #fff;
    color: #172b45;
    border-radius: 0.8rem;
    padding: 0.65rem 0.95rem;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.hs-btn:hover {
    background: rgba(16,24,40,.04);
}

.hs-btn-primary {
    background: #892523;
    border-color: #892523;
    color: #fff;
}

.hs-btn-primary:hover {
    background: #6f1b1a;
}

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

.hs-table thead {
    background: rgba(16,24,40,.03);
}

.hs-table th,
.hs-table td {
    padding: 0.8rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(16,24,40,.08);
    font-size: 0.92rem;
}

.hs-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.hs-pill-active {
    background: rgba(22,163,74,.12);
    border-color: rgba(22,163,74,.22);
    color: #166534;
}

.hs-pill-inactive {
    background: rgba(148,163,184,.16);
    border-color: rgba(148,163,184,.26);
    color: #475569;
}

.hs-pill-danger {
    background: rgba(220,38,38,.12);
    border-color: rgba(220,38,38,.24);
    color: #b91c1c;
}

.ee-reminder-shell {
    display: grid;
    gap: 1rem;
}

.ee-reminder-summary {
    background: #f8f7f4;
    border: 1px solid #e0dbd3;
    border-radius: 0.8rem;
    padding: 0.95rem 1rem;
}

.ee-reminder-title {
    font-size: 0.92rem;
    color: #172b45;
}

.ee-reminder-sub {
    margin-top: 0.35rem;
    font-size: 0.84rem;
    color: #5b6472;
}

.ee-recipient-section {
    display: grid;
    gap: 0.45rem;
}

.ee-recipient-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
}

.ee-recipient-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.ee-reminder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ec-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .22);
    width: min(600px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ec-title {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
}

.ec-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
}

.ec-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ec-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ec-label {
    font-size: .8125rem;
    font-weight: 500;
    color: #374151;
}

.ec-input,
.ec-textarea {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .9rem;
    background: #fff;
    color: #111827;
}

.ec-textarea {
    resize: vertical;
    min-height: 160px;
    font-family: ui-monospace, monospace;
}

.ec-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .875rem;
}

.ec-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.ec-alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.ec-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
}

.ec-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.ec-contact-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-size: 12px;
}

.ec-contact-chip:hover {
    border-color: #892523;
    background: #fdf6f6;
}

.ec-contact-chip.ec-chip--selected {
    border-color: #1d4ed8;
    background: #eff6ff;
}

.ec-chip-service {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #892523;
    background: #fde8e8;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 55px;
    text-align: center;
}

.ec-chip-email {
    font-weight: 500;
    color: #1a202c;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-chip-person {
    font-size: 11px;
    color: #718096;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .ee-metric-grid,
    .ee-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .ee-metric-grid,
    .ee-grid,
    .hs-grid.ee-grid {
        grid-template-columns: 1fr;
    }

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

    .ee-actions,
    .ee-reminder-actions {
        flex-direction: column;
    }
}

/* SVG editor and viewer module */
.sev-shell {
    display: grid;
    gap: 1rem;
}

.sev-hero,
.sev-panel,
.sev-target-card {
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 1.25rem;
    background: rgba(255,255,255,.96);
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
}

.sev-hero,
.sev-panel {
    padding: 1.25rem;
}

.sev-kicker,
.sev-section-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f766e;
}

.sev-hero h2,
.sev-panel h3 {
    margin: 0;
    color: #172b45;
}

.sev-copy {
    margin: 0.75rem 0 0;
    max-width: 58rem;
    color: rgba(16,24,40,.74);
}

.sev-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sev-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 1rem;
}

.sev-panel-head {
    margin-bottom: 1rem;
}

.sev-viewer-wrap {
    min-height: 34rem;
}

.pdp-blueprint-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
    gap: 1rem;
}

.pdp-blueprint-map {
    position: relative;
    min-height: 32rem;
    border-radius: 1rem;
    border: 1px solid rgba(16,24,40,.08);
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    overflow: hidden;
}

.pdp-blueprint-map svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pdp-blueprint-panel {
    border-radius: 1rem;
    border: 1px solid rgba(16,24,40,.08);
    background: rgba(16,24,40,.02);
    padding: 1rem;
    min-height: 32rem;
}

.pdp-bp-placeholder {
    height: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    color: rgba(16,24,40,.55);
}

.pdp-building-card {
    display: grid;
    gap: 0.9rem;
}

.pdp-bc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.pdp-bc-name {
    margin: 0;
}

.pdp-bc-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(59,130,246,.12);
    color: #1d4ed8;
}

.pdp-bc-stat {
    display: grid;
    gap: 0.25rem;
}

.pdp-bc-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(16,24,40,.52);
}

.pdp-bc-stat-value {
    color: #172b45;
}

.sev-target-list {
    display: grid;
    gap: 0.75rem;
}

.sev-target-card {
    padding: 0.9rem;
    display: grid;
    gap: 0.35rem;
}

.sev-target-card span {
    color: rgba(16,24,40,.68);
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 3px solid rgba(148,163,184,.35);
    border-top-color: #38bdf8;
    animation: spin .8s linear infinite;
}

.editor-shortcuts-bar {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(15,23,42,.78);
    border: 1px solid rgba(255,255,255,.08);
    z-index: 9400;
}

.shortcut-item {
    color: rgba(255,255,255,.72);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.shortcut-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    padding: 0.1rem 0.3rem;
    border-radius: 0.35rem;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-family: monospace;
}

@media (max-width: 980px) {
    .sev-grid,
    .pdp-blueprint-layout {
        grid-template-columns: 1fr;
    }

    .pdp-blueprint-panel,
    .pdp-blueprint-map {
        min-height: 22rem;
    }
}

@media (max-width: 760px) {
    .sev-actions {
        flex-direction: column;
    }

    .editor-shortcuts-bar {
        position: static;
        transform: none;
        margin: 0.75rem;
        border-radius: 1rem;
    }
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.cw-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
}

.cw-shell {
    position: relative;
    display: grid;
    gap: 1.25rem;
}

.cw-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.3rem 1.4rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(18, 36, 54, 0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(245,248,250,0.96) 100%);
}

.cw-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #b45309;
}

.cw-hero h2,
.cw-drawer-head h3 {
    margin: 0;
    color: #12314c;
}

.cw-copy {
    margin: 0.7rem 0 0;
    max-width: 60rem;
    color: rgba(18, 49, 76, 0.72);
}

.cw-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cw-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid rgba(21, 128, 61, 0.18);
    background: rgba(236, 253, 245, 0.92);
    color: #166534;
}

.cw-banner-close,
.cw-drawer-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
}

.cw-filter-dock,
.cw-table-shell {
    padding: 1.15rem 1.2rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(18, 36, 54, 0.08);
    background: rgba(255,255,255,0.98);
}

.cw-filter-summary {
    cursor: pointer;
    font-weight: 700;
    color: #12314c;
    list-style: none;
}

.cw-filter-summary::-webkit-details-marker {
    display: none;
}

.cw-filter-grid,
.cw-drawer-body {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.95rem;
}

.cw-field {
    display: grid;
    gap: 0.4rem;
}

.cw-field span,
.cw-checkbox span {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(18, 49, 76, 0.72);
}

.cw-field input,
.cw-field select,
.cw-field textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 0.9rem;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.82rem 0.9rem;
    outline: none;
}

.cw-field input:focus,
.cw-field select:focus,
.cw-field textarea:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.cw-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-top: 2rem;
}

.cw-chip-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.cw-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.7);
    color: #1d4ed8;
    border: 1px solid rgba(96, 165, 250, 0.24);
    font-size: 0.82rem;
}

.cw-chip.action {
    cursor: pointer;
}

.cw-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.cw-metric-card {
    display: grid;
    gap: 0.3rem;
    padding: 1.05rem 1.15rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(19, 78, 74, 0.97) 0%, rgba(15, 118, 110, 0.92) 100%);
    color: #f8fafc;
}

.cw-metric-card strong {
    font-size: 1.65rem;
}

.cw-table th {
    cursor: pointer;
    user-select: none;
}

.cw-row {
    cursor: pointer;
}

.cw-row:hover td {
    background: rgba(239, 246, 255, 0.72);
}

.cw-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #0f172a;
}

.cw-title-cell {
    display: grid;
    gap: 0.2rem;
}

.cw-title-cell span {
    color: rgba(15, 23, 42, 0.58);
    font-size: 0.82rem;
}

.cw-status {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.cw-status.active {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.cw-status.draft {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.cw-status.blocked {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.cw-status.archived {
    background: rgba(100, 116, 139, 0.16);
    color: #475569;
}

.cw-row-actions {
    white-space: nowrap;
}

.cw-empty {
    display: grid;
    place-content: center;
    min-height: 9rem;
    color: rgba(15, 23, 42, 0.55);
}

.cw-pager {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cw-pager-actions {
    display: flex;
    gap: 0.65rem;
}

.cw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 1200;
}

.cw-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(34rem, 100vw);
    height: 100vh;
    padding: 1.2rem;
    background: #fff;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.16);
    z-index: 1201;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
}

.cw-drawer-head,
.cw-drawer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

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

.aca-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
}

.aca-shell {
    position: relative;
    display: grid;
    gap: 1.2rem;
}

.aca-hero,
.aca-panel {
    border: 1px solid rgba(18, 36, 54, 0.08);
    background: rgba(255,255,255,0.98);
    border-radius: 1.5rem;
}

.aca-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.3rem 1.4rem;
}

.aca-kicker,
.aca-section-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9a3412;
}

.aca-copy {
    margin-top: 0.7rem;
    max-width: 58rem;
    color: rgba(18, 49, 76, 0.72);
}

.aca-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
}

.aca-search,
.aca-role-select,
.aca-field input {
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 0.95rem;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.82rem 0.9rem;
    outline: none;
}

.aca-search {
    min-width: 18rem;
}

.aca-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: rgba(239, 246, 255, 0.96);
    color: #1d4ed8;
}

.aca-banner-close,
.aca-drawer-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
}

.aca-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.aca-metric-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.96) 0%, rgba(29, 78, 216, 0.9) 100%);
    color: #eff6ff;
}

.aca-metric-card strong {
    font-size: 1.6rem;
}

.aca-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1rem;
}

.aca-panel {
    padding: 1.2rem;
}

.aca-panel-head,
.aca-drawer-head,
.aca-drawer-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.aca-table th {
    white-space: nowrap;
}

.aca-row {
    cursor: pointer;
}

.aca-row.selected td {
    background: rgba(219, 234, 254, 0.68);
}

.aca-row:hover td {
    background: rgba(241, 245, 249, 0.9);
}

.aca-account-title,
.aca-account-meta {
    display: grid;
    gap: 0.18rem;
}

.aca-account-title span,
.aca-account-meta span,
.aca-account-meta small {
    color: rgba(15, 23, 42, 0.58);
}

.aca-role-chip-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.aca-role-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--role-color) 14%, white);
    color: var(--role-color);
    font-size: 0.78rem;
    font-weight: 800;
}

.aca-role-chip.large {
    font-size: 0.9rem;
    padding: 0.45rem 0.8rem;
}

.aca-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.aca-status.active {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.aca-status.inactive {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.aca-row-actions {
    white-space: nowrap;
}

.aca-role-summary {
    display: grid;
    gap: 0.55rem;
    margin: 0.9rem 0 1rem;
}

.aca-role-summary p {
    color: rgba(15, 23, 42, 0.62);
}

.aca-matrix {
    display: grid;
    gap: 0.85rem;
}

.aca-matrix-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.2fr);
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.aca-matrix-row span {
    color: rgba(15, 23, 42, 0.56);
}

.aca-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.aca-toggle,
.aca-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.aca-effective-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.aca-effective-card {
    display: grid;
    gap: 0.28rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #f8fafc;
}

.aca-effective-card span {
    color: rgba(15, 23, 42, 0.62);
}

.aca-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 1200;
}

.aca-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(34rem, 100vw);
    height: 100vh;
    padding: 1.2rem;
    background: #fff;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.16);
    z-index: 1201;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
}

.aca-drawer-body {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.aca-field {
    display: grid;
    gap: 0.35rem;
}

.aca-field span,
.aca-role-picker > span {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(18, 49, 76, 0.72);
}

.aca-role-picker {
    display: grid;
    gap: 0.6rem;
    padding-top: 0.35rem;
}

.mm-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
}

.mm-shell {
    display: grid;
    gap: 1.2rem;
}

.mm-hero,
.mm-panel {
    border: 1px solid rgba(18, 36, 54, 0.08);
    background: rgba(255,255,255,0.98);
    border-radius: 1.5rem;
}

.mm-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.3rem 1.4rem;
}

.mm-kicker,
.mm-section-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #92400e;
}

.mm-copy {
    margin-top: 0.7rem;
    max-width: 58rem;
    color: rgba(18, 49, 76, 0.72);
}

.mm-actions,
.mm-inline-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.mm-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    background: rgba(236, 253, 245, 0.96);
    border: 1px solid rgba(34, 197, 94, 0.18);
    color: #166534;
}

.mm-banner-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
}

.mm-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.mm-metric-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.96) 0%, rgba(13, 148, 136, 0.92) 100%);
    color: #f0fdfa;
}

.mm-metric-card strong {
    font-size: 1.6rem;
}

.mm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 1rem;
}

.mm-panel {
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.mm-upload-card {
    display: grid;
    place-items: center;
    gap: 0.45rem;
    padding: 1.3rem;
    border-radius: 1.2rem;
    border: 1px dashed rgba(45, 212, 191, 0.42);
    background: linear-gradient(180deg, rgba(240, 253, 250, 1) 0%, rgba(248, 250, 252, 1) 100%);
    text-align: center;
}

.mm-upload-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
    font-size: 1.3rem;
    font-weight: 800;
}

.mm-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.mm-field {
    display: grid;
    gap: 0.35rem;
}

.mm-field span {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(18, 49, 76, 0.72);
}

.mm-field input,
.mm-field select {
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 0.9rem;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.8rem 0.9rem;
    outline: none;
}

.mm-chip-row,
.mm-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mm-chip,
.mm-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.28);
    background: rgba(240, 253, 250, 0.92);
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
}

.mm-chip {
    cursor: pointer;
}

.mm-library {
    display: grid;
    gap: 0.75rem;
}

.mm-asset-card {
    display: grid;
    grid-template-columns: 5.2rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #f8fafc;
    cursor: pointer;
}

.mm-asset-card.selected {
    border-color: rgba(45, 212, 191, 0.38);
    background: rgba(240, 253, 250, 0.96);
}

.mm-asset-thumb {
    width: 5.2rem;
    height: 5.2rem;
    overflow: hidden;
    border-radius: 0.9rem;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-weight: 800;
}

.mm-asset-thumb img,
.mm-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-asset-meta {
    display: grid;
    gap: 0.2rem;
}

.mm-asset-meta span,
.mm-asset-meta small {
    color: rgba(15, 23, 42, 0.58);
}

.mm-preview-card {
    display: grid;
    gap: 1rem;
}

.mm-preview-media {
    min-height: 18rem;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #e2e8f0;
}

.mm-preview-fallback,
.mm-empty {
    min-height: 18rem;
    display: grid;
    place-content: center;
    color: rgba(15, 23, 42, 0.55);
}

.mm-preview-list {
    display: grid;
    gap: 0.7rem;
    margin: 1rem 0;
}

.mm-preview-list div {
    display: grid;
    gap: 0.18rem;
}

.mm-preview-list span {
    color: rgba(15, 23, 42, 0.62);
}

.mm-attach-box {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.ls-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
}

.ls-shell {
    display: grid;
    gap: 1.2rem;
}

.ls-hero,
.ls-panel {
    border: 1px solid rgba(18, 36, 54, 0.08);
    background: rgba(255,255,255,0.98);
    border-radius: 1.5rem;
}

.ls-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.3rem 1.4rem;
}

.ls-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7c3aed;
}

.ls-copy {
    margin-top: 0.7rem;
    max-width: 58rem;
    color: rgba(18, 49, 76, 0.72);
}

.ls-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ls-culture-btn {
    border: 1px solid rgba(196, 181, 253, 0.55);
    background: rgba(245, 243, 255, 0.92);
    color: #6d28d9;
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
    font-weight: 800;
    cursor: pointer;
}

.ls-culture-btn.active {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    color: #f5f3ff;
    border-color: transparent;
}

.ls-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    background: rgba(245, 243, 255, 0.96);
    border: 1px solid rgba(167, 139, 250, 0.24);
    color: #6d28d9;
}

.ls-banner-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
}

.ls-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ls-map-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr) minmax(0, 0.85fr);
}

.ls-map-copy {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.ls-legend {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.ls-legend-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
    align-items: center;
}

.ls-legend-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
}

.ls-map-stage {
    min-height: 26rem;
}

.ls-map-canvas {
    min-height: 26rem;
    height: 100%;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.ls-region-grid {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.ls-region-card {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.ls-region-card p {
    margin: 0;
    color: rgba(18, 49, 76, 0.76);
}

.ls-region-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ls-region-head span {
    display: block;
    margin-top: 0.2rem;
    color: rgba(18, 49, 76, 0.62);
}

.ls-region-head mark {
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: rgba(109, 40, 217, 0.1);
    color: #6d28d9;
    font-weight: 800;
}

.ls-map-pin {
    background: transparent;
    border: 0;
}

.ls-map-pin span {
    display: block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.96);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.ls-map-popup {
    display: grid;
    gap: 0.3rem;
}

.ls-map-popup span,
.ls-map-popup small {
    color: rgba(15, 23, 42, 0.66);
}

.ls-metric-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.96) 0%, rgba(139, 92, 246, 0.92) 100%);
    color: #f5f3ff;
}

.ls-metric-card strong {
    font-size: 1.6rem;
}

.ls-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.ls-panel {
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.ls-filter-grid,
.ls-preview-grid {
    display: grid;
    gap: 0.85rem;
}

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

.ls-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ls-preview-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.ls-preview-card span,
.ls-preview-card small {
    color: rgba(15, 23, 42, 0.6);
}

.ls-table-wrap {
    overflow: auto;
}

.ls-key-cell {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84rem;
    color: #334155;
}

.ls-value-btn {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #fff;
    color: #0f172a;
    border-radius: 0.8rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    text-align: left;
    min-width: 10rem;
}

.ls-value-btn.missing {
    background: rgba(254, 242, 242, 0.9);
    border-color: rgba(248, 113, 113, 0.22);
    color: #b91c1c;
}

.ls-field {
    display: grid;
    gap: 0.35rem;
}

.ls-field span,
.ls-checkbox span {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(18, 49, 76, 0.72);
}

.ls-field input,
.ls-field select,
.ls-field textarea {
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 0.9rem;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.8rem 0.9rem;
    outline: none;
}

.ls-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-top: 2rem;
}

.ls-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 1200;
}

.ls-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(32rem, 100vw);
    height: 100vh;
    padding: 1.2rem;
    background: #fff;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.16);
    z-index: 1201;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
}

.ls-drawer-head,
.ls-drawer-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ls-drawer-body {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

@media (max-width: 980px) {
    .hero-panel,
    .estimator-layout,
    .pillars-grid,
    .detail-grid,
    .ne-demo-layout,
    .cw-metrics,
    .aca-metrics,
    .aca-grid,
    .aca-effective-grid,
    .mm-metrics,
    .mm-layout,
    .ls-metrics,
    .ls-layout,
    .ls-map-layout,
    .ls-preview-grid {
        grid-template-columns: 1fr;
    }

    .estimate-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero-panel,
    .section-block,
    .estimate-panel {
        padding: 1.1rem;
        border-radius: 1.3rem;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-grid,
    .meta-list,
    .cw-filter-grid,
    .cw-drawer-body,
    .mm-filter-grid,
    .ls-filter-grid {
        grid-template-columns: 1fr;
    }

    .ne-item,
    .ne-card-top,
    .ne-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .pb-fq-demo-body {
        grid-template-columns: 1fr;
    }

    .ne-page-fullbleed {
        padding: 1rem;
    }

    .cw-hero,
    .cw-pager,
    .cw-drawer-head,
    .cw-drawer-actions,
    .aca-hero,
    .aca-panel-head,
    .aca-drawer-head,
    .aca-drawer-actions,
    .mm-hero,
    .ls-hero,
    .ls-drawer-head,
    .ls-drawer-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cw-checkbox {
        padding-top: 0;
    }

    .cw-span-2 {
        grid-column: auto;
    }

    .aca-search {
        min-width: 0;
        width: 100%;
    }

    .aca-matrix-row {
        grid-template-columns: 1fr;
    }

    .ls-checkbox {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 1rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .page-frame {
        width: 100%;
        max-width: 100%;
        min-height: calc(100vh - 7.5rem);
        padding: 1rem;
    }

    .notif-panel {
        right: -10px;
        width: calc(100vw - 20px);
    }

    .dn-toolbar,
    .dn-browse-inner {
        grid-template-columns: 1fr;
        display: grid;
        align-items: stretch;
    }

    .dn-browser-grid,
    .dn-admin-grid {
        grid-template-columns: 1fr;
    }

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

    .dn-sidebar {
        grid-column: 1;
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .dn-admin-content {
        grid-column: 1;
    }
}
