/* ============================================================
   OBSERVER - HOME 2.0
   Onboarding adaptativo + visão operacional
   ============================================================ */

.home-dashboard,
.home-onboarding,
.home-state {
    width: min(1220px, calc(100% - 64px));
    margin: 0 auto;
    box-sizing: border-box;
}

.home-dashboard,
.home-onboarding {
    padding: 42px 0 64px;
}

.home-dashboard button,
.home-onboarding button {
    font: inherit;
}

/* ============================================================
   HEADER
   ============================================================ */

.home-dashboard-header,
.home-onboarding-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.home-dashboard-label,
.home-section-label,
.home-next-step-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #708097;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.home-dashboard-header h1,
.home-onboarding-header h1 {
    margin: 0;
    color: #e1e5ec;
    font-size: clamp(27px, 3vw, 37px);
    font-weight: 400;
    line-height: 1.15;
}

.home-dashboard-header p,
.home-onboarding-header p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #788496;
    font-size: 13px;
    line-height: 1.55;
}

.home-refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 13px;
    flex-shrink: 0;
    color: #9aa5b5;
    background: #1b1e22;
    border: 1px solid #2d3238;
    border-radius: 7px;
    cursor: pointer;
    font-size: 11px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.home-refresh-button:hover {
    color: #d5dbe5;
    background: #20242a;
    border-color: #3a4149;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */

.home-section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 0 13px;
}

.home-section-heading-row h2,
.home-section-header h2 {
    margin: 0;
    color: #d8dde6;
    font-size: 18px;
    font-weight: 500;
}

/* ============================================================
   INVENTORY / SUMMARY
   ============================================================ */

.home-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.home-summary-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 104px;
    padding: 18px;
    box-sizing: border-box;
    color: inherit;
    background:
        linear-gradient(
            145deg,
            rgba(31, 34, 39, .97),
            rgba(22, 24, 27, .97)
        );
    border: 1px solid #2c3036;
    border-radius: 9px;
    text-align: left;
}

.home-summary-card-clickable {
    cursor: pointer;
    transition: border-color 170ms ease, transform 170ms ease, background 170ms ease;
}

.home-summary-card-clickable:hover {
    border-color: #3d454f;
    background:
        linear-gradient(
            145deg,
            rgba(35, 39, 44, .99),
            rgba(25, 28, 32, .99)
        );
    transform: translateY(-2px);
}

.home-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin-right: 14px;
    color: #7c8ca2;
    background: #181b1f;
    border: 1px solid #2d3238;
    border-radius: 8px;
    font-size: 15px;
}

.home-summary-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-summary-content > span {
    margin-bottom: 4px;
    color: #7a8595;
    font-size: 11px;
}

.home-summary-content > strong {
    color: #e1e5ec;
    font-size: 25px;
    font-weight: 550;
    line-height: 1;
}

.home-summary-content > small {
    margin-top: 7px;
    overflow: hidden;
    color: #626d7c;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-summary-link {
    position: absolute;
    top: 14px;
    right: 14px;
    color: #485260;
    font-size: 9px;
    transition: color 170ms ease, transform 170ms ease;
}

.home-summary-card:hover .home-summary-link {
    color: #7d8999;
    transform: translate(1px, -1px);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.home-section {
    padding: 24px;
    margin-bottom: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(27, 30, 34, .97),
            rgba(21, 23, 26, .97)
        );
    border: 1px solid #2a2e34;
    border-radius: 9px;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.home-section-label {
    margin-bottom: 5px;
}

.home-section-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 10px;
    color: #8a95a4;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 999px;
    font-size: 10px;
    white-space: nowrap;
}

.home-section-status .home-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.home-section-status.is-ok .home-status-dot {
    background: #36a269;
    box-shadow: 0 0 0 3px rgba(54,162,105,.1);
}

.home-section-status.is-attention .home-status-dot {
    background: #c79b4a;
    box-shadow: 0 0 0 3px rgba(199,155,74,.1);
}

.home-section-counter {
    color: #687484;
    font-size: 10px;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: #7f8b9b;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 10px;
    transition: color 160ms ease;
}

.home-section-link:hover {
    color: #cbd2dc;
}

/* ============================================================
   HEALTH
   ============================================================ */

.home-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 11px;
}

.home-health-card {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 88px;
    padding: 16px;
    color: inherit;
    background: #191c20;
    border: 1px solid #292e34;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-health-card:hover {
    background: #20242a;
    border-color: #3a424c;
    transform: translateY(-1px);
}

.home-health-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    margin-right: 12px;
    color: #78879a;
    background: #20242a;
    border-radius: 7px;
    font-size: 13px;
}

.home-health-card > div:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-health-card span {
    margin-bottom: 4px;
    color: #747f8e;
    font-size: 10px;
}

.home-health-card strong {
    color: #d8dde6;
    font-size: 18px;
    font-weight: 550;
    line-height: 1;
}

.home-health-card small {
    margin-top: 6px;
    color: #5f6a79;
    font-size: 8px;
    line-height: 1.35;
}

.home-health-card.is-online .home-health-icon { color: #3ba46c; }
.home-health-card.is-offline .home-health-icon,
.home-health-card.is-warning .home-health-icon { color: #d1a450; }
.home-health-card.is-alert .home-health-icon { color: #d96c6c; }
.home-health-card.is-critical .home-health-icon { color: #df6262; }

.home-healthy-banner {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(46,155,98,.055);
    border: 1px solid rgba(54,162,105,.16);
    border-radius: 8px;
}

.home-healthy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: #46ad75;
    background: rgba(54,162,105,.09);
    border-radius: 50%;
}

.home-healthy-banner > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.home-healthy-banner strong {
    color: #b9d7c7;
    font-size: 12px;
    font-weight: 600;
}

.home-healthy-banner span {
    color: #718a7c;
    font-size: 9px;
}

/* ============================================================
   ATTENTION
   ============================================================ */

.home-attention-section {
    border-color: rgba(199,155,74,.15);
}

.home-attention-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-attention-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 11px 12px;
    background: #191c20;
    border: 1px solid #292e34;
    border-radius: 8px;
}

.home-attention-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: #20242a;
    color: #778596;
}

.home-attention-item.is-alert .home-attention-icon { color: #d96c6c; }
.home-attention-item.is-warning .home-attention-icon { color: #cda04d; }
.home-attention-item.is-info .home-attention-icon { color: #6d91bc; }

.home-attention-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-attention-main strong {
    overflow: hidden;
    color: #d3d9e2;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-attention-main span {
    margin-top: 4px;
    overflow: hidden;
    color: #727d8d;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-attention-meta {
    padding: 5px 8px;
    color: #a1a9b4;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-attention-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 0 10px;
    color: #8f9baa;
    background: transparent;
    border: 1px solid #30363e;
    border-radius: 6px;
    cursor: pointer;
    font-size: 9px;
    white-space: nowrap;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.home-attention-action:hover {
    color: #d5dbe4;
    background: #24282e;
    border-color: #414955;
}

/* ============================================================
   RECENT INCIDENTS
   ============================================================ */

.home-incidents-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #292e34;
    border-radius: 8px;
    overflow: hidden;
}

.home-incident-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto minmax(126px, auto) 14px;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 63px;
    padding: 9px 12px;
    color: inherit;
    background: #191c20;
    border: 0;
    border-bottom: 1px solid #282d33;
    cursor: pointer;
    text-align: left;
    transition: background 150ms ease;
}

.home-incident-row:last-child { border-bottom: 0; }
.home-incident-row:hover { background: #20242a; }

.home-incident-state {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 7px;
    background: rgba(255,255,255,.035);
}

.home-incident-state.is-alert { color: #d96c6c; }
.home-incident-state.is-warning { color: #cda04d; }

.home-incident-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-incident-main strong {
    overflow: hidden;
    color: #d5dae3;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-incident-main span {
    margin-top: 4px;
    overflow: hidden;
    color: #697585;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-criticality-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.home-criticality-badge.is-info { color: #86a7cd; background: rgba(91,133,181,.10); }
.home-criticality-badge.is-warning { color: #d2ab61; background: rgba(199,155,74,.10); }
.home-criticality-badge.is-medium { color: #ba9ad2; background: rgba(151,105,183,.10); }
.home-criticality-badge.is-high { color: #d78669; background: rgba(196,104,71,.10); }
.home-criticality-badge.is-critical { color: #e37575; background: rgba(210,76,76,.10); }

.home-incident-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
}

.home-incident-time > span {
    color: #657181;
    font-size: 8px;
    white-space: nowrap;
}

.home-incident-status {
    font-size: 8px;
    font-weight: 650;
}

.home-incident-status.is-open-alert { color: #dc7777; }
.home-incident-status.is-open-warning { color: #d0a552; }
.home-incident-status.is-recovered { color: #51aa78; }
.home-incident-arrow { color: #4c5664; font-size: 9px; }

.home-empty-inline {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    color: #4ea975;
    background: #191c20;
    border: 1px solid #292e34;
    border-radius: 8px;
}

.home-empty-inline > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-empty-inline strong {
    color: #a9c7b6;
    font-size: 11px;
    font-weight: 600;
}

.home-empty-inline span {
    color: #6a7c70;
    font-size: 9px;
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */

.home-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.home-action {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 14px;
    color: inherit;
    background: #191c20;
    border: 1px solid #292e34;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-action:hover {
    background: #20242a;
    border-color: #39414b;
    transform: translateY(-1px);
}

.home-action > i:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    margin-right: 11px;
    color: #758599;
    background: #20242a;
    border: 1px solid #2d3238;
    border-radius: 7px;
}

.home-action > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.home-action strong {
    margin-bottom: 3px;
    color: #d0d6df;
    font-size: 10px;
    font-weight: 600;
}

.home-action span {
    overflow: hidden;
    color: #697585;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-action > i:last-child {
    margin-left: 9px;
    color: #4e5866;
    font-size: 9px;
    transition: color 160ms ease, transform 160ms ease;
}

.home-action:hover > i:last-child {
    color: #7b8797;
    transform: translateX(2px);
}

/* ============================================================
   ONBOARDING
   ============================================================ */

.home-onboarding {
    max-width: 1080px;
}

.home-onboarding-progress-card,
.home-next-step-card {
    background:
        linear-gradient(
            145deg,
            rgba(29,32,37,.98),
            rgba(21,23,26,.98)
        );
    border: 1px solid #2c3137;
    border-radius: 10px;
}

.home-onboarding-progress-card {
    padding: 22px 24px 19px;
    margin-bottom: 14px;
}

.home-onboarding-progress-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.home-onboarding-progress-top > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-onboarding-progress-top span {
    color: #687587;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.home-onboarding-progress-top strong {
    color: #cfd5de;
    font-size: 12px;
    font-weight: 550;
}

.home-onboarding-progress-top b {
    color: #4ca873;
    font-size: 18px;
    font-weight: 650;
}

.home-progress-bar {
    width: 100%;
    height: 4px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #22262b;
    border-radius: 999px;
}

.home-progress-bar > span {
    display: block;
    height: 100%;
    background: #35885a;
    border-radius: inherit;
    transition: width 220ms ease;
}

.home-setup-progress {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.home-setup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 68px;
}

.home-setup-step > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 7px;
    color: #596474;
    background: #1a1d21;
    border: 1px solid #30353c;
    border-radius: 50%;
    font-size: 11px;
}

.home-setup-step label {
    color: #606c7c;
    font-size: 8px;
    white-space: nowrap;
}

.home-setup-step.active > span {
    color: #57b27e;
    background: rgba(60,161,106,.08);
    border-color: rgba(60,161,106,.42);
    box-shadow: 0 0 0 4px rgba(60,161,106,.045);
}

.home-setup-step.active label {
    color: #a1acba;
}

.home-setup-step.complete > span {
    color: #3fa46d;
    background: rgba(60,161,106,.07);
    border-color: rgba(60,161,106,.25);
}

.home-setup-step.complete label {
    color: #728090;
}

.home-setup-line {
    flex: 1;
    height: 1px;
    margin: 0 4px 19px;
    background: #30353c;
}

.home-setup-line.active {
    background: #356e50;
}

.home-next-step-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 20px;
    padding: 28px;
    margin-bottom: 14px;
    border-color: rgba(60,161,106,.18);
}

.home-next-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #55b07c;
    background: rgba(60,161,106,.08);
    border: 1px solid rgba(60,161,106,.22);
    border-radius: 11px;
    font-size: 21px;
    font-weight: 650;
}

.home-next-step-content {
    min-width: 0;
}

.home-next-step-content h2 {
    margin: 0 0 8px;
    color: #e0e4eb;
    font-size: 22px;
    font-weight: 500;
}

.home-next-step-content > p {
    max-width: 720px;
    margin: 0 0 15px;
    color: #7a8696;
    font-size: 12px;
    line-height: 1.6;
}

.home-next-step-hint,
.home-permission-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 760px;
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 7px;
    font-size: 9px;
    line-height: 1.55;
}

.home-next-step-hint {
    color: #8593a4;
    background: rgba(109,145,188,.055);
    border: 1px solid rgba(109,145,188,.13);
}

.home-next-step-hint i {
    margin-top: 2px;
    color: #7296bf;
}

.home-permission-note {
    color: #b29160;
    background: rgba(199,155,74,.055);
    border: 1px solid rgba(199,155,74,.15);
}

.home-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 38px;
    padding: 0 16px;
    color: #e3ece6;
    background: #247b4b;
    border: 1px solid #2c955d;
    border-radius: 7px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-primary-button:hover {
    background: #2b8956;
    border-color: #37a269;
    transform: translateY(-1px);
}

.home-next-step-permission {
    display: block;
    margin-top: 12px;
    color: #7f6f59;
    font-size: 8px;
}

.home-next-step-permission i { margin-right: 5px; }

.home-onboarding-help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-onboarding-help {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
    padding: 14px;
    background: #191c20;
    border: 1px solid #292e34;
    border-radius: 8px;
}

.home-onboarding-help > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    color: #728399;
    background: #20242a;
    border-radius: 7px;
}

.home-onboarding-help > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-onboarding-help strong {
    color: #cbd1db;
    font-size: 9px;
    font-weight: 600;
}

.home-onboarding-help span {
    color: #687484;
    font-size: 8px;
    line-height: 1.5;
}

/* ============================================================
   GENERIC STATES
   ============================================================ */

.home-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    text-align: center;
}

.home-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    color: #78879a;
    background: #1b1e22;
    border: 1px solid #2d3238;
    border-radius: 9px;
}

.home-state h2 {
    margin: 0 0 9px;
    color: #cdd3dc;
    font-size: 20px;
    font-weight: 500;
}

.home-state p {
    max-width: 520px;
    margin: 0;
    color: #717d8c;
    font-size: 11px;
    line-height: 1.6;
}

.home-state-warning .home-state-icon { color: #c39a4e; }
.home-state-error .home-state-icon { color: #b97979; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .home-dashboard,
    .home-onboarding,
    .home-state {
        width: min(100% - 32px, 1220px);
    }

    .home-onboarding-help-grid {
        grid-template-columns: 1fr;
    }

    .home-attention-item {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .home-attention-action {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .home-incident-row {
        grid-template-columns: 34px minmax(0, 1fr) auto 14px;
    }

    .home-incident-time {
        grid-column: 2 / 4;
        grid-row: 2;
        align-items: flex-start;
        flex-direction: row;
        gap: 9px;
    }

    .home-incident-arrow {
        grid-column: 4;
        grid-row: 1 / 3;
    }
}

@media (max-width: 720px) {
    .home-dashboard,
    .home-onboarding {
        padding-top: 28px;
    }

    .home-dashboard-header,
    .home-onboarding-header {
        flex-direction: column;
        margin-bottom: 22px;
    }

    .home-refresh-button {
        align-self: flex-start;
    }

    .home-section {
        padding: 18px;
    }

    .home-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .home-setup-progress-wide {
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .home-setup-step {
        min-width: 61px;
    }

    .home-setup-line {
        min-width: 22px;
    }

    .home-next-step-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 21px;
    }

    .home-attention-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .home-attention-meta {
        grid-column: 2;
        justify-self: start;
    }

    .home-attention-action {
        grid-column: 2;
    }
}

@media (max-width: 520px) {
    .home-dashboard,
    .home-onboarding,
    .home-state {
        width: calc(100% - 22px);
    }

    .home-dashboard-header h1,
    .home-onboarding-header h1 {
        font-size: 25px;
    }

    .home-summary-grid,
    .home-health-grid,
    .home-actions-grid {
        grid-template-columns: 1fr;
    }

    .home-onboarding-progress-card {
        padding: 18px 14px 15px;
    }

    .home-onboarding-progress-top {
        align-items: flex-start;
    }

    .home-incident-row {
        grid-template-columns: 32px minmax(0, 1fr) 12px;
    }

    .home-criticality-badge {
        grid-column: 2;
        justify-self: start;
    }

    .home-incident-time {
        grid-column: 2;
        grid-row: auto;
        flex-wrap: wrap;
    }

    .home-incident-arrow {
        grid-column: 3;
        grid-row: 1 / 4;
    }
}

/* ============================================================
   HOME SCROLL / WORKSPACE COMPATIBILITY
   ============================================================ */

html,
body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.TopBar {
    flex: 0 0 50px;
    height: 50px;
    min-height: 50px;
}

.main-container-content {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: #151515;
}

.main-container-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.main-container-content::-webkit-scrollbar-track { background: #151719; }

.main-container-content::-webkit-scrollbar-thumb {
    background: #343a42;
    border-radius: 10px;
    border: 2px solid #151719;
}

.main-container-content::-webkit-scrollbar-thumb:hover { background: #454d57; }

.observer-desktop {
    display: block;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Legacy placeholder: a Home agora é uma Observer Window permanente. */
.observer-welcome {
    display: none !important;
}
