.gateway-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, .8fr);
    gap: 24px;
    align-items: start;
}

.gateway-list {
    display: grid;
    gap: 14px;
}

.gateway-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.1fr) minmax(200px, 1fr) minmax(130px, .7fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--border);
    border-left: 4px solid #c9d5e5;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 36, 72, .05);
}

.gateway-row.enabled {
    border-left-color: var(--green);
}

.gateway-row strong,
.gateway-row span,
.gateway-row small {
    display: block;
}

.gateway-row small {
    margin-top: 7px;
    color: var(--muted);
    line-height: 1.45;
}

.gateway-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gateway-actions form {
    margin: 0;
}

.gateway-editor {
    display: grid;
    gap: 10px;
    padding: 26px;
    border: 1px solid #cfe0f6;
    border-top: 4px solid var(--blue);
    background: linear-gradient(145deg, #f7fbff, #fff 42%);
    box-shadow: 0 18px 44px rgba(11, 36, 72, .09);
}

.gateway-editor h2 {
    margin: 0 0 10px;
    font-size: 23px;
}

.gateway-editor > label,
.gateway-editor .two-fields label {
    color: #445a76;
    font-size: 13px;
    font-weight: 700;
}

.gateway-editor > input,
.gateway-editor > select,
.gateway-editor > textarea,
.gateway-editor .two-fields input,
.gateway-editor .three-fields input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c7d3e2;
    border-radius: 4px;
    background: #fff;
    color: var(--navy);
    font: inherit;
}

.gateway-editor > textarea {
    resize: vertical;
    line-height: 1.55;
}

.gateway-editor fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 7px 0;
    padding: 14px;
    border: 1px solid var(--border);
}

.gateway-editor legend {
    padding: 0 6px;
    color: #445a76;
    font-size: 13px;
    font-weight: 700;
}

.gateway-editor fieldset label,
.gateway-editor .check {
    display: flex;
    align-items: center;
    gap: 7px;
}

.gateway-editor .two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gateway-editor .three-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gateway-editor .two-fields > div {
    display: grid;
    gap: 10px;
}

.gateway-editor .three-fields > div {
    display: grid;
    gap: 10px;
}

.gateway-editor .three-fields label {
    color: #445a76;
    font-size: 12px;
    font-weight: 700;
}

.product-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(390px, .8fr);
    gap: 24px;
    align-items: start;
}

.product-admin-list {
    display: grid;
    gap: 14px;
}

.product-admin-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(120px, .55fr) minmax(130px, .6fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--border);
    border-left: 4px solid #c9d5e5;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 36, 72, .05);
}

.product-admin-row.published {
    border-left-color: var(--blue);
}

.product-admin-row strong,
.product-admin-row small {
    display: block;
}

.product-admin-row small {
    margin-top: 7px;
    color: var(--muted);
}

.product-admin-main p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.product-category {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 8px;
    background: #eaf2ff;
    color: #1859b8;
    font-size: 12px;
    font-weight: 800;
}

.product-admin-price del {
    display: block;
    margin-bottom: 3px;
    color: #8a98ab;
}

.product-admin-price strong {
    color: var(--blue);
    font-size: 21px;
}

.admin-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.admin-secondary-actions a {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 15px 18px;
    border: 1px solid #cfe0f6;
    border-radius: 10px;
    background: #f7faff;
    color: inherit;
    text-decoration: none;
}

.admin-secondary-actions a:hover { border-color: #75a7ee; background: #f0f6ff; }

.release-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 24px;
    align-items: start;
}

.release-current-card {
    padding: 28px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, #fff, #f1f7ff);
    box-shadow: 0 14px 36px rgba(11, 36, 72, .08);
}

.release-current-card h2 { margin: 12px 0 8px; font-size: 34px; color: var(--navy); }
.release-current-card p { color: var(--muted); }
.release-current-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin-top: 24px; }
.release-current-card dt { color: var(--muted); font-weight: 700; }
.release-current-card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.release-current-card code { font-size: 12px; }
.release-editor input[type=file] { padding: 12px; background: #f8fbff; }
.release-warning { padding: 12px; background: #fff7e6; color: #855300; line-height: 1.55; }

.admin-secondary-actions span {
    color: var(--navy);
    font-weight: 800;
}

.admin-navigation {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 4px;
    padding: 9px max(24px, calc((100vw - 1280px) / 2));
    overflow-x: auto;
    border-bottom: 1px solid #dce6f3;
    background: rgba(250, 252, 255, .96);
    box-shadow: 0 6px 18px rgba(20, 49, 89, .05);
    backdrop-filter: blur(12px);
}

.admin-navigation a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 7px;
    color: #50647f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.admin-navigation a:hover {
    background: #eaf2ff;
    color: #125fd1;
}

.admin-context .page-shell { padding-top: 34px; }

/* Premium desktop-client administration shell */
.admin-context {
    --admin-canvas: #f1f3f7;
    --admin-surface: #fbfcfe;
    --admin-ink: #111827;
    --admin-muted: #728097;
    --admin-line: #e3e7ef;
    --admin-accent: #4664f2;
    --admin-sidebar: #111827;
    background:
        radial-gradient(circle at 78% -10%, rgba(70, 100, 242, .07), transparent 28%),
        var(--admin-canvas);
    color: var(--admin-ink);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 14px;
    z-index: 30;
    box-sizing: border-box;
    height: calc(100vh - 28px);
    margin: 14px;
    display: flex;
    flex-direction: column;
    padding: 22px 14px 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 22px;
    background: var(--admin-sidebar);
    color: #fff;
    box-shadow: 0 24px 58px rgba(15, 23, 42, .18);
}

.admin-sidebar::before {
    content: "";
    position: absolute;
    top: -90px;
    left: -50px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(77, 101, 238, .12);
    filter: blur(45px);
    pointer-events: none;
}

.admin-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 20px;
    color: #f8fafc;
    text-decoration: none;
}

.admin-brand-mark {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 11px;
    background: #4d66ee;
    color: #fff;
    box-shadow: 0 8px 22px rgba(59, 83, 222, .32);
}

.admin-brand-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { font-size: 18px; font-weight: 760; letter-spacing: -.035em; }
.admin-brand small { margin-top: 3px; color: #7f91b2; font-size: 8px; font-weight: 800; letter-spacing: .32em; }

.admin-workspace-switch {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    gap: 10px;
    align-items: center;
    margin: 0 2px 20px;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: rgba(255,255,255,.045);
}

.admin-workspace-switch > span,
.admin-account-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #263452;
    color: #dbe4ff;
    font-size: 11px;
    font-weight: 800;
}

.admin-workspace-switch strong, .admin-workspace-switch small { display: block; }
.admin-workspace-switch strong { color: #eef2ff; font-size: 11px; }
.admin-workspace-switch small { margin-top: 3px; color: #7789a9; font-size: 9px; }
.admin-workspace-switch svg, .admin-environment svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #6f819e; }

.admin-sidebar nav {
    position: relative;
    display: grid;
    gap: 4px;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 11px;
    color: #9cabc1;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}

.admin-sidebar nav a:hover { background: rgba(255,255,255,.055); color: #f8fafc; transform: translateX(2px); }
.admin-nav-icon { display: grid; place-items: center; width: 20px; height: 20px; color: #71829e; }
.admin-nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.admin-sidebar nav a.active { background: rgba(76, 99, 232, .22); color: #fff; box-shadow: inset 3px 0 #6680ff; }
.admin-sidebar nav a.active .admin-nav-icon { color: #8298ff; }

.admin-sidebar-foot {
    position: relative;
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.075);
}

.admin-environment, .admin-account {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 7px 8px;
    color: #a5b3c8;
    text-decoration: none;
}

.admin-environment strong, .admin-environment small, .admin-account strong, .admin-account small { display: block; }
.admin-environment strong, .admin-account strong { overflow: hidden; color: #dce5f2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-environment small, .admin-account small { margin-top: 3px; color: #6f819d; font-size: 8px; }
.admin-account .link-button { padding: 4px 0; color: #71819b; font-size: 9px; }
.admin-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #32d69a; box-shadow: 0 0 0 4px rgba(50, 214, 154, .1); }

.admin-workspace { min-width: 0; }
.admin-topbar {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px 0 22px;
    background: transparent;
}

.admin-topbar-context { display: grid; gap: 3px; }
.admin-topbar-context > span { color: #8b96a8; font-size: 8px; font-weight: 850; letter-spacing: .2em; }
.admin-topbar-context > strong { color: #263144; font-size: 12px; font-weight: 700; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-topbar-actions a { text-decoration: none; }
.admin-topbar-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #e1e6ee; border-radius: 999px; background: rgba(255,255,255,.65); color: #5d6b80; font-size: 10px; font-weight: 700; }
.admin-profile-link { display: inline-flex; align-items: center; gap: 8px; color: #4d5a6d; font-size: 10px; font-weight: 700; }
.admin-profile-link > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #172033; color: #fff; font-size: 10px; }

.admin-page { width: min(100%, 1480px); margin: 0 auto; padding: 4px 34px 42px 22px; }
.admin-context .admin-heading { margin-bottom: 22px; }
.admin-context .admin-heading h1 { color: var(--admin-ink); font-size: 28px; letter-spacing: -.045em; }
.admin-context .admin-heading p { color: var(--admin-muted); }
.admin-context .admin-heading > div > a[href="/Admin"],
.admin-context .admin-heading > div > a[href="/Admin/Index"] { display: none; }

.ops-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.ops-heading h1 { margin: 7px 0 0; color: #111827; font-size: clamp(28px, 2.4vw, 38px); font-weight: 760; letter-spacing: -.055em; }
.ops-heading p { margin: 7px 0 0; color: #748197; font-size: 12px; }
.ops-heading time { padding-bottom: 3px; color: #8c97a9; font-size: 10px; }
.ops-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #5269e8; font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.ops-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: #4b65f1; box-shadow: 0 0 0 4px rgba(75, 101, 241, .1); }

.ops-health {
    position: relative;
    display: grid;
    grid-template-columns: minmax(270px, 1.55fr) repeat(4, minmax(110px, .72fr));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    background: #111827;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .14);
}

.ops-health::before {
    content: "";
    position: absolute;
    right: 22%;
    bottom: -110px;
    width: 290px;
    height: 210px;
    border-radius: 50%;
    background: rgba(61, 86, 229, .28);
    filter: blur(52px);
    pointer-events: none;
}

.ops-health::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -82px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(118, 139, 255, .17);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(97, 119, 244, .035), 0 0 0 49px rgba(97, 119, 244, .025);
    pointer-events: none;
}

.ops-health > a { position: relative; z-index: 1; min-width: 0; padding: 23px 19px; color: #fff; text-decoration: none; }
.ops-health > a + a { border-left: 1px solid rgba(255,255,255,.09); }
.ops-health > a > span:not(.ops-health-symbol), .ops-health > a > strong, .ops-health > a > small { display: block; }
.ops-health > a > span:not(.ops-health-symbol) { color: #8f9bb1; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.ops-health > a > strong { margin: 10px 0 5px; overflow: hidden; color: #f8fafc; font-size: 18px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.ops-health > a > small { overflow: hidden; color: #7b89a3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ops-health-main { display: flex; align-items: center; gap: 16px; }
.ops-health-main > span:last-child { min-width: 0; }
.ops-health-main > span:last-child strong, .ops-health-main > span:last-child small { display: block; }
.ops-health-main > span:last-child strong { color: #f8fafc; font-size: 20px; font-weight: 720; letter-spacing: -.025em; }
.ops-health-main > span:last-child small { margin-top: 5px; color: #8c9ab2; font-size: 11px; }
.ops-health-symbol { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%; background: #35d49b; box-shadow: 0 0 0 8px rgba(53, 212, 155, .1), 0 0 24px rgba(53, 212, 155, .62); }
.ops-health.attention .ops-health-symbol { background: #f5b94f; box-shadow: 0 0 0 8px rgba(245, 185, 79, .1), 0 0 24px rgba(245, 185, 79, .5); }

.ops-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 10px 0 0;
    padding: 13px 0 14px;
    border-bottom: 1px solid var(--admin-line);
}

.ops-kpis a { min-width: 0; padding: 8px 22px; color: inherit; text-decoration: none; }
.ops-kpis a:first-child { padding-left: 6px; }
.ops-kpis a + a { border-left: 1px solid #dfe4ec; }
.ops-kpis span, .ops-kpis small { display: block; overflow: hidden; color: #7f8b9e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ops-kpis span { font-weight: 700; letter-spacing: .04em; }
.ops-kpis strong { display: block; margin: 7px 0 4px; color: #171f2f; font-size: 24px; font-weight: 710; letter-spacing: -.045em; }

.ops-primary-grid, .ops-secondary-grid { display: grid; gap: 16px; margin-top: 16px; }
.ops-primary-grid { grid-template-columns: minmax(0, 1.35fr) minmax(330px, .92fr); }
.ops-secondary-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.ops-panel { min-width: 0; overflow: hidden; border: 1px solid rgba(218, 224, 234, .9); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 12px 34px rgba(28, 38, 61, .045); }
.ops-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 21px 15px; }
.ops-panel > header h2 { margin: 0; color: #182132; font-size: 17px; font-weight: 720; letter-spacing: -.025em; }
.ops-panel > header p { margin: 5px 0 0; color: #7f8a9d; font-size: 10px; }
.ops-panel > header > a { padding-top: 2px; color: #5269e8; font-size: 11px; font-weight: 750; text-decoration: none; }

.ops-action-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 13px; align-items: center; margin: 0 20px; padding: 14px 0; border-top: 1px solid #e8ebf1; color: inherit; text-decoration: none; }
.ops-action-row:hover { color: #3e58dc; }
.ops-warning-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: #f3f5f9; color: #63728b; font-size: 12px; font-weight: 800; }
.ops-action-row strong, .ops-action-row small { display: block; }
.ops-action-row strong { color: #20293a; font-size: 12px; }
.ops-action-row small { margin-top: 4px; color: #8490a2; font-size: 10px; }
.ops-action-row b { padding: 7px 10px; border: 1px solid #dfe4ee; border-radius: 9px; background: #fafbfc; color: #5269e8; font-size: 10px; }
.ops-empty-success { display: grid; gap: 5px; margin: 0 20px 20px; padding: 26px; border: 1px dashed #cbd8d2; border-radius: 13px; background: #f5faf7; color: #21815d; text-align: center; }
.ops-empty-success span { color: #769186; font-size: 10px; }

.ops-platforms > a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid #e8ebf1; color: inherit; text-decoration: none; }
.ops-platforms > a > span:nth-child(2) { min-width: 0; }
.ops-platforms strong, .ops-platforms small { display: block; }
.ops-platforms strong { color: #20293a; font-size: 12px; }
.ops-platforms small { margin-top: 4px; overflow: hidden; color: #8490a2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ops-platforms b { padding: 5px 8px; border-radius: 999px; background: #eef1f5; color: #778397; font-size: 9px; font-weight: 750; }
.ops-platforms b.good { background: #e8f7f0; color: #20885e; }
.ops-platform-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #eef1ff; color: #4d65e8; font-size: 11px; font-weight: 800; }
.ops-platform-mark.windows { background: #eaf3ff; color: #2a75d6; font-size: 20px; }

.ops-revenue-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 20px 16px; overflow: hidden; border: 1px solid #e7eaf0; border-radius: 13px; background: #e7eaf0; }
.ops-revenue-bars article { display: grid; gap: 6px; padding: 15px; background: rgba(255,255,255,.92); }
.ops-revenue-bars article span, .ops-revenue-bars article small { color: #7f8b9e; font-size: 9px; }
.ops-revenue-bars article strong { color: #1e2737; font-size: 16px; }
.ops-revenue-bars i { height: 3px; overflow: hidden; border-radius: 4px; background: #e3e7ef; }
.ops-revenue-bars i::after { content: ""; display: block; width: var(--bar); height: 100%; border-radius: inherit; background: #536bf0; }
.ops-revenue footer { display: flex; gap: 22px; padding: 12px 20px; border-top: 1px solid #e8ebf1; color: #778397; font-size: 10px; }

.ops-activity-table { padding: 0 20px 16px; }
.ops-activity-table > div { display: grid; grid-template-columns: 80px 88px minmax(0, 1fr) 40px; gap: 10px; padding: 10px 4px; border-top: 1px solid #e8ebf1; color: #566378; font-size: 10px; }
.ops-activity-head { color: #8b96a7 !important; font-weight: 700; }
.ops-activity-table time, .ops-activity-table span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-activity-table b { color: #238760; }

@media (max-width: 1180px) {
    .admin-shell { grid-template-columns: 218px minmax(0, 1fr); }
    .admin-sidebar { margin-right: 8px; }
    .ops-health { grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(110px, .7fr)); }
    .ops-health > a:nth-last-child(-n+2) { border-top: 1px solid rgba(255,255,255,.09); }
    .ops-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ops-kpis a:nth-child(4) { border-left: 0; }
}

@media (max-width: 980px) {
    .ops-primary-grid, .ops-secondary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .admin-context { background: var(--admin-canvas); }
    .admin-shell { display: block; }
    .admin-sidebar { position: relative; top: 0; width: auto; height: auto; margin: 8px; padding: 13px; border-radius: 17px; }
    .admin-sidebar::before, .admin-workspace-switch, .admin-sidebar-foot { display: none; }
    .admin-brand { padding: 0 4px 12px; }
    .admin-brand-mark { width: 32px; height: 32px; }
    .admin-brand-mark svg { width: 20px; }
    .admin-sidebar nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
    .admin-sidebar nav::-webkit-scrollbar { display: none; }
    .admin-sidebar nav a { flex: 0 0 auto; min-height: 38px; padding: 0 11px; }
    .admin-topbar { height: 58px; padding: 0 15px; }
    .admin-topbar-status, .admin-profile-link { font-size: 0; }
    .admin-topbar-status { padding: 10px; }
    .admin-page { padding: 4px 14px 30px; }
    .ops-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .ops-heading time { padding: 0; }
    .ops-heading h1 { font-size: 30px; }
    .ops-health { grid-template-columns: 1fr 1fr; border-radius: 17px; }
    .ops-health-main { grid-column: 1 / -1; }
    .ops-health > a { padding: 18px 16px; }
    .ops-health > a + a { border-top: 1px solid rgba(255,255,255,.09); }
    .ops-kpis { grid-template-columns: 1fr 1fr; }
    .ops-kpis a { padding: 10px 14px; }
    .ops-kpis a:first-child { padding-left: 14px; }
    .ops-kpis a:nth-child(odd) { border-left: 0; }
    .ops-action-row { grid-template-columns: 31px minmax(0, 1fr); }
    .ops-action-row b { grid-column: 2; justify-self: start; }
    .ops-revenue-bars { grid-template-columns: 1fr; }
}

.system-status-grid,
.operations-status-grid {
    display: grid;
    gap: 18px;
}

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

.operations-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.system-status-card,
.operations-status-card {
    padding: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, #fff, #f4f8ff);
    box-shadow: 0 12px 30px rgba(11, 36, 72, .06);
}

.system-status-card > span {
    color: #7c8da5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.system-status-card h2 { margin: 16px 0 10px; }
.system-status-card > strong { display: block; margin-bottom: 20px; }
.system-status-card dl,
.operations-status-card dl {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}
.system-status-card dt,
.operations-status-card dt { color: var(--muted); font-weight: 700; }
.system-status-card dd,
.operations-status-card dd { margin: 0; overflow-wrap: anywhere; }
.operations-status-card > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}
.operations-status-card > div span { font-size: 18px; font-weight: 800; }
.audit-table code { color: #37527a; font-size: 12px; }
.audit-table td:first-child { white-space: nowrap; color: var(--muted); }
.incident-list { display: grid; gap: 14px; }
.incident-card { padding: 22px 24px; border: 1px solid var(--border); border-left: 5px solid #7890ae; background: #fff; }
.incident-card.warning { border-left-color: #e19a1a; background: #fffaf0; }
.incident-card.critical { border-left-color: #d53b4c; background: #fff5f6; }
.incident-card.information { border-left-color: var(--blue); background: #f4f8ff; }
.incident-top { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 13px; }
.incident-top span { font-weight: 800; }
.incident-card.warning .incident-top span { color: #9a6200; }
.incident-card.critical .incident-top span { color: #b42637; }
.incident-card h2 { margin: 14px 0 8px; }
.incident-card p { margin: 0 0 14px; color: var(--muted); }
.incident-card code { color: #52657f; font-size: 12px; }
.incident-empty { padding: 36px; border: 1px solid #a9dfb9; background: #effaf3; text-align: center; }
.incident-empty strong { color: #176c35; font-size: 22px; }
.incident-empty p { margin-bottom: 0; color: var(--muted); }
.admin-health-summary {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(120px, .65fr));
    margin-bottom: 22px;
    border: 1px solid #cfe0f6;
    background: linear-gradient(105deg, #eef6ff, #fff);
    box-shadow: 0 12px 30px rgba(11, 36, 72, .06);
}
.admin-health-summary.attention { border-color: #f0c36a; background: linear-gradient(105deg, #fff7e7, #fff); }
.admin-health-summary > div { padding: 20px 22px; }
.admin-health-summary > div + div { border-left: 1px solid var(--border); }
.admin-health-summary span,
.admin-health-summary strong { display: block; }
.admin-health-summary span { color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-health-summary strong { margin-top: 9px; font-size: 20px; }
.admin-health-primary strong { color: #187a3d; font-size: 24px; }
.admin-health-summary.attention .admin-health-primary strong { color: #a06000; }
.admin-health-primary a { display: inline-block; margin-top: 10px; font-weight: 700; }
.admin-business-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.admin-business-summary a { padding: 18px; border: 1px solid var(--border); background: #fff; box-shadow: 0 9px 24px rgba(11,36,72,.05); color: inherit; text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.admin-business-summary a:hover { transform: translateY(-2px); border-color: #8ab8f6; }
.admin-business-summary span, .admin-business-summary small { display: block; color: var(--muted); }
.admin-business-summary span { font-size: 12px; font-weight: 800; }
.admin-business-summary strong { display: block; margin: 7px 0 5px; color: #0b3f91; font-size: 28px; }
.admin-business-summary small { font-size: 11px; }
.admin-commerce-metrics { margin: 0 0 22px; padding: 22px; border: 1px solid var(--border); background: #fff; box-shadow: 0 10px 28px rgba(11,36,72,.05); }
.admin-commerce-metrics > header, .admin-commerce-metrics > footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-commerce-metrics > header span, .admin-commerce-metrics > header strong { display: block; }
.admin-commerce-metrics > header span { color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-commerce-metrics > header strong { margin-top: 5px; font-size: 19px; }
.admin-commerce-metrics > header small { color: var(--muted); }
.admin-metrics-periods { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 17px; }
.admin-metrics-periods article { padding: 17px; background: linear-gradient(145deg,#f5f9ff,#fff); border: 1px solid #d7e5f7; }
.admin-metrics-periods h3 { margin: 0; color: var(--muted); font-size: 12px; }
.admin-metrics-periods article > strong { display: block; margin: 8px 0; color: #0b3f91; font-size: 25px; }
.admin-metrics-periods p, .admin-metrics-periods small { color: var(--muted); font-size: 11px; }
.admin-commerce-metrics > footer { justify-content: flex-start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); }
.admin-commerce-metrics > footer strong { color: var(--text); }
.admin-metrics-warning { margin: 12px 0 0; padding: 9px 11px; background: #fff7e7; color: #935b00; font-size: 11px; }

.module-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, .7fr);
    gap: 24px;
    align-items: start;
}

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

.module-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-top: 4px solid #9bacc0;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 36, 72, .05);
}

.module-card.released { border-top-color: var(--green); }
.module-card.beta { border-top-color: #7259d9; }
.module-card.retired { border-top-color: #c23a47; }

.module-card-top,
.module-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.module-code {
    color: #7a8ca4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.module-status {
    padding: 5px 9px;
    background: #edf2f8;
    color: #52657f;
    font-size: 12px;
    font-weight: 800;
}

.module-card.released .module-status { background: #e8f7ed; color: #187a3d; }
.module-card.beta .module-status { background: #f0edff; color: #5940bd; }
.module-card.retired .module-status { background: #fff0f1; color: #ae2d3a; }

.module-card h2 {
    margin: 20px 0 9px;
}

.module-card p {
    min-height: 72px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.6;
}

.module-card footer {
    padding: 14px 0 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.module-editor input[readonly] {
    background: #eef2f7;
    color: #66778e;
}

.product-editor fieldset small {
    display: inline;
    color: var(--muted);
}

.gateway-editor .button {
    margin-top: 9px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.validation {
    margin-bottom: 18px;
    color: #b52c39;
}

.validation:empty {
    display: none;
}

@media (max-width: 1120px) {
    .gateway-layout,
    .product-admin-layout,
    .module-admin-layout {
        grid-template-columns: 1fr;
    }

    .release-admin-layout { grid-template-columns: 1fr; }
    .system-status-grid { grid-template-columns: 1fr; }
    .admin-health-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-health-primary { grid-column: 1 / -1; }
    .admin-health-summary > div + div { border-left: 0; border-top: 1px solid var(--border); }
    .admin-business-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-metrics-periods { grid-template-columns: 1fr; }

    .gateway-editor {
        max-width: 760px;
    }
}

@media (max-width: 680px) {
    .operations-status-grid { grid-template-columns: 1fr; }
    .admin-secondary-actions { grid-template-columns: 1fr; }
    .admin-secondary-actions a { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 760px) {
    .gateway-row,
    .product-admin-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

    .admin-secondary-actions a {
        display: grid;
    }
}

@media (max-width: 520px) {
    .gateway-row,
    .product-admin-row,
    .gateway-editor .two-fields,
    .gateway-editor .three-fields {
        grid-template-columns: 1fr;
    }

    .gateway-editor {
        padding: 20px;
    }
}

.license-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-count.warning {
    background: #fff8e8;
    border-color: #f1c66d;
    color: #986000;
}

.admin-count.danger {
    background: #fff0f1;
    border-color: #efb5bb;
    color: #ae2d3a;
}

.admin-count.good {
    background: #eaf8ef;
    border-color: #a9dfb9;
    color: #176c35;
}

.renewal-state {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf2f8;
    color: #60708a;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.renewal-state.sent {
    background: #fff8e8;
    color: #986000;
}

.renewal-state.read {
    background: #eaf8ef;
    color: #176c35;
}

.license-filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) minmax(170px, .7fr) minmax(180px, .8fr) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid #dce4ef;
    background: #f7faff;
}

.license-filter-bar label,
.license-filter-bar label span {
    display: grid;
    gap: 6px;
}

.license-filter-bar label span {
    color: #60708a;
    font-size: 12px;
    font-weight: 700;
}

.license-filter-bar input,
.license-filter-bar select {
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #cbd8e8;
    border-radius: 6px;
    background: white;
    color: #0b2448;
    font: inherit;
}

.license-filter-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    color: #60708a;
    font-size: 13px;
}

@media (max-width: 980px) {
    .license-filter-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .license-filter-bar { grid-template-columns: 1fr; }
}

.customer-detail-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
}

.user-filter-bar {
    grid-template-columns: minmax(280px, 1.6fr) minmax(190px, .8fr) auto auto;
}

.customer-tags {
    display: inline-block;
    max-width: 260px;
    margin-top: 7px;
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f0edff;
    color: #6545cf;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-up-state { color: #24538d; font-size: 12px; font-weight: 700; white-space: nowrap; }
.follow-up-state.overdue { color: #ae2d3a; }
.inline-action-form { display: inline-block; margin: 6px 4px 0 0; }
.table-action.complete { border-color: #23a047; color: #198142; }

.admin-follow-up-summary {
    margin: 22px 0;
    padding: 22px;
    border: 1px solid #dce7ff;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #f4f0ff 100%);
    box-shadow: 0 12px 34px rgba(36, 73, 145, .08);
}
.admin-follow-up-summary header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.admin-follow-up-summary header div { display: grid; gap: 5px; }
.admin-follow-up-summary header span { color: #4770c5; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.admin-follow-up-summary header strong { font-size: 18px; }
.admin-follow-up-summary header small { color: #65728c; }
.admin-follow-up-summary > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-follow-up-summary a { display: grid; gap: 5px; padding: 16px 18px; border: 1px solid #dce7ff; border-radius: 14px; background: rgba(255, 255, 255, .88); color: #263650; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.admin-follow-up-summary a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47, 89, 170, .12); }
.admin-follow-up-summary a strong { color: #245fd8; font-size: 28px; }
.admin-follow-up-summary a.danger strong { color: #c8394a; }
.admin-follow-up-summary a small { color: #68758c; }
@media (max-width: 780px) {
    .admin-follow-up-summary header { align-items: start; flex-direction: column; }
    .admin-follow-up-summary > div { grid-template-columns: 1fr; }
}

.customer-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.customer-panel-heading h2 { margin-bottom: 5px; }
.customer-panel-heading p { margin: 0; color: #68758c; }
.customer-panel-heading a { color: #315fcb; font-weight: 700; text-decoration: none; white-space: nowrap; }
.customer-activity-list { display: grid; margin-top: 20px; }
.customer-activity-list article { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 20px; }
.customer-activity-list article:not(:last-child)::before { content: ""; position: absolute; top: 17px; bottom: 0; left: 6px; width: 2px; background: #dce7ff; }
.activity-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 3px; border: 3px solid #dce7ff; border-radius: 50%; background: #4775ee; box-shadow: 0 0 0 3px #fff; }
.customer-activity-list header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.customer-activity-list time, .customer-activity-list small { color: #78849a; font-size: 12px; }
.customer-activity-list p { margin: 5px 0; color: #46536a; }
@media (max-width: 620px) {
    .customer-panel-heading, .customer-activity-list header { align-items: start; flex-direction: column; gap: 6px; }
}

.transaction-detail-card { margin: 20px 0; padding: 22px; border: 1px solid #d9e4f8; border-radius: 18px; background: linear-gradient(145deg, #fff, #f6f9ff); box-shadow: 0 14px 34px rgba(36, 67, 128, .09); }
.transaction-detail-card.attention { border-color: #f2c5ca; background: linear-gradient(145deg, #fff, #fff7f7); }
.transaction-detail-card > header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.transaction-detail-card header span { color: #5373af; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.transaction-detail-card h2 { margin: 5px 0 0; }
.transaction-detail-card header a { color: #315fcb; font-weight: 700; text-decoration: none; }
.transaction-detail-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; margin: 20px 0 0; }
.transaction-detail-card dt { color: #738098; }
.transaction-detail-card dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.transaction-alert { display: flex; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fff0f1; color: #a9273a; }
.transaction-row-attention { background: #fff9f9; }
.transaction-reason { max-width: 240px; color: #ae2d3a !important; }
.transaction-review-form { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #eadde0; }
.transaction-review-form label { color: #5f6e87; font-weight: 750; }
.transaction-review-form select, .transaction-review-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d6e0f2; border-radius: 10px; background: #fff; color: #263650; }
.transaction-review-form small, .transaction-review-form button { grid-column: 2; justify-self: start; }
@media (max-width: 680px) {
    .transaction-detail-card > header, .transaction-alert { flex-direction: column; }
    .transaction-detail-card dl { grid-template-columns: 1fr; gap: 3px; }
    .transaction-detail-card dd { margin-bottom: 10px; }
    .transaction-review-form { grid-template-columns: 1fr; }
    .transaction-review-form small, .transaction-review-form button { grid-column: 1; }
}

.customer-detail-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.customer-detail-stats article,
.customer-detail-panel {
    padding: 20px;
    border: 1px solid #dce4ef;
    background: white;
}

.customer-detail-stats span,
.detail-line span {
    color: #60708a;
}

.customer-detail-stats strong {
    display: block;
    margin-top: 8px;
    color: #1769ff;
    font-size: 24px;
}

.customer-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.customer-detail-panel { margin-bottom: 16px; }
.customer-detail-panel h2 { margin-top: 0; }
.customer-detail-panel dl { display: grid; grid-template-columns: 110px 1fr; gap: 9px; margin-bottom: 0; }
.customer-detail-panel dt { color: #60708a; }
.customer-detail-panel dd { margin: 0; font-weight: 600; }
.detail-line { display: grid; gap: 5px; padding: 11px 0; border-bottom: 1px solid #e7edf5; }
.detail-line:last-child { border-bottom: 0; }
.customer-note-panel > p { color: #60708a; }
.customer-note-panel form { display: grid; gap: 8px; }
.customer-note-panel input,
.customer-note-panel textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd8e8; border-radius: 6px; font: inherit; }
.customer-note-panel textarea { resize: vertical; }
.customer-note-panel .button { justify-self: start; margin-top: 4px; border: 0; cursor: pointer; }

@media (max-width: 980px) {
    .customer-detail-stats { grid-template-columns: repeat(2, 1fr); }
    .customer-detail-grid { grid-template-columns: 1fr; }
}

.expiry-warning {
    color: #ae2d3a !important;
    font-weight: 700;
}

.table-action.renewal {
    display: inline-block;
    margin-top: 8px;
    border-color: #7259d9;
    color: #6545cf;
    white-space: nowrap;
}

.renewal-batch-form {
    margin-top: 10px;
    text-align: right;
}

.renewal-batch-form .button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.announcement-reach {
    margin: 16px 0 4px;
}

.announcement-reach > div {
    display: flex;
    justify-content: space-between;
    color: #607892;
    font-size: 12px;
}

.announcement-reach strong {
    color: #1769ff;
}

.announcement-reach-track {
    display: block;
    height: 6px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6eef9;
}

.announcement-reach-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1769ff, #7259d9);
}
