:root {
    --app-primary: #164E46;
    --app-primary-hover: #0F4039;
    --app-secondary: #7F9278;
    --app-accent: #E0B765;

    --app-background: #EEF3F0;
    --app-background-soft: #F5F8F6;
    --app-surface: #FFFFFF;
    --app-surface-secondary: #F2F6F3;
    --app-surface-elevated: #FFFFFF;

    --app-text: #17312E;
    --app-text-secondary: #536965;
    --app-text-muted: #7C8E8A;

    --app-border: #D9E3DE;
    --app-border-soft: #E8EFEB;

    --app-sidebar-background: #103A36;
    --app-sidebar-text: #C9DAD5;
    --app-sidebar-active: #FFFFFF;

    --app-radius-sm: 10px;
    --app-radius-md: 16px;
    --app-radius-lg: 22px;
    --app-radius-xl: 30px;

    --app-shadow-sm: 0 8px 24px rgba(24, 55, 49, 0.06);
    --app-shadow-md: 0 24px 70px rgba(20, 51, 45, 0.10);

    --app-sidebar-width: 120px;
    --app-sidebar-collapsed-width: 80px;
    --app-header-height: 82px;
    --app-content-max-width: 1540px;

    --app-success: #238457;
    --app-warning: #B77816;
    --app-danger: #C44747;
    --app-info: #3478B8;
}

/* Monitoring and incidents */
.ops-monitor-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:18px; padding:28px; background:linear-gradient(135deg,var(--app-surface),var(--app-background-soft)); }
.ops-monitor-hero h2 { margin:5px 0 6px; color:var(--app-text); font-size:clamp(20px,2.2vw,32px); letter-spacing:-.04em; }
.ops-monitor-hero p { margin:0; color:var(--app-text-muted); }
.ops-monitor-score { display:grid; min-width:112px; min-height:92px; place-content:center; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-lg); background:var(--app-surface); text-align:center; }
.ops-monitor-score strong { color:var(--app-text); font-size:30px; line-height:1; }.ops-monitor-score span { margin-top:6px; color:var(--app-text-muted); font-size:10px; font-weight:800; text-transform:uppercase; }
.ops-monitor-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }.ops-monitor-metrics article { padding:18px; }.ops-monitor-metrics span { display:block; color:var(--app-text-muted); font-size:10px; font-weight:750; text-transform:uppercase; }.ops-monitor-metrics strong { display:block; margin-top:8px; color:var(--app-text); font-size:24px; }
.ops-monitor-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:18px; }.ops-monitor-layout>.ops-card,.ops-monitor-section { padding:24px; }.ops-monitor-list { display:grid; gap:8px; }
.ops-monitor-row { display:grid; grid-template-columns:12px minmax(0,1fr) auto auto auto; align-items:center; gap:14px; min-height:64px; padding:10px 12px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); color:inherit; text-decoration:none; }.ops-monitor-row:hover { border-color:var(--app-border); background:var(--app-background-soft); }.ops-monitor-row__main strong,.ops-monitor-row__main small { display:block; }.ops-monitor-row__main strong { color:var(--app-text); font-size:11px; }.ops-monitor-row__main small,.ops-monitor-row time { overflow:hidden; color:var(--app-text-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.ops-health-dot { display:block; width:10px; height:10px; border-radius:50%; background:var(--bs-secondary); box-shadow:0 0 0 4px color-mix(in srgb,var(--bs-secondary) 12%,transparent); }.ops-health-dot--healthy { background:var(--bs-success); box-shadow:0 0 0 4px color-mix(in srgb,var(--bs-success) 12%,transparent); }.ops-health-dot--degraded { background:var(--bs-warning); }.ops-health-dot--down { background:var(--bs-danger); }
.ops-monitor-attention>a,.ops-monitor-attention>div { display:flex; align-items:center; gap:10px; min-height:50px; border-bottom:1px solid var(--app-border-soft); color:inherit; text-decoration:none; }.ops-monitor-attention strong { min-width:28px; color:var(--app-text); font-size:18px; }.ops-monitor-attention span { color:var(--app-text-muted); font-size:10px; }
.ops-attention-list>a { display:grid; grid-template-columns:10px minmax(0,1fr) 18px; align-items:center; gap:10px; min-height:42px; color:inherit; text-decoration:none; }.ops-attention-list>a p { margin:0; color:var(--app-text); font-size:10px; }
.ops-monitor-section { margin-bottom:18px; }.ops-endpoint-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.ops-endpoint-card { min-width:0; padding:18px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-lg); background:var(--app-background-soft); }.ops-endpoint-card header { display:grid; grid-template-columns:12px minmax(0,1fr) auto; align-items:start; gap:12px; }.ops-endpoint-card h3 { margin:0; color:var(--app-text); font-size:13px; }.ops-endpoint-card header a { display:block; overflow:hidden; margin-top:4px; color:var(--app-text-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.ops-endpoint-card dl { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:18px 0; }.ops-endpoint-card dl div { padding:10px; border-radius:10px; background:var(--app-surface); }.ops-endpoint-card dt { color:var(--app-text-muted); font-size:8px; text-transform:uppercase; }.ops-endpoint-card dd { margin:4px 0 0; color:var(--app-text); font-size:10px; font-weight:750; }.ops-endpoint-actions { display:flex; flex-wrap:wrap; gap:8px; }.ops-endpoint-actions form { margin:0; }.ops-endpoint-actions .btn { min-height:42px; }.ops-inline-editor { margin-top:16px; padding-top:16px; border-top:1px solid var(--app-border); }.ops-advanced { margin-top:14px; padding:12px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); }.ops-advanced summary,.ops-endpoint-card summary { min-height:44px; cursor:pointer; color:var(--app-text); font-size:10px; font-weight:750; }.ops-check-history { display:grid; gap:6px; }.ops-check-history>div { display:grid; grid-template-columns:70px 100px 1fr; align-items:center; gap:8px; color:var(--app-text-muted); font-size:9px; }
.ops-domain-list { display:grid; gap:8px; }.ops-domain-list>article,.ops-domain-list>a { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; align-items:center; gap:12px; min-height:62px; padding:10px 12px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); color:inherit; text-decoration:none; }.ops-domain-list strong,.ops-domain-list small { display:block; }.ops-domain-list strong { color:var(--app-text); font-size:11px; }.ops-domain-list small { margin-top:3px; color:var(--app-text-muted); font-size:9px; }
.ops-domain-list .ops-inline-editor { grid-column:1/-1; width:100%; }
.ops-incident-list { display:grid; gap:8px; }.ops-incident-list>a { display:grid; grid-template-columns:12px minmax(0,1fr) auto auto; align-items:center; gap:14px; min-height:64px; padding:10px 12px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); color:inherit; text-decoration:none; }.ops-incident-list strong,.ops-incident-list small { display:block; }.ops-incident-list strong { color:var(--app-text); font-size:11px; }.ops-incident-list small,.ops-incident-list time { color:var(--app-text-muted); font-size:9px; }.ops-incident-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; padding:28px; }.ops-incident-hero h2 { margin:5px 0; color:var(--app-text); font-size:22px; }.ops-incident-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:18px; }.ops-incident-layout>.ops-card { padding:24px; }.ops-timeline { display:grid; gap:0; }.ops-timeline>div { position:relative; display:grid; grid-template-columns:110px minmax(0,1fr); gap:4px 18px; min-height:58px; padding-left:24px; }.ops-timeline>div>span { position:absolute; top:4px; left:2px; width:10px; height:10px; border-radius:50%; background:var(--bs-danger); }.ops-timeline>div:not(:last-child)::after { position:absolute; top:16px; bottom:0; left:6px; width:1px; background:var(--app-border); content:""; }.ops-timeline .is-success { background:var(--bs-success); }.ops-timeline .is-degraded { background:var(--bs-warning); }.ops-timeline time,.ops-timeline small { color:var(--app-text-muted); font-size:9px; }.ops-timeline strong { color:var(--app-text); font-size:10px; }

@media (max-width:991.98px){.ops-monitor-layout,.ops-incident-layout{grid-template-columns:1fr}.ops-endpoint-grid{grid-template-columns:1fr}}
@media (max-width:767.98px){.ops-monitor-metrics{grid-template-columns:1fr 1fr}.ops-monitor-row{grid-template-columns:12px minmax(0,1fr) auto}.ops-monitor-row>time,.ops-monitor-row>.ops-status{grid-column:2}.ops-domain-list>article,.ops-domain-list>a{grid-template-columns:minmax(0,1fr) auto}.ops-domain-list form{grid-column:1/-1}.ops-incident-list>a{grid-template-columns:12px minmax(0,1fr) auto}.ops-incident-list time{grid-column:2}.ops-endpoint-card dl{grid-template-columns:1fr 1fr}}
@media (max-width:575.98px){.ops-monitor-hero,.ops-incident-hero{align-items:stretch;flex-direction:column}.ops-monitor-score{width:100%}.ops-monitor-metrics{gap:10px}.ops-monitor-layout>.ops-card,.ops-monitor-section,.ops-incident-layout>.ops-card{padding:18px}.ops-endpoint-actions,.ops-endpoint-actions form,.ops-endpoint-actions .btn{width:100%}.ops-domain-list>article,.ops-domain-list>a{grid-template-columns:1fr}.ops-check-history>div{grid-template-columns:60px 90px 1fr}}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--app-background);
}

body.ops-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #DDE9E4;
    color: var(--app-text);
    font-family: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.ops-body a {
    color: inherit;
}

.ops-body button,
.ops-body input,
.ops-body select,
.ops-body textarea {
    font: inherit;
}

.ops-body :focus-visible {
    outline: 3px solid color-mix(in srgb, var(--app-primary) 38%, white);
    outline-offset: 3px;
}

.ops-skip-link {
    position: fixed;
    z-index: 1200;
    top: 12px;
    left: 12px;
    transform: translateY(-150%);
    padding: 12px 16px;
    border-radius: var(--app-radius-sm);
    background: var(--app-text);
    color: white !important;
    transition: transform 160ms ease;
}

.ops-skip-link:focus {
    transform: translateY(0);
}

.ops-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 18%, color-mix(in srgb, var(--app-accent) 20%, transparent) 0 13%, transparent 30%),
        radial-gradient(circle at 92% 78%, color-mix(in srgb, var(--app-primary) 14%, transparent) 0 12%, transparent 31%),
        linear-gradient(135deg, #EAF1ED, #DCE9E4);
}

.ops-app {
    position: relative;
    display: grid;
    grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
    width: calc(100% - 40px);
    max-width: 1880px;
    height: calc(100vh - 40px);
    height: calc(100dvh - 40px);
    min-height: calc(100vh - 40px);
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--app-radius-xl);
    background: var(--app-background);
    box-shadow: var(--app-shadow-md);
}

.ops-sidebar {
    position: relative;
    z-index: 30;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 18px 12px;
    background:
        radial-gradient(circle at 50% 0, color-mix(in srgb, var(--app-secondary) 24%, transparent), transparent 30%),
        var(--app-sidebar-background);
    color: var(--app-sidebar-text);
}

.ops-sidebar__brand {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
}

.ops-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: white !important;
    text-decoration: none;
}

.ops-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.18));
}

.ops-brand__copy {
    display: none;
    line-height: 1;
}

.ops-brand__copy strong,
.ops-brand__copy small {
    display: block;
}

.ops-brand__copy strong {
    letter-spacing: 0.08em;
}

.ops-brand__copy small {
    margin-top: 4px;
    color: var(--app-sidebar-text);
    font-size: 10px;
    letter-spacing: 0.22em;
}

.ops-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 34px;
}

.ops-nav__eyebrow {
    display: block;
    margin: 0 auto 10px;
    color: color-mix(in srgb, var(--app-sidebar-text) 62%, transparent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ops-nav__list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ops-nav__link {
    position: relative;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 8px 5px;
    border-radius: var(--app-radius-md);
    color: var(--app-sidebar-text) !important;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ops-nav__link > span {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.ops-nav__link i {
    font-size: 22px;
}

.ops-nav__link:hover,
.ops-nav__link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: white !important;
    transform: translateY(-1px);
}

.ops-nav__link.is-active {
    background: color-mix(in srgb, var(--app-primary) 30%, white);
    color: var(--app-sidebar-background) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
}

.ops-nav__link.is-active::before {
    position: absolute;
    left: -12px;
    width: 3px;
    height: 24px;
    border-radius: 0 4px 4px 0;
    background: var(--app-accent);
    content: "";
}

.ops-nav__empty {
    padding: 16px 8px;
    color: var(--app-sidebar-text);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.ops-sidebar__footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.ops-sidebar__close,
.ops-menu-toggle,
.ops-sidebar-overlay {
    display: none;
}

.ops-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
}

.ops-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: var(--app-header-height);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(20px, 3vw, 44px);
    border-bottom: 1px solid var(--app-border-soft);
    background: color-mix(in srgb, var(--app-surface) 88%, transparent);
    backdrop-filter: blur(18px);
}

.ops-header__context {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.ops-header__eyebrow,
.ops-header__title {
    display: block;
}

.ops-header__eyebrow {
    margin-bottom: 2px;
    color: var(--app-text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ops-header__title {
    overflow: hidden;
    color: var(--app-text);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-icon-button {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ops-icon-button:hover {
    background: var(--app-surface-secondary);
}

.ops-user-menu {
    position: relative;
}

.ops-user-menu summary {
    display: flex;
    min-height: 50px;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 5px;
    border-radius: var(--app-radius-md);
    cursor: pointer;
    list-style: none;
    transition: background-color 160ms ease;
}

.ops-user-menu summary::-webkit-details-marker {
    display: none;
}

.ops-user-menu summary:hover,
.ops-user-menu[open] summary {
    background: var(--app-surface-secondary);
}

.ops-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    object-fit: cover;
}

.ops-avatar--initials {
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--app-primary) 14%, white);
    color: var(--app-primary);
    font-size: 14px;
    font-weight: 800;
}

.ops-user-menu__copy {
    display: block;
    min-width: 0;
    line-height: 1.2;
}

.ops-user-menu__copy strong,
.ops-user-menu__copy small {
    display: block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-user-menu__copy strong {
    color: var(--app-text);
    font-size: 13px;
}

.ops-user-menu__copy small {
    margin-top: 3px;
    color: var(--app-text-muted);
    font-size: 11px;
}

.ops-user-menu__panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: 220px;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-elevated);
    box-shadow: var(--app-shadow-md);
}

.ops-user-menu:not([open]) .ops-user-menu__panel {
    display: none;
}

.ops-user-menu__panel a,
.ops-user-menu__panel button {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 11px;
    color: var(--app-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.ops-user-menu__panel form { margin: 0; }
.ops-user-menu__panel button { width: 100%; border: 0; background: transparent; text-align: left; }

.ops-user-menu__panel a:hover,
.ops-user-menu__panel button:hover {
    background: var(--app-surface-secondary);
    color: var(--app-primary);
}

.ops-workspace {
    min-width: 0;
    flex: 1;
    padding: clamp(24px, 3vw, 44px);
    background: var(--app-background);
}

.ops-workspace > * {
    width: 100%;
    max-width: var(--app-content-max-width);
    margin-right: auto;
    margin-left: auto;
}

.ops-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.ops-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--app-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ops-page-header h1 {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(27px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.ops-page-header p {
    max-width: 640px;
    margin: 8px 0 0;
    color: var(--app-text-secondary);
    font-size: 14px;
}

.ops-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ops-page-content {
    min-width: 0;
}

.ops-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--app-border-soft);
    color: var(--app-text-muted);
    font-size: 11px;
}

/* Shared BAMBU component layer */
.ops-card,
.ops-page-content > .card,
.ops-page-content .card:not(.modal-content) {
    border: 0;
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-sm);
}

.ops-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ops-section-header h2,
.ops-section-header h3 {
    margin: 0;
    color: var(--app-text);
    font-weight: 750;
    letter-spacing: -0.025em;
}

.ops-section-header h2 { font-size: 20px; }
.ops-section-header h3 { font-size: 16px; }

.ops-section-header p {
    margin: 5px 0 0;
    color: var(--app-text-muted);
    font-size: 12px;
}

.ops-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--app-surface-secondary);
    color: var(--app-text-secondary);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.ops-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.ops-status--success { background: #E7F5ED; color: var(--app-success); }
.ops-status--warning { background: #FFF4DE; color: var(--app-warning); }
.ops-status--danger { background: #FBE9E9; color: var(--app-danger); }
.ops-status--info { background: #E9F2FB; color: var(--app-info); }

.ops-empty-state {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 26px;
    text-align: center;
}

.ops-empty-state__icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 15px;
    background: var(--app-surface-secondary);
    color: var(--app-primary);
    font-size: 22px;
}

.ops-empty-state strong {
    color: var(--app-text);
    font-size: 14px;
}

.ops-empty-state p {
    max-width: 350px;
    margin: 7px 0 0;
    color: var(--app-text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.ops-body .btn-primary,
.ops-body .btn.bg-gradient-primary {
    border-color: var(--app-primary) !important;
    background: var(--app-primary) !important;
    color: white !important;
    box-shadow: none !important;
}

.ops-body .btn-primary:hover,
.ops-body .btn.bg-gradient-primary:hover {
    border-color: var(--app-primary-hover) !important;
    background: var(--app-primary-hover) !important;
}

.ops-body .btn-outline-primary {
    border-color: color-mix(in srgb, var(--app-primary) 35%, transparent) !important;
    color: var(--app-primary) !important;
}

.ops-body .btn-outline-primary:hover {
    background: var(--app-primary) !important;
    color: white !important;
}

.ops-body .btn {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 700;
}

.ops-body .form-control,
.ops-body .form-select {
    min-height: 46px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background-color: var(--app-surface);
    color: var(--app-text);
}

.ops-body .form-control:focus,
.ops-body .form-select:focus {
    border-color: color-mix(in srgb, var(--app-primary) 55%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--app-primary) 11%, transparent);
}

.ops-body .table {
    color: var(--app-text-secondary);
}

.ops-body .table > :not(caption) > * > * {
    border-bottom-color: var(--app-border-soft);
}

@media (max-width: 1439.98px) {
    .ops-app {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100svh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 991.98px) {
    .ops-app {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .ops-main { height: 100%; }

    .ops-sidebar {
        position: fixed;
        z-index: 1000;
        inset: 0 auto 0 0;
        width: min(86vw, 300px);
        height: 100vh;
        height: 100dvh;
        min-height: 100dvh;
        padding: 18px;
        transform: translateX(-105%);
        transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
    }

    .ops-sidebar__brand {
        justify-content: space-between;
    }

    .ops-brand__copy {
        display: block;
    }

    .ops-sidebar__close,
    .ops-menu-toggle {
        display: inline-flex;
    }

    .ops-sidebar__close {
        color: var(--app-sidebar-text);
    }

    .ops-nav__eyebrow {
        margin-right: 10px;
        margin-left: 10px;
    }

    .ops-nav__link {
        min-height: 52px;
        justify-content: flex-start;
        flex-direction: row;
        gap: 14px;
        padding: 10px 14px;
        font-size: 13px;
        text-align: left;
    }

    .ops-nav__link.is-active::before {
        left: -18px;
    }

    .ops-sidebar-overlay {
        position: fixed;
        z-index: 990;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(8, 29, 26, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .ops-body.is-sidebar-open {
        overflow: hidden;
    }

    .ops-body.is-sidebar-open .ops-sidebar {
        transform: translateX(0);
    }

    .ops-body.is-sidebar-open .ops-sidebar-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .ops-header {
        min-height: 72px;
        padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
    }

    .ops-workspace {
        padding: 28px 22px max(28px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 575.98px) {
    .ops-header {
        padding-right: max(14px, env(safe-area-inset-right));
        padding-left: max(14px, env(safe-area-inset-left));
    }

    .ops-header__eyebrow,
    .ops-user-menu__copy {
        display: none;
    }

    .ops-user-menu summary {
        padding-right: 5px;
    }

    .ops-workspace {
        padding: 22px max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    }

    .ops-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 22px;
    }

    .ops-page-header h1 {
        font-size: 28px;
    }

    .ops-page-header__actions,
    .ops-page-header__actions .btn {
        width: 100%;
    }

    .ops-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Phase 3.5 interaction system */
:root {
    --app-motion-fast: 140ms;
    --app-motion-normal: 220ms;
    --app-motion-slow: 360ms;
    --app-focus-ring: color-mix(in srgb, var(--app-primary) 22%, transparent);
}

.ops-body .form-control:focus-visible,
.ops-body .form-select:focus-visible,
.ops-body .select2-selection:focus-visible,
.ops-body .flatpickr-input:focus-visible { outline: 0; }

.ops-body .form-control:focus,
.ops-body .form-select:focus {
    border-color: color-mix(in srgb, var(--app-primary) 62%, white);
    box-shadow: 0 0 0 3px var(--app-focus-ring);
}

.ops-body .form-control:disabled,
.ops-body .form-select:disabled {
    border-color: var(--app-border-soft);
    background: var(--app-surface-secondary);
    color: var(--app-text-muted);
    opacity: 1;
}

.ops-body .form-control.is-invalid,
.ops-body .form-select.is-invalid {
    border-color: color-mix(in srgb, var(--app-danger) 72%, white) !important;
    background-image: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-danger) 10%, transparent);
}

.ops-body button.is-loading::before {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ops-spin .7s linear infinite;
    content: "";
}

.ops-body button.is-loading { display: inline-flex; align-items: center; justify-content: center; opacity: .82; }
@keyframes ops-spin { to { transform: rotate(360deg); } }

.ops-toast-region {
    position: fixed;
    z-index: 2000;
    top: calc(18px + env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
    display: grid;
    width: min(380px, calc(100vw - 36px));
    gap: 10px;
    pointer-events: none;
}

.ops-toast {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--app-border-soft);
    border-radius: 16px;
    background: color-mix(in srgb, var(--app-surface) 94%, transparent);
    box-shadow: var(--app-shadow-md);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(-10px) scale(.98);
    transition: opacity var(--app-motion-normal) ease, transform var(--app-motion-normal) ease;
    backdrop-filter: blur(16px);
}

.ops-toast.is-visible { opacity: 1; transform: none; }
.ops-toast.is-leaving { opacity: 0; transform: translateX(10px); }
.ops-toast__icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--app-surface-secondary); }
.ops-toast--success .ops-toast__icon { background: color-mix(in srgb, var(--app-success) 12%, white); color: var(--app-success); }
.ops-toast--warning .ops-toast__icon { background: color-mix(in srgb, var(--app-warning) 12%, white); color: var(--app-warning); }
.ops-toast--danger .ops-toast__icon { background: color-mix(in srgb, var(--app-danger) 12%, white); color: var(--app-danger); }
.ops-toast--info .ops-toast__icon { background: color-mix(in srgb, var(--app-info) 12%, white); color: var(--app-info); }
.ops-toast strong, .ops-toast small { display: block; }
.ops-toast strong { color: var(--app-text); font-size: 12px; }
.ops-toast small { margin-top: 2px; color: var(--app-text-secondary); font-size: 10px; line-height: 1.45; }
.ops-toast button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--app-text-muted); }

.ops-live-region { position: relative; min-height: 120px; transition: opacity var(--app-motion-fast) ease; }
.ops-live-region.is-loading { opacity: .56; pointer-events: none; }
.ops-live-region.is-loading::before {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--app-primary), transparent);
    background-size: 45% 100%;
    animation: ops-progress 1s ease-in-out infinite;
    content: "";
}
@keyframes ops-progress { from { background-position: -80% 0; } to { background-position: 180% 0; } }

.ops-body .select2-container { max-width: 100%; }
.ops-body .select2-container .select2-selection--single {
    display: flex;
    min-height: 46px;
    align-items: center;
    border: 1px solid var(--app-border) !important;
    border-radius: 12px !important;
    background: var(--app-surface) !important;
}
.ops-body .select2-container .select2-selection--single .select2-selection__rendered { padding: 0 42px 0 14px; color: var(--app-text); font-size: 11px; line-height: 44px; }
.ops-body .select2-container .select2-selection--single .select2-selection__placeholder { color: var(--app-text-muted); }
.ops-body .select2-container .select2-selection--single .select2-selection__arrow { top: 9px; right: 10px; }
.ops-body .select2-container--open .select2-selection,
.ops-body .select2-container--focus .select2-selection { border-color: color-mix(in srgb, var(--app-primary) 62%, white) !important; box-shadow: 0 0 0 3px var(--app-focus-ring); }
.select2-container--open { z-index: 1070; }
.ops-body .select2-dropdown { overflow: hidden; border: 1px solid var(--app-border); border-radius: 14px; background: var(--app-surface); box-shadow: var(--app-shadow-md); }
.ops-body .select2-search--dropdown { padding: 10px; }
.ops-body .select2-search--dropdown .select2-search__field { min-height: 40px; border: 1px solid var(--app-border); border-radius: 10px; color: var(--app-text); }
.ops-body .select2-results__option { min-height: 42px; padding: 11px 13px; color: var(--app-text-secondary); font-size: 11px; }
.ops-body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--app-primary); color: white; }
.ops-body .select2-container--default .select2-results__option--selected { background: var(--app-surface-secondary); color: var(--app-text); }

.flatpickr-calendar { overflow: hidden; border: 1px solid var(--app-border-soft); border-radius: 16px; background: var(--app-surface); box-shadow: var(--app-shadow-md); font-family: "Manrope", sans-serif; }
.flatpickr-day { border-radius: 10px; color: var(--app-text-secondary); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { border-color: var(--app-primary); background: var(--app-primary); }
.flatpickr-day.today { border-color: var(--app-accent); }

.ops-stepper { display: grid; gap: 18px; }
.ops-stepper__rail { display: grid; grid-template-columns: repeat(var(--ops-step-count, 2), minmax(0, 1fr)); gap: 8px; padding: 8px; border: 1px solid var(--app-border-soft); border-radius: 16px; background: color-mix(in srgb, var(--app-surface) 88%, transparent); }
.ops-stepper__step { display: flex; min-width: 0; min-height: 48px; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 11px; color: var(--app-text-muted); }
.ops-stepper__step > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid var(--app-border); border-radius: 9px; background: var(--app-surface); font-size: 10px; font-weight: 800; }
.ops-stepper__step strong, .ops-stepper__step small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-stepper__step strong { font-size: 10px; }.ops-stepper__step small { margin-top: 2px; font-size: 8px; }
.ops-stepper__step.is-active { background: color-mix(in srgb, var(--app-primary) 10%, var(--app-surface)); color: var(--app-primary); }
.ops-stepper__step.is-active > span { border-color: var(--app-primary); background: var(--app-primary); color: white; }
.ops-stepper__step.is-complete > span { border-color: color-mix(in srgb, var(--app-success) 35%, white); color: var(--app-success); }
.ops-stepper [data-step-panel][hidden] { display: none !important; }
.ops-step-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--app-border-soft); }
.ops-smart-preview { padding: 18px; border: 1px solid var(--app-border-soft); border-radius: 16px; background: var(--app-background-soft); }
.ops-wizard-form { width: min(1120px, 100%); max-width: none; }
.ops-initials-preview { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; border-radius: 17px; background: color-mix(in srgb, var(--app-primary) 11%, white); color: var(--app-primary); font-size: 18px; font-weight: 800; }
.ops-field-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }.ops-field-action .btn { white-space: nowrap; }
.ops-field__help button { padding: 0; border: 0; background: none; color: var(--app-primary); font: inherit; font-weight: 750; text-decoration: underline; }
.ops-field legend { margin: 0 0 9px 2px; color: var(--app-text-secondary); font-size: 11px; font-weight: 750; }
.ops-field legend > span { color: var(--app-danger); }
.ops-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ops-choice-grid label { margin: 0; cursor: pointer; }
.ops-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.ops-choice-grid label > span { display: flex; min-height: 66px; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--app-border); border-radius: 13px; background: var(--app-surface); color: var(--app-text-secondary); transition: border-color var(--app-motion-fast) ease, background var(--app-motion-fast) ease, transform var(--app-motion-fast) ease; }
.ops-choice-grid label > span i { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: var(--app-background-soft); color: var(--app-primary); font-size: 17px; }
.ops-choice-grid label > span strong { font-size: 10px; }
.ops-choice-grid input:checked + span { border-color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 7%, var(--app-surface)); color: var(--app-primary); box-shadow: 0 0 0 3px var(--app-focus-ring); }
.ops-choice-grid input:focus-visible + span { outline: 2px solid color-mix(in srgb, var(--app-primary) 45%, white); outline-offset: 2px; }
.ops-url-intelligence { display: grid; grid-template-columns: minmax(150px, .55fr) repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid color-mix(in srgb, var(--app-primary) 14%, var(--app-border)); border-radius: 16px; background: color-mix(in srgb, var(--app-primary) 4%, var(--app-background-soft)); }
.ops-url-intelligence > div:first-child { padding: 8px; }.ops-url-intelligence > div:first-child strong { display: block; margin-top: 5px; overflow-wrap: anywhere; color: var(--app-text); font-size: 12px; }
.ops-url-intelligence > .ops-field { grid-column: 1 / -1; max-width: 240px; }
.ops-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ops-review-grid article { min-width: 0; padding: 18px; border: 1px solid var(--app-border-soft); border-radius: 15px; background: var(--app-background-soft); }
.ops-review-grid span, .ops-review-grid strong, .ops-review-grid small { display: block; }
.ops-review-grid span { color: var(--app-text-muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ops-review-grid strong { margin-top: 9px; overflow-wrap: anywhere; color: var(--app-text); font-size: 13px; }
.ops-review-grid small { margin-top: 5px; color: var(--app-text-muted); font-size: 9px; }
.ops-incident-center { display: grid; gap: 16px; }
.ops-incident-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ops-incident-summary article { position: relative; overflow: hidden; padding: 18px 20px; border: 1px solid var(--app-border-soft); border-radius: 17px; background: var(--app-surface); box-shadow: var(--app-shadow-xs); }
.ops-incident-summary span, .ops-incident-summary strong { display: block; }.ops-incident-summary span { color: var(--app-text-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }.ops-incident-summary strong { margin-top: 7px; color: var(--app-text); font-size: 25px; }
.ops-incident-summary i { position: absolute; top: 18px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--app-text-muted); box-shadow: 0 0 0 5px color-mix(in srgb, var(--app-text-muted) 9%, transparent); }.ops-incident-summary i.is-danger { background: var(--app-danger); }.ops-incident-summary i.is-warning { background: var(--app-warning); }.ops-incident-summary i.is-success { background: var(--app-success); }
.ops-incident-filters { padding: 18px 20px; border-bottom: 1px solid var(--app-border-soft); }
.ops-segmented { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }.ops-segmented label { margin: 0; cursor: pointer; }.ops-segmented input { position: absolute; opacity: 0; }.ops-segmented span { display: flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--app-border-soft); border-radius: 11px; background: var(--app-surface); color: var(--app-text-muted); font-size: 10px; font-weight: 750; }.ops-segmented em { display: grid; min-width: 21px; height: 21px; place-items: center; border-radius: 8px; background: var(--app-background-soft); font-size: 8px; font-style: normal; }.ops-segmented input:checked + span { border-color: var(--app-primary); background: var(--app-primary); color: white; }.ops-segmented input:checked + span em { background: rgba(255,255,255,.16); color: white; }
.ops-incident-filter-grid { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(190px, .55fr) minmax(150px, .38fr) auto; align-items: end; gap: 10px; }.ops-incident-filter-grid > label:not(.ops-search-field) > span { display: block; margin: 0 0 7px 2px; color: var(--app-text-secondary); font-size: 9px; font-weight: 750; }
.ops-incident-list { padding: 10px; }.ops-incident-list > a { grid-template-columns: 12px minmax(0, 1fr) auto auto 18px; min-height: 82px; padding: 14px; transition: background var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease, transform var(--app-motion-fast) ease; }.ops-incident-list > a:hover { border-color: var(--app-border); background: var(--app-background-soft); transform: translateY(-1px); }
.ops-incident-list__copy small, .ops-incident-list__copy strong, .ops-incident-list__copy em { display: block; }.ops-incident-list__copy small { color: var(--app-danger); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.ops-incident-list__copy strong { margin-top: 5px; color: var(--app-text); font-size: 12px; }.ops-incident-list__copy em { margin-top: 4px; color: var(--app-text-muted); font-size: 9px; font-style: normal; }.ops-incident-list > a > i { color: var(--app-text-muted); }
.ops-incident-empty { min-height: 240px; }
.ops-incident-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--app-text-muted); font-size: 9px; font-weight: 750; }
.ops-incident-bento { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }.ops-incident-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; overflow: hidden; background: var(--app-border-soft); }.ops-incident-facts > div { min-width: 0; padding: 20px; background: var(--app-surface); }.ops-incident-facts span, .ops-incident-facts strong, .ops-incident-facts small, .ops-incident-facts a { display: block; }.ops-incident-facts span { color: var(--app-text-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }.ops-incident-facts strong, .ops-incident-facts a { margin-top: 7px; overflow-wrap: anywhere; color: var(--app-text); font-size: 11px; font-weight: 750; text-decoration: none; }.ops-incident-facts small { margin-top: 4px; overflow: hidden; color: var(--app-text-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ops-incident-timeline, .ops-incident-notes { padding: 24px; }.ops-incident-notes textarea { margin-top: 18px; }.ops-incident-notes .ops-form-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

@media (max-width: 991.98px) { .ops-incident-filter-grid { grid-template-columns: 1fr 1fr; }.ops-incident-filter-grid .ops-search-field { grid-column: 1 / -1; }.ops-incident-bento { grid-template-columns: 1fr; }.ops-incident-facts { grid-template-columns: 1fr 1fr; }.ops-incident-timeline, .ops-incident-notes { padding: 20px; } }
@media (max-width: 575.98px) { .ops-incident-summary { grid-template-columns: 1fr 1fr; }.ops-incident-summary article { padding: 15px; }.ops-incident-filter-grid { grid-template-columns: 1fr; }.ops-incident-filter-grid .ops-search-field { grid-column: auto; }.ops-segmented { display: grid; grid-template-columns: 1fr 1fr; }.ops-segmented span { justify-content: space-between; }.ops-incident-list > a { grid-template-columns: 12px minmax(0,1fr) auto; }.ops-incident-list > a time { grid-column: 2; }.ops-incident-list > a > i { grid-column: 3; grid-row: 1; }.ops-incident-facts { grid-template-columns: 1fr; } }

@media (max-width: 767.98px) {
    .ops-choice-grid { grid-template-columns: 1fr 1fr; }
    .ops-url-intelligence { grid-template-columns: 1fr; }
    .ops-url-intelligence > .ops-field { grid-column: auto; max-width: none; }
    .ops-review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .ops-field-action { grid-template-columns: 1fr; }.ops-field-action .btn { width: 100%; }
}

.ops-settings-nav a.is-active { background: color-mix(in srgb, var(--app-primary) 11%, var(--app-surface)); color: var(--app-primary); box-shadow: inset 3px 0 0 var(--app-primary); }

@media (max-width: 575.98px) {
    .ops-toast-region { top: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; width: auto; }
    .ops-stepper__rail { gap: 4px; }
    .ops-stepper__step { justify-content: center; padding: 7px; }
    .ops-stepper__step > div { display: none; }
    .ops-step-actions { position: sticky; z-index: 5; bottom: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--app-surface) 94%, transparent); backdrop-filter: blur(14px); }
    .ops-step-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ops-toast, .ops-live-region, .ops-contact-card { transition-duration: 1ms !important; }
    .ops-body button.is-loading::before, .ops-live-region.is-loading::before { animation-duration: 1.8s; }
}

.ops-client-overview { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .58fr); gap: 18px; align-items: stretch; }
.ops-client-hero { display: flex; min-width: 0; min-height: 200px; align-items: center; gap: 22px; padding: clamp(26px, 3vw, 38px); background: linear-gradient(135deg, var(--app-surface), color-mix(in srgb, var(--app-primary) 6%, var(--app-surface))); }
.ops-client-hero__copy { min-width: 0; }
.ops-client-hero__copy h2 { margin: 7px 0 5px; overflow-wrap: anywhere; color: var(--app-text); font-size: clamp(25px, 3vw, 38px); font-weight: 800; letter-spacing: -.045em; }
.ops-client-hero__copy > p { margin: 0; color: var(--app-text-secondary); font-size: 11px; }
.ops-primary-contact, .ops-client-facts { padding: 24px; }
.ops-primary-contact { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.ops-primary-contact__person { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.ops-primary-contact__person strong, .ops-primary-contact__person small { display: block; }
.ops-primary-contact__person strong { color: var(--app-text); font-size: 12px; }.ops-primary-contact__person small { color: var(--app-text-muted); font-size: 9px; }
.ops-primary-contact > a { display: flex; min-width: 0; align-items: center; gap: 9px; color: var(--app-text-secondary); font-size: 10px; text-decoration: none; overflow-wrap: anywhere; }
.ops-primary-contact > a i { flex: none; color: var(--app-primary); }
.ops-client-facts { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; }
.ops-client-facts .ops-card-eyebrow { grid-column: 1 / -1; }
.ops-client-facts .ops-data-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.ops-client-facts .ops-data-list > div { border: 0; padding: 0; }
.ops-client-facts form { min-width: 190px; }
.ops-contact-region > .ops-empty-state { min-height: 210px; }
.ops-contact-card { position: relative; overflow: hidden; background: linear-gradient(145deg, var(--app-surface), var(--app-background-soft)); box-shadow: var(--app-shadow-xs); transition: transform var(--app-motion-normal) ease, border-color var(--app-motion-normal) ease, box-shadow var(--app-motion-normal) ease; }
.ops-contact-card:hover { border-color: var(--app-border); box-shadow: var(--app-shadow-sm); transform: translateY(-2px); }
.ops-contact-card.is-new { border-color: color-mix(in srgb, var(--app-success) 45%, var(--app-border)); animation: ops-contact-in 520ms ease both; }
@keyframes ops-contact-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.ops-contact-avatar { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid color-mix(in srgb, var(--app-primary) 14%, var(--app-border)); border-radius: 14px; background: color-mix(in srgb, var(--app-primary) 10%, white); color: var(--app-primary); font-size: 13px; font-weight: 800; }
.ops-contact-card__identity strong, .ops-contact-card__identity span { display: block; }
.ops-contact-card__identity strong { color: var(--app-text); font-size: 13px; }.ops-contact-card__identity span { margin-top: 3px; color: var(--app-text-muted); font-size: 9px; }
.ops-contact-card__channels { display: grid; width: 100%; gap: 7px; margin-top: 15px; }
.ops-contact-card__channels a { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--app-text-secondary); font-size: 10px; text-decoration: none; }
.ops-contact-card__channels a i { flex: none; color: var(--app-primary); }.ops-contact-card__channels a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-action-menu { min-width: 170px; padding: 7px; border: 1px solid var(--app-border-soft); border-radius: 12px; box-shadow: var(--app-shadow-md); }
.ops-action-menu button { display: flex; width: 100%; min-height: 40px; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--app-text-secondary); font-size: 10px; text-align: left; }
.ops-action-menu button:hover { background: var(--app-surface-secondary); color: var(--app-primary); }

@media (max-width: 1099.98px) {
    .ops-client-overview { grid-template-columns: 1fr 1fr; }
    .ops-client-hero { grid-column: 1 / -1; }
    .ops-client-facts { grid-column: auto; display: block; }
    .ops-client-facts .ops-data-list { grid-template-columns: 1fr; gap: 0; margin: 18px 0; }
    .ops-client-facts .ops-data-list > div { padding: 11px 0; border-bottom: 1px solid var(--app-border-soft); }
}

@media (max-width: 575.98px) {
    .ops-client-overview { grid-template-columns: 1fr; }
    .ops-client-hero { grid-column: auto; align-items: flex-start; flex-direction: column; min-height: auto; padding: 24px; }
    .ops-client-hero .ops-detail-hero__mark { width: 64px; height: 64px; flex-basis: 64px; }
    .ops-primary-contact, .ops-client-facts { padding: 20px; }
    .ops-contact-card:hover { transform: none; }
}

/* Profile and appearance */
.ops-settings-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.ops-profile-summary {
    position: sticky;
    top: calc(var(--app-header-height) + 24px);
    padding: 26px 20px;
    text-align: center;
}

.ops-profile-summary__avatar {
    display: grid;
    width: 86px;
    height: 86px;
    margin: 0 auto 16px;
    place-items: center;
    overflow: hidden;
    border: 6px solid var(--app-surface-secondary);
    border-radius: 26px;
    background: color-mix(in srgb, var(--app-primary) 13%, white);
    color: var(--app-primary);
    font-size: 25px;
    font-weight: 800;
}

.ops-profile-summary__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ops-profile-summary h2 { margin: 0; color: var(--app-text); font-size: 17px; font-weight: 800; }
.ops-profile-summary > p { margin: 5px 0 14px; overflow-wrap: anywhere; color: var(--app-text-muted); font-size: 11px; }

.ops-settings-nav {
    display: grid;
    gap: 5px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--app-border-soft);
    text-align: left;
}

.ops-settings-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: 11px;
    color: var(--app-text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}
.ops-settings-nav a:hover { background: var(--app-surface-secondary); color: var(--app-primary); }
.ops-settings-nav i { font-size: 17px; }

.ops-settings-content { display: grid; gap: 20px; }
.ops-settings-card { scroll-margin-top: calc(var(--app-header-height) + 24px); }
.ops-settings-card > .ops-section-header { padding: 25px 28px; border-bottom: 1px solid var(--app-border-soft); }
.ops-settings-card__body { padding: 28px; }
.ops-settings-card__footer { display: flex; justify-content: flex-end; padding: 18px 28px; border-top: 1px solid var(--app-border-soft); }
.ops-settings-card__footer--split { justify-content: space-between; }
.ops-avatar-field { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 18px; margin-bottom: 28px; }
.ops-avatar-field > .form-label { align-self: start; }
.ops-avatar-field > .image-input { width: 125px; height: 125px; justify-self: start; }
.ops-avatar-field > .image-input .image-input-wrapper { width: 125px !important; height: 125px !important; background-position: center; background-size: cover; }
.ops-avatar-field > small { grid-column: 2; margin-top: -12px; color: var(--app-text-muted); font-size: 10px; }
.ops-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ops-form-grid--password { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ops-form-grid__wide { grid-column: 1 / -1; }
.ops-form-grid small { display: block; margin-top: 7px; color: var(--app-text-muted); font-size: 10px; }
.ops-settings-card .form-label { color: var(--app-text-secondary); font-size: 11px; font-weight: 750; }

.ops-appearance-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    align-items: start;
    gap: 30px;
}

.ops-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ops-color-field > span:first-child { display: block; margin-bottom: 7px; color: var(--app-text-secondary); font-size: 11px; font-weight: 750; }
.ops-color-field__controls { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 8px; }
.ops-color-field input[type="color"] { width: 46px; height: 46px; padding: 4px; overflow: hidden; border: 1px solid var(--app-border); border-radius: 12px; background: var(--app-surface); cursor: pointer; }
.ops-color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.ops-color-field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }

.ops-theme-preview { --preview-primary: var(--app-primary); --preview-secondary: var(--app-secondary); --preview-accent: var(--app-accent); --preview-background: var(--app-background); --preview-surface: var(--app-surface); --preview-sidebar: var(--app-sidebar-background); padding: 16px; border-radius: var(--app-radius-lg); background: var(--app-surface-secondary); }
.ops-theme-preview__label { display: block; margin-bottom: 10px; color: var(--app-text-muted); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.ops-theme-preview__window { display: grid; grid-template-columns: 56px minmax(0, 1fr); min-height: 240px; overflow: hidden; border: 5px solid var(--preview-surface); border-radius: 18px; background: var(--preview-background); box-shadow: var(--app-shadow-sm); }
.ops-theme-preview__sidebar { display: flex; align-items: center; flex-direction: column; gap: 16px; padding-top: 18px; background: var(--preview-sidebar); }
.ops-theme-preview__sidebar span { width: 24px; height: 24px; border-radius: 8px; background: var(--preview-accent); }
.ops-theme-preview__sidebar i { width: 20px; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--preview-surface) 42%, transparent); }
.ops-theme-preview__content { padding: 12px; }
.ops-theme-preview__topbar { display: flex; align-items: center; justify-content: space-between; }
.ops-theme-preview__topbar span { width: 54px; height: 7px; border-radius: 99px; background: var(--preview-secondary); }
.ops-theme-preview__topbar i { width: 20px; height: 20px; border-radius: 7px; background: var(--preview-surface); }
.ops-theme-preview__hero { display: flex; min-height: 100px; justify-content: center; flex-direction: column; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--preview-primary); color: white; }
.ops-theme-preview__hero span { width: 22px; height: 4px; margin-bottom: 10px; border-radius: 99px; background: var(--preview-accent); }
.ops-theme-preview__hero strong { font-size: 14px; }
.ops-theme-preview__hero small { margin-top: 4px; color: color-mix(in srgb, white 66%, transparent); font-size: 8px; }
.ops-theme-preview__cards { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-top: 8px; }
.ops-theme-preview__cards span { min-height: 58px; border-radius: 11px; background: var(--preview-surface); }
.ops-theme-preview > p { margin: 11px 2px 0; color: var(--app-text-muted); font-size: 9px; line-height: 1.5; }

@media (max-width: 1179.98px) {
    .ops-settings-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .ops-form-grid--password { grid-template-columns: 1fr; }
    .ops-appearance-layout { grid-template-columns: 1fr; }
}

@media (max-width: 819.98px) {
    .ops-settings-layout { grid-template-columns: 1fr; }
    .ops-profile-summary { position: static; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; text-align: left; }
    .ops-profile-summary__avatar { width: 68px; height: 68px; grid-row: span 2; margin: 0; border-radius: 22px; }
    .ops-profile-summary > p { margin: 2px 0 0; }
    .ops-profile-summary > .ops-status { grid-column: 3; grid-row: 1 / span 2; }
    .ops-settings-nav { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
    .ops-settings-nav a { justify-content: center; }
}

@media (max-width: 575.98px) {
    .ops-profile-summary { grid-template-columns: 58px minmax(0, 1fr); padding: 20px; }
    .ops-profile-summary__avatar { width: 54px; height: 54px; border-width: 4px; border-radius: 17px; }
    .ops-profile-summary > .ops-status { display: none; }
    .ops-settings-nav { grid-template-columns: 1fr; }
    .ops-settings-nav a { justify-content: flex-start; }
    .ops-settings-card > .ops-section-header,
    .ops-settings-card__body,
    .ops-settings-card__footer { padding: 20px; }
    .ops-avatar-field { grid-template-columns: 1fr; }
    .ops-avatar-field > small { grid-column: 1; margin-top: 0; }
    .ops-form-grid,
    .ops-color-grid { grid-template-columns: 1fr; }
    .ops-settings-card__footer--split { align-items: stretch; flex-direction: column-reverse; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Dashboard */
.ops-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.ops-dashboard-grid > .ops-card,
.ops-dashboard-grid > .ops-metrics-stack {
    min-width: 0;
}

.ops-card-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--app-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ops-health-card {
    position: relative;
    grid-column: span 8;
    min-height: 280px;
    overflow: hidden;
    padding: clamp(24px, 3vw, 40px);
    background:
        radial-gradient(circle at 86% 16%, color-mix(in srgb, var(--app-accent) 32%, transparent), transparent 25%),
        linear-gradient(135deg, var(--app-sidebar-background), color-mix(in srgb, var(--app-primary) 76%, #2E6C5E)) !important;
    color: white;
    box-shadow: 0 22px 46px color-mix(in srgb, var(--app-sidebar-background) 20%, transparent);
}

.ops-health-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 680px;
    align-items: flex-start;
    gap: 20px;
}

.ops-health-card__icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--app-accent);
    font-size: 27px;
}

.ops-health-card .ops-card-eyebrow {
    color: rgba(255, 255, 255, 0.62);
}

.ops-health-card h2 {
    margin: 0;
    color: white;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.ops-health-card p {
    max-width: 610px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.ops-health-card__meta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
}

.ops-health-card__signal {
    position: absolute;
    right: 30px;
    bottom: 24px;
    display: flex;
    height: 76px;
    align-items: flex-end;
    gap: 7px;
    opacity: 0.30;
}

.ops-health-card__signal span {
    width: 5px;
    border-radius: 99px;
    background: white;
}

.ops-health-card__signal span:nth-child(1) { height: 28%; }
.ops-health-card__signal span:nth-child(2) { height: 54%; }
.ops-health-card__signal span:nth-child(3) { height: 38%; }
.ops-health-card__signal span:nth-child(4) { height: 86%; background: var(--app-accent); }
.ops-health-card__signal span:nth-child(5) { height: 65%; }
.ops-health-card__signal span:nth-child(6) { height: 100%; }
.ops-health-card__signal span:nth-child(7) { height: 72%; }

.ops-attention-card {
    grid-column: span 4;
    min-height: 280px;
    padding: 26px;
}

.ops-attention-count {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: #FFF1DB;
    color: var(--app-warning);
    font-size: 13px;
    font-weight: 800;
}

.ops-attention-card .ops-empty-state {
    min-height: 190px;
    padding: 20px 5px 4px;
}

.ops-attention-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.ops-attention-list > div {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 9px;
    padding: 14px;
    border-radius: var(--app-radius-md);
    background: var(--app-surface-secondary);
}

.ops-attention-list p { margin: 0; color: var(--app-text-muted); font-size: 12px; }
.ops-dot { width: 8px; height: 8px; border-radius: 50%; }
.ops-dot--warning { background: var(--app-warning); }
.ops-dot--danger { background: var(--app-danger); }
.ops-dot--neutral { background: var(--app-text-muted); }

.ops-projects-card {
    grid-column: span 8;
    grid-row: span 2;
    padding: 26px;
}

.ops-text-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    color: var(--app-primary) !important;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.ops-text-link:hover { gap: 10px; }

.ops-project-list {
    display: grid;
    margin-top: 20px;
}

.ops-project-row {
    display: grid;
    min-height: 72px;
    grid-template-columns: 44px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 13px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--app-border-soft);
    text-decoration: none;
    transition: background-color 150ms ease, padding 150ms ease;
}

.ops-project-row:last-child { border-bottom: 0; }
.ops-project-row:hover { padding-right: 12px; padding-left: 12px; border-radius: 14px; background: var(--app-surface-secondary); }

.ops-project-row__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--app-primary) 10%, white);
    color: var(--app-primary);
    font-size: 13px;
    font-weight: 800;
}

.ops-project-row__name { min-width: 0; }
.ops-project-row__name strong,
.ops-project-row__name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-project-row__name strong { color: var(--app-text); font-size: 13px; }
.ops-project-row__name small { margin-top: 4px; color: var(--app-text-muted); font-size: 11px; }
.ops-project-row__arrow { color: var(--app-text-muted); }

.ops-metrics-stack {
    display: grid;
    grid-column: span 4;
    align-content: start;
    gap: 18px;
}

.ops-mini-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ops-metric-card {
    min-height: 150px;
    padding: 22px;
}

.ops-metric-card--primary {
    position: relative;
    min-height: 188px;
    overflow: hidden;
    background: linear-gradient(145deg, color-mix(in srgb, var(--app-primary) 11%, white), var(--app-surface)) !important;
}

.ops-metric-card__icon {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: var(--app-primary);
    color: white;
    font-size: 20px;
}

.ops-metric-card__label {
    display: block;
    max-width: 150px;
    color: var(--app-text-secondary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.ops-metric-card strong {
    display: block;
    margin-top: 13px;
    color: var(--app-text);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.ops-metric-card small {
    display: block;
    margin-top: 7px;
    color: var(--app-text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.ops-visits-card {
    grid-column: span 5;
    min-height: 330px;
    padding: 26px;
}

.ops-section-metric {
    color: var(--app-primary);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.ops-bar-chart {
    display: flex;
    height: 220px;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding-top: 24px;
}

.ops-bar-chart__item {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-rows: 20px 1fr 22px;
    gap: 7px;
    text-align: center;
}

.ops-bar-chart__value { overflow: hidden; color: var(--app-text-muted); font-size: 9px; text-overflow: ellipsis; }
.ops-bar-chart__track { position: relative; display: block; min-height: 100px; overflow: hidden; border-radius: 9px 9px 4px 4px; background: var(--app-surface-secondary); }
.ops-bar-chart__track > span { position: absolute; right: 0; bottom: 0; left: 0; min-height: 6px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, var(--app-accent), var(--app-primary)); }
.ops-bar-chart__label { overflow: hidden; color: var(--app-text-secondary); font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.ops-objectives-card {
    grid-column: span 7;
    min-height: 330px;
    padding: 26px;
}

.ops-objective-list { display: grid; margin-top: 18px; }
.ops-objective-row {
    display: grid;
    width: 100%;
    min-height: 58px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 6px;
    border: 0;
    border-bottom: 1px solid var(--app-border-soft);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.ops-objective-row:last-child { border-bottom: 0; }
.ops-objective-row:hover { border-radius: 12px; background: var(--app-surface-secondary); }
.ops-objective-row__check { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--app-border); border-radius: 11px; color: transparent; }
.ops-objective-row__check.is-complete { border-color: color-mix(in srgb, var(--app-success) 25%, white); background: #E7F5ED; color: var(--app-success); }
.ops-objective-row__copy { min-width: 0; }
.ops-objective-row__copy strong,
.ops-objective-row__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-objective-row__copy strong { color: var(--app-text); font-size: 12px; }
.ops-objective-row__copy small { margin-top: 3px; color: var(--app-text-muted); font-size: 10px; }
.ops-objective-row__date { color: var(--app-text-muted); font-size: 10px; font-weight: 650; }
.ops-objective-row__date.is-overdue { color: var(--app-danger); }

.ops-activity-card {
    grid-column: span 12;
    padding: 26px;
}

.ops-activity-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.ops-activity-item {
    display: grid;
    min-width: 0;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: var(--app-surface-secondary);
}

.ops-activity-item__icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--app-surface); color: var(--app-primary); }
.ops-activity-item__copy { min-width: 0; }
.ops-activity-item__copy strong,
.ops-activity-item__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-activity-item__copy strong { color: var(--app-text); font-size: 11px; }
.ops-activity-item__copy small { margin-top: 3px; color: var(--app-text-muted); font-size: 9px; }
.ops-activity-item time { grid-column: 2; color: var(--app-text-muted); font-size: 9px; }

.ops-modal {
    overflow: hidden;
    border: 0;
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-md);
}

.ops-modal .modal-header,
.ops-modal .modal-footer { padding: 20px 24px; border-color: var(--app-border-soft); }
.ops-modal .modal-body { padding: 24px; }
.ops-modal .modal-title { margin: 0; color: var(--app-text); font-size: 20px; font-weight: 800; }
.ops-optional { margin-left: 5px; color: var(--app-text-muted); font-size: 10px; font-weight: 500; }

@media (max-width: 1179.98px) {
    .ops-health-card { grid-column: span 7; }
    .ops-attention-card { grid-column: span 5; }
    .ops-projects-card { grid-column: span 7; }
    .ops-metrics-stack { grid-column: span 5; }
    .ops-visits-card { grid-column: span 5; }
    .ops-objectives-card { grid-column: span 7; }
    .ops-activity-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 819.98px) {
    .ops-health-card,
    .ops-attention-card,
    .ops-projects-card,
    .ops-metrics-stack,
    .ops-visits-card,
    .ops-objectives-card,
    .ops-activity-card { grid-column: span 12; }

    .ops-health-card { min-height: 260px; }
    .ops-attention-card { order: 2; min-height: 240px; }
    .ops-metrics-stack { order: 3; grid-template-columns: 1.2fr 1fr; }
    .ops-projects-card { order: 4; }
    .ops-visits-card { order: 5; }
    .ops-objectives-card { order: 6; }
    .ops-activity-card { order: 7; }
    .ops-mini-metrics { gap: 14px; }
    .ops-activity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .ops-dashboard-grid { gap: 14px; }
    .ops-health-card,
    .ops-attention-card,
    .ops-projects-card,
    .ops-visits-card,
    .ops-objectives-card,
    .ops-activity-card { padding: 20px; }

    .ops-health-card { min-height: 310px; }
    .ops-health-card__content { flex-direction: column; gap: 14px; }
    .ops-health-card h2 { font-size: 31px; }
    .ops-health-card__meta { align-items: flex-start; flex-direction: column; }
    .ops-health-card__signal { right: 18px; opacity: 0.16; }
    .ops-metrics-stack { display: grid; grid-template-columns: 1fr; }
    .ops-mini-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-project-row { grid-template-columns: 40px minmax(0, 1fr) 18px; }
    .ops-project-row .ops-status { display: none; }
    .ops-project-row__mark { width: 38px; height: 38px; }
    .ops-objective-row { grid-template-columns: 34px minmax(0, 1fr); }
    .ops-objective-row__date { grid-column: 2; }
    .ops-bar-chart { gap: 5px; }
    .ops-bar-chart__value { display: none; }
    .ops-bar-chart__item { grid-template-rows: 1fr 22px; }
    .ops-activity-list { grid-template-columns: 1fr; }
}

/* Authentication */
body.ops-auth-body {
    display: flex;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 8% 12%, rgba(224, 183, 101, 0.22), transparent 24rem),
        radial-gradient(circle at 92% 90%, rgba(22, 78, 70, 0.16), transparent 30rem),
        var(--app-background);
    color: var(--app-text);
    font-family: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ops-auth-body :focus-visible {
    outline: 3px solid color-mix(in srgb, var(--app-primary) 35%, white);
    outline-offset: 3px;
}

.ops-auth-shell {
    position: relative;
    display: grid;
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 48px));
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: var(--app-radius-xl);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-md);
}

.ops-auth-brand {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(38px, 5vw, 72px);
    background:
        radial-gradient(circle at 82% 20%, rgba(224, 183, 101, 0.22), transparent 18rem),
        linear-gradient(145deg, #174E47, var(--app-sidebar-background));
    color: white;
}

.ops-auth-brand::after {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -235px;
    bottom: -235px;
    border: 74px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    content: "";
}

.ops-auth-brand__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ops-auth-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.ops-auth-brand__top span,
.ops-auth-brand__top strong,
.ops-auth-brand__top small { display: block; }
.ops-auth-brand__top small { margin-top: 4px; color: rgba(255, 255, 255, 0.58); font-size: 9px; letter-spacing: 0.24em; }

.ops-auth-brand__copy {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.ops-auth-eyebrow {
    display: inline-block;
    color: var(--app-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ops-auth-brand h1 {
    max-width: 500px;
    margin: 20px 0 18px;
    color: white;
    font-size: clamp(38px, 4vw, 60px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.ops-auth-brand__copy p {
    max-width: 440px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.75;
}

.ops-auth-brand__status {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    font-weight: 650;
}

.ops-auth-brand__status span {
    width: 8px;
    height: 8px;
    border: 2px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    background: #77D7A4;
    box-shadow: 0 0 0 5px rgba(119, 215, 164, 0.11);
}

.ops-auth-brand__pattern {
    position: absolute;
    z-index: 1;
    top: 16%;
    right: -24px;
    display: grid;
    grid-template-columns: repeat(5, 8px);
    gap: 12px;
    opacity: 0.16;
}

.ops-auth-brand__pattern i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.ops-auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(34px, 6vw, 88px);
    background: var(--app-surface);
}

.ops-auth-form-wrap {
    width: min(420px, 100%);
}

.ops-auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 46px;
}

.ops-auth-mobile-brand img { object-fit: contain; }
.ops-auth-mobile-brand span,
.ops-auth-mobile-brand strong,
.ops-auth-mobile-brand small { display: block; }
.ops-auth-mobile-brand strong { color: var(--app-text); font-size: 17px; letter-spacing: 0.08em; }
.ops-auth-mobile-brand small { margin-top: 3px; color: var(--app-primary); font-size: 9px; font-weight: 800; letter-spacing: 0.2em; }

.ops-auth-form-wrap h2 {
    margin: 14px 0 12px;
    color: var(--app-text);
    font-size: clamp(31px, 4vw, 43px);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.ops-auth-intro {
    margin: 0 0 38px;
    color: var(--app-text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.ops-auth-alert {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 10px 12px 14px;
    border: 1px solid color-mix(in srgb, var(--app-info) 22%, white);
    border-radius: var(--app-radius-sm);
    background: color-mix(in srgb, var(--app-info) 7%, white);
    color: var(--app-text-secondary);
    font-size: 12px;
}

.ops-auth-alert > i { color: var(--app-info); font-size: 18px; }
.ops-auth-alert button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--app-text-muted); }

.ops-auth-field { margin-bottom: 22px; }
.ops-auth-field > label,
.ops-auth-field__label label { margin: 0; color: var(--app-text); font-size: 11px; font-weight: 750; }
.ops-auth-field__label { display: flex; align-items: center; justify-content: space-between; }
.ops-auth-field__label a { color: var(--app-primary); font-size: 10px; font-weight: 750; text-decoration: none; }
.ops-auth-field__label a:hover { text-decoration: underline; }

.ops-auth-input {
    display: grid;
    min-height: 54px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 9px;
    padding: 0 13px;
    border: 1px solid var(--app-border);
    border-radius: 13px;
    background: var(--app-background-soft);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ops-auth-input:focus-within {
    border-color: color-mix(in srgb, var(--app-primary) 52%, white);
    background: white;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--app-primary) 8%, transparent);
}

.ops-auth-input > i { color: var(--app-text-muted); font-size: 17px; }
.ops-auth-input input { width: 100%; height: 52px; border: 0; outline: 0; background: transparent; color: var(--app-text); font-size: 13px; }
.ops-auth-input input:focus-visible { outline: 0; }
.ops-auth-input input::placeholder { color: #99A8A4; }
.ops-auth-input button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--app-text-muted); }
.ops-auth-input button:hover { background: var(--app-surface-secondary); color: var(--app-primary); }

.ops-auth-submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    border: 0;
    border-radius: 13px;
    background: var(--app-primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--app-primary) 24%, transparent);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ops-auth-submit:hover { background: var(--app-primary-hover); transform: translateY(-1px); box-shadow: 0 15px 28px color-mix(in srgb, var(--app-primary) 28%, transparent); }
.ops-auth-submit:disabled { cursor: wait; opacity: 0.72; transform: none; }
.ops-auth-submit i { font-size: 17px; }

.ops-auth-help {
    margin: 30px 0 0;
    color: var(--app-text-muted);
    font-size: 10px;
    line-height: 1.65;
    text-align: center;
}

/* Compatibility for the password-recovery screens that share the auth shell. */
.ops-auth-body > .card {
    width: min(500px, 100%) !important;
    margin: 0 auto !important;
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-lg) !important;
    box-shadow: var(--app-shadow-md) !important;
}

@media (max-width: 899.98px) {
    .ops-auth-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, 1fr); }
    .ops-auth-brand { padding: 42px; }
    .ops-auth-brand h1 { font-size: 40px; }
    .ops-auth-form-panel { padding: 48px; }
}

@media (max-width: 767.98px) {
    body.ops-auth-body { align-items: stretch; padding: 0; background: var(--app-surface); }
    .ops-auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
    .ops-auth-brand { display: none; }
    .ops-auth-form-panel { min-height: 100vh; padding: 42px 28px; }
    .ops-auth-mobile-brand { display: flex; }
}

@media (max-width: 399.98px) {
    .ops-auth-form-panel { padding: 34px 20px; }
    .ops-auth-mobile-brand { margin-bottom: 38px; }
    .ops-auth-form-wrap h2 { font-size: 32px; }
}

/* Core directories, forms and detail screens */
.ops-directory-card { overflow: hidden; }

.ops-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(150px, 0.65fr)) auto auto;
    align-items: end;
    gap: 12px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--app-border-soft);
}

.ops-filter-bar > label:not(.ops-search-field) > span {
    display: block;
    margin: 0 0 7px 2px;
    color: var(--app-text-secondary);
    font-size: 10px;
    font-weight: 750;
}

.ops-search-field { position: relative; display: block; }
.ops-search-field > i { position: absolute; z-index: 2; top: 50%; left: 16px; color: var(--app-text-muted); font-size: 17px; transform: translateY(-50%); }
.ops-search-field .form-control { padding-left: 44px; }

.ops-table-shell { width: 100%; overflow: hidden; }
.ops-data-table { width: 100%; border-collapse: collapse; }
.ops-data-table th { padding: 14px 18px; border-bottom: 1px solid var(--app-border-soft); background: var(--app-background-soft); color: var(--app-text-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-align: left; text-transform: uppercase; }
.ops-data-table td { padding: 16px 18px; border-bottom: 1px solid var(--app-border-soft); color: var(--app-text-secondary); font-size: 11px; vertical-align: middle; }
.ops-data-table tbody tr:last-child td { border-bottom: 0; }
.ops-data-table tbody tr { transition: background-color 150ms ease; }
.ops-data-table tbody tr:hover { background: var(--app-background-soft); }

.ops-entity-cell { display: flex; min-width: 210px; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.ops-entity-cell > span:last-child { min-width: 0; }
.ops-entity-cell strong,
.ops-entity-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-entity-cell strong { color: var(--app-text); font-size: 12px; }
.ops-entity-cell small { max-width: 300px; margin-top: 4px; color: var(--app-text-muted); font-size: 9px; }
.ops-entity-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--app-primary) 11%, white); color: var(--app-primary); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.ops-table-actions { width: 58px; text-align: right; }
.ops-icon-link { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--app-text-muted); text-decoration: none; }
.ops-icon-link:hover { background: var(--app-surface-secondary); color: var(--app-primary); }

.ops-mobile-list { display: none; }
.ops-entity-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--app-border-soft); color: inherit; text-decoration: none; }
.ops-entity-card__copy { min-width: 0; }
.ops-entity-card__copy strong,
.ops-entity-card__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-entity-card__copy strong { color: var(--app-text); font-size: 13px; }
.ops-entity-card__copy small { margin-top: 3px; color: var(--app-text-muted); font-size: 10px; }

.ops-pagination { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; border-top: 1px solid var(--app-border-soft); }
.ops-pagination p { margin: 0; color: var(--app-text-muted); font-size: 10px; }
.ops-pagination__links { display: flex; align-items: center; gap: 5px; }
.ops-pagination__links button { display: grid; min-width: 38px; height: 38px; place-items: center; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--app-text-secondary); font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.ops-pagination__links button:hover { background: var(--app-surface-secondary); color: var(--app-primary); }
.ops-pagination__links button.is-current { background: var(--app-primary); color: white; cursor: default; opacity: 1; }
.ops-empty-state--directory { min-height: 360px; }
.ops-empty-state--directory .btn { margin-top: 20px; }

.ops-core-form { display: grid; max-width: 1050px; gap: 20px; }
.ops-form-card { overflow: hidden; }
.ops-form-card__header { padding: 25px 28px; border-bottom: 1px solid var(--app-border-soft); }
.ops-form-card__body { padding: 28px; }
.ops-form-card__footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--app-border-soft); }
.ops-field label { display: block; margin: 0 0 8px 2px; color: var(--app-text-secondary); font-size: 11px; font-weight: 750; }
.ops-field > label > span { color: var(--app-danger); }
.ops-field__help { display: block; margin: 7px 2px 0; color: var(--app-text-muted); font-size: 9px; line-height: 1.5; }
.ops-field > small[data-field-error] { display: block; min-height: 15px; margin: 5px 2px 0; color: var(--app-danger); font-size: 9px; }
.ops-field .is-invalid { border-color: color-mix(in srgb, var(--app-danger) 65%, white) !important; }
.ops-field textarea.form-control { min-height: 120px; resize: vertical; }
.ops-form-section-label { grid-column: 1 / -1; margin: 8px 0 -4px; color: var(--app-primary); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.ops-body button.is-loading { cursor: wait; opacity: 0.72; }

.ops-detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr); align-items: start; gap: 20px; }
.ops-detail-hero { display: flex; min-height: 260px; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 52px); background: linear-gradient(135deg, var(--app-surface), color-mix(in srgb, var(--app-primary) 7%, var(--app-surface))); }
.ops-detail-hero__mark { display: grid; width: 92px; height: 92px; flex: 0 0 92px; place-items: center; border: 7px solid rgba(255, 255, 255, 0.66); border-radius: 29px; background: var(--app-primary); color: white; font-size: 31px; font-weight: 800; box-shadow: var(--app-shadow-sm); }
.ops-detail-hero__copy { min-width: 0; }
.ops-detail-hero__copy h2 { margin: 8px 0 6px; overflow-wrap: anywhere; color: var(--app-text); font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -0.045em; }
.ops-detail-hero__copy > p { margin: 0; color: var(--app-text-secondary); font-size: 13px; }
.ops-detail-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ops-detail-side { padding: 26px; }
.ops-data-list { display: grid; gap: 0; margin: 20px 0 24px; }
.ops-data-list > div { display: grid; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--app-border-soft); }
.ops-data-list > div:last-child { border-bottom: 0; }
.ops-data-list dt { color: var(--app-text-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.ops-data-list dd { margin: 0; overflow-wrap: anywhere; color: var(--app-text); font-size: 11px; font-weight: 650; }
.ops-inline-note { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 0; padding: 13px; border-radius: 12px; background: var(--app-background-soft); color: var(--app-text-muted); font-size: 10px; line-height: 1.55; }
.ops-inline-note i { flex: none; color: var(--app-primary); font-size: 17px; }

/* Client relationships and project workspace */
.ops-filter-bar--compact { grid-template-columns: minmax(250px, 1fr) minmax(160px, 0.4fr) auto auto; }
.ops-filter-bar--projects { grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(145px, 0.55fr)) auto auto; }
.ops-cell-title,
.ops-cell-meta { display: block; }
.ops-cell-title { color: var(--app-text); font-size: 11px; }
.ops-cell-meta,
.ops-cell-muted { margin-top: 3px; color: var(--app-text-muted); font-size: 9px; }
.ops-cell-link { color: var(--app-text); font-size: 11px; font-weight: 700; text-decoration: none; }
.ops-cell-link:hover { color: var(--app-primary); }
.ops-count-pill { display: inline-grid; min-width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--app-background-soft); color: var(--app-text); font-size: 10px; font-weight: 800; }

.ops-related-section { margin-top: 20px; overflow: hidden; }
.ops-related-section__header { padding: 24px 26px; border-bottom: 1px solid var(--app-border-soft); }
.ops-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 22px 26px 26px; }
.ops-contact-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid var(--app-border-soft); border-radius: var(--app-radius-md); background: var(--app-background-soft); }
.ops-contact-card__top { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.ops-contact-card > strong { color: var(--app-text); font-size: 12px; }
.ops-contact-card > p { margin: 3px 0 11px; color: var(--app-text-muted); font-size: 9px; }
.ops-contact-card > a,
.ops-contact-card > span:not(.ops-status) { max-width: 100%; margin: 2px 0; overflow: hidden; color: var(--app-text-secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ops-contact-card > a { color: var(--app-primary); text-decoration: none; }
.ops-contact-card > .ops-status { margin-top: 11px; }
.ops-related-list { display: grid; padding: 8px 26px 18px; }
.ops-related-list > a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 22px; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--app-border-soft); color: inherit; text-decoration: none; }
.ops-related-list > a:last-child { border-bottom: 0; }
.ops-related-list strong,
.ops-related-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-related-list strong { color: var(--app-text); font-size: 12px; }
.ops-related-list small { margin-top: 4px; color: var(--app-text-muted); font-size: 9px; }
.ops-related-list > a > i { color: var(--app-text-muted); }

.ops-modal { overflow: hidden; border: 0; border-radius: var(--app-radius-lg); box-shadow: var(--app-shadow-lg); }
.ops-modal .modal-header { padding: 22px 24px; border-bottom-color: var(--app-border-soft); }
.ops-modal .modal-title { margin-top: 4px; color: var(--app-text); font-size: 18px; font-weight: 800; }
.ops-modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; }
.ops-modal-form .ops-field:first-child,
.ops-modal-form .ops-check-field { grid-column: 1 / -1; }
.ops-check-field { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border-radius: 12px; background: var(--app-background-soft); cursor: pointer; }
.ops-check-field input { margin-top: 3px; accent-color: var(--app-primary); }
.ops-check-field strong,
.ops-check-field small { display: block; }
.ops-check-field strong { color: var(--app-text); font-size: 10px; }
.ops-check-field small { margin-top: 3px; color: var(--app-text-muted); font-size: 9px; }

.ops-entity-mark--project { background: color-mix(in srgb, var(--app-info) 12%, white); color: var(--app-info); }
.ops-project-cards { display: none; }
.ops-project-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 20px; border: 1px solid var(--app-border-soft); border-radius: var(--app-radius-md); background: var(--app-surface); color: inherit; text-decoration: none; box-shadow: var(--app-shadow-xs); }
.ops-project-card__copy { min-width: 0; }
.ops-project-card__copy small,
.ops-project-card__copy strong,
.ops-project-card__copy span,
.ops-project-card__copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-project-card__copy small { color: var(--app-primary); font-size: 8px; font-style: normal; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.ops-project-card__copy strong { margin-top: 8px; color: var(--app-text); font-size: 14px; }
.ops-project-card__copy span { margin-top: 5px; color: var(--app-text-secondary); font-size: 10px; }
.ops-project-card__copy em { margin-top: 9px; color: var(--app-text-muted); font-size: 9px; font-style: normal; }
.ops-project-card__status { display: flex; align-items: center; gap: 8px; }
.ops-project-card__status > i { color: var(--app-text-muted); }

.ops-project-hero { display: grid; grid-template-columns: 86px minmax(0, 1fr) minmax(210px, 0.45fr); align-items: center; gap: 26px; padding: clamp(28px, 4vw, 48px); background: linear-gradient(135deg, var(--app-surface), color-mix(in srgb, var(--app-info) 7%, var(--app-surface))); }
.ops-project-hero__mark { display: grid; width: 86px; height: 86px; place-items: center; border: 7px solid rgba(255,255,255,.72); border-radius: 28px; background: var(--app-info); color: white; font-size: 29px; font-weight: 800; box-shadow: var(--app-shadow-sm); }
.ops-project-hero__copy { min-width: 0; }
.ops-project-hero__copy h2 { margin: 7px 0 7px; overflow-wrap: anywhere; color: var(--app-text); font-size: clamp(27px, 3.4vw, 43px); font-weight: 800; letter-spacing: -.045em; }
.ops-project-hero__copy > p { display: -webkit-box; max-width: 680px; margin: 0; overflow: hidden; color: var(--app-text-secondary); font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ops-project-client { display: grid; min-width: 0; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--app-border-soft); border-radius: var(--app-radius-md); background: rgba(255,255,255,.68); color: inherit; text-decoration: none; }
.ops-project-client small,
.ops-project-client strong,
.ops-project-client em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-project-client small { color: var(--app-text-muted); font-size: 8px; font-style: normal; text-transform: uppercase; }
.ops-project-client strong { margin-top: 3px; color: var(--app-text); font-size: 11px; }
.ops-project-client em { margin-top: 2px; color: var(--app-text-muted); font-size: 8px; font-style: normal; }
.ops-project-client > i { color: var(--app-text-muted); }
.ops-context-nav { display: flex; align-items: center; gap: 6px; margin: 16px 0 20px; padding: 7px; overflow-x: auto; border: 1px solid var(--app-border-soft); border-radius: var(--app-radius-md); background: var(--app-surface); box-shadow: var(--app-shadow-xs); scrollbar-width: none; }
.ops-context-nav::-webkit-scrollbar { display: none; }
.ops-context-nav a,
.ops-context-nav span { display: flex; min-height: 38px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 14px; border-radius: 10px; color: var(--app-text-muted); font-size: 10px; font-weight: 750; text-decoration: none; }
.ops-context-nav a.is-active { background: var(--app-primary); color: white; }
.ops-context-nav em { padding: 3px 6px; border-radius: 10px; background: var(--app-background-soft); color: var(--app-text-muted); font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ops-project-overview { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); align-items: start; gap: 20px; }
.ops-project-info,
.ops-project-administration { padding: 26px; }
.ops-project-info .ops-data-list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.ops-preline { white-space: pre-line; }
.ops-status-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.ops-status-selector .btn { padding-inline: 8px; font-size: 9px; }
.ops-operations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.ops-operation-card { display: flex; align-items: flex-start; gap: 15px; padding: 22px; }
.ops-operation-card > span { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-radius: 13px; background: var(--app-background-soft); color: var(--app-text-muted); font-size: 20px; }
.ops-operation-card small { color: var(--app-text-muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.ops-operation-card h3 { margin: 4px 0 5px; color: var(--app-text); font-size: 13px; }
.ops-operation-card p { margin: 0; color: var(--app-text-muted); font-size: 9px; line-height: 1.55; }
.ops-dashboard-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ops-dashboard-actions > a { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--app-border-soft); border-radius: var(--app-radius-md); background: var(--app-background-soft); color: inherit; text-decoration: none; }
.ops-dashboard-actions > a > i:first-child { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--app-surface); color: var(--app-primary); font-size: 18px; }
.ops-dashboard-actions strong,
.ops-dashboard-actions small { display: block; }
.ops-dashboard-actions strong { color: var(--app-text); font-size: 10px; }
.ops-dashboard-actions small { margin-top: 3px; color: var(--app-text-muted); font-size: 8px; }
.ops-dashboard-actions > a > i:last-child { color: var(--app-text-muted); }

@media (max-width: 1099.98px) {
    .ops-filter-bar { grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 0.6fr)); }
    .ops-filter-bar .btn { width: 100%; }
    .ops-detail-grid { grid-template-columns: 1fr; }
    .ops-filter-bar--compact { grid-template-columns: minmax(220px, 1fr) minmax(140px, .5fr) auto auto; }
    .ops-filter-bar--projects { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
    .ops-filter-bar--projects .ops-search-field { grid-column: 1 / -1; }
    .ops-project-table { display: none; }
    .ops-project-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
    .ops-project-hero { grid-template-columns: 78px minmax(0, 1fr); }
    .ops-project-hero__mark { width: 78px; height: 78px; }
    .ops-project-client { grid-column: 1 / -1; width: min(420px, 100%); }
    .ops-project-overview { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .ops-filter-bar { grid-template-columns: 1fr 1fr; padding: 18px; }
    .ops-search-field { grid-column: 1 / -1; }
    .ops-desktop-list { display: none; }
    .ops-mobile-list { display: block; }
    .ops-pagination { padding: 14px 18px; }
    .ops-filter-bar--compact,
    .ops-filter-bar--projects { grid-template-columns: 1fr 1fr; }
    .ops-filter-bar--projects .ops-search-field { grid-column: 1 / -1; }
    .ops-contact-grid { grid-template-columns: 1fr 1fr; padding: 18px; }
    .ops-related-section__header { padding: 20px; }
    .ops-related-list { padding-inline: 20px; }
    .ops-project-cards { padding: 18px; }
    .ops-operations-grid { grid-template-columns: 1fr; }
    .ops-dashboard-actions { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .ops-filter-bar { grid-template-columns: 1fr; }
    .ops-search-field { grid-column: auto; }
    .ops-entity-card { grid-template-columns: 42px minmax(0, 1fr); }
    .ops-entity-card > .ops-status { grid-column: 2; justify-self: start; }
    .ops-pagination { align-items: flex-start; flex-direction: column; }
    .ops-form-card__header,
    .ops-form-card__body,
    .ops-form-card__footer { padding: 20px; }
    .ops-form-card__footer { align-items: stretch; flex-direction: column-reverse; }
    .ops-detail-hero { align-items: flex-start; flex-direction: column; }
    .ops-detail-hero__mark { width: 70px; height: 70px; flex-basis: 70px; border-radius: 23px; font-size: 24px; }
    .ops-detail-side { padding: 20px; }
    .ops-filter-bar--compact,
    .ops-filter-bar--projects { grid-template-columns: 1fr; }
    .ops-filter-bar--projects .ops-search-field { grid-column: auto; }
    .ops-contact-grid { grid-template-columns: 1fr; }
    .ops-related-section__header { align-items: stretch; flex-direction: column; }
    .ops-related-section__header .btn { width: 100%; }
    .ops-related-list > a { grid-template-columns: 42px minmax(0, 1fr) 20px; }
    .ops-related-list > a > .ops-status { grid-column: 2; justify-self: start; }
    .ops-related-list > a > i { grid-column: 3; grid-row: 1; }
    .ops-modal-form { grid-template-columns: 1fr; padding: 20px; }
    .ops-modal-form .ops-field:first-child,
    .ops-modal-form .ops-check-field { grid-column: auto; }
    .ops-project-cards { grid-template-columns: 1fr; }
    .ops-project-card { grid-template-columns: 44px minmax(0, 1fr); }
    .ops-project-card__status { grid-column: 2; justify-content: space-between; }
    .ops-project-hero { grid-template-columns: 1fr; padding: 25px; }
    .ops-project-hero__mark { width: 68px; height: 68px; border-radius: 22px; font-size: 24px; }
    .ops-project-client { grid-column: auto; }
    .ops-project-info,
    .ops-project-administration { padding: 20px; }
    .ops-project-info .ops-data-list { grid-template-columns: 1fr; }
    .ops-status-selector { grid-template-columns: 1fr; }
}

/* Phase 3.5 — final component overrides live after the legacy module styles. */
.ops-contact-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--app-surface), var(--app-background-soft));
    box-shadow: var(--app-shadow-xs);
    transition: transform var(--app-motion-normal) ease, border-color var(--app-motion-normal) ease, box-shadow var(--app-motion-normal) ease;
}
.ops-contact-card:hover { border-color: var(--app-border); box-shadow: var(--app-shadow-sm); transform: translateY(-2px); }
.ops-contact-card.is-new { border-color: color-mix(in srgb, var(--app-success) 45%, var(--app-border)); animation: ops-contact-in 520ms ease both; }

.ops-compact-empty { display: flex; min-height: 104px; align-items: center; justify-content: center; gap: 15px; padding: 20px; border: 1px dashed var(--app-border); border-radius: var(--app-radius-md); background: var(--app-background-soft); text-align: left; }
.ops-compact-empty > span, .ops-empty-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; background: var(--app-surface); color: var(--app-primary); font-size: 19px; }
.ops-compact-empty strong, .ops-compact-empty p { display: block; margin: 0; }.ops-compact-empty strong { color: var(--app-text); font-size: 11px; }.ops-compact-empty p { margin-top: 4px; color: var(--app-text-muted); font-size: 9px; }
.ops-compact-empty .btn { margin-left: auto; }.ops-compact-empty--stack { flex-direction: column; text-align: center; }.ops-compact-empty--stack .btn { margin-left: 0; }

.ops-monitor-metric { width: 100%; padding: 18px; border: 1px solid var(--app-border-soft); color: inherit; text-align: left; cursor: pointer; }
.ops-monitor-metric:hover { border-color: var(--app-border); transform: translateY(-1px); }.ops-monitor-metric--success { box-shadow: inset 0 3px var(--app-success); }.ops-monitor-metric--warning { box-shadow: inset 0 3px var(--app-warning); }.ops-monitor-metric--danger { box-shadow: inset 0 3px var(--app-danger); }.ops-monitor-metric--neutral { box-shadow: inset 0 3px var(--app-text-muted); }
.ops-section-header--filters { align-items: flex-end; gap: 20px; }.ops-section-header--filters .ops-list-controls { display: grid; grid-template-columns: minmax(230px, 1fr) 180px; width: min(520px, 100%); gap: 10px; }.ops-section-header--filters .ops-search-field { min-width: 0; }
.ops-monitor-row { grid-template-columns: 12px minmax(0, 1fr) auto auto auto 14px; padding: 12px 14px; transition: border-color var(--app-motion-fast) ease, background var(--app-motion-fast) ease, transform var(--app-motion-fast) ease; }
.ops-monitor-row:hover { transform: translateX(2px); }.ops-monitor-row > i { color: var(--app-text-muted); }.ops-monitor-latency { color: var(--app-text-secondary); font-size: 9px; font-weight: 700; }
.ops-monitor-attention > a > i { margin-left: auto; color: var(--app-text-muted); }

.ops-endpoint-card { padding: 20px; background: linear-gradient(145deg, var(--app-surface), var(--app-background-soft)); box-shadow: var(--app-shadow-xs); }
.ops-endpoint-card header { grid-template-columns: 12px minmax(0, 1fr) auto; }.ops-endpoint-card header .ops-status { align-self: start; }.ops-endpoint-card h3 { margin-top: 3px; font-size: 14px; }.ops-endpoint-card dl div { border: 1px solid var(--app-border-soft); }.ops-endpoint-card details { margin-top: 15px; border-top: 1px solid var(--app-border-soft); padding-top: 12px; }.ops-endpoint-card details > p { color: var(--app-text-muted); font-size: 9px; }
.ops-domain-item { display: grid; grid-template-columns: minmax(210px, 1.2fr) minmax(190px, .8fr) auto auto; align-items: center; gap: 14px; min-height: 76px; padding: 13px 14px; border: 1px solid var(--app-border-soft); border-radius: var(--app-radius-md); background: linear-gradient(145deg, var(--app-surface), var(--app-background-soft)); }
.ops-domain-item__identity { display: flex; min-width: 0; align-items: center; gap: 11px; }.ops-domain-item__identity strong, .ops-domain-item__identity small, .ops-domain-item__status strong, .ops-domain-item__status small { display: block; }.ops-domain-item__identity strong, .ops-domain-item__status strong { overflow: hidden; color: var(--app-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.ops-domain-item__identity small, .ops-domain-item__status small { margin-top: 3px; color: var(--app-text-muted); font-size: 8px; }.ops-domain-item .ops-endpoint-actions { justify-content: flex-end; }.ops-domain-item .ops-endpoint-actions .btn { min-height: 38px; }.ops-domain-item .ops-inline-editor { grid-column: 1 / -1; width: 100%; }
.ops-modal-stack { display: grid; gap: 17px; }.ops-modal-stack .ops-check-field { margin: 0; }

@media (max-width: 1099.98px) {
    .ops-section-header--filters { align-items: stretch; flex-direction: column; }.ops-section-header--filters .ops-list-controls { width: 100%; }
    .ops-domain-item { grid-template-columns: minmax(0, 1fr) minmax(190px, .7fr) auto; }.ops-domain-item .ops-endpoint-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 767.98px) {
    .ops-monitor-row { grid-template-columns: 12px minmax(0, 1fr) auto; }.ops-monitor-row .ops-monitor-latency, .ops-monitor-row > time { grid-column: 2; }.ops-monitor-row > .ops-status { grid-column: 3; grid-row: 1; }.ops-monitor-row > i { grid-column: 3; }
    .ops-section-header--filters .ops-list-controls { grid-template-columns: 1fr; }.ops-section-header--filters .ops-search-field { grid-column: auto; }
    .ops-domain-item { grid-template-columns: minmax(0, 1fr) auto; }.ops-domain-item__status { grid-column: 1; }.ops-domain-item > .ops-status { grid-column: 2; grid-row: 1; }
}
@media (max-width: 575.98px) {
    .ops-form-grid, .ops-choice-grid { grid-template-columns: 1fr; }
    .ops-form-grid__wide { grid-column: auto; }
    .ops-field, .ops-field .select2-container { min-width: 0; max-width: 100%; }
    .ops-compact-empty { align-items: flex-start; flex-direction: column; }.ops-compact-empty .btn { width: 100%; margin-left: 0; }
    .ops-domain-item { grid-template-columns: 1fr; }.ops-domain-item > .ops-status, .ops-domain-item__status, .ops-domain-item .ops-endpoint-actions { grid-column: 1; grid-row: auto; }.ops-domain-item .ops-endpoint-actions, .ops-domain-item .ops-endpoint-actions form, .ops-domain-item .ops-endpoint-actions .btn { width: 100%; }
    .ops-contact-card:hover, .ops-monitor-row:hover { transform: none; }
}

.ops-check-history__detail { display:grid; min-width:0; gap:2px; }
.ops-check-history__detail strong { color:var(--app-text); font-size:9px; }
.ops-check-history__detail small { display:block; overflow:hidden; color:var(--app-text-muted); font-size:8px; line-height:1.45; text-overflow:ellipsis; white-space:nowrap; }
.ops-timeline .is-error { background:var(--bs-secondary); }

/* Phase 4 — notification center and integrations */
.ops-notification-center { display:grid; gap:18px; }
.ops-notification-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.ops-notification-metric { width:100%; min-height:92px; padding:18px; border:1px solid var(--app-border-soft); color:inherit; text-align:left; cursor:pointer; transition:transform var(--app-motion-fast) ease,border-color var(--app-motion-fast) ease; }
.ops-notification-metric:hover { border-color:var(--app-border); transform:translateY(-1px); }
.ops-notification-metric span { display:block; color:var(--app-text-muted); font-size:10px; font-weight:750; text-transform:uppercase; }
.ops-notification-metric strong { display:block; margin-top:8px; color:var(--app-text); font-size:25px; }
.ops-notification-metric--success { box-shadow:inset 0 3px var(--app-success); }
.ops-notification-metric--warning { box-shadow:inset 0 3px var(--app-warning); }
.ops-notification-metric--danger { box-shadow:inset 0 3px var(--app-danger); }
.ops-notification-metric--neutral { box-shadow:inset 0 3px var(--app-text-muted); }
.ops-notification-filters { display:grid; grid-template-columns:repeat(5,minmax(130px,1fr)) auto; align-items:end; gap:12px; padding:20px 24px; border-bottom:1px solid var(--app-border-soft); }
.ops-notification-filters>label>span { display:block; margin-bottom:6px; color:var(--app-text-muted); font-size:9px; font-weight:750; text-transform:uppercase; }
.ops-notification-list { display:grid; gap:8px; padding:18px 24px; }
.ops-notification-item { display:grid; grid-template-columns:80px minmax(0,1fr) auto 16px; align-items:center; gap:16px; min-height:78px; padding:12px 14px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); color:inherit; text-decoration:none; transition:border-color var(--app-motion-fast) ease,background var(--app-motion-fast) ease,transform var(--app-motion-fast) ease; }
.ops-notification-item:hover { border-color:var(--app-border); background:var(--app-background-soft); transform:translateX(2px); }
.ops-notification-channel { display:grid; min-width:66px; min-height:50px; place-content:center; gap:3px; border-radius:13px; background:var(--app-surface-secondary); color:var(--app-primary); text-align:center; }
.ops-notification-channel i { font-size:19px; }.ops-notification-channel small { font-size:8px; font-weight:800; }
.ops-notification-channel--whatsapp { background:color-mix(in srgb,var(--app-success) 10%,var(--app-surface)); color:var(--app-success); }
.ops-notification-channel--email { background:color-mix(in srgb,var(--app-info) 10%,var(--app-surface)); color:var(--app-info); }
.ops-notification-item__copy strong,.ops-notification-item__copy small,.ops-notification-item__copy em { display:block; min-width:0; }
.ops-notification-item__copy small { color:var(--app-text-muted); font-size:8px; font-weight:750; text-transform:uppercase; }
.ops-notification-item__copy strong { margin-top:4px; overflow:hidden; color:var(--app-text); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.ops-notification-item__copy em { margin-top:3px; color:var(--app-text-secondary); font-size:9px; font-style:normal; }
.ops-notification-item__state { display:grid; justify-items:end; gap:6px; }.ops-notification-item__state time { color:var(--app-text-muted); font-size:8px; }
.ops-notification-item>i { color:var(--app-text-muted); }

.ops-notification-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:18px; }
.ops-notification-detail-hero { grid-column:1/-1; display:grid; grid-template-columns:90px minmax(0,1fr) auto; align-items:center; gap:20px; padding:26px; }
.ops-notification-detail-hero h2 { margin:4px 0; color:var(--app-text); font-size:22px; }.ops-notification-detail-hero p { margin:0; color:var(--app-text-muted); font-size:10px; }
.ops-notification-detail-card { padding:24px; }.ops-notification-detail-card>.ops-section-header { margin-bottom:8px; }
.ops-notification-detail-card .ops-data-list dd small { display:block; margin-top:3px; color:var(--app-text-muted); }
.ops-break-word { overflow-wrap:anywhere; word-break:break-word; }
.ops-notification-diagnostic { display:flex; align-items:flex-start; gap:12px; margin:18px 0; padding:15px; border-radius:var(--app-radius-md); background:color-mix(in srgb,var(--app-success) 8%,var(--app-background-soft)); }
.ops-notification-diagnostic.is-error { background:color-mix(in srgb,var(--app-danger) 8%,var(--app-background-soft)); }.ops-notification-diagnostic>i { color:var(--app-success); font-size:20px; }.ops-notification-diagnostic.is-error>i { color:var(--app-danger); }
.ops-notification-diagnostic strong,.ops-notification-diagnostic p,.ops-notification-diagnostic small { display:block; margin:0; }.ops-notification-diagnostic strong { color:var(--app-text); font-size:10px; }.ops-notification-diagnostic p,.ops-notification-diagnostic small { margin-top:4px; color:var(--app-text-muted); font-size:9px; line-height:1.55; }

.ops-notification-profile .ops-settings-profile__mark,.ops-notification-profile>.ops-notification-profile__mark { display:grid; width:82px; height:82px; margin:0 auto 16px; place-items:center; border-radius:25px; background:color-mix(in srgb,var(--app-primary) 12%,var(--app-surface)); color:var(--app-primary); font-size:30px; }
.ops-notification-profile>p { margin-bottom:14px; }.ops-notification-profile>.ops-status { justify-content:center; }
.ops-notification-preferences { display:grid; gap:18px; }.ops-check-field--panel { border:1px solid var(--app-border); background:var(--app-surface-secondary); }
.ops-preference-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ops-preference-fieldset { min-width:0; margin:0; padding:16px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); }.ops-preference-fieldset legend { width:auto; margin:0 0 10px; padding:0 5px; color:var(--app-text-secondary); font-size:10px; font-weight:800; }
.ops-daily-summary-config { display:grid; grid-template-columns:minmax(0,1fr) 180px; align-items:end; gap:14px; }
.ops-recipient-list { display:grid; gap:10px; margin-bottom:16px; }.ops-recipient-item { overflow:hidden; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); background:var(--app-background-soft); }
.ops-recipient-item>summary { display:grid; grid-template-columns:42px minmax(0,1fr) auto 18px; align-items:center; gap:12px; min-height:66px; padding:10px 14px; cursor:pointer; list-style:none; }.ops-recipient-item>summary::-webkit-details-marker { display:none; }
.ops-recipient-item>summary strong,.ops-recipient-item>summary small { display:block; }.ops-recipient-item>summary strong { color:var(--app-text); font-size:11px; }.ops-recipient-item>summary small { margin-top:3px; color:var(--app-text-muted); font-size:9px; }.ops-recipient-item>summary>i { color:var(--app-text-muted); transition:transform var(--app-motion-fast) ease; }.ops-recipient-item[open]>summary>i { transform:rotate(180deg); }
.ops-recipient-editor { display:grid; gap:12px; padding:18px; border-top:1px solid var(--app-border-soft); background:var(--app-surface); }.ops-recipient-form { display:grid; gap:16px; }
.ops-recipient-options { display:flex; flex-wrap:wrap; gap:8px; }.ops-recipient-options label { display:flex; min-height:36px; align-items:center; gap:6px; padding:7px 10px; border:1px solid var(--app-border-soft); border-radius:10px; color:var(--app-text-secondary); font-size:9px; font-weight:700; }.ops-recipient-options input { accent-color:var(--app-primary); }
.ops-recipient-item--new { border-style:dashed; }.ops-recipient-item--new .ops-entity-mark { color:var(--app-primary); }
.ops-integration-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:24px; }.ops-integration-facts .ops-data-list { margin:0; }
.ops-integration-help { padding:20px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); background:var(--app-background-soft); }.ops-integration-help>i { color:var(--app-primary); font-size:25px; }.ops-integration-help h3 { margin:10px 0 6px; color:var(--app-text); font-size:13px; }.ops-integration-help p,.ops-integration-help small { color:var(--app-text-muted); font-size:9px; line-height:1.6; }.ops-integration-help code { color:var(--app-text-secondary); }
.ops-template-status { padding:0 28px 24px; }.ops-template-status h3 { margin:0; color:var(--app-text); font-size:12px; }.ops-template-status>p { margin:4px 0 12px; color:var(--app-text-muted); font-size:9px; }.ops-template-status>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.ops-template-status>div>span { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 11px; border:1px solid var(--app-border-soft); border-radius:11px; color:var(--app-text-secondary); font-size:8px; font-weight:750; }
.ops-inline-note--danger { background:color-mix(in srgb,var(--app-danger) 8%,var(--app-background-soft)); }.ops-inline-note--danger i { color:var(--app-danger); }
.ops-test-message-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }

@media (max-width:1199.98px) {
    .ops-notification-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }.ops-notification-filters>.btn { width:100%; }
}
@media (max-width:991.98px) {
    .ops-notification-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ops-notification-detail-grid { grid-template-columns:1fr; }.ops-notification-detail-hero { grid-column:auto; }
    .ops-integration-layout { grid-template-columns:1fr; }
}
@media (max-width:819.98px) {
    .ops-notification-profile>.ops-settings-profile__mark { width:68px; height:68px; margin:0; grid-row:1 / span 2; border-radius:22px; font-size:25px; }
}
@media (max-width:767.98px) {
    .ops-notification-filters { grid-template-columns:repeat(2,minmax(0,1fr)); padding:18px; }
    .ops-notification-list { padding:14px 18px; }.ops-notification-item { grid-template-columns:68px minmax(0,1fr) 14px; }.ops-notification-item__state { grid-column:2; justify-items:start; }.ops-notification-item>i { grid-column:3; grid-row:1; }
    .ops-notification-detail-hero { grid-template-columns:76px minmax(0,1fr); }.ops-notification-detail-hero>.ops-status { grid-column:2; justify-self:start; }
    .ops-preference-grid,.ops-template-status>div { grid-template-columns:1fr; }.ops-daily-summary-config { grid-template-columns:1fr; }.ops-settings-card__footer--split { gap:12px; }
}
@media (max-width:575.98px) {
    .ops-notification-profile>.ops-settings-profile__mark { width:54px; height:54px; border-radius:17px; font-size:21px; }
    .ops-notification-summary { gap:10px; }.ops-notification-metric { min-height:80px; padding:14px; }
    .ops-notification-filters { grid-template-columns:1fr; }.ops-notification-list { padding:12px; }.ops-notification-item { grid-template-columns:1fr; align-items:start; }.ops-notification-channel { width:100%; grid-auto-flow:column; min-height:42px; align-items:center; }.ops-notification-item__state,.ops-notification-item>i { grid-column:auto; grid-row:auto; }.ops-notification-item>i { display:none; }
    .ops-notification-detail-hero { grid-template-columns:1fr; }.ops-notification-detail-hero>.ops-status { grid-column:auto; }
    .ops-recipient-item>summary { grid-template-columns:40px minmax(0,1fr) 16px; }.ops-recipient-item>summary>.ops-status { grid-column:2; justify-self:start; }.ops-recipient-item>summary>i { grid-column:3; grid-row:1; }
    .ops-recipient-editor { padding:14px; }.ops-recipient-options label { width:100%; }.ops-test-message-form { grid-template-columns:1fr; }
}

/* Phase 5 — global system integrations and project analytics */
.ops-system-page { display:grid; gap:18px; }
.ops-system-page>.ops-context-nav { margin:0; }
.ops-system-flash { display:flex; align-items:flex-start; gap:12px; padding:15px 18px; border:1px solid var(--app-border); border-radius:var(--app-radius-md); background:var(--app-surface); color:var(--app-text); box-shadow:var(--app-shadow-sm); }
.ops-system-flash>i { flex:none; margin-top:2px; font-size:20px; }.ops-system-flash>div { display:grid; gap:3px; min-width:0; }.ops-system-flash strong { font-size:12px; }.ops-system-flash span { color:var(--app-text-secondary); font-size:11px; line-height:1.5; }
.ops-system-flash--success { border-color:color-mix(in srgb,var(--app-success) 35%,var(--app-border)); }.ops-system-flash--success>i { color:var(--app-success); }
.ops-system-flash--danger { border-color:color-mix(in srgb,var(--app-danger) 35%,var(--app-border)); }.ops-system-flash--danger>i { color:var(--app-danger); }
.ops-system-section { scroll-margin-top:calc(var(--app-header-height) + 24px); overflow:hidden; }
.ops-system-section>.ops-section-header { padding:24px 28px; border-bottom:1px solid var(--app-border-soft); }
.ops-system-health-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; padding:24px 28px; }
.ops-system-health { display:grid; align-content:start; gap:8px; min-height:124px; padding:16px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); background:var(--app-background-soft); }
.ops-system-health>strong { color:var(--app-text); font-size:11px; }.ops-system-health>.ops-status { justify-self:start; }.ops-system-health>small { color:var(--app-text-muted); font-size:9px; line-height:1.55; }
.ops-system-form,.ops-analytics-form { display:grid; gap:18px; padding:24px 28px; }
.ops-system-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.ops-system-form .ops-field>small,.ops-analytics-form .ops-field>small { display:block; margin:7px 2px 0; color:var(--app-text-muted); font-size:9px; line-height:1.55; }
.ops-system-form .ops-field em,.ops-analytics-form .ops-field em { color:var(--app-text-muted); font-size:9px; font-style:normal; font-weight:500; }
.ops-system-form .ops-form-actions,.ops-analytics-form .ops-form-actions { display:flex; justify-content:flex-end; }
.ops-system-check { display:flex; align-items:flex-start; gap:9px; color:var(--app-text-secondary); font-size:10px; font-weight:700; line-height:1.5; }
.ops-system-check input { flex:0 0 auto; margin-top:2px; accent-color:var(--app-primary); }
.ops-system-test { display:flex; align-items:center; gap:12px; padding:16px 28px; border-top:1px solid var(--app-border-soft); background:var(--app-background-soft); }
.ops-system-test>small,.ops-system-muted { color:var(--app-text-muted); font-size:9px; }
.ops-system-section>.ops-inline-note { margin:18px 28px 0; }
.ops-ga-summary { padding:18px 28px 0; }
.ops-ga-summary .ops-data-list { grid-template-columns:minmax(0,2fr) minmax(150px,1fr); gap:12px; margin:0; }
.ops-ga-summary .ops-data-list>div { min-width:0; padding:14px 16px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); background:var(--app-background-soft); }
.ops-ga-summary .ops-data-list dt { font-size:10px; }.ops-ga-summary .ops-data-list dd { margin-top:3px; font-size:12px; line-height:1.5; }
.ops-ga-summary>.ops-inline-note { align-items:center; margin:12px 0 0; font-size:11px; }.ops-ga-summary>.ops-inline-note i { color:var(--app-success); }
.ops-ga-summary>.ops-inline-note.is-error i { color:var(--app-danger); }
.ops-analytics-card { scroll-margin-top:calc(var(--app-header-height) + 24px); }
.ops-ga-project-result { display:flex; align-items:flex-start; gap:12px; margin:18px 28px 0; padding:15px 17px; border:1px solid var(--app-border); border-radius:var(--app-radius-md); background:var(--app-background-soft); }
.ops-ga-project-result>i { flex:none; font-size:20px; }.ops-ga-project-result>div { display:grid; gap:3px; min-width:0; }.ops-ga-project-result strong { color:var(--app-text); font-size:12px; }.ops-ga-project-result span { color:var(--app-text-secondary); font-size:11px; line-height:1.5; }.ops-ga-project-result small { color:var(--app-text-muted); font-size:10px; }
.ops-ga-project-result.is-success { border-color:color-mix(in srgb,var(--app-success) 32%,var(--app-border)); }.ops-ga-project-result.is-success>i { color:var(--app-success); }
.ops-ga-project-result.is-error { border-color:color-mix(in srgb,var(--app-danger) 32%,var(--app-border)); }.ops-ga-project-result.is-error>i { color:var(--app-danger); }
.ops-analytics-card .ops-analytics-form { border-bottom:1px solid var(--app-border-soft); }
.ops-analytics-card>.ops-inline-note { margin:18px 28px 0; }
.ops-system-advanced>summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 28px; cursor:pointer; list-style:none; }
.ops-system-advanced>summary::-webkit-details-marker { display:none; }.ops-system-advanced>summary span,.ops-system-advanced>summary strong,.ops-system-advanced>summary small { display:block; }.ops-system-advanced>summary strong { margin-top:4px; color:var(--app-text); font-size:15px; }.ops-system-advanced>summary small { margin-top:4px; color:var(--app-text-muted); font-size:9px; }.ops-system-advanced>summary>i { color:var(--app-text-muted); transition:transform var(--app-motion-fast) ease; }.ops-system-advanced[open]>summary>i { transform:rotate(180deg); }
.ops-system-advanced[open]>summary { border-bottom:1px solid var(--app-border-soft); }
.ops-system-assets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }.ops-system-assets img { display:block; width:auto; max-width:100%; height:64px; margin-top:10px; object-fit:contain; object-position:left center; border:1px solid var(--app-border-soft); border-radius:10px; background:var(--app-background-soft); }

@media (max-width:1199.98px) {
    .ops-system-health-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:767.98px) {
    .ops-system-health-grid,.ops-system-form-grid,.ops-system-assets { grid-template-columns:1fr; }
    .ops-ga-summary .ops-data-list { grid-template-columns:1fr; }
    .ops-system-test { align-items:stretch; flex-direction:column; }.ops-system-test .btn { width:100%; }
}
@media (max-width:575.98px) {
    .ops-system-section>.ops-section-header,.ops-system-health-grid,.ops-system-form,.ops-analytics-form,.ops-system-test { padding:18px; }
    .ops-ga-summary { padding:18px 18px 0; }
    .ops-system-section>.ops-inline-note,.ops-analytics-card>.ops-inline-note,.ops-ga-project-result { margin-right:18px; margin-left:18px; }
    .ops-system-form .ops-form-actions,.ops-system-form .ops-form-actions .btn,.ops-analytics-form .ops-form-actions,.ops-analytics-form .ops-form-actions .btn { width:100%; }
}

/* Client-scoped executive reports and premium project rhythm */
.ops-project-detail,
.ops-client-detail { display:grid; min-width:0; gap:clamp(20px,2.2vw,30px); }
.ops-project-detail>.ops-context-nav,
.ops-project-detail>.ops-operations-grid,
.ops-client-detail>.ops-context-nav,
.ops-client-detail>.ops-related-section { margin:0; }
.ops-project-detail>.ops-operations-grid { gap:clamp(18px,2vw,26px); }
.ops-project-detail .ops-operation-card { min-height:132px; padding:clamp(22px,2.3vw,30px); border:1px solid var(--app-border-soft); box-shadow:var(--app-shadow-sm); }
.ops-operation-card--featured { position:relative; overflow:hidden; border-color:color-mix(in srgb,var(--app-primary) 20%,var(--app-border-soft)) !important; background:linear-gradient(145deg,var(--app-surface),color-mix(in srgb,var(--app-primary) 8%,var(--app-surface))); }
.ops-operation-card--featured>i { align-self:center; margin-left:auto; color:var(--app-primary); }
.ops-project-report-callout { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:18px; padding:clamp(22px,2.6vw,32px); border:1px solid color-mix(in srgb,var(--app-primary) 18%,var(--app-border-soft)); background:linear-gradient(120deg,var(--app-surface),color-mix(in srgb,var(--app-primary) 7%,var(--app-surface))); }
.ops-project-report-callout h2 { margin:5px 0; color:var(--app-text); font-size:16px; }
.ops-project-report-callout p { margin:0; color:var(--app-text-muted); font-size:10px; line-height:1.6; }

.ops-client-context-nav { width:max-content; max-width:100%; margin-inline:auto !important; }
.ops-client-detail #client-reports,
.ops-client-detail #client-projects,
.ops-client-detail #client-contacts { scroll-margin-top:calc(var(--app-header-height) + 22px); }
.ops-client-report-center { overflow:hidden; border:1px solid color-mix(in srgb,var(--app-primary) 16%,var(--app-border-soft)); box-shadow:var(--app-shadow-md); }
.ops-client-report-center>.ops-section-header { background:linear-gradient(135deg,var(--app-surface),color-mix(in srgb,var(--app-primary) 6%,var(--app-surface))); }
.ops-report-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin:0 28px; overflow:hidden; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); background:var(--app-border-soft); }
.ops-report-flow article { display:flex; min-width:0; align-items:center; gap:11px; padding:15px; background:var(--app-background-soft); }
.ops-report-flow article>span { display:grid; width:30px; height:30px; flex:0 0 30px; place-items:center; border-radius:10px; background:var(--app-primary); color:white; font-size:10px; font-weight:800; }
.ops-report-flow strong,.ops-report-flow small { display:block; }
.ops-report-flow strong { color:var(--app-text); font-size:10px; }
.ops-report-flow small { margin-top:3px; color:var(--app-text-muted); font-size:8px; line-height:1.45; }
.ops-client-report-grid { display:grid; grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr); gap:26px; }
.ops-report-group { display:grid; gap:10px; }
.ops-review-recipients { padding:20px; background:var(--app-background-soft); }
.ops-admin-review-lock { display:flex; gap:12px; margin-bottom:12px; padding:15px; border:1px solid color-mix(in srgb,var(--app-success) 24%,var(--app-border-soft)); border-radius:12px; background:color-mix(in srgb,var(--app-success) 7%,var(--app-surface)); }
.ops-admin-review-lock>i { display:grid; width:36px; height:36px; flex:0 0 36px; place-items:center; border-radius:11px; background:color-mix(in srgb,var(--app-success) 13%,var(--app-surface)); color:var(--app-success); font-size:18px; }
.ops-admin-review-lock strong,.ops-admin-review-lock small { display:block; }
.ops-admin-review-lock strong { color:var(--app-text); font-size:10px; }
.ops-admin-review-lock small { margin-top:4px; color:var(--app-text-secondary); font-size:8px; line-height:1.55; }
.ops-client-report-actions { align-items:center; justify-content:space-between; }
.ops-client-generate-bar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 28px; border-top:1px solid var(--app-border-soft); background:var(--app-background-soft); }
.ops-client-generate-bar strong,.ops-client-generate-bar small { display:block; }
.ops-client-generate-bar strong { color:var(--app-text); font-size:11px; }
.ops-client-generate-bar small { margin-top:3px; color:var(--app-text-muted); font-size:8px; }
.ops-client-report-history-card { overflow:hidden; }
.ops-endpoint-card header .ops-endpoint-schedule { display:flex; align-items:center; gap:5px; margin-top:7px; color:var(--app-text-secondary); font-size:8px; white-space:normal; }
.ops-client-report-history-card>.ops-section-header { padding:25px 28px; border-bottom:1px solid var(--app-border-soft); }
.ops-report-empty { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:16px; padding:24px 28px; }
.ops-report-empty strong { color:var(--app-text); font-size:11px; }
.ops-report-empty p { margin:4px 0 0; color:var(--app-text-muted); font-size:9px; }
.ops-project-report-callout p,
.ops-client-report-center .ops-report-flow small,
.ops-client-report-center .ops-admin-review-lock small,
.ops-client-report-center .ops-client-generate-bar small { font-size:11px; }
.ops-client-report-center .ops-report-flow strong,
.ops-client-report-center .ops-admin-review-lock strong,
.ops-client-report-center .ops-client-generate-bar strong { font-size:12px; }
.ops-client-report-history-card .ops-report-history strong { font-size:12px; }
.ops-client-report-history-card .ops-report-history small,
.ops-client-report-history-card .ops-report-history p,
.ops-client-report-history-card .ops-report-empty p,
.ops-endpoint-card header .ops-endpoint-schedule { font-size:11px; }

@media (max-width:991.98px) {
    .ops-client-report-grid { grid-template-columns:1fr; }
    .ops-report-flow { margin-inline:20px; }
    .ops-project-report-callout { grid-template-columns:48px minmax(0,1fr); }
    .ops-project-report-callout>.btn { grid-column:1/-1; width:100%; }
}
@media (max-width:767.98px) {
    .ops-report-flow { grid-template-columns:1fr; }
    .ops-client-report-actions,.ops-client-generate-bar { align-items:stretch; flex-direction:column; }
    .ops-client-report-actions .btn,.ops-client-generate-bar form,.ops-client-generate-bar .btn { width:100%; }
    .ops-report-empty { grid-template-columns:48px minmax(0,1fr); }
    .ops-report-empty form { grid-column:1/-1; }
    .ops-report-empty .btn { width:100%; }
}
@media (max-width:575.98px) {
    .ops-project-detail,.ops-client-detail { gap:18px; }
    .ops-report-flow { margin-inline:14px; }
    .ops-client-report-center>.ops-section-header,
    .ops-client-report-grid,
    .ops-client-generate-bar,
    .ops-client-report-history-card>.ops-section-header,
    .ops-report-empty { padding:18px; }
    .ops-project-report-callout { grid-template-columns:1fr; }
}

/* Phase 5 — central automation, reports and project mail health */
.ops-automation-center { display:grid; gap:18px; }
.ops-automation-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.ops-automation-metric { min-height:108px; padding:18px; border-top:3px solid var(--app-primary); }
.ops-automation-metric>span,.ops-automation-metric>strong,.ops-automation-metric>small { display:block; }
.ops-automation-metric>span { color:var(--app-text-muted); font-size:9px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.ops-automation-metric>strong { margin-top:8px; color:var(--app-text); font-size:18px; }
.ops-automation-metric>small { margin-top:7px; color:var(--app-text-muted); font-size:8px; line-height:1.5; }
.ops-automation-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.ops-automation-job { display:grid; align-content:start; gap:16px; padding:20px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); background:var(--app-background-soft); }
.ops-automation-job>div:first-child { display:flex; align-items:flex-start; gap:12px; }
.ops-automation-job h3,.ops-automation-job p { margin:0; }.ops-automation-job h3 { color:var(--app-text); font-size:13px; }.ops-automation-job p { margin-top:4px; color:var(--app-text-muted); font-size:9px; line-height:1.55; }
.ops-automation-job .ops-data-list { margin-top:0; }
.ops-automation-actions { display:flex; flex-wrap:wrap; gap:10px; }.ops-automation-actions form { display:flex; }
.ops-automation-history { display:grid; gap:10px; padding:0 24px 24px; }
.ops-automation-run,.ops-automation-report { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 16px; padding:16px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); background:var(--app-background-soft); }
.ops-automation-run strong,.ops-automation-run small,.ops-automation-report strong,.ops-automation-report small { display:block; }.ops-automation-run strong,.ops-automation-report strong { color:var(--app-text); font-size:11px; }.ops-automation-run small,.ops-automation-report small { margin-top:3px; color:var(--app-text-muted); font-size:8px; }
.ops-automation-run dl { grid-column:1/-1; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin:0; }.ops-automation-run dl>div { padding:9px; border:1px solid var(--app-border-soft); border-radius:10px; background:var(--app-surface); }.ops-automation-run dt { color:var(--app-text-muted); font-size:7px; text-transform:uppercase; }.ops-automation-run dd { margin:4px 0 0; color:var(--app-text); font-size:10px; font-weight:800; }
.ops-automation-run>.ops-inline-note { grid-column:1/-1; margin:0; white-space:pre-line; }
.ops-automation-report>p { grid-column:1/-1; margin:0; color:var(--app-text-muted); font-size:9px; }

.ops-project-report-grid { display:grid; grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr); gap:20px; }.ops-report-options { display:grid; align-content:start; gap:14px; }
.ops-project-contact-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0 14px; }
.ops-project-contact-options>label { display:flex; min-width:0; align-items:flex-start; gap:8px; padding:10px; border:1px solid var(--app-border-soft); border-radius:10px; background:var(--app-background-soft); color:var(--app-text-secondary); font-size:9px; }.ops-project-contact-options>label input { margin-top:2px; accent-color:var(--app-primary); }.ops-project-contact-options>label span,.ops-project-contact-options>label small { display:block; min-width:0; }.ops-project-contact-options>label small { overflow:hidden; margin-top:3px; color:var(--app-text-muted); text-overflow:ellipsis; white-space:nowrap; }
.ops-mail-account-list { display:grid; gap:10px; padding:0 24px 24px; }.ops-mail-account { overflow:hidden; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); background:var(--app-background-soft); }.ops-mail-account>summary { display:grid; grid-template-columns:42px minmax(0,1fr) auto 18px; align-items:center; gap:12px; min-height:68px; padding:11px 14px; cursor:pointer; list-style:none; }.ops-mail-account>summary::-webkit-details-marker { display:none; }.ops-mail-account>summary strong,.ops-mail-account>summary small { display:block; }.ops-mail-account>summary strong { color:var(--app-text); font-size:11px; }.ops-mail-account>summary small { margin-top:3px; color:var(--app-text-muted); font-size:8px; }.ops-mail-account>summary>i { color:var(--app-text-muted); transition:transform var(--app-motion-fast) ease; }.ops-mail-account[open]>summary>i { transform:rotate(180deg); }
.ops-mail-account-form { padding:18px; border-top:1px solid var(--app-border-soft); background:var(--app-surface); }.ops-mail-account-form .ops-form-actions { margin-top:16px; }.ops-mail-account--new { border-style:dashed; }.ops-mail-test-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 18px; border-top:1px solid var(--app-border-soft); background:var(--app-surface); }.ops-mail-test-row>small { color:var(--app-text-muted); font-size:8px; }
.ops-report-history { display:grid; gap:10px; padding:0 24px 24px; }.ops-report-history>article { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 14px; padding:14px; border:1px solid var(--app-border-soft); border-radius:var(--app-radius-md); background:var(--app-background-soft); }.ops-report-history strong,.ops-report-history small { display:block; }.ops-report-history strong { color:var(--app-text); font-size:10px; }.ops-report-history small,.ops-report-history p { margin:3px 0 0; color:var(--app-text-muted); font-size:8px; }.ops-report-history>article>p,.ops-report-history>article>small { grid-column:1/-1; }
.ops-report-files { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:7px; }

@media (max-width:1199.98px) {
    .ops-automation-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ops-automation-run dl { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:991.98px) {
    .ops-automation-settings-grid,.ops-project-report-grid { grid-template-columns:1fr; }
}
@media (max-width:767.98px) {
    .ops-project-contact-options { grid-template-columns:1fr; }
    .ops-mail-test-row { align-items:stretch; flex-direction:column; }.ops-mail-test-row form,.ops-mail-test-row .btn { width:100%; }
}
@media (max-width:575.98px) {
    .ops-automation-summary { grid-template-columns:1fr; }
    .ops-automation-actions,.ops-automation-actions form,.ops-automation-actions .btn { width:100%; }
    .ops-automation-run,.ops-automation-report,.ops-report-history>article { grid-template-columns:1fr; }.ops-automation-run>.ops-status,.ops-automation-report>.ops-status,.ops-report-history>article>.ops-status { justify-self:start; }.ops-automation-run dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ops-automation-history,.ops-mail-account-list,.ops-report-history { padding-right:14px; padding-left:14px; }
    .ops-mail-account>summary { grid-template-columns:40px minmax(0,1fr) 16px; }.ops-mail-account>summary>.ops-status { grid-column:2; justify-self:start; }.ops-mail-account>summary>i { grid-column:3; grid-row:1; }
}

/* Automation and executive report presentation refinement */
.ops-check-field {
    position:relative;
    min-height:58px;
    align-items:flex-start;
    gap:12px;
    padding:14px 15px;
    border:1px solid transparent;
    background:var(--app-background-soft);
    transition:border-color var(--app-motion-fast) ease,background-color var(--app-motion-fast) ease,box-shadow var(--app-motion-fast) ease,transform var(--app-motion-fast) ease;
}
.ops-check-field:hover { border-color:color-mix(in srgb,var(--app-primary) 24%,var(--app-border)); background:color-mix(in srgb,var(--app-primary) 3%,var(--app-surface)); }
.ops-check-field:has(input:focus-visible) { border-color:color-mix(in srgb,var(--app-primary) 54%,var(--app-border)); box-shadow:var(--control-focus); }
.ops-check-field:has(input:checked) { border-color:color-mix(in srgb,var(--app-primary) 28%,var(--app-border)); background:color-mix(in srgb,var(--app-primary) 5%,var(--app-surface)); }
.ops-check-field input[type="checkbox"] {
    position:relative;
    width:20px;
    height:20px;
    flex:0 0 20px;
    margin:0;
    appearance:none;
    border:1px solid color-mix(in srgb,var(--app-text-muted) 56%,var(--app-border));
    border-radius:6px;
    background:var(--app-surface);
    cursor:pointer;
    transition:border-color var(--app-motion-fast) ease,background-color var(--app-motion-fast) ease,box-shadow var(--app-motion-fast) ease;
}
.ops-check-field input[type="checkbox"]::after {
    position:absolute;
    top:2px;
    left:6px;
    width:6px;
    height:11px;
    border:solid white;
    border-width:0 2px 2px 0;
    content:"";
    opacity:0;
    transform:rotate(45deg) scale(.75);
    transition:opacity var(--app-motion-fast) ease,transform var(--app-motion-fast) ease;
}
.ops-check-field input[type="checkbox"]:checked { border-color:var(--app-primary); background:var(--app-primary); }
.ops-check-field input[type="checkbox"]:checked::after { opacity:1; transform:rotate(45deg) scale(1); }
.ops-check-field input[type="checkbox"]:focus-visible { outline:0; box-shadow:var(--control-focus); }
.ops-check-field input[type="checkbox"]:disabled { cursor:not-allowed; opacity:.5; }
.ops-check-field strong { font-size:12px; line-height:1.4; }
.ops-check-field small { margin-top:4px; font-size:11px; line-height:1.5; }
.ops-check-field--panel { border-color:var(--app-border); background:var(--app-surface-secondary); }
.ops-check-field--switch { align-items:center; }
.ops-check-field--switch input[type="checkbox"] { width:44px; height:24px; flex-basis:44px; border-radius:999px; background:color-mix(in srgb,var(--app-text-muted) 22%,var(--app-surface)); }
.ops-check-field--switch input[type="checkbox"]::after {
    top:3px;
    left:3px;
    width:16px;
    height:16px;
    border:0;
    border-radius:50%;
    background:var(--app-surface);
    box-shadow:0 2px 5px color-mix(in srgb,var(--app-text) 22%,transparent);
    opacity:1;
    transform:none;
}
.ops-check-field--switch input[type="checkbox"]:checked { background:var(--app-primary); }
.ops-check-field--switch input[type="checkbox"]:checked::after { left:23px; transform:none; }

.ops-automation-summary { gap:16px; }
.ops-automation-metric {
    --ops-automation-accent:var(--app-primary);
    position:relative;
    display:grid;
    min-height:124px;
    grid-template-columns:46px minmax(0,1fr);
    align-items:center;
    gap:14px;
    overflow:hidden;
    padding:20px;
    border-top:0;
    background:linear-gradient(145deg,var(--app-surface) 58%,color-mix(in srgb,var(--ops-automation-accent) 7%,var(--app-surface)));
    box-shadow:var(--app-shadow-sm);
    transition:border-color var(--app-motion-fast) ease,box-shadow var(--app-motion-fast) ease,transform var(--app-motion-fast) ease;
}
.ops-automation-metric::before { position:absolute; inset:0 auto 0 0; width:4px; background:var(--ops-automation-accent); content:""; }
.ops-automation-metric:hover { border-color:color-mix(in srgb,var(--ops-automation-accent) 28%,var(--app-border)); box-shadow:var(--app-shadow-md); transform:translateY(-2px); }
.ops-automation-metric.is-success { --ops-automation-accent:var(--app-success); }
.ops-automation-metric.is-warning { --ops-automation-accent:var(--app-warning); }
.ops-automation-metric.is-danger { --ops-automation-accent:var(--app-danger); }
.ops-automation-metric.is-neutral { --ops-automation-accent:var(--app-text-muted); }
.ops-automation-metric__icon { display:grid; width:46px; height:46px; place-items:center; border-radius:15px; background:color-mix(in srgb,var(--ops-automation-accent) 12%,var(--app-surface)); color:var(--ops-automation-accent); font-size:21px; }
.ops-automation-metric>div>span,.ops-automation-metric>div>strong,.ops-automation-metric>div>small { display:block; }
.ops-automation-metric>div>span { color:var(--app-text-secondary); font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.ops-automation-metric>div>strong { margin-top:6px; color:var(--app-text); font-size:20px; line-height:1.2; }
.ops-automation-metric>div>small { margin-top:6px; color:var(--app-text-secondary); font-size:11px; line-height:1.45; }

.ops-automation-settings-grid { gap:20px; }
.ops-automation-job {
    position:relative;
    gap:18px;
    overflow:hidden;
    padding:22px;
    border-color:var(--app-border);
    background:linear-gradient(155deg,var(--app-surface),var(--app-background-soft));
    box-shadow:var(--app-shadow-xs);
}
.ops-automation-job::before { position:absolute; inset:0 0 auto; height:3px; background:linear-gradient(90deg,var(--app-primary),color-mix(in srgb,var(--app-accent) 68%,var(--app-primary))); content:""; }
.ops-automation-job>div.ops-automation-job__header { display:flex; align-items:flex-start; gap:13px; }
.ops-automation-job__header .ops-entity-mark { box-shadow:0 8px 18px color-mix(in srgb,var(--app-primary) 12%,transparent); }
.ops-automation-job__header .ops-card-eyebrow { margin-bottom:5px; font-size:9px; }
.ops-automation-job h3 { font-size:15px; }
.ops-automation-job p { margin-top:5px; font-size:11px; line-height:1.6; }
.ops-automation-job .ops-field>label { display:block; margin-bottom:7px; color:var(--app-text-secondary); font-size:11px; font-weight:750; }
.ops-automation-job .ops-data-list { gap:8px; }
.ops-automation-job .ops-data-list>div { padding:11px 12px; border:1px solid var(--app-border-soft); border-radius:10px; background:color-mix(in srgb,var(--app-surface) 86%,transparent); }
.ops-automation-job .ops-data-list dt { font-size:9px; }
.ops-automation-job .ops-data-list dd { font-size:11px; }

.ops-automation-manual-card { overflow:hidden; }
.ops-automation-manual-card>.ops-section-header { background:linear-gradient(135deg,var(--app-surface),color-mix(in srgb,var(--app-primary) 4%,var(--app-surface))); }
.ops-automation-actions { gap:12px; }
.ops-automation-actions .btn { min-width:190px; justify-content:center; }

.ops-automation-section { overflow:hidden; box-shadow:var(--app-shadow-sm); }
.ops-automation-section>.ops-section-header { align-items:center; padding:25px 28px; border-bottom:1px solid var(--app-border-soft); background:linear-gradient(135deg,var(--app-surface),color-mix(in srgb,var(--app-primary) 4%,var(--app-surface))); }
.ops-section-count { display:inline-flex; min-width:82px; align-items:center; justify-content:center; gap:6px; padding:8px 11px; border:1px solid var(--app-border); border-radius:999px; background:var(--app-surface); color:var(--app-text-secondary); font-size:10px; white-space:nowrap; box-shadow:var(--app-shadow-xs); }
.ops-section-count strong { color:var(--app-text); font-size:12px; }
.ops-automation-history { gap:12px; padding:20px 24px 24px; }
.ops-automation-run,.ops-automation-report {
    --ops-record-accent:var(--app-primary);
    position:relative;
    display:block;
    overflow:hidden;
    padding:18px;
    border-color:var(--app-border);
    background:linear-gradient(145deg,var(--app-surface),color-mix(in srgb,var(--ops-record-accent) 3%,var(--app-surface-secondary)));
    box-shadow:var(--app-shadow-xs);
    transition:border-color var(--app-motion-fast) ease,box-shadow var(--app-motion-fast) ease,transform var(--app-motion-fast) ease;
}
.ops-automation-run::before,.ops-automation-report::before { position:absolute; inset:0 auto 0 0; width:3px; background:var(--ops-record-accent); content:""; }
.ops-automation-run:hover,.ops-automation-report:hover { border-color:color-mix(in srgb,var(--ops-record-accent) 26%,var(--app-border)); box-shadow:var(--app-shadow-sm); transform:translateY(-1px); }
.ops-automation-run--success { --ops-record-accent:var(--app-success); }
.ops-automation-run--warning { --ops-record-accent:var(--app-warning); }
.ops-automation-run--danger { --ops-record-accent:var(--app-danger); }
.ops-automation-run__header,.ops-automation-report__header { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:12px; }
.ops-automation-record-mark { display:grid; width:42px; height:42px; place-items:center; border-radius:13px; background:color-mix(in srgb,var(--ops-record-accent) 11%,var(--app-surface)); color:var(--ops-record-accent); font-size:19px; }
.ops-automation-record-copy { min-width:0; }
.ops-automation-record-copy strong,.ops-automation-record-copy small { display:block; }
.ops-automation-record-copy strong { color:var(--app-text); font-size:13px; line-height:1.35; }
.ops-automation-record-copy small { margin-top:4px; color:var(--app-text-secondary); font-size:10px; }
.ops-automation-record-copy small span { display:inline-flex; margin-right:3px; color:var(--app-text-secondary); font-weight:750; }
.ops-automation-run dl { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; margin:16px 0 0; }
.ops-automation-run dl>div { min-width:0; padding:11px 12px; border:1px solid var(--app-border-soft); border-radius:11px; background:color-mix(in srgb,var(--app-surface) 88%,transparent); }
.ops-automation-run dt { overflow:hidden; color:var(--app-text-secondary); font-size:8px; font-weight:800; letter-spacing:.04em; text-overflow:ellipsis; text-transform:uppercase; }
.ops-automation-run dd { margin:5px 0 0; color:var(--app-text); font-size:12px; font-weight:800; }
.ops-automation-run>.ops-inline-note { margin:14px 0 0; }
.ops-automation-report { --ops-record-accent:var(--app-primary); }
.ops-automation-report__badges { display:flex; flex-wrap:wrap; gap:7px; margin:14px 0 0 54px; }
.ops-automation-report__meta { display:flex; align-items:center; gap:7px; margin:12px 0 0 54px; color:var(--app-text-secondary); font-size:11px; }
.ops-automation-report__meta i { color:var(--app-primary); font-size:15px; }

@media (max-width:1199.98px) {
    .ops-automation-run dl { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:767.98px) {
    .ops-automation-section>.ops-section-header { align-items:flex-start; }
    .ops-automation-actions form { flex:1 1 calc(50% - 6px); }
    .ops-automation-actions .btn { width:100%; min-width:0; }
}
@media (max-width:575.98px) {
    .ops-automation-metric { min-height:106px; padding:17px; }
    .ops-automation-job { padding:18px; }
    .ops-automation-section>.ops-section-header { padding:20px; }
    .ops-section-count { min-width:0; }
    .ops-automation-history { padding:14px; }
    .ops-automation-run,.ops-automation-report { padding:15px; }
    .ops-automation-run__header,.ops-automation-report__header { grid-template-columns:38px minmax(0,1fr); align-items:start; }
    .ops-automation-record-mark { width:38px; height:38px; border-radius:12px; font-size:17px; }
    .ops-automation-run__header>.ops-status,.ops-automation-report__header>.ops-status { grid-column:2; justify-self:start; }
    .ops-automation-run dl { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:14px; }
    .ops-automation-report__badges,.ops-automation-report__meta { margin-left:50px; }
    .ops-automation-actions form { flex-basis:100%; }
}
@media (max-width:399.98px) {
    .ops-automation-report__badges,.ops-automation-report__meta { margin-left:0; }
}

/* Persistent visual evidence and refined report controls */
.ops-visual-evidence { overflow:hidden; scroll-margin-top:calc(var(--app-header-height) + 24px); }
.ops-visual-evidence>.ops-section-header { padding:25px 28px; border-bottom:1px solid var(--app-border-soft); background:linear-gradient(135deg,var(--app-surface),color-mix(in srgb,var(--app-primary) 4%,var(--app-surface))); }
.ops-visual-evidence__body { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr); gap:24px; padding:28px; }
.ops-visual-evidence__preview { display:grid; min-height:270px; overflow:hidden; place-items:center; border:1px solid var(--app-border); border-radius:16px; background:linear-gradient(145deg,var(--app-background-soft),var(--app-surface-secondary)); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--app-surface) 76%,transparent),var(--app-shadow-xs); }
.ops-visual-evidence__preview img { display:block; width:100%; aspect-ratio:16/10; object-fit:contain; background:#fff; }
.ops-visual-evidence__empty { max-width:410px; padding:34px 24px; text-align:center; }
.ops-visual-evidence__empty>span { display:grid; width:54px; height:54px; margin:0 auto 14px; place-items:center; border-radius:17px; background:color-mix(in srgb,var(--app-primary) 10%,var(--app-surface)); color:var(--app-primary); font-size:24px; }
.ops-visual-evidence__empty strong { display:block; color:var(--app-text); font-size:13px; }
.ops-visual-evidence__empty p { margin:7px 0 0; color:var(--app-text-secondary); font-size:10px; line-height:1.65; }
.ops-visual-evidence__controls { display:flex; min-width:0; flex-direction:column; gap:16px; }
.ops-visual-evidence__controls .ops-data-list { gap:8px; }
.ops-visual-evidence__controls .ops-data-list>div { padding:11px 13px; border:1px solid var(--app-border-soft); border-radius:11px; background:var(--app-background-soft); }
.ops-screenshot-upload { display:grid; gap:13px; padding:17px; border:1px solid var(--app-border); border-radius:14px; background:var(--app-surface-secondary); }
.ops-screenshot-upload .ops-field label { display:block; margin-bottom:7px; color:var(--app-text-secondary); font-size:11px; font-weight:750; }
.ops-screenshot-upload .ops-field small { display:block; margin:7px 2px 0; color:var(--app-text-secondary); font-size:9px; line-height:1.5; }
.ops-screenshot-upload .ops-field [data-field-error] { color:var(--app-danger); }
.ops-screenshot-upload .form-control[type=file] { min-height:45px; padding:6px; border-color:var(--app-border); background:var(--app-surface); color:var(--app-text-secondary); font-size:10px; }
.ops-screenshot-upload .form-control[type=file]::file-selector-button { height:31px; margin:-1px 10px -1px -1px; padding:0 13px; border:0; border-radius:8px; background:color-mix(in srgb,var(--app-primary) 9%,var(--app-surface)); color:var(--app-primary); font:inherit; font-weight:750; cursor:pointer; }
.ops-screenshot-upload .btn { justify-self:start; }
.ops-screenshot-refresh { display:grid; gap:8px; padding-top:2px; }
.ops-screenshot-refresh form { display:block; }
.ops-screenshot-refresh small { overflow-wrap:anywhere; color:var(--app-text-secondary); font-size:9px; line-height:1.5; }
.ops-generate-report-form { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.ops-refresh-captures { display:flex; align-items:center; gap:9px; min-width:205px; margin:0; padding:9px 11px; border:1px solid var(--app-border); border-radius:11px; background:var(--app-surface); cursor:pointer; transition:border-color var(--app-motion-fast) ease,box-shadow var(--app-motion-fast) ease; }
.ops-refresh-captures:hover,.ops-refresh-captures:has(input:focus-visible) { border-color:color-mix(in srgb,var(--app-primary) 42%,var(--app-border)); box-shadow:var(--app-shadow-xs); }
.ops-refresh-captures input { width:18px; height:18px; flex:0 0 18px; margin:0; accent-color:var(--app-primary); }
.ops-refresh-captures span,.ops-refresh-captures strong,.ops-refresh-captures small { display:block; }
.ops-refresh-captures strong { color:var(--app-text); font-size:10px; }
.ops-refresh-captures small { margin-top:2px; color:var(--app-text-secondary); font-size:8px; }

.ops-system-check { position:relative; min-height:52px; align-items:center; padding:12px 14px; border:1px solid var(--app-border); border-radius:12px; background:var(--app-surface-secondary); transition:border-color var(--app-motion-fast) ease,background-color var(--app-motion-fast) ease,box-shadow var(--app-motion-fast) ease; }
.ops-system-check:hover,.ops-system-check:has(input:checked) { border-color:color-mix(in srgb,var(--app-primary) 30%,var(--app-border)); background:color-mix(in srgb,var(--app-primary) 4%,var(--app-surface)); }
.ops-system-check:has(input:focus-visible) { box-shadow:var(--control-focus); }
.ops-system-check input[type=checkbox] { width:19px; height:19px; margin:0; accent-color:var(--app-primary); }

@media (max-width:991.98px) {
    .ops-visual-evidence__body { grid-template-columns:1fr; }
}
@media (max-width:767.98px) {
    .ops-generate-report-form { width:100%; align-items:stretch; flex-direction:column; }
    .ops-refresh-captures { width:100%; }
    .ops-generate-report-form .btn { width:100%; }
}
@media (max-width:575.98px) {
    .ops-visual-evidence>.ops-section-header,.ops-visual-evidence__body { padding:18px; }
    .ops-visual-evidence__preview { min-height:210px; }
    .ops-screenshot-upload .btn,.ops-screenshot-refresh .btn { width:100%; }
}
