@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');
@import url('/css/mobile-dashboard-kit.css');

: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;
    position: relative;
    z-index: 0;
}

.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;
    }
}

.ib-page {
    width: 100vw;
    min-height: 100vh;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

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

.ib-hero,
.ib-actions,
.ib-card-top,
.ib-card-meta,
.ib-card-bottom,
.ib-detail-head,
.ib-inline-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

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

.ib-copy {
    color: rgba(30, 41, 59, 0.72);
    max-width: 62rem;
}

.ib-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.08), rgba(234, 179, 8, 0.08));
    border: 1px solid rgba(22, 101, 52, 0.12);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    color: #14532d;
}

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

.ib-metrics,
.ib-overview-grid,
.ib-subgrid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

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

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

.ib-metric-card,
.ib-panel,
.ib-detail-card,
.ib-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.ib-metric-card {
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.35rem;
}

.ib-metric-card strong {
    font-size: 1.45rem;
    color: #10243a;
}

.ib-metric-card span {
    color: rgba(30, 41, 59, 0.66);
}

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

.ib-panel {
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

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

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

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

.ib-field input,
.ib-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;
}

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

.ib-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ib-chip {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
}

.ib-chip.active {
    background: #10243a;
    color: #fff;
    border-color: #10243a;
}

.ib-list,
.ib-line-list,
.ib-payment-list,
.ib-hook-list,
.ib-total-list {
    display: grid;
    gap: 0.8rem;
}

.ib-card {
    padding: 0.95rem;
    cursor: pointer;
}

.ib-card.selected {
    border-color: rgba(13, 148, 136, 0.45);
    box-shadow: 0 20px 44px rgba(13, 148, 136, 0.12);
}

.ib-card-meta,
.ib-card-bottom {
    color: rgba(30, 41, 59, 0.68);
    font-size: 0.92rem;
}

.ib-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.77rem;
    font-weight: 800;
}

.ib-status.draft {
    background: rgba(226, 232, 240, 0.9);
    color: #334155;
}

.ib-status.sent {
    background: rgba(219, 234, 254, 0.95);
    color: #1d4ed8;
}

.ib-status.overdue {
    background: rgba(254, 226, 226, 0.95);
    color: #b91c1c;
}

.ib-status.paid {
    background: rgba(220, 252, 231, 0.95);
    color: #15803d;
}

.ib-status.cancelled {
    background: rgba(241, 245, 249, 0.95);
    color: #64748b;
}

.ib-detail {
    display: grid;
    gap: 1rem;
}

.ib-overview-grid > div,
.ib-hook-list > div,
.ib-total-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.ib-total-list > div:last-child,
.ib-hook-list > div:last-child,
.ib-overview-grid > div:last-child {
    border-bottom: 0;
}

.ib-detail-card {
    padding: 1rem;
}

.ib-line-row,
.ib-payment-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.ib-line-row:last-child,
.ib-payment-row:last-child {
    border-bottom: 0;
}

.ib-line-row > div,
.ib-payment-row > div {
    display: grid;
    gap: 0.2rem;
}

.ib-line-row span,
.ib-payment-row span,
.ib-payment-row small {
    color: rgba(30, 41, 59, 0.66);
}

.ib-total-list .grand strong,
.ib-total-list .balance strong {
    color: #10243a;
}

.ib-empty {
    min-height: 18rem;
    display: grid;
    place-items: center;
    color: rgba(30, 41, 59, 0.62);
}
.ib-list-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ib-search { flex: 1; min-width: 180px; padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafaf8; }
.ib-search:focus { outline: none; border-color: #2563eb; }
.ib-table-wrap { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; }
.ib-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ib-table th, .ib-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e3de; }
.ib-table thead th { font-weight: 600; color: #64748b; font-size: 12px; background: #fafaf8; }
.ib-table tbody tr:hover { background: #fafaf8; }
.ib-row { cursor: pointer; }
.ib-mono { font-family: 'DM Mono', monospace; font-size: 12px; }
.ib-muted { color: #94a3b8; font-size: 12px; display: block; }
.ib-overdue-text { color: #dc2626; font-weight: 600; }
.ib-row-arrow { color: #94a3b8; font-size: 14px; }
.ib-back { background: none; border: none; color: #2563eb; font-size: 13px; font-weight: 500; cursor: pointer; padding: 0; font-family: inherit; }
.ib-detail-header { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 4px; }
.ib-detail-number { margin: 0; font-size: 20px; font-family: 'DM Mono', monospace; }
.ib-status-lg { font-size: 13px; padding: 6px 14px; }
.ib-detail-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.ib-detail-stat { background: #fafaf8; border: 1px solid #e5e3de; border-radius: 8px; padding: 12px; }
.ib-detail-stat strong { display: block; font-size: 13px; margin-top: 2px; }
.ib-detail-actions { display: flex; gap: 8px; margin-bottom: 4px; }
.ib-section-card { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; padding: 18px; margin-bottom: 12px; }
.ib-section-card h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.ib-table-inner { margin: 0 -18px; width: calc(100% + 36px); }
.ib-table-inner th:first-child, .ib-table-inner td:first-child { padding-left: 18px; }
.ib-table-inner th:last-child, .ib-table-inner td:last-child { padding-right: 18px; }
.ib-totals { border-top: 1px solid #e5e3de; margin-top: 12px; padding-top: 12px; max-width: 320px; margin-left: auto; }
.ib-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: #64748b; }
.ib-total-grand { font-size: 15px; font-weight: 700; color: #0f172a; border-top: 1px solid #e5e3de; padding-top: 8px; margin-top: 4px; }
.ib-total-grand span, .ib-total-grand .ib-mono { color: #0f172a; }
.ib-total-balance { font-weight: 600; color: #0f172a; }
.ib-total-balance span { color: #0f172a; }
.ib-green { color: #16a34a; }
.ib-payment-timeline { display: flex; flex-direction: column; gap: 0; }
.ib-payment-entry { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0efeb; position: relative; }
.ib-payment-entry:last-child { border-bottom: none; }
.ib-payment-dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; margin-top: 4px; flex-shrink: 0; }
.ib-payment-body { flex: 1; }
.ib-payment-top { display: flex; justify-content: space-between; align-items: center; }

.cc-page {
    width: 100vw;
    min-height: 100vh;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

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

.cc-hero,
.cc-actions,
.cc-thread-top,
.cc-thread-meta,
.cc-thread-head,
.cc-composer-head,
.cc-inline-actions,
.cc-campaign-top,
.cc-campaign-meta,
.cc-message-top,
.cc-message-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

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

.cc-copy {
    color: rgba(30, 41, 59, 0.72);
    max-width: 62rem;
}

.cc-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(217, 119, 6, 0.08));
    border: 1px solid rgba(30, 64, 175, 0.12);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    color: #1d4ed8;
}

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

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

.cc-metric-card,
.cc-panel,
.cc-thread-card,
.cc-message,
.cc-campaign-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.cc-metric-card {
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.35rem;
}

.cc-metric-card strong {
    font-size: 1.45rem;
    color: #10243a;
}

.cc-metric-card span {
    color: rgba(30, 41, 59, 0.66);
}

.cc-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr) minmax(16rem, 20rem);
    gap: 1rem;
}

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

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

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

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

.cc-field input,
.cc-field select,
.cc-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;
}

.cc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cc-chip {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
}

.cc-chip.active {
    background: #10243a;
    color: #fff;
    border-color: #10243a;
}

.cc-thread-list,
.cc-message-list,
.cc-campaign-list {
    display: grid;
    gap: 0.85rem;
}

.cc-thread-card {
    padding: 0.95rem;
    cursor: pointer;
}

.cc-thread-card.selected {
    border-color: rgba(30, 64, 175, 0.4);
    box-shadow: 0 20px 44px rgba(30, 64, 175, 0.12);
}

.cc-thread-meta,
.cc-message-meta,
.cc-campaign-meta {
    color: rgba(30, 41, 59, 0.66);
    font-size: 0.9rem;
}

.cc-unread-pill,
.cc-channel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(219, 234, 254, 0.95);
    color: #1d4ed8;
}

.cc-message {
    padding: 0.95rem;
    display: grid;
    gap: 0.6rem;
}

.cc-message.outgoing {
    border-color: rgba(13, 148, 136, 0.22);
}

.cc-message.incoming {
    border-color: rgba(30, 64, 175, 0.22);
}

.cc-message.automatic {
    border-color: rgba(217, 119, 6, 0.22);
}

.cc-composer {
    display: grid;
    gap: 0.9rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 1rem;
}

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

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

.cc-campaign-card {
    padding: 0.9rem;
    display: grid;
    gap: 0.55rem;
}

.cc-empty {
    min-height: 18rem;
    display: grid;
    place-items: center;
    color: rgba(30, 41, 59, 0.62);
}

@media (max-width: 980px) {
    .ib-metrics,
    .ib-layout,
    .ib-filter-grid,
    .ib-overview-grid,
    .ib-subgrid,
    .cc-metrics,
    .cc-layout,
    .cc-filter-grid,
    .cc-composer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ib-hero,
    .ib-actions,
    .ib-card-top,
    .ib-card-meta,
    .ib-card-bottom,
    .ib-detail-head,
    .ib-inline-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .cc-hero,
    .cc-actions,
    .cc-thread-top,
    .cc-thread-meta,
    .cc-thread-head,
    .cc-composer-head,
    .cc-inline-actions,
    .cc-campaign-top,
    .cc-campaign-meta,
    .cc-message-top,
    .cc-message-meta {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* ============================================================
   MOBILE DASHBOARD KIT — PHONE MOCKUP DEMO
   ============================================================ */

/* ── Tab strip (sits above the phone) ───────────────────────── */
.pb-mobile-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pb-mobile-demo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.pb-mobile-tab {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--line, rgba(30,48,63,.12));
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted, #6f655c);
    cursor: pointer;
    transition: all .15s;
}

.pb-mobile-tab.active {
    background: var(--ink, #20303f);
    border-color: var(--ink, #20303f);
    color: #fff;
}

/* ── Outer phone shell ──────────────────────────────────────── */
.pb-phone {
    position: relative;
    width: 300px;
    background: #18181b;
    border-radius: 46px;
    padding: 12px;
    box-shadow:
        0 0 0 1px #333,
        0 0 0 3px #18181b,
        0 32px 80px rgba(0,0,0,.55),
        0 6px 20px rgba(0,0,0,.35);
    flex-shrink: 0;
}

/* Volume buttons (left side) */
.pb-phone::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 108px;
    width: 4px;
    height: 32px;
    background: #27272a;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 44px 0 #27272a, 0 88px 0 #27272a;
}

/* Power button (right side) */
.pb-phone::before {
    content: '';
    position: absolute;
    right: -5px;
    top: 140px;
    width: 4px;
    height: 56px;
    background: #27272a;
    border-radius: 0 3px 3px 0;
}

/* ── Screen ─────────────────────────────────────────────────── */
.pb-phone-screen {
    background: #f2f3f5;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 580px;
    /* Makes position:fixed children anchor to the phone screen, not the viewport */
    transform: translate(0, 0);
    isolation: isolate;
}

/* ── Dynamic island ─────────────────────────────────────────── */
.pb-phone-island-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
    background: #f2f3f5;
    flex-shrink: 0;
}

.pb-phone-island {
    width: 110px;
    height: 32px;
    background: #18181b;
    border-radius: 18px;
}

/* ── Status bar ─────────────────────────────────────────────── */
.pb-phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #111827;
    flex-shrink: 0;
    letter-spacing: .01em;
}

.pb-phone-status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
}

/* ── Scrollable app content ─────────────────────────────────── */
.pb-phone-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.pb-phone-content::-webkit-scrollbar { display: none; }

/* ── Home indicator ─────────────────────────────────────────── */
.pb-phone-home {
    display: flex;
    justify-content: center;
    padding: 6px 0 10px;
    flex-shrink: 0;
    background: inherit;
}

.pb-phone-home-bar {
    width: 110px;
    height: 5px;
    background: #18181b;
    border-radius: 3px;
    opacity: .22;
}

/* ── Constrain overlays inside the phone screen ─────────────────
   position:fixed inside a transformed parent anchors to the parent.
   Override any viewport-unit max-heights and navbar offsets so
   sheets and focus views stay within the phone bounds.
   ───────────────────────────────────────────────────────────── */

/* Backdrops fill the phone screen */
.pb-phone-screen .msc-backdrop,
.pb-phone-screen .mec-backdrop {
    border-radius: 36px;
}

/* Bottom sheets: anchor to phone bottom, max 78% of phone height */
.pb-phone-screen .msc-sheet,
.pb-phone-screen .mec-sheet {
    max-height: 78%;
    border-radius: 22px 22px 0 0;
}

/* Focus views: cover from top of phone, no navbar offset */
.pb-phone-screen .msc-focus,
.pb-phone-screen .mec-focus {
    top: 0;
    border-radius: 36px;
}

/* ── Dark screen variant (for dark-bg cards) ────────────────── */
.pb-phone-screen--dark {
    background: #1a1f2e;
}

.pb-phone-screen--dark .pb-phone-island-wrap,
.pb-phone-screen--dark .pb-phone-home {
    background: #1a1f2e;
}

.pb-phone-screen--dark .pb-phone-island {
    background: #0d0f18;
}

.pb-phone-screen--dark .pb-phone-status {
    color: #e2e8f0;
}

.pb-phone-screen--dark .pb-phone-home-bar {
    background: #e2e8f0;
    opacity: .18;
}

/* ── Full-page grid of phones ───────────────────────────────── */
.mobile-kit-phones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
    justify-items: center;
}

.mobile-kit-phone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 320px;
}

.mobile-kit-phone-label {
    text-align: center;
}

.mobile-kit-phone-label h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink, #20303f);
    margin: 0 0 4px;
}

.mobile-kit-phone-label p {
    font-size: 12px;
    color: var(--muted, #6f655c);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .mobile-kit-phones {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .mobile-kit-phones {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════════
   PB DESIGN SYSTEM v2 — Plus Jakarta Sans + DM Mono
   ════════════════════════════════════════════════════ */

/* NAV */
.pb-nav {
    position: sticky; top: 0; z-index: 100;
    height: 56px;
    background: rgba(243,242,238,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #E2E0D8;
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.pb-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pb-nav-logo {
    width: 30px; height: 30px; background: #111;
    border-radius: 7px; display: flex; align-items: center; justify-content: center;
}
.pb-nav-logo span { color: white; font-size: 10px; font-weight: 700; font-family: 'DM Mono', monospace; }
.pb-nav-title { font-size: 14px; font-weight: 600; color: #111; letter-spacing: -0.2px; font-family: 'Plus Jakarta Sans', sans-serif; }
.pb-nav-actions { display: flex; gap: 8px; align-items: center; }
.pb-nav-btn-ghost {
    padding: 7px 14px; border-radius: 8px; border: 1px solid #E2E0D8; background: white;
    font-size: 13px; color: #555; font-weight: 500; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none; display: inline-flex; align-items: center;
}
.pb-nav-btn-dark {
    padding: 7px 16px; border-radius: 8px; border: none; background: #111;
    font-size: 13px; color: white; font-weight: 600; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none; display: inline-flex; align-items: center; line-height: 1.5;
}
.pb-nav-link { font-size: 13px; color: #555; text-decoration: none; padding: 4px 8px; border-radius: 6px; font-family: 'Plus Jakarta Sans', sans-serif; }
.pb-nav-actions form { margin: 0; }
.pb-nav-user { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* SIGN-IN PAGE */
.pb-login { max-width: 400px; margin: 72px auto; padding: 32px; background: white; border: 1px solid #E2E0D8; border-radius: 14px; font-family: 'Plus Jakarta Sans', sans-serif; }
.pb-login h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; color: #111; }
.pb-login-sub { margin: 0 0 22px; font-size: 13px; line-height: 1.6; color: #666; }
.pb-login label { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; color: #444; }
.pb-login input[type=text], .pb-login input[type=email], .pb-login input[type=password] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #D5D2C8; border-radius: 8px; background: white; font: inherit; font-size: 14px; font-weight: 400; color: #111; box-sizing: border-box; }
.pb-login input:focus-visible, .pb-login button:focus-visible, .pb-login a:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 2px; }
.pb-login .pb-login-check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.pb-login button { width: 100%; padding: 11px 16px; border: none; border-radius: 8px; background: #111; color: white; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pb-login .validation-message, .pb-login .validation-errors, .pb-login .alert-danger { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; font-weight: 500; color: #b91c1c; }
.pb-login .alert { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: #fef2f2; font-size: 13px; }
.pb-login .alert-success { background: #ecfdf5; color: #065f46; }
.pb-login-foot { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: #777; }
.pb-nav-user { display: inline-block; vertical-align: middle; }
@media (max-width: 720px) { .pb-nav-user { display: none; } .pb-login { margin: 32px 16px; padding: 24px; } }

/* CATALOG PAGE */
.pb-catalog { max-width: 1280px; margin: 0 auto; padding: 40px 0 80px; font-family: 'Plus Jakarta Sans', sans-serif; }
.pb-catalog-header { margin-bottom: 36px; }
.pb-catalog-title { font-size: 34px !important; font-weight: 700 !important; letter-spacing: -1px !important; line-height: 1 !important; margin-bottom: 10px; font-family: 'Plus Jakarta Sans', sans-serif !important; color: #111; }
.pb-catalog-sub { font-size: 15px; color: #888; max-width: 480px; line-height: 1.65; margin: 0; }
.pb-stats-strip { display: flex; gap: 36px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #E2E0D8; }
.pb-stat { display: flex; flex-direction: column; gap: 3px; }
.pb-stat-value { font-size: 22px; font-weight: 700; font-family: 'DM Mono', monospace; letter-spacing: -1px; line-height: 1; color: #111; }
.pb-stat-label { font-size: 10.5px; color: #BBB; text-transform: uppercase; letter-spacing: 0.7px; }
.pb-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.pb-search-wrap { position: relative; max-width: 320px; }
.pb-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #C5C3BB; pointer-events: none; }
.pb-search {
    width: 100%; padding: 8px 14px 8px 32px; border-radius: 9px; border: 1px solid #E2E0D8;
    background: white; font-size: 13.5px; font-family: 'Plus Jakarta Sans', sans-serif; color: #111; transition: border-color 0.15s;
}
.pb-search:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.10); }
.pb-tab-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb-tab-group { display: flex; gap: 5px; flex-wrap: wrap; }
.pb-tab-divider { width: 1px; height: 18px; background: #E2E0D8; display: inline-block; }
.pb-tab {
    padding: 6px 13px; border-radius: 8px; border: 1px solid #E2E0D8; background: white; color: #666;
    cursor: pointer; font-size: 12.5px; font-weight: 400; font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap; line-height: 1.5; transition: all 0.12s;
}
.pb-tab.active { border-color: #111; background: #111; color: white; font-weight: 600; }
.pb-result-label { font-size: 11.5px; color: #BEBCB4; font-family: 'DM Mono', monospace; margin-bottom: 16px; letter-spacing: 0.2px; }
.pb-module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pb-module-card {
    background: white; border-radius: 14px; border: 1px solid #E8E5DE; overflow: hidden;
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease; cursor: pointer;
}
.pb-module-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,0.10); }
.pb-module-card:hover .pb-module-arr { opacity: 1; transform: translateX(0); }
.pb-module-preview { height: 120px; position: relative; overflow: hidden; flex-shrink: 0; }
.pb-preview-scaler { position: absolute; top: 0; left: 0; width: 1200px; height: 520px; transform: scale(0.23); transform-origin: top left; pointer-events: none; overflow: hidden; }
.pb-module-short { position: absolute; right: 13px; bottom: 6px; font-family: 'DM Mono', monospace; font-size: 36px; font-weight: 700; opacity: 0.09; color: #000; user-select: none; letter-spacing: -2px; line-height: 1; }
.pb-module-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 9px; }
.pb-module-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.pb-badge { padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap; font-family: 'Plus Jakarta Sans', sans-serif; }
.pb-badge-mat { font-weight: 500; }
.pb-module-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pb-module-name { font-size: 14px !important; font-weight: 600 !important; color: #111; letter-spacing: -0.2px; line-height: 1.35 !important; font-family: 'Plus Jakarta Sans', sans-serif !important; margin: 0 !important; }
.pb-module-desc { font-size: 12px; color: #999; line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0; }
.pb-module-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #F0EDE6; }
.pb-module-price { font-size: 14.5px; font-weight: 600; color: #111; font-family: 'DM Mono', monospace; letter-spacing: -0.5px; }
.pb-module-lead-wrap { display: flex; align-items: center; gap: 5px; }
.pb-module-lead { font-size: 12px; color: #C0BDB5; }
.pb-module-arr { font-size: 13px; color: #2563EB; opacity: 0; transform: translateX(-5px); transition: opacity 0.15s, transform 0.15s; display: inline-block; }
.pb-empty { text-align: center; padding: 80px 20px; }
.pb-empty-icon { font-size: 36px; color: #DDD; margin-bottom: 10px; line-height: 1; }
.pb-empty-text { font-size: 14px; color: #BBB; margin-bottom: 14px; }
.pb-empty-clear { padding: 8px 16px; border-radius: 8px; border: 1px solid #E2E0D8; background: white; font-size: 13px; color: #555; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; }

/* MODULE DETAIL */
.pb-detail { max-width: 1200px; margin: 0 auto; padding: 24px 0 80px; font-family: 'Plus Jakarta Sans', sans-serif; }
.pb-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; }
.pb-breadcrumb-back { padding: 6px 13px; border-radius: 8px; border: 1px solid #E2E0D8; background: white; font-size: 13px; color: #555; font-weight: 500; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; text-decoration: none; }
.pb-breadcrumb-sep { color: #DDD; }
.pb-breadcrumb-cat { font-size: 13px; color: #AAA; }
.pb-breadcrumb-name { font-size: 13px; color: #555; font-weight: 500; }
.pb-detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; margin-bottom: 32px; }
.pb-detail-prose { flex: 1; min-width: 0; }
.pb-detail-badges { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.pb-detail-title { font-size: 28px !important; font-weight: 700 !important; letter-spacing: -0.7px !important; line-height: 1.18 !important; margin-bottom: 14px !important; max-width: 560px; font-family: 'Plus Jakarta Sans', sans-serif !important; color: #111; }
.pb-detail-desc { font-size: 15px; color: #666; line-height: 1.75; max-width: 560px; margin: 0; }
.pb-price-card { flex-shrink: 0; background: white; border-radius: 14px; border: 1px solid #E8E5DE; padding: 22px 24px; text-align: right; min-width: 192px; }
.pb-price-card-section { margin-bottom: 16px; }
.pb-price-card-section:last-child { margin-bottom: 0; }
.pb-price-card-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: #C0BDB5; font-weight: 700; margin-bottom: 5px; }
.pb-price-card-val { font-size: 28px; font-weight: 700; font-family: 'DM Mono', monospace; letter-spacing: -1px; line-height: 1; color: #111; }
.pb-price-card-lead { font-size: 19px; font-weight: 600; font-family: 'DM Mono', monospace; letter-spacing: -0.5px; line-height: 1; color: #111; }
.pb-detail-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 44px; }
.pb-detail-panel { background: white; border-radius: 12px; border: 1px solid #E8E5DE; padding: 20px 22px; }
.pb-panel-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.8px; color: #C0BDB5; font-weight: 700; margin-bottom: 13px; font-family: 'Plus Jakarta Sans', sans-serif; }
.pb-panel-features { display: flex; flex-direction: column; gap: 8px; }
.pb-panel-feature { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: #333; line-height: 1.45; }
.pb-panel-dot { width: 5px; height: 5px; border-radius: 50%; background: #2563EB; flex-shrink: 0; margin-top: 5px; }
.pb-panel-deps { display: flex; flex-direction: column; gap: 7px; }
.pb-panel-dep { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 7px; background: #F3F2EE; font-size: 13px; color: #444; font-weight: 500; }
.pb-panel-dep-arrow { color: #2563EB; font-size: 11px; font-weight: 600; }
.pb-panel-no-dep { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 7px; background: #F3F2EE; font-size: 13px; color: #BBB; font-style: italic; }
.pb-demo-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.pb-demo-title { font-size: 18px !important; font-weight: 700 !important; letter-spacing: -0.4px !important; font-family: 'Plus Jakarta Sans', sans-serif !important; color: #111; margin: 0 !important; }
.pb-demo-sub { font-size: 13px; color: #BBB; margin-top: 3px; }
.pb-demo-open { padding: 7px 13px; border-radius: 8px; border: 1px solid #E2E0D8; background: white; font-size: 13px; color: #555; font-weight: 500; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
.pb-demo-shell { border-radius: 14px; border: 1px solid #E2E0D8; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.05); }
.pb-demo-chrome { height: 40px; background: #F8F7F3; border-bottom: 1px solid #E2E0D8; display: flex; align-items: center; padding: 0 14px; gap: 10px; }
.pb-demo-dots { display: flex; gap: 5px; }
.pb-demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.pb-demo-dot-r { background: #FFB3AE; }
.pb-demo-dot-y { background: #FFD966; }
.pb-demo-dot-g { background: #AAEAB4; }
.pb-demo-urlbar { flex: 1; height: 24px; background: white; border-radius: 5px; border: 1px solid #E2E0D8; display: flex; align-items: center; padding: 0 10px; overflow: hidden; }
.pb-demo-urlbar span { font-size: 11px; color: #C0BDB5; font-family: 'DM Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-demo-body { padding: 20px; background: #FAFAF9; }
.pb-demo-placeholder { min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #AAA; text-align: center; }
.pb-demo-placeholder-icon { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.pb-demo-placeholder-icon span { font-family: 'DM Mono', monospace; font-size: 17px; font-weight: 700; letter-spacing: -1px; }
.pb-demo-placeholder p { font-size: 14.5px; font-weight: 600; color: #444; margin-bottom: 6px; }
.pb-demo-placeholder small { font-size: 12.5px; color: #A8A6A0; line-height: 1.6; }
.pb-phone-story,
.pb-demo-picture-note,
.pb-phone-private-note { display: none; }

/* ESTIMATOR */
.pb-estimate-page { font-family: 'Plus Jakarta Sans', sans-serif; margin: -1.25rem; display: flex; flex-direction: column; height: calc(100vh - 56px); }
.pb-estimate-layout { display: grid; grid-template-columns: 1fr 400px; flex: 1; overflow: hidden; }
.pb-estimate-left { display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid #E2E0D8; }
.pb-estimate-left-head { padding: 24px 40px 14px; border-bottom: 1px solid #E2E0D8; flex-shrink: 0; background: #F3F2EE; }
.pb-estimate-head-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.pb-estimate-head-title { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; color: #111; }
.pb-estimate-count-lbl { font-size: 11px; color: #BEBCB4; font-family: 'DM Mono', monospace; }
.pb-estimate-search-wrap { position: relative; margin-bottom: 10px; }
.pb-estimate-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #C5C3BB; pointer-events: none; }
.pb-estimate-search { width: 100%; padding: 7px 12px 7px 30px; border-radius: 8px; border: 1px solid #E2E0D8; background: white; font-size: 13px; font-family: 'Plus Jakarta Sans', sans-serif; color: #111; transition: border-color 0.15s; }
.pb-estimate-search:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.10); }
.pb-estimate-list { flex: 1; overflow-y: auto; padding: 12px 40px 40px; }
.pb-est-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: white; border: 1px solid #E8E5DE; margin-bottom: 5px; transition: border-color 0.12s; }
.pb-est-row.added { border-color: oklch(85% 0.07 152); }
.pb-est-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pb-est-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.pb-est-name { font-size: 13px; font-weight: 500; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-est-cat { padding: 1px 6px; border-radius: 4px; font-size: 9.5px; font-weight: 600; white-space: nowrap; flex-shrink: 0; letter-spacing: 0.1px; }
.pb-est-price { font-size: 12px; font-weight: 600; color: #888; font-family: 'DM Mono', monospace; flex-shrink: 0; letter-spacing: -0.3px; }
.pb-est-btn { width: 25px; height: 25px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: inherit; line-height: 1; padding: 0; cursor: pointer; }
.pb-est-btn-add { border: 1px solid #E2E0D8; background: white; color: #999; font-size: 17px; }
.pb-est-btn-done { border: 1px solid oklch(82% 0.09 152); background: oklch(92% 0.07 152); color: oklch(36% 0.13 152); font-size: 11px; cursor: default; }
.pb-estimate-right { background: white; overflow-y: auto; display: flex; flex-direction: column; }
.pb-quote-inner { padding: 28px 28px 40px; display: flex; flex-direction: column; gap: 20px; }
.pb-quote-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.9px; color: #C0BDB5; font-weight: 700; margin-bottom: 6px; display: block; }
.pb-quote-h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 14px; color: #111; font-family: 'Plus Jakarta Sans', sans-serif; }
.pb-quote-client { width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid #E2E0D8; font-size: 13px; font-family: 'Plus Jakarta Sans', sans-serif; color: #111; background: #FAFAF9; outline: none; transition: border-color 0.15s; }
.pb-quote-client:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.10); }
.pb-quote-mods-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pb-quote-mod-count { font-size: 11px; font-family: 'DM Mono', monospace; color: #AAA; }
.pb-quote-empty { padding: 28px 0; text-align: center; }
.pb-quote-empty-icon { font-size: 26px; color: #E8E5DE; margin-bottom: 8px; line-height: 1; }
.pb-quote-empty-text { font-size: 12px; color: #C8C6BE; line-height: 1.65; }
.pb-quote-mod-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #F5F3EF; }
.pb-quote-mod-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pb-quote-mod-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; overflow: hidden; }
.pb-quote-mod-name { font-size: 12.5px; font-weight: 500; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-dep-chip { padding: 1px 5px; border-radius: 4px; font-size: 9.5px; font-weight: 600; background: #F3F2EE; color: #BBB; white-space: nowrap; flex-shrink: 0; }
.pb-quote-mod-price { font-size: 12px; font-weight: 600; color: #666; font-family: 'DM Mono', monospace; flex-shrink: 0; letter-spacing: -0.3px; }
.pb-quote-mod-remove { width: 20px; height: 20px; border-radius: 5px; border: 1px solid #EBEBEB; background: none; color: #CCC; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; line-height: 1; font-family: inherit; }
.pb-dep-notice { padding: 9px 11px; border-radius: 8px; background: oklch(96% 0.018 235); border: 1px solid oklch(88% 0.04 235); font-size: 12px; color: oklch(42% 0.10 235); line-height: 1.55; display: flex; gap: 7px; align-items: flex-start; }
.pb-dep-notice-arr { flex-shrink: 0; font-size: 11px; font-weight: 700; margin-top: 1px; }
.pb-discount-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pb-discount-val { font-size: 15px; font-weight: 700; font-family: 'DM Mono', monospace; letter-spacing: -0.5px; color: #111; }
.pb-discount-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: #E2E0D8; cursor: pointer; outline: none; }
.pb-discount-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #111; cursor: pointer; }
.pb-price-box { border-radius: 10px; border: 1px solid #E8E5DE; overflow: hidden; }
.pb-price-box-top { padding: 14px 16px; background: #FAFAF9; border-bottom: 1px solid #F0EDE6; }
.pb-price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.pb-price-row:last-child { margin-bottom: 0; }
.pb-price-lbl { font-size: 12.5px; color: #666; }
.pb-price-lbl-bold { font-size: 13px; color: #666; font-weight: 600; }
.pb-price-val { font-size: 13px; font-family: 'DM Mono', monospace; color: #333; font-weight: 500; letter-spacing: -0.3px; }
.pb-price-val-green { color: oklch(38% 0.13 152); }
.pb-price-val-bold { font-weight: 700; }
.pb-price-divider { height: 1px; background: #EBEBEB; margin: 8px 0; }
.pb-price-box-bottom { padding: 14px 16px; background: white; }
.pb-total-val { font-size: 20px; font-weight: 700; font-family: 'DM Mono', monospace; letter-spacing: -1px; color: #111; line-height: 1; }
.pb-effort-box { padding: 14px 16px; border-radius: 10px; border: 1px solid #E8E5DE; background: white; }
.pb-effort-main { display: flex; align-items: baseline; gap: 8px; }
.pb-effort-days { font-size: 22px; font-weight: 700; font-family: 'DM Mono', monospace; letter-spacing: -1px; color: #111; line-height: 1; }
.pb-effort-wks { font-size: 12.5px; color: #AAA; font-family: 'DM Mono', monospace; }
.pb-cta { padding: 12px 16px; border-radius: 10px; border: none; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; width: 100%; letter-spacing: -0.1px; margin-top: 4px; }
.pb-cta-on { background: #111; color: white; }
.pb-cta-off { background: #E8E5DE; color: #BBB; cursor: default; }

@media (max-width: 1100px) {
    .pb-module-grid { grid-template-columns: repeat(2, 1fr); }
    .pb-estimate-layout { grid-template-columns: 1fr 340px; }
    .pb-estimate-list { padding: 12px 24px 40px; }
    .pb-estimate-left-head { padding: 20px 24px 14px; }
}
@media (max-width: 768px) {
    .pb-nav {
        padding: 0 14px;
        height: auto;
        min-height: 56px;
        gap: 12px;
    }

    .pb-nav-title { font-size: 13px; }
    .pb-nav-actions { gap: 6px; }
    .pb-nav-link { display: none; }
    .pb-nav-btn-dark { padding: 7px 10px; font-size: 12px; }

    .pb-catalog {
        padding: 26px 14px 56px;
    }

    .pb-catalog-header {
        margin-bottom: 24px;
    }

    .pb-catalog-title {
        font-size: 26px !important;
        letter-spacing: -0.6px !important;
    }

    .pb-catalog-sub {
        font-size: 13.5px;
        line-height: 1.6;
    }

    .pb-stats-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 22px;
        padding-top: 18px;
    }

    .pb-stat {
        padding: 12px;
        border: 1px solid #E8E5DE;
        border-radius: 10px;
        background: rgba(255,255,255,0.62);
    }

    .pb-search-wrap {
        max-width: none;
    }

    .pb-tab-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .pb-tab-group {
        flex-wrap: nowrap;
    }

    .pb-tab-divider {
        flex: 0 0 1px;
    }

    .pb-module-grid { grid-template-columns: 1fr; }
    .pb-module-preview { height: 86px; }
    .pb-module-card { border-radius: 12px; }

    .pb-detail {
        padding: 16px 14px 56px;
    }

    .pb-breadcrumb {
        gap: 6px;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .pb-breadcrumb-cat,
    .pb-breadcrumb-sep {
        display: none;
    }

    .pb-breadcrumb-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pb-detail-hero {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 18px;
    }

    .pb-detail-title {
        font-size: 24px !important;
        letter-spacing: -0.4px !important;
        margin-bottom: 10px !important;
    }

    .pb-detail-desc {
        font-size: 13.5px;
        line-height: 1.65;
    }

    .pb-price-card {
        width: 100%;
        min-width: 0;
        padding: 14px 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        text-align: left;
        border-radius: 12px;
    }

    .pb-price-card-section {
        margin: 0;
    }

    .pb-price-card-val {
        font-size: 22px;
    }

    .pb-price-card-lead {
        font-size: 17px;
    }

    .pb-detail-panels {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 22px;
    }

    .pb-detail-panel {
        padding: 16px;
        border-radius: 10px;
    }

    .pb-panel-features {
        gap: 7px;
    }

    .pb-panel-feature,
    .pb-panel-dep,
    .pb-panel-no-dep {
        font-size: 12.8px;
    }

    .pb-demo-header {
        display: none;
    }

    .pb-phone-story {
        display: grid;
        gap: 14px;
        padding: 18px;
        border-radius: 12px;
        border: 1px solid #E8E5DE;
        background: white;
        margin-bottom: 12px;
    }

    .pb-phone-story-kicker {
        display: block;
        margin-bottom: 8px;
        color: #2563EB;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.9px;
        text-transform: uppercase;
    }

    .pb-phone-story h2 {
        margin: 0 0 8px;
        color: #111;
        font-size: 18px;
        line-height: 1.25;
        letter-spacing: -0.3px;
    }

    .pb-phone-story p {
        margin: 0;
        color: #666;
        font-size: 13px;
        line-height: 1.65;
    }

    .pb-phone-story-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pb-phone-story-meta span {
        padding: 10px;
        border-radius: 9px;
        background: #F3F2EE;
        color: #111;
        font-family: 'DM Mono', monospace;
        font-size: 11px;
        font-weight: 600;
        text-align: center;
    }

    .pb-demo-picture-wrap {
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px 12px 16px;
        border: 1px solid #E2E0D8;
        border-radius: 14px;
        background:
            linear-gradient(90deg, rgba(243,242,238,0.96), rgba(243,242,238,0) 34px),
            linear-gradient(270deg, rgba(243,242,238,0.96), rgba(243,242,238,0) 34px),
            #F3F2EE;
        -webkit-overflow-scrolling: touch;
    }

    .pb-demo-picture-note {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        min-width: 720px;
    }

    .pb-demo-picture-note span:first-child {
        color: #111;
        font-size: 12px;
        font-weight: 700;
    }

    .pb-demo-picture-note span:last-child {
        color: #9A968E;
        font-size: 11px;
        font-family: 'DM Mono', monospace;
    }

    .pb-demo-picture-wrap .pb-demo-shell {
        width: 860px;
        max-width: none;
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    }

    .pb-demo-picture-wrap .pb-demo-body {
        min-height: 420px;
        padding: 16px;
        overflow: hidden;
    }

    .pb-phone-private-note {
        display: grid;
        gap: 6px;
        margin-top: 12px;
        padding: 16px;
        border: 1px solid #E8E5DE;
        border-radius: 12px;
        background: white;
    }

    .pb-phone-private-note strong {
        color: #111;
        font-size: 13px;
    }

    .pb-phone-private-note span {
        color: #777;
        font-size: 12.5px;
        line-height: 1.55;
    }

    .pb-phone-private-note a {
        margin-top: 6px;
        display: inline-flex;
        justify-content: center;
        padding: 10px 14px;
        border-radius: 9px;
        background: #111;
        color: white;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
    }

    .pb-nav { padding: 0 16px; }
    .pb-estimate-layout { grid-template-columns: 1fr; }
    .pb-estimate-page {
        height: auto;
        margin: -1.25rem -14px;
    }

    .pb-estimate-left {
        border-right: 0;
    }

    .pb-estimate-left-head {
        padding: 18px 14px 12px;
    }

    .pb-estimate-list {
        padding: 10px 14px 20px;
        overflow: visible;
    }

    .pb-est-row {
        align-items: flex-start;
        gap: 9px;
    }

    .pb-est-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .pb-est-name {
        white-space: normal;
        line-height: 1.35;
    }

    .pb-estimate-right {
        border-top: 1px solid #E2E0D8;
    }

    .pb-quote-inner {
        padding: 20px 14px 34px;
    }
}

/* ── Identity & Access demo ─────────────────────────────── */
.ia-shell { display: flex; flex-direction: column; gap: 1rem; }
.ia-tabs { display: flex; gap: 4px; background: #f0efeb; border-radius: 10px; padding: 4px; }
.ia-tab { flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .15s; }
.ia-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ia-card { background: #fff; border: 1px solid #e5e3de; border-radius: 14px; padding: 28px; }
.ia-card-narrow { max-width: 420px; margin: 0 auto; }
.ia-card-head { text-align: center; margin-bottom: 20px; }
.ia-card-head h3 { margin: 10px 0 4px; font-size: 18px; font-weight: 700; color: #0f172a; }
.ia-logo { width: 44px; height: 44px; background: #0f172a; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.ia-logo span { color: #fff; font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 700; }
.ia-muted { color: #94a3b8; font-size: 13px; margin: 0; }
.ia-form { display: flex; flex-direction: column; gap: 14px; }
.ia-field { display: flex; flex-direction: column; gap: 5px; }
.ia-field span { font-size: 13px; font-weight: 600; color: #374151; }
.ia-field input { padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 14px; font-family: inherit; background: #fafaf8; transition: border-color .15s; }
.ia-field input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.ia-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ia-row-between { display: flex; justify-content: space-between; align-items: center; }
.ia-check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #374151; cursor: pointer; }
.ia-check input[type=checkbox] { width: 16px; height: 16px; accent-color: #2563eb; }
.ia-link { color: #2563eb; text-decoration: none; font-size: 13px; font-weight: 500; }
.ia-link:hover { text-decoration: underline; }
.ia-btn-primary { padding: 10px 18px; background: #0f172a; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
.ia-btn-primary:hover { background: #1e293b; }
.ia-btn-outline { padding: 9px 16px; background: #fff; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s; }
.ia-btn-outline:hover { border-color: #94a3b8; }
.ia-btn-danger { padding: 9px 16px; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ia-btn-danger:hover { background: #fee2e2; }
.ia-divider { text-align: center; margin: 16px 0; position: relative; }
.ia-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e5e3de; }
.ia-divider span { position: relative; background: #fff; padding: 0 12px; font-size: 12px; color: #94a3b8; }
.ia-social-row { display: flex; gap: 10px; }
.ia-social-row .ia-btn-outline { flex: 1; justify-content: center; }
.ia-footer-text { text-align: center; font-size: 13px; color: #64748b; margin-top: 16px; }
.ia-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.ia-alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.ia-alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.ia-pw-strength { display: flex; align-items: center; gap: 10px; }
.ia-pw-bar { flex: 1; height: 4px; background: #e5e3de; border-radius: 2px; overflow: hidden; }
.ia-pw-fill { height: 100%; border-radius: 2px; transition: width .2s, background .2s; }
.ia-session-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid #e5e3de; margin-bottom: 20px; }
.ia-avatar { width: 48px; height: 48px; background: linear-gradient(135deg, #6366f1, #2563eb); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.ia-session-head h3 { margin: 0; font-size: 16px; }
.ia-status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-left: auto; }
.ia-status-badge.active { background: #f0fdf4; color: #16a34a; }
.ia-session-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.ia-session-block { display: flex; flex-direction: column; gap: 3px; }
.ia-label { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }
.ia-code { font-family: 'DM Mono', monospace; font-size: 12px; color: #334155; background: #f5f4f0; padding: 2px 6px; border-radius: 4px; }
.ia-claims-section { margin-bottom: 20px; }
.ia-claims-section h4 { font-size: 13px; font-weight: 700; margin: 0 0 10px; color: #374151; }
.ia-claims-table { background: #fafaf8; border: 1px solid #e5e3de; border-radius: 10px; overflow: hidden; }
.ia-claim-row { display: grid; grid-template-columns: 100px 1fr; padding: 8px 14px; font-size: 13px; border-bottom: 1px solid #e5e3de; }
.ia-claim-row:last-child { border-bottom: none; }
.ia-claim-key { font-family: 'DM Mono', monospace; font-size: 12px; color: #6366f1; font-weight: 500; }
.ia-session-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ia-role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.ia-role-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e5e3de; border-radius: 10px; cursor: pointer; transition: all .15s; }
.ia-role-card:hover { border-color: #94a3b8; }
.ia-role-card.active { border-color: #2563eb; background: #f0f5ff; }
.ia-role-card strong { font-size: 13px; display: block; }
.ia-role-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.ia-acl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ia-acl-table th, .ia-acl-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e5e3de; }
.ia-acl-table thead th { font-weight: 600; color: #64748b; font-size: 12px; background: #fafaf8; }
.ia-acl-col { text-align: center !important; width: 70px; }
.ia-acl-col.highlight { background: rgba(37,99,235,.04); }
.ia-acl-chip { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.ia-acl-chip.full { background: #f0fdf4; color: #16a34a; }
.ia-acl-chip.read { background: #eff6ff; color: #2563eb; }
.ia-acl-chip.none { background: #f1f5f9; color: #94a3b8; }
@media (max-width: 768px) {
    .ia-role-grid { grid-template-columns: 1fr 1fr; }
    .ia-session-grid { grid-template-columns: 1fr; }
}

/* ── Excel Export demo ──────────────────────────────────── */
.xe-shell { display: flex; flex-direction: column; gap: 1rem; }
.xe-tabs { display: flex; gap: 4px; background: #f0efeb; border-radius: 10px; padding: 4px; }
.xe-tab { flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .15s; }
.xe-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.xe-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1rem; align-items: start; }
.xe-config { display: flex; flex-direction: column; gap: 16px; }
.xe-section { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; padding: 16px; }
.xe-section h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #0f172a; }
.xe-muted { color: #94a3b8; font-size: 12px; margin: 0; }
.xe-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xe-source { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid #e5e3de; border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; transition: all .15s; }
.xe-source:hover { border-color: #94a3b8; }
.xe-source.active { border-color: #2563eb; background: #f0f5ff; }
.xe-source-icon { font-size: 20px; }
.xe-source strong { font-size: 12px; }
.xe-source .xe-muted { font-size: 11px; }
.xe-col-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.xe-col-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background .1s; }
.xe-col-item:hover { background: #f5f4f0; }
.xe-col-item input[type=checkbox] { width: 15px; height: 15px; accent-color: #2563eb; }
.xe-col-type { margin-left: auto; font-size: 10px; font-family: 'DM Mono', monospace; color: #94a3b8; background: #f5f4f0; padding: 1px 6px; border-radius: 3px; }
.xe-col-actions { display: flex; gap: 6px; margin-top: 6px; }
.xe-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; padding: 4px 0; cursor: pointer; }
.xe-check input[type=checkbox] { width: 15px; height: 15px; accent-color: #2563eb; }
.xe-btn-primary { padding: 10px 18px; background: #0f172a; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.xe-btn-primary:hover { background: #1e293b; }
.xe-btn-sm { padding: 4px 10px; background: #f5f4f0; border: 1px solid #e5e3de; border-radius: 6px; font-size: 11px; font-weight: 500; cursor: pointer; font-family: inherit; color: #374151; }
.xe-btn-sm:hover { background: #e5e3de; }
.xe-alert-success { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.xe-preview { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; }
.xe-preview-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e5e3de; }
.xe-preview-head h4 { margin: 0; font-size: 14px; }
.xe-preview-foot { padding: 10px 16px; border-top: 1px solid #e5e3de; }
.xe-table-wrap { overflow-x: auto; }
.xe-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.xe-table th, .xe-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid #e5e3de; white-space: nowrap; }
.xe-table thead th { font-weight: 600; color: #64748b; font-size: 12px; background: #fafaf8; }
.xe-table tbody tr:hover { background: #fafaf8; }
.xe-table-full { width: 100%; }
.xe-filter-icon { color: #94a3b8; font-size: 10px; margin-left: 3px; }
.xe-file-icon { margin-right: 4px; }
.xe-card { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; padding: 20px; }
.xe-history-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.xe-history-head h4 { margin: 0; font-size: 15px; }
.xe-template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.xe-template-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e5e3de; border-radius: 10px; }
.xe-template-card strong { font-size: 13px; display: block; }
.xe-template-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.xe-template-card .xe-btn-sm { margin-left: auto; }
@media (max-width: 768px) {
    .xe-layout { grid-template-columns: 1fr; }
    .xe-template-grid { grid-template-columns: 1fr; }
}

/* ── Catalog Management demo ────────────────────────────── */
.cm-shell { display: flex; flex-direction: column; gap: 1rem; }
.cm-tabs { display: flex; gap: 4px; background: #f0efeb; border-radius: 10px; padding: 4px; }
.cm-tab { flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .15s; }
.cm-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cm-toolbar { display: flex; gap: 10px; align-items: center; }
.cm-search { flex: 1; padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafaf8; }
.cm-search:focus { outline: none; border-color: #2563eb; }
.cm-select { padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafaf8; color: #374151; }
.cm-btn-primary { padding: 9px 16px; background: #0f172a; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.cm-btn-primary:hover { background: #1e293b; }
.cm-btn-outline { padding: 9px 16px; background: #fff; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.cm-btn-sm { padding: 4px 10px; background: #f5f4f0; border: 1px solid #e5e3de; border-radius: 6px; font-size: 11px; font-weight: 500; cursor: pointer; font-family: inherit; color: #374151; }
.cm-btn-sm:hover { background: #e5e3de; }
.cm-muted { color: #94a3b8; font-size: 12px; }
.cm-mono { font-family: 'DM Mono', monospace; font-size: 12px; }
.cm-table-wrap { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; }
.cm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cm-table th, .cm-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e3de; }
.cm-table thead th { font-weight: 600; color: #64748b; font-size: 12px; background: #fafaf8; }
.cm-table tbody tr:hover { background: #fafaf8; }
.cm-row-selected { background: #f0f5ff !important; }
.cm-thumb { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #374151; }
.cm-product-name { display: block; font-size: 13px; }
.cm-sku { font-family: 'DM Mono', monospace; font-size: 11px; color: #94a3b8; }
.cm-cat-chip { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #374151; }
.cm-stock { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.cm-stock.ok { background: #f0fdf4; color: #16a34a; }
.cm-stock.low { background: #fef3c7; color: #d97706; }
.cm-stock.out { background: #fef2f2; color: #dc2626; }
.cm-status { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 10px; }
.cm-status.live { background: #f0fdf4; color: #16a34a; }
.cm-status.draft { background: #f1f5f9; color: #64748b; }
.cm-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 90; }
.cm-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; background: #fff; z-index: 100; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.1); }
.cm-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid #e5e3de; }
.cm-drawer-head h3 { margin: 0; font-size: 16px; }
.cm-drawer-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #64748b; padding: 0 4px; }
.cm-drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cm-drawer-foot { padding: 16px 20px; border-top: 1px solid #e5e3de; display: flex; gap: 10px; justify-content: flex-end; }
.cm-field { display: flex; flex-direction: column; gap: 5px; }
.cm-field span { font-size: 13px; font-weight: 600; color: #374151; }
.cm-field input, .cm-field select { padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafaf8; }
.cm-field input:focus, .cm-field select:focus { outline: none; border-color: #2563eb; }
.cm-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cm-check { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.cm-check input[type=checkbox] { width: 16px; height: 16px; accent-color: #2563eb; }
.cm-media-zone { border: 2px dashed #d4d2cc; border-radius: 10px; padding: 24px; text-align: center; color: #94a3b8; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cm-media-icon { font-size: 24px; }
.cm-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cm-brand-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid #e5e3de; border-radius: 10px; }
.cm-brand-logo { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.cm-brand-card strong { font-size: 14px; display: block; }
.cm-brand-origin { margin-left: auto; }
.cm-tree { display: flex; flex-direction: column; gap: 12px; }
.cm-tree-node { background: #fff; border: 1px solid #e5e3de; border-radius: 10px; padding: 16px; }
.cm-tree-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cm-tree-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.cm-tree-subs { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 20px; }
.cm-tree-sub { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; padding: 4px 10px; background: #fafaf8; border-radius: 6px; }
.cm-tree-line { width: 10px; height: 1px; background: #d4d2cc; }
.cm-stock-grid { display: flex; flex-direction: column; gap: 1rem; }
.cm-stock-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cm-stock-kpi { background: #fff; border: 1px solid #e5e3de; border-radius: 10px; padding: 16px; text-align: center; }
.cm-stock-val { display: block; font-size: 24px; font-weight: 700; color: #0f172a; font-family: 'DM Mono', monospace; }
.cm-stock-val.cm-stock-ok { color: #16a34a; }
.cm-stock-val.cm-stock-low { color: #d97706; }
.cm-stock-val.cm-stock-out { color: #dc2626; }

/* ── Cart, Favorites & Orders demo ──────────────────────── */
.co-shell { display: flex; flex-direction: column; gap: 1rem; }
.co-tabs { display: flex; gap: 4px; background: #f0efeb; border-radius: 10px; padding: 4px; }
.co-tab { flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.co-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.co-badge { background: #e5e3de; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.co-tab.active .co-badge { background: #0f172a; color: #fff; }
.co-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; align-items: start; }
.co-items { display: flex; flex-direction: column; gap: 8px; }
.co-cart-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid #e5e3de; border-radius: 10px; }
.co-item-thumb { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #374151; flex-shrink: 0; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-muted { color: #94a3b8; font-size: 12px; }
.co-mono { font-family: 'DM Mono', monospace; font-size: 12px; }
.co-qty-ctrl { display: flex; align-items: center; gap: 0; border: 1px solid #d4d2cc; border-radius: 6px; overflow: hidden; }
.co-qty-btn { width: 30px; height: 30px; border: none; background: #fafaf8; cursor: pointer; font-size: 14px; font-weight: 600; color: #374151; }
.co-qty-btn:hover { background: #e5e3de; }
.co-qty-val { width: 32px; text-align: center; font-size: 13px; font-weight: 600; border-left: 1px solid #d4d2cc; border-right: 1px solid #d4d2cc; }
.co-item-price { font-weight: 700; font-size: 14px; font-family: 'DM Mono', monospace; white-space: nowrap; }
.co-remove { background: none; border: none; font-size: 18px; color: #94a3b8; cursor: pointer; padding: 0 4px; }
.co-remove:hover { color: #dc2626; }
.co-summary { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.co-summary h4 { margin: 0 0 4px; font-size: 15px; }
.co-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: #64748b; }
.co-summary-row.co-total { font-size: 16px; font-weight: 700; color: #0f172a; }
.co-summary-divider { height: 1px; background: #e5e3de; }
.co-btn-primary { padding: 10px 18px; background: #0f172a; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; text-align: center; }
.co-btn-primary:hover { background: #1e293b; }
.co-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.co-btn-outline { padding: 9px 16px; background: #fff; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.co-btn-sm { padding: 5px 10px; background: #f5f4f0; border: 1px solid #e5e3de; border-radius: 6px; font-size: 11px; font-weight: 500; cursor: pointer; font-family: inherit; }
.co-btn-sm:hover { background: #e5e3de; }
.co-btn-heart { color: #ef4444; }
.co-alert-success { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; text-align: center; }
.co-empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px solid #e5e3de; border-radius: 12px; }
.co-empty-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.co-empty p { color: #64748b; margin: 0 0 12px; }
.co-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.co-fav-card { background: #fff; border: 1px solid #e5e3de; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.co-fav-thumb { width: 100%; height: 80px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; color: #374151; margin-bottom: 4px; }
.co-fav-card strong { font-size: 13px; }
.co-fav-price { font-weight: 700; font-family: 'DM Mono', monospace; font-size: 14px; }
.co-fav-actions { display: flex; gap: 6px; margin-top: 4px; }
.co-table-wrap { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; }
.co-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.co-table th, .co-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e3de; }
.co-table thead th { font-weight: 600; color: #64748b; font-size: 12px; background: #fafaf8; }
.co-table tbody tr:hover { background: #fafaf8; }
.co-order-status { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.co-order-status.delivered { background: #f0fdf4; color: #16a34a; }
.co-order-status.shipped { background: #eff6ff; color: #2563eb; }
.co-order-status.cancelled { background: #fef2f2; color: #dc2626; }
.co-detail { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.co-detail-head { display: flex; justify-content: space-between; align-items: center; }
.co-detail-head h3 { margin: 0; font-size: 18px; font-family: 'DM Mono', monospace; }
.co-detail-timeline { display: flex; gap: 0; position: relative; padding: 0 8px; }
.co-timeline-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.co-timeline-step::before { content: ''; position: absolute; top: 8px; left: -50%; right: 50%; height: 2px; background: #e5e3de; }
.co-timeline-step:first-child::before { display: none; }
.co-timeline-step.done::before { background: #16a34a; }
.co-timeline-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #e5e3de; background: #fff; position: relative; z-index: 1; }
.co-timeline-step.done .co-timeline-dot { border-color: #16a34a; background: #16a34a; }
.co-timeline-step strong { font-size: 12px; }
.co-detail-items { border-top: 1px solid #e5e3de; padding-top: 16px; }
.co-detail-items h4 { margin: 0 0 10px; font-size: 14px; }
.co-detail-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0efeb; font-size: 13px; }
.co-detail-totals { border-top: 1px solid #e5e3de; padding-top: 16px; }
@media (max-width: 768px) {
    .co-layout { grid-template-columns: 1fr; }
    .co-fav-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Pricing Intelligence demo ──────────────────────────── */
.pi-shell { display: flex; flex-direction: column; gap: 1rem; }
.pi-tabs { display: flex; gap: 4px; background: #f0efeb; border-radius: 10px; padding: 4px; }
.pi-tab { flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .15s; }
.pi-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pi-compare { display: flex; flex-direction: column; gap: 1rem; }
.pi-search-bar { display: flex; gap: 10px; }
.pi-search { flex: 1; padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafaf8; }
.pi-search:focus { outline: none; border-color: #2563eb; }
.pi-select { padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafaf8; }
.pi-muted { color: #94a3b8; font-size: 12px; }
.pi-mono { font-family: 'DM Mono', monospace; font-size: 12px; }
.pi-table-wrap { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; }
.pi-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pi-table th, .pi-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e3de; }
.pi-table thead th { font-weight: 600; color: #64748b; font-size: 12px; background: #fafaf8; }
.pi-table tbody tr { cursor: pointer; transition: background .1s; }
.pi-table tbody tr:hover { background: #fafaf8; }
.pi-row-active { background: #f0f5ff !important; }
.pi-prod-name { display: block; font-size: 13px; }
.pi-delta { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; font-family: 'DM Mono', monospace; }
.pi-delta.high { background: #fef2f2; color: #dc2626; }
.pi-delta.mid { background: #fef3c7; color: #d97706; }
.pi-delta.low { background: #f0fdf4; color: #16a34a; }
.pi-position { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.pi-position.best { background: #f0fdf4; color: #16a34a; }
.pi-position.good { background: #eff6ff; color: #2563eb; }
.pi-position.above { background: #fef3c7; color: #d97706; }
.pi-detail-card { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; padding: 20px; }
.pi-detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pi-detail-head h4 { margin: 0; font-size: 15px; }
.pi-price-bars { display: flex; flex-direction: column; gap: 8px; }
.pi-bar-row { display: grid; grid-template-columns: 100px 1fr 80px; align-items: center; gap: 10px; }
.pi-bar-label { font-size: 12px; font-weight: 500; color: #374151; text-align: right; }
.pi-bar-track { height: 20px; background: #f0efeb; border-radius: 4px; overflow: hidden; }
.pi-bar-fill { height: 100%; background: #94a3b8; border-radius: 4px; transition: width .3s; }
.pi-bar-fill.you { background: #2563eb; }
.pi-bar-val { font-size: 12px; }
.pi-enrich { display: flex; flex-direction: column; gap: 1rem; }
.pi-enrich-header h4 { margin: 0 0 4px; font-size: 15px; }
.pi-enrich-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pi-enrich-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid #e5e3de; border-radius: 10px; }
.pi-enrich-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.pi-enrich-body { flex: 1; }
.pi-enrich-body strong { display: block; font-size: 13px; }
.pi-enrich-stats { display: flex; gap: 12px; margin-top: 4px; font-size: 11px; color: #64748b; }
.pi-enrich-status { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: #64748b; }
.pi-enrich-status.active { background: #f0fdf4; color: #16a34a; }
.pi-enrich-log { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; padding: 16px; }
.pi-enrich-log h4 { margin: 0 0 12px; font-size: 14px; }
.pi-log-list { display: flex; flex-direction: column; gap: 6px; }
.pi-log-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #f0efeb; }
.pi-log-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pi-log-dot.ok { background: #16a34a; }
.pi-log-dot.fail { background: #dc2626; }
.pi-log-duration { margin-left: auto; font-family: 'DM Mono', monospace; font-size: 12px; color: #64748b; }
.pi-alerts { display: flex; flex-direction: column; gap: 1rem; }
.pi-alerts-header { display: flex; justify-content: space-between; align-items: center; }
.pi-alerts-header h4 { margin: 0; font-size: 15px; }
.pi-btn-primary { padding: 8px 16px; background: #0f172a; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.pi-btn-primary:hover { background: #1e293b; }
.pi-new-alert { display: grid; grid-template-columns: 1fr 1fr 100px auto; gap: 10px; align-items: end; background: #fff; border: 1px solid #e5e3de; border-radius: 10px; padding: 16px; }
.pi-field { display: flex; flex-direction: column; gap: 5px; }
.pi-field span { font-size: 12px; font-weight: 600; color: #374151; }
.pi-field input, .pi-field select { padding: 8px 10px; border: 1px solid #d4d2cc; border-radius: 6px; font-size: 13px; font-family: inherit; background: #fafaf8; }
.pi-alert-list { display: flex; flex-direction: column; gap: 8px; }
.pi-alert-card { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid #e5e3de; border-radius: 10px; }
.pi-alert-card.triggered { border-left: 3px solid #f59e0b; }
.pi-alert-card strong { font-size: 13px; display: block; font-family: 'DM Mono', monospace; }
.pi-alert-fire { color: #d97706; font-size: 12px; font-weight: 600; }

/* ── Assignments & Workflows demo ───────────────────────── */
.aw-shell { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.aw-tabs { display: flex; gap: 4px; background: #f0efeb; border-radius: 10px; padding: 4px; }
.aw-tab { flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .15s; }
.aw-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.aw-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: start; }
.aw-column { background: #fafaf8; border: 1px solid #e5e3de; border-radius: 10px; padding: 10px; min-height: 200px; }
.aw-column-head { display: flex; align-items: center; gap: 8px; padding: 6px 4px 10px; }
.aw-column-dot { width: 8px; height: 8px; border-radius: 50%; }
.aw-column-head strong { font-size: 12px; }
.aw-column-count { margin-left: auto; background: #e5e3de; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.aw-column-cards { display: flex; flex-direction: column; gap: 8px; }
.aw-card { background: #fff; border: 1px solid #e5e3de; border-radius: 8px; padding: 10px 12px; cursor: pointer; transition: box-shadow .15s; }
.aw-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.aw-card-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.aw-card-id { font-family: 'DM Mono', monospace; font-size: 11px; color: #94a3b8; }
.aw-card-title { font-size: 13px; display: block; margin-bottom: 8px; }
.aw-card-bottom { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.aw-card-avatar { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.aw-card-avatar.sm { width: 20px; height: 20px; font-size: 8px; }
.aw-card-due { margin-left: auto; color: #64748b; }
.aw-card-due.overdue { color: #dc2626; font-weight: 600; }
.aw-card-priority { padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 600; }
.aw-card-priority.high { background: #fef2f2; color: #dc2626; }
.aw-card-priority.med { background: #fef3c7; color: #d97706; }
.aw-card-priority.low { background: #f1f5f9; color: #64748b; }
.aw-muted { color: #94a3b8; font-size: 12px; }
.aw-mono { font-family: 'DM Mono', monospace; font-size: 12px; }
.aw-list-toolbar { display: flex; gap: 10px; }
.aw-search { flex: 1; padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafaf8; }
.aw-select { padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafaf8; }
.aw-table-wrap { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; }
.aw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aw-table th, .aw-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e3de; }
.aw-table thead th { font-weight: 600; color: #64748b; font-size: 12px; background: #fafaf8; }
.aw-table tbody tr:hover { background: #fafaf8; }
.aw-assignee-cell { display: flex; align-items: center; gap: 6px; }
.aw-status-chip { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; color: #374151; }
.aw-overdue-text { color: #dc2626; font-weight: 600; }
.aw-label { font-size: 12px; font-weight: 600; color: #94a3b8; min-width: 80px; }
.aw-wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.aw-wf-card { background: #fff; border: 1px solid #e5e3de; border-radius: 10px; padding: 16px; }
.aw-wf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.aw-wf-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.aw-wf-head strong { display: block; font-size: 14px; }
.aw-wf-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 10px; }
.aw-wf-step { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.aw-wf-step-dot { width: 8px; height: 8px; border-radius: 50%; }
.aw-wf-arrow { color: #94a3b8; font-size: 11px; margin: 0 2px; }
.aw-wf-meta { display: flex; gap: 16px; }
.aw-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.2); z-index: 90; }
.aw-detail-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; background: #fff; z-index: 100; padding: 24px; box-shadow: -8px 0 30px rgba(0,0,0,.1); overflow-y: auto; }
.aw-detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.aw-detail-panel h3 { margin: 0 0 16px; font-size: 17px; }
.aw-detail-meta { display: flex; flex-direction: column; gap: 12px; }
.aw-detail-row { display: flex; align-items: center; gap: 10px; }
.aw-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #64748b; }

/* ── Realtime Operations demo ───────────────────────────── */
.ro-shell { display: flex; flex-direction: column; gap: 1rem; }
.ro-tabs { display: flex; gap: 4px; background: #f0efeb; border-radius: 10px; padding: 4px; }
.ro-tab { flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .15s; }
.ro-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ro-muted { color: #94a3b8; font-size: 12px; }
.ro-feed-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; align-items: start; }
.ro-feed-panel { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; }
.ro-feed-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e5e3de; }
.ro-feed-head h4 { margin: 0; font-size: 14px; }
.ro-live-dot { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #16a34a; }
.ro-live-dot span { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: ro-pulse 2s infinite; }
@keyframes ro-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.ro-feed-list { max-height: 400px; overflow-y: auto; }
.ro-event { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f0efeb; font-size: 13px; }
.ro-event:hover { background: #fafaf8; }
.ro-event-icon { font-size: 16px; flex-shrink: 0; }
.ro-event-body { flex: 1; }
.ro-event-body strong { display: block; font-size: 13px; }
.ro-event-time { color: #94a3b8; font-size: 11px; font-family: 'DM Mono', monospace; white-space: nowrap; }
.ro-stats-panel { display: flex; flex-direction: column; gap: 16px; }
.ro-stats-panel h4 { margin: 0; font-size: 14px; }
.ro-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ro-stat-card { background: #fff; border: 1px solid #e5e3de; border-radius: 10px; padding: 14px; text-align: center; }
.ro-stat-val { display: block; font-size: 22px; font-weight: 700; font-family: 'DM Mono', monospace; color: #0f172a; }
.ro-channel-list { display: flex; flex-direction: column; gap: 6px; }
.ro-channel { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 12px; background: #fff; border: 1px solid #e5e3de; border-radius: 8px; }
.ro-channel-dot { width: 8px; height: 8px; border-radius: 50%; }
.ro-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ro-hub-card { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; padding: 18px; }
.ro-hub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ro-hub-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.ro-hub-head strong { display: block; font-size: 14px; }
.ro-hub-status { margin-left: auto; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: #64748b; }
.ro-hub-status.active { background: #f0fdf4; color: #16a34a; }
.ro-hub-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; text-align: center; }
.ro-hub-val { display: block; font-size: 18px; font-weight: 700; font-family: 'DM Mono', monospace; }
.ro-hub-methods { display: flex; flex-wrap: wrap; gap: 4px; }
.ro-method-chip { padding: 2px 8px; background: #f5f4f0; border-radius: 4px; font-size: 11px; font-family: 'DM Mono', monospace; color: #64748b; }
.ro-patterns { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.ro-pattern-card { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; padding: 18px; }
.ro-pattern-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ro-pattern-head strong { font-size: 14px; }
.ro-pattern-type { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #eff6ff; color: #2563eb; }
.ro-pattern-code { background: #1e293b; color: #e2e8f0; padding: 10px 12px; border-radius: 6px; font-family: 'DM Mono', monospace; font-size: 11px; margin: 10px 0; overflow-x: auto; }
.ro-pattern-tags { display: flex; gap: 4px; }
.ro-pattern-tag { padding: 2px 8px; background: #f0efeb; border-radius: 4px; font-size: 11px; color: #64748b; }

/* ── Property Management demo ───────────────────────────── */
.pm-shell { display: flex; flex-direction: column; gap: 1rem; }
.pm-tabs { display: flex; gap: 4px; background: #f0efeb; border-radius: 10px; padding: 4px; }
.pm-tab { flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .15s; }
.pm-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pm-muted { color: #94a3b8; font-size: 12px; }
.pm-toolbar { display: flex; gap: 10px; }
.pm-search { flex: 1; padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafaf8; }
.pm-select { padding: 9px 12px; border: 1px solid #d4d2cc; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafaf8; }
.pm-listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pm-listing-card { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pm-listing-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.pm-listing-img { height: 120px; position: relative; display: flex; align-items: end; padding: 10px; }
.pm-listing-type { position: absolute; top: 8px; left: 8px; padding: 3px 8px; background: rgba(255,255,255,.9); border-radius: 4px; font-size: 11px; font-weight: 600; }
.pm-listing-status { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.pm-listing-status.available { background: #f0fdf4; color: #16a34a; }
.pm-listing-status.reserved { background: #fef3c7; color: #d97706; }
.pm-listing-status.sold { background: #fef2f2; color: #dc2626; }
.pm-listing-body { padding: 14px; }
.pm-listing-body strong { display: block; font-size: 14px; margin-bottom: 2px; }
.pm-listing-specs { display: flex; gap: 12px; font-size: 12px; color: #64748b; margin: 8px 0; }
.pm-listing-foot { display: flex; justify-content: space-between; }
.pm-price { font-weight: 700; font-size: 15px; font-family: 'DM Mono', monospace; color: #0f172a; }
.pm-back { background: none; border: none; color: #2563eb; font-size: 13px; font-weight: 500; cursor: pointer; padding: 0; font-family: inherit; }
.pm-detail-hero { height: 160px; border-radius: 12px; display: flex; align-items: end; justify-content: end; padding: 14px; }
.pm-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-top: 16px; }
.pm-detail-main h3 { margin: 0 0 4px; font-size: 20px; }
.pm-spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.pm-spec { background: #fafaf8; border: 1px solid #e5e3de; border-radius: 8px; padding: 12px; text-align: center; }
.pm-spec strong { display: block; font-size: 18px; font-family: 'DM Mono', monospace; }
.pm-spec span { font-size: 11px; color: #94a3b8; }
.pm-features h4 { margin: 0 0 8px; font-size: 14px; }
.pm-feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-feature-tag { padding: 4px 10px; background: #f0efeb; border-radius: 6px; font-size: 12px; color: #374151; }
.pm-detail-side { display: flex; flex-direction: column; gap: 12px; }
.pm-price-box { background: #0f172a; color: #fff; border-radius: 12px; padding: 20px; }
.pm-price-box .pm-muted { color: #94a3b8; }
.pm-big-price { display: block; font-size: 24px; font-weight: 700; font-family: 'DM Mono', monospace; margin-top: 4px; }
.pm-agent-box { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid #e5e3de; border-radius: 10px; }
.pm-agent-avatar { width: 40px; height: 40px; background: linear-gradient(135deg,#6366f1,#2563eb); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.pm-agent-box strong { display: block; font-size: 14px; }
.pm-media-count { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: #fafaf8; border: 1px solid #e5e3de; border-radius: 10px; font-size: 13px; }
.pm-pipeline-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pm-pipe-col { background: #fafaf8; border: 1px solid #e5e3de; border-radius: 10px; padding: 12px; }
.pm-pipe-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12px; }
.pm-pipe-dot { width: 8px; height: 8px; border-radius: 50%; }
.pm-pipe-count { background: #e5e3de; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.pm-pipe-card { background: #fff; border: 1px solid #e5e3de; border-radius: 8px; padding: 10px; margin-bottom: 6px; }
.pm-pipe-card strong { display: block; font-size: 13px; }
.pm-pipe-val { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 600; }

/* ── Construction Tracking demo ─────────────────────────── */
.ct-shell { display: flex; flex-direction: column; gap: 1rem; }
.ct-tabs { display: flex; gap: 4px; background: #f0efeb; border-radius: 10px; padding: 4px; }
.ct-tab { flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .15s; }
.ct-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ct-muted { color: #94a3b8; font-size: 12px; }
.ct-mono { font-family: 'DM Mono', monospace; font-size: 12px; }
.ct-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ct-project-card { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .15s; }
.ct-project-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.ct-project-header { height: 80px; position: relative; display: flex; align-items: end; padding: 10px; }
.ct-project-type { padding: 3px 8px; background: rgba(255,255,255,.9); border-radius: 4px; font-size: 11px; font-weight: 600; }
.ct-project-body { padding: 14px; }
.ct-project-body strong { display: block; font-size: 15px; margin-bottom: 2px; }
.ct-progress-bar { height: 6px; background: #e5e3de; border-radius: 3px; margin: 10px 0 6px; overflow: hidden; }
.ct-progress-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.ct-project-footer { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 10px; }
.ct-progress-label { font-weight: 600; color: #374151; }
.ct-project-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 10px; border-top: 1px solid #e5e3de; text-align: center; font-size: 12px; }
.ct-project-kpis strong { display: block; font-size: 16px; font-family: 'DM Mono', monospace; }
.ct-back { background: none; border: none; color: #2563eb; font-size: 13px; font-weight: 500; cursor: pointer; padding: 0; font-family: inherit; margin-bottom: 8px; }
.ct-progress-view h3 { margin: 0 0 2px; font-size: 18px; }
.ct-phase-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ct-phase { background: #fff; border: 1px solid #e5e3de; border-radius: 10px; padding: 14px; }
.ct-phase-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ct-phase-dot { width: 10px; height: 10px; border-radius: 50%; }
.ct-phase-pct { margin-left: auto; font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 600; }
.ct-phase-status { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.ct-phase-status.done { background: #f0fdf4; color: #16a34a; }
.ct-phase-status.in.progress { background: #dbeafe; color: #2563eb; }
.ct-phase-status.upcoming { background: #f1f5f9; color: #94a3b8; }
.ct-phase-bar { height: 4px; background: #e5e3de; border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.ct-phase-fill { height: 100%; border-radius: 2px; }
.ct-phase-meta { display: flex; justify-content: space-between; }
.ct-docs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ct-docs-head h4 { margin: 0; font-size: 15px; }
.ct-btn-primary { padding: 8px 16px; background: #0f172a; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ct-table-wrap { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; }
.ct-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ct-table th, .ct-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e3de; }
.ct-table thead th { font-weight: 600; color: #64748b; font-size: 12px; background: #fafaf8; }
.ct-table tbody tr:hover { background: #fafaf8; }
.ct-doc-icon { margin-right: 4px; }
.ct-cat-chip { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #374151; }

/* ── Quality Operations demo ────────────────────────────── */
.qo-shell { display: flex; flex-direction: column; gap: 1rem; }
.qo-tabs { display: flex; gap: 4px; background: #f0efeb; border-radius: 10px; padding: 4px; }
.qo-tab { flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .15s; }
.qo-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.qo-muted { color: #94a3b8; font-size: 12px; }
.qo-mono { font-family: 'DM Mono', monospace; font-size: 12px; }
.qo-kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qo-kpi { background: #fff; border: 1px solid #e5e3de; border-radius: 10px; padding: 14px; text-align: center; }
.qo-kpi-val { display: block; font-size: 24px; font-weight: 700; font-family: 'DM Mono', monospace; }
.qo-green { color: #16a34a; }
.qo-blue { color: #2563eb; }
.qo-amber { color: #d97706; }
.qo-table-wrap { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; overflow: hidden; }
.qo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qo-table th, .qo-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e3de; }
.qo-table thead th { font-weight: 600; color: #64748b; font-size: 12px; background: #fafaf8; }
.qo-table tbody tr:hover { background: #fafaf8; }
.qo-op-cell { display: flex; align-items: center; gap: 8px; }
.qo-avatar { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.qo-status { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.qo-status.done { background: #f0fdf4; color: #16a34a; }
.qo-status.progress { background: #dbeafe; color: #2563eb; }
.qo-status.overdue { background: #fef2f2; color: #dc2626; }
.qo-quality-bar { display: inline-block; width: 60px; height: 6px; background: #e5e3de; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.qo-quality-fill { height: 100%; border-radius: 3px; }
.qo-quality-val { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600; }
.qo-ontime { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; font-family: 'DM Mono', monospace; }
.qo-ontime.good { background: #f0fdf4; color: #16a34a; }
.qo-ontime.warn { background: #fef3c7; color: #d97706; }
.qo-site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.qo-site-card { background: #fff; border: 1px solid #e5e3de; border-radius: 12px; padding: 16px; }
.qo-site-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qo-site-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.qo-site-head strong { display: block; font-size: 14px; }
.qo-site-status { margin-left: auto; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: #64748b; }
.qo-site-status.active { background: #f0fdf4; color: #16a34a; }
.qo-site-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; font-size: 12px; }
.qo-site-kpis strong { display: block; font-size: 16px; font-family: 'DM Mono', monospace; }
.qo-perf-head { margin-bottom: 12px; }
.qo-perf-head h4 { margin: 0; font-size: 15px; }
.qo-presence-head { display: flex; justify-content: space-between; align-items: center; }
.qo-presence-head h4 { margin: 0; font-size: 15px; }
.qo-presence-legend { display: flex; gap: 14px; }
.qo-legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.qo-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.qo-presence-grid { display: flex; flex-direction: column; gap: 6px; }
.qo-presence-row { display: grid; grid-template-columns: 140px 1fr 60px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0efeb; }
.qo-time-blocks { display: flex; height: 20px; border-radius: 4px; overflow: hidden; }
.qo-time-block { height: 100%; }
.qo-presence-hours { text-align: right; }

/* ── MacBook Scroll Hero ────────────────────────────────── */
.mbs-wrap { margin: -1.25rem; }

/* Scroll zone: tall container that provides scroll runway */
.mbs-zone { height: 250vh; position: relative; }

/* Sticky pin: keeps laptop centered while scrolling through the zone */
.mbs-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0B0B0F;
}

/* Title */
.mbs-title-wrap {
    position: absolute;
    top: 8vh;
    text-align: center;
    z-index: 2;
    will-change: transform, opacity;
}
.mbs-badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    border: 1px solid rgba(148,163,184,.2);
    margin-bottom: 16px;
    font-family: 'DM Mono', monospace;
    letter-spacing: .04em;
}
.mbs-hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.mbs-hero-sub {
    font-size: 16px;
    color: #64748b;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Laptop ─────────────────────────────────────────────── */
.mbs-laptop {
    transform-origin: center;
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Screen bezel */
.mbs-bezel {
    width: 580px;
    background: #1a1a1e;
    border-radius: 12px 12px 0 0;
    padding: 8px 8px 0;
}
.mbs-cam {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
    margin: 0 auto 6px;
}
.mbs-screen {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #fff;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}
.mbs-screen > * {
    transform: scale(0.5);
    transform-origin: top left;
    width: 200%;
    height: 200%;
}

/* ── Keyboard base ──────────────────────────────────────── */
.mbs-bottom {
    width: 620px;
    background: #272729;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    position: relative;
}
.mbs-hinge-strip {
    height: 8px;
    background: #050505;
    width: 80%;
    margin: 0 auto;
}
.mbs-kb-row { display: flex; }
.mbs-speaker-grid {
    width: 10%;
    height: 130px;
    background-image: radial-gradient(circle, #08080A 0.5px, transparent 0.5px);
    background-size: 3px 3px;
}
.mbs-keys {
    width: 80%;
    background: #050505;
    border-radius: 4px;
    padding: 3px;
}
.mbs-kr { display: flex; gap: 2px; margin-bottom: 2px; }
.mbs-k {
    display: flex;
    height: 20px;
    width: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #0A090D;
    font-size: 5px;
    color: #e5e5e5;
    font-family: -apple-system, 'DM Mono', sans-serif;
    box-shadow: 0px -0.5px 2px 0 #0D0D0F inset, -0.5px 0px 2px 0 #0D0D0F inset;
    flex-shrink: 0;
    position: relative;
}
.mbs-k::before {
    content: '';
    position: absolute;
    inset: -0.5px;
    border-radius: 3.5px;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.mbs-kw { width: 34px; font-size: 4px; }
.mbs-kcaps { width: 38px; font-size: 4px; }
.mbs-kret { width: 38px; font-size: 4px; }
.mbs-kshift { width: 50px; font-size: 4px; }
.mbs-kcmd { width: 28px; font-size: 5px; }
.mbs-kspace { width: 110px; }
.mbs-pwr { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #1a1a1a 40%, #0a0a0a 60%); border: 1px solid #222; }
.mbs-arrows { display: flex; flex-direction: column; align-items: center; width: auto; }
.mbs-ka { height: 10px !important; width: 20px !important; font-size: 5px; }
.mbs-arrows-b { display: flex; gap: 2px; }
.mbs-trackpad {
    width: 38%;
    height: 80px;
    border-radius: 8px;
    margin: 4px auto 8px;
    box-shadow: 0 0 1px 1px rgba(0,0,0,0.12) inset;
    background: #2a2a2e;
}
.mbs-notch {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(to top, #272729, #050505);
}

/* ── Details below ──────────────────────────────────────── */
.mbs-details {
    background: #F3F2EE;
    position: relative;
    z-index: 3;
}
.mbs-details .pb-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 24px 48px;
}

@media (max-width: 768px) {
    .mbs-zone { height: 200vh; }
    .mbs-bezel { width: 90vw; }
    .mbs-bottom { width: 94vw; }
    .mbs-k { width: 12px; height: 12px; font-size: 3px; }
    .mbs-kw { width: 20px; }
    .mbs-kcaps { width: 22px; }
    .mbs-kret { width: 22px; }
    .mbs-kshift { width: 28px; }
    .mbs-kcmd { width: 16px; }
    .mbs-kspace { width: 54px; }
    .mbs-ka { width: 12px !important; }
    .mbs-trackpad { height: 40px; }
}

/* ── Dependency Graph ───────────────────────────────────── */
.dg-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: calc(100vh - 56px);
    margin: -1.25rem;
    overflow: hidden;
}
.dg-sidebar {
    background: #fff;
    border-right: 1px solid #e5e3de;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 20px;
    gap: 4px;
}
.dg-sidebar-icon {
    width: 44px; height: 44px; background: #f0fdf4; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.dg-sidebar-title { margin: 0 0 2px; font-size: 20px; font-weight: 800; }
.dg-muted { color: #94a3b8; font-size: 12px; line-height: 1.4; }
.dg-empty-card {
    margin: 16px 0; padding: 20px; border: 1px solid #e5e3de; border-radius: 12px;
    background: #fafaf8; text-align: center;
}
.dg-empty-icon { font-size: 24px; display: block; margin-bottom: 6px; color: #6366f1; }
.dg-empty-card p { margin: 0; font-size: 13px; color: #64748b; }
.dg-sel-list { display: flex; flex-direction: column; gap: 5px; margin: 12px 0; }
.dg-sel-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border: 1px solid #e5e3de; border-radius: 10px; background: #fafaf8;
}
.dg-sel-auto { opacity: .6; border-style: dashed; }
.dg-sel-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dg-sel-info { flex: 1; min-width: 0; }
.dg-sel-info strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-sel-remove { background: none; border: none; font-size: 16px; color: #94a3b8; cursor: pointer; padding: 0; }
.dg-sel-remove:hover { color: #dc2626; }
.dg-totals { background: #0f172a; color: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
.dg-total-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; }
.dg-total-row span { color: #94a3b8; }
.dg-total-row strong { font-family: 'DM Mono', monospace; }
.dg-cta {
    width: 100%; padding: 10px; background: #2563eb; color: #fff; border: none;
    border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; margin-bottom: 8px;
}
.dg-cta:hover { background: #1d4ed8; }
.dg-legend { padding-top: 14px; border-top: 1px solid #e5e3de; margin-top: auto; }
.dg-legend h4 { margin: 0 0 10px; font-size: 11px; font-weight: 700; color: #94a3b8; letter-spacing: .1em; }
.dg-legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 4px 0; }
.dg-legend-pip {
    width: 28px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 800; font-family: 'DM Mono', monospace; flex-shrink: 0;
}
.dg-smart-card {
    margin-top: 14px; padding: 18px 16px; border: 1px solid #e5e3de; border-radius: 12px; background: #fafaf8;
}
.dg-smart-icon { font-size: 22px; display: block; margin-bottom: 8px; color: #6366f1; }
.dg-smart-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.dg-smart-card p { margin: 0; }
/* Canvas */
.dg-canvas {
    background: #F3F2EE; overflow: auto; position: relative;
    display: flex; flex-direction: column; align-items: center;
}
.dg-toolbar {
    position: sticky; top: 0; z-index: 5; align-self: flex-end;
    display: flex; align-items: center; gap: 2px; padding: 12px 16px;
}
.dg-tool-btn {
    width: 34px; height: 34px; border: 1px solid #e5e3de; border-radius: 8px;
    background: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #374151; font-family: inherit;
}
.dg-tool-btn:hover { background: #f0efeb; }
.dg-zoom-label { padding: 0 8px; font-size: 13px; font-weight: 600; font-family: 'DM Mono', monospace; min-width: 44px; text-align: center; }
.dg-scroll { flex-shrink: 0; transition: transform .15s ease; }
.dg-svg { flex-shrink: 0; }
.dg-node { transition: opacity .12s; }
.dg-node:hover { opacity: .85; }
@media (max-width: 768px) {
    .dg-page { grid-template-columns: 1fr; height: auto; }
    .dg-sidebar { border-right: none; border-bottom: 1px solid #e5e3de; max-height: 40vh; }
}
