/* Command Center 360 (dash360.js). Light & Gold on the --sh-* tokens; every rule is scoped under .dz. */
.dz { font-family: var(--sh-font); color: var(--sh-on-surface); display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.dz .material-symbols-outlined { font-size: 18px; flex-shrink: 0; vertical-align: middle; }
.dz-sub { font-size: 12px; color: var(--sh-on-surface-variant); }
.dz b { font-weight: 700; }

/* hero */
.dz-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 14px; padding: 18px 22px; position: relative; overflow: hidden; }
.dz-hero::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 300px; background: linear-gradient(270deg, rgba(245,158,11,.13), transparent); pointer-events: none; }
.dz-hero > * { position: relative; z-index: 1; }
.dz-hero-l { display: flex; align-items: center; gap: 14px; min-width: 0; } .dz-hero-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dz-hero h1 { margin: 2px 0; font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dz-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-secondary); }
.dz-mark { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.dz-health { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.dz-health.good { background: var(--sh-ok-bg); color: var(--sh-ok); } .dz-health.warn { background: #fff0cc; color: var(--sh-secondary); } .dz-health.critical { background: #fdecea; color: var(--sh-error); }
.dz-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--sh-surface-low); border-radius: 10px; }
.dz-seg button { border: none; background: transparent; padding: 6px 11px; border-radius: 8px; font: 700 12px var(--sh-font); color: var(--sh-on-surface-variant); cursor: pointer; }
.dz-seg button.on { background: var(--sh-surface-lowest); color: var(--sh-on-surface); box-shadow: var(--sh-shadow); }
.dz-btn { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 10px; padding: 9px 14px; font: 700 12px var(--sh-font); cursor: pointer; background: var(--sh-primary-container); color: var(--sh-on-primary-container); white-space: nowrap; }
.dz-btn:hover { background: var(--sh-primary); color: var(--sh-on-primary); } .dz-btn.ghost { background: var(--sh-surface-low); color: var(--sh-on-surface); } .dz-btn.ghost:hover { background: var(--sh-surface-container); }

/* cards */
.dz-card { background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.dz-card-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dz-card-hd h3 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; } .dz-card-hd h3 .material-symbols-outlined { color: var(--sh-primary); }
.dz-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dz-two > *, .dz-terr > *, .dz-kpis > * { min-width: 0; }
.dz-scroll { overflow-x: auto; }
.dz-chart { position: relative; height: 240px; }
.dz-empty, .dz-empty-line { color: var(--sh-on-surface-variant); }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 28px 12px; } .dz-empty .material-symbols-outlined { font-size: 32px; color: var(--sh-primary); }
.dz-empty-line { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }

/* insights */
.dz-ins { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sh-surface-container); }
.dz-ins:first-of-type { border-top: none; }
.dz-ins-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--sh-outline); }
.dz-ins.critical .dz-ins-dot { background: var(--sh-error); box-shadow: 0 0 0 4px #fdecea; } .dz-ins.warn .dz-ins-dot { background: #f59e0b; box-shadow: 0 0 0 4px #fff0cc; } .dz-ins.info .dz-ins-dot { background: #3a5fa8; box-shadow: 0 0 0 4px #e4ecfa; }
.dz-ins-t { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; } .dz-ins-t b { font-size: 13px; } .dz-ins-t span { font-size: 12px; color: var(--sh-on-surface-variant); }
.dz-more summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--sh-secondary); padding: 8px 0; }
.dz-goodrow { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--sh-surface-container); margin-top: 4px; }
.dz-good { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--sh-ok); }

/* kpis */
.dz-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dz-kpi { background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 14px; padding: 14px 16px; border-top: 3px solid var(--sh-primary-container); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dz-kpi.blue { border-top-color: #6c93e0; } .dz-kpi.green { border-top-color: var(--sh-ok); } .dz-kpi.slate { border-top-color: #4a5160; } .dz-kpi.teal { border-top-color: #2aa198; } .dz-kpi.rose { border-top-color: #d6336c; }
.dz-kpi-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-on-surface-variant); }
.dz-kpi-top i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--sh-surface-low); color: var(--sh-secondary); font-style: normal; }
.dz-kpi-val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.dz-kpi-note { font-size: 11px; color: var(--sh-on-surface-variant); } .dz-kpi-note em { font-style: normal; }
.dz-bar { position: relative; height: 8px; border-radius: 999px; background: var(--sh-surface-container); overflow: visible; margin-top: 4px; }
.dz-bar i { display: block; height: 100%; border-radius: 999px; background: var(--sh-primary-container); } .dz-bar b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--sh-on-surface); border-radius: 2px; }
.dz-bar.sm { height: 6px; width: 90px; }
.dz-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--sh-surface-low); color: var(--sh-on-surface-variant); }
.dz-pill.good { background: var(--sh-ok-bg); color: var(--sh-ok); } .dz-pill.warn { background: #fff0cc; color: var(--sh-secondary); } .dz-pill.info { background: #e4ecfa; color: #3a5fa8; } .dz-pill.muted { background: var(--sh-surface-container); }

/* funnels */
.dz-fr { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 10px; padding: 5px 0; }
.dz-fr-l { font-size: 12px; font-weight: 600; } .dz-fr-b { height: 14px; border-radius: 6px; background: var(--sh-surface-low); overflow: hidden; } .dz-fr-b i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #ffcc66); border-radius: 6px; }
.dz-fr-n { text-align: right; font-weight: 800; font-size: 14px; display: flex; flex-direction: column; } .dz-fr-n small { font-size: 10px; font-weight: 600; color: var(--sh-on-surface-variant); }
.dz-fr-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sh-surface-container); }

/* territories */
.dz-terr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.dz-map { height: 360px; border-radius: 12px; overflow: hidden; background: var(--sh-surface-low); z-index: 0; }
.dz-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dz-table th { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-on-surface-variant); padding: 8px 10px; background: var(--sh-surface-low); white-space: nowrap; }
.dz-table td { padding: 10px; border-top: 1px solid var(--sh-surface-container); vertical-align: middle; }
.dz-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dz-avs { display: flex; align-items: center; } .dz-avs .dz-av { margin-left: -6px; border: 2px solid var(--sh-surface-lowest); } .dz-avs .dz-av:first-child { margin-left: 0; }
.dz-av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sh-primary-container); color: var(--sh-on-primary-container); font-size: 10px; font-weight: 800; flex-shrink: 0; }
.dz-av.bot { background: var(--sh-on-surface); color: #fff; } .dz-av.more { background: var(--sh-surface-container); color: var(--sh-on-surface-variant); } .dz-av .material-symbols-outlined { font-size: 15px; }
.dz-gaps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* team, products, feed */
.dz-activity { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sh-surface-container); font-size: 13px; display: flex; flex-direction: column; gap: 6px; } .dz-activity b { font-size: 18px; }
.dz-split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--sh-surface-container); } .dz-split .bot { background: #1f2937; } .dz-split .human { background: #f59e0b; }
.dz-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.dz-feed { display: flex; flex-direction: column; } .dz-fi { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--sh-surface-container); font-size: 13px; } .dz-fi:first-child { border-top: none; }
.dz-fi-k { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sh-secondary); padding-top: 2px; }
.dz-comm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .dz-comm div { background: var(--sh-surface-low); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; } .dz-comm span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sh-on-surface-variant); } .dz-comm b { font-size: 13px; overflow-wrap: anywhere; }

/* loading */
.dz-skel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .dz-skel i { height: 110px; border-radius: 14px; background: linear-gradient(90deg, var(--sh-surface-low), var(--sh-surface-container), var(--sh-surface-low)); background-size: 200% 100%; animation: dzsk 1.2s infinite linear; }
@keyframes dzsk { to { background-position: -200% 0; } }

@media (max-width: 1280px) { .dz-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .dz-two, .dz-terr { grid-template-columns: 1fr; } .dz-map { height: 280px; } }
@media (max-width: 640px) { .dz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dz-fr { grid-template-columns: 90px 1fr 70px; } .dz-hero h1 { font-size: 22px; } .dz-fi { grid-template-columns: 1fr auto; } .dz-fi-k { grid-column: 1 / -1; } }
