:root {
    --ops-canvas: #0b1218;
    --ops-rail: #071016;
    --ops-surface: #121c24;
    --ops-surface-2: #182430;
    --ops-border: #243848;
    --ops-text: #e8eef2;
    --ops-mute: #7a8b96;
    --ops-brand: #03647a;
    --ops-neon: #39ff14;
    --ops-stress: #f59e0b;
    --ops-fail: #ef4444;
    --ops-term: #0c0c0c;
    --ops-rail-w: 52px;
    --ops-rail-expanded-w: 220px;
    --sp-control-height: 28px;
    --sp-space-page-h: 12px;
    --sp-space-page-v: 8px;
    --sp-radius: 4px;
    --sp-radius-card: 6px;

    /* shadcn tokens (Vue main.css) */
    --background: 210 35% 7%;
    --foreground: 200 20% 93%;
    --card: 207 33% 11%;
    --card-foreground: 200 20% 93%;
    --primary: 191 95% 25%;
    --primary-foreground: 200 20% 93%;
    --secondary: 207 33% 14%;
    --secondary-foreground: 200 20% 93%;
    --muted: 207 33% 14%;
    --muted-foreground: 200 12% 54%;
    --accent: 191 50% 18%;
    --accent-foreground: 200 20% 93%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;
    --border: 207 33% 21%;
    --input: 207 33% 21%;
    --ring: 191 95% 35%;
    --radius: 0.375rem;
}

html, body {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    background: var(--ops-canvas);
    color: var(--ops-text);
    color-scheme: dark;
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

.ops-auth-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ops-shell {
    display: flex;
    height: 100vh;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
    background: var(--ops-canvas);
}

.ops-rail {
    width: var(--ops-rail-w);
    min-width: var(--ops-rail-w);
    height: 100%;
    align-self: stretch;
    background: var(--ops-rail);
    border-right: 1px solid var(--ops-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 4px;
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.16s ease, min-width 0.16s ease;
}

.ops-rail.is-expanded {
    width: var(--ops-rail-expanded-w);
    min-width: var(--ops-rail-expanded-w);
    align-items: stretch;
    padding: 8px 6px;
}

.ops-rail-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 0 4px;
    margin-bottom: 6px;
}

.ops-rail:not(.is-expanded) .ops-rail-head { flex-direction: column; }
.ops-rail.is-expanded .ops-rail-head { justify-content: flex-start; }

.ops-rail-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff;
    flex-shrink: 0;
}
.ops-rail-mark img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.ops-rail-brand {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--ops-text);
    flex: 1;
}
.ops-rail.is-expanded .ops-rail-brand { display: inline; }

.ops-rail-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    width: 100%;
}
.ops-rail.is-expanded .ops-rail-nav { align-items: stretch; }

.ops-rail-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ops-mute);
    background: transparent;
    border: 0;
    cursor: pointer;
    gap: 0;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.ops-rail.is-expanded .ops-rail-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0 8px;
    gap: 10px;
}
.ops-rail-btn:hover { background: var(--ops-surface-2); color: var(--ops-text); }
.ops-rail-btn.is-active { background: var(--ops-brand); color: var(--ops-text); }
.ops-rail-btn.logout { color: var(--ops-fail); }
.ops-rail-btn.logout:hover { background: rgba(239, 68, 68, 0.14); }

.ops-rail-icon {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.ops-rail-icon .mud-icon-root {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
}

.ops-rail-label {
    display: none;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.ops-rail.is-expanded .ops-rail-label { display: inline; }

.ops-rail-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    font-size: 9px;
    line-height: 14px;
    border-radius: 999px;
    background: var(--ops-fail);
    color: #fff;
    font-weight: 600;
    text-align: center;
}
.ops-rail.is-expanded .ops-rail-badge {
    position: static;
    margin-left: auto;
}

/* Rail dropdown flyout (replaces MudMenu — avoids activator indent) */
.ops-rail-dropdown {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}
.ops-rail.is-expanded .ops-rail-dropdown {
    justify-content: stretch;
}
.ops-rail-flyout {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    z-index: 1300;
    min-width: 180px;
    padding: 4px;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    background: var(--ops-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ops-rail-flyout-link {
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--ops-text);
    text-decoration: none;
    white-space: nowrap;
}
.ops-rail-flyout-link:hover {
    background: var(--ops-surface-2);
    color: var(--ops-text);
}

.ops-rail-foot {
    margin-top: auto;
    padding-top: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.ops-rail.is-expanded .ops-rail-foot { justify-content: stretch; }

.ops-rail-toggle {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--ops-mute);
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.ops-rail-toggle:hover {
    background: var(--ops-surface-2);
    color: var(--ops-text);
}
.ops-rail:not(.is-expanded) .ops-rail-toggle {
    width: 36px;
    height: 28px;
}

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

.ops-context {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    padding: 0 12px;
    border-bottom: 1px solid var(--ops-border);
    background: var(--ops-surface);
    flex-shrink: 0;
}

.ops-kicker {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ops-mute);
}

.ops-context-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ops-text);
}

.ops-context-meta {
    margin-left: auto;
    font-size: 11px;
    color: var(--ops-mute);
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

.ops-statusbar {
    border-top: 1px solid var(--ops-border);
    padding: 3px 10px;
    font-size: 11px;
    color: var(--ops-mute);
    background: var(--ops-rail);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.ops-page {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ops-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 12px 8px;
    border-bottom: 1px solid var(--ops-border);
    flex-shrink: 0;
}

.ops-page-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ops-text);
}

.ops-page-body {
    padding: 8px 12px;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.ops-client-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ops-client-shell > .ops-page-body {
    padding-top: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ops-monitoring-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 8px;
    overflow: hidden;
}

.ops-monitoring-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ops-chip-nav--embedded {
    padding-left: 0;
    padding-right: 0;
    border-bottom: none;
}

.login-container {
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    background: var(--ops-canvas);
    padding: 5rem 1rem 2rem;
    box-sizing: border-box;
}

.sp-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--sp-radius-card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.login-card {
    width: min(28rem, 100%);
}

.sp-card-header {
    display: grid;
    gap: 4px;
    padding: 12px 16px 0;
    text-align: center;
}

.login-logo-plate {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 16rem;
    margin: 0 auto 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff;
}

.login-logo {
    width: 100%;
    height: auto;
    display: block;
}

.sp-card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: hsl(var(--card-foreground));
}

.sp-card-desc {
    margin: 0;
    font-size: 12px;
    color: hsl(var(--muted-foreground));
}

.sp-card-content {
    display: grid;
    gap: 16px;
    padding: 0 16px;
}

.login-form {
    display: grid;
    gap: 16px;
    padding: 0 16px 16px;
}

.login-form .sp-card-footer {
    padding: 0;
}

.login-binary-ver {
    margin: 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
    color: hsl(var(--muted-foreground));
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    user-select: text;
}

.sp-field {
    display: grid;
    gap: 6px;
}

.sp-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: hsl(var(--foreground));
}

.sp-input {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 28px;
    padding: 0 8px;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--background) / 0.3);
    color: hsl(var(--foreground));
    font: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sp-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.sp-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.35);
}

.sp-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    user-select: none;
}

.sp-check-row input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: hsl(var(--primary));
    flex-shrink: 0;
}

.sp-error {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: hsl(var(--destructive));
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: calc(var(--radius) - 2px);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.sp-btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sp-btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
}

.sp-btn-block {
    width: 100%;
}

.top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 6px var(--sp-space-page-h) 8px !important;
    border-bottom: 1px solid var(--ops-border);
    background: hsl(var(--background));
    flex-shrink: 0;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.group-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ops-mute);
    margin-right: 2px;
}

.top-bar-spacer {
    flex: 1;
    min-width: 8px;
}

.ops-mud-select { min-width: 11rem; }
.ops-mud-search { min-width: 14rem; }

.mud-input-control { font-size: 12px; margin-top: 0 !important; margin-bottom: 0 !important; }
.mud-input { min-height: 28px !important; }
.mud-input-slot { font-size: 12px !important; }
.mud-select .mud-select-input { min-height: 28px !important; }
.mud-button-root { text-transform: none !important; font-size: 12px !important; min-height: 28px !important; }
.mud-table { font-size: 12px; }
.mud-table-cell { padding: 4px 8px !important; }
.mud-table-head .mud-table-cell { height: 28px; color: var(--ops-mute) !important; }
.mud-table-row { height: 28px; }

.mud-icon-root,
.mud-svg-icon,
.mud-button-root .mud-icon-root,
.mud-input-adornment .mud-icon-root,
.mud-select .mud-icon-root,
.mud-table-sort-label .mud-icon-root {
    width: 1rem !important;
    height: 1rem !important;
    font-size: 1rem !important;
}

.row-pri-critical { box-shadow: inset 3px 0 0 var(--ops-fail); }
.row-pri-high { box-shadow: inset 3px 0 0 var(--ops-stress); }
.row-pri-medium { box-shadow: inset 3px 0 0 #60a5fa; }
.row-pri-low { box-shadow: inset 3px 0 0 #34d399; }

.ops-chip-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--ops-border);
}

.ops-chip-nav a,
.ops-chip-nav button {
    border: 1px solid var(--ops-border);
    background: transparent;
    color: var(--ops-mute);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}
.ops-chip-nav a:hover,
.ops-chip-nav button:hover { color: var(--ops-text); background: var(--ops-surface-2); }
.ops-chip-nav a.is-active,
.ops-chip-nav button.is-active {
    background: var(--ops-brand);
    color: var(--ops-text);
    border-color: var(--ops-brand);
}

.ops-fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.ops-fleet-card {
    background: var(--ops-surface);
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ops-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}
.ops-week-day {
    background: var(--ops-surface);
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}
.ops-week-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-bottom: 1px solid var(--ops-border);
    font-size: 11px;
    font-weight: 600;
}
.ops-week-body { padding: 6px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ops-event {
    width: 100%;
    text-align: left;
    border: 0;
    border-left: 2px solid var(--ops-brand);
    background: var(--ops-surface-2);
    color: var(--ops-text);
    padding: 4px 6px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
}
.ops-event:hover { filter: brightness(1.12); }

.pulse-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    white-space: nowrap;
}
.pulse-label { line-height: 1; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pulse-up, .pulse-ok { color: var(--ops-neon); }
.pulse-up .pulse-dot, .pulse-ok .pulse-dot { background: var(--ops-neon); }
.pulse-stale, .pulse-stress { color: var(--ops-stress); }
.pulse-stale .pulse-dot, .pulse-stress .pulse-dot { background: var(--ops-stress); }
.pulse-off, .pulse-fail, .pulse-unknown { color: var(--ops-fail); }
.pulse-off .pulse-dot, .pulse-fail .pulse-dot, .pulse-unknown .pulse-dot { background: var(--ops-fail); }

.ops-worker-strip { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.ops-worker-chip {
    border: 1px solid var(--ops-border);
    background: var(--ops-surface);
    color: var(--ops-text);
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}
.ops-worker-chip:hover { background: var(--ops-surface-2); }
.ops-worker-chip .code { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; }
.ops-worker-chip .worker {
    color: var(--ops-mute);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}
.ops-worker-chip.is-active { border-color: var(--ops-brand); background: rgba(3, 100, 122, 0.28); }

.ops-svc-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 8px;
    overflow: hidden;
}
.ops-svc-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ops-svc-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    background: var(--ops-surface);
}
.ops-svc-table { width: 100%; }
.ops-svc-table .mud-table-cell { font-size: 12px; padding: 6px 10px !important; vertical-align: top; }
.ops-svc-table .mud-table-head .mud-table-cell { font-size: 11px; font-weight: 600; }
.ops-svc-col-state { width: 88px; min-width: 88px; white-space: nowrap; }
.ops-svc-col-queue { width: 70px; min-width: 70px; }
.ops-svc-col-service { min-width: 180px; }
.ops-svc-col-activity { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-svc-name {
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 2px;
}
.ops-svc-code {
    display: block;
    font-size: 11px;
    color: var(--ops-mute);
    line-height: 1.25;
}
.ops-svc-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-shrink: 0;
    max-height: 38%;
    min-height: 160px;
}
.ops-svc-detail-pane {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ops-svc-term {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
}
.ops-svc-history-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
}
@media (max-width: 960px) {
    .ops-svc-detail { grid-template-columns: 1fr; max-height: none; }
}

.ops-monitoring-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 32px;
    margin-bottom: 12px;
    font-size: 12px;
    max-width: 72rem;
}
@media (min-width: 768px) {
    .ops-monitoring-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ops-monitoring-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ops-monitoring-wide { grid-column: span 2; }
.ops-monitoring-services { flex-wrap: wrap; gap: 8px; }
.ops-monitoring-label { color: var(--ops-mute); flex-shrink: 0; }
.ops-monitoring-error { color: var(--ops-fail); font-size: 11px; }

.ops-chip-nav--sub {
    margin-top: 4px;
    padding-top: 0;
    border-top: none;
}
.ops-chip-nav--sub button,
.ops-chip-nav--sub a {
    font-size: 11px;
    padding: 4px 10px;
}

.ops-sql { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; }
.ops-term {
    background: var(--ops-term);
    color: #c8d6c0;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    padding: 8px;
    border-radius: 4px;
    white-space: pre-wrap;
    max-height: 180px;
    overflow: auto;
}

.mud-dialog { background: var(--ops-surface) !important; }
.mud-table-hover .mud-table-row:hover { background: var(--ops-surface-2) !important; }
.ops-click-row { cursor: pointer; }

.ops-denied {
    padding: 24px;
    color: var(--ops-mute);
    font-size: 13px;
}

.ops-split {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.ops-split-top {
    height: 42%;
    min-height: 140px;
    overflow: auto;
    border-bottom: 1px solid var(--ops-border);
    display: flex;
    flex-direction: column;
}
.ops-split-bottom {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ops-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 6px;
    border-top: 1px solid var(--ops-border);
    flex-shrink: 0;
    color: var(--ops-mute);
    font-size: 11px;
}
.ops-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--ops-mute);
    font-style: italic;
}
.ops-row-selected { background: var(--ops-surface-2) !important; }
.ops-tab-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
}
.ops-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    padding: 6px 12px 8px;
    border-bottom: 1px solid var(--ops-border);
    flex-shrink: 0;
}
.ops-filter-row .mud-input-control { min-width: 9rem; }
.ops-sql {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--ops-term);
    border: 1px solid var(--ops-border);
    border-radius: 4px;
    padding: 10px;
    max-height: 60vh;
    overflow: auto;
    color: var(--ops-neon);
}
.ops-edit-grid {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 8px 12px;
    align-items: center;
    max-width: 52rem;
}
.ops-edit-grid > .ops-label {
    text-align: right;
    color: var(--ops-mute);
    font-weight: 600;
    font-size: 12px;
}
.ops-svn-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    background: var(--ops-surface);
    border: 1px solid var(--ops-border);
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 12px;
}
.ops-svn-info dt { font-weight: 600; text-align: right; color: var(--ops-mute); }
.ops-svn-info dd { font-family: "JetBrains Mono", ui-monospace, monospace; margin: 0; }
.ops-error {
    color: var(--ops-fail);
    padding: 8px 10px;
    border: 1px solid var(--ops-fail);
    background: rgba(239, 68, 68, 0.12);
    border-radius: 4px;
    margin-bottom: 8px;
}
.ops-note { color: var(--ops-mute); font-style: italic; font-size: 11px; }
.ops-card {
    border: 1px solid var(--ops-border);
    background: var(--ops-surface);
    border-radius: 4px;
    padding: 10px;
}
.ops-card.is-active { box-shadow: inset 0 0 0 2px var(--ops-brand); }
.ops-card:hover { background: var(--ops-surface-2); cursor: pointer; }
.ops-modules {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 1fr 1fr;
    flex: 1;
    min-height: 0;
}
.ops-mod-rail {
    grid-row: 1 / 2;
    border-right: 1px solid var(--ops-border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--ops-surface);
}
.ops-mod-main {
    grid-row: 1 / 2;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ops-mod-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--ops-border);
    min-height: 0;
    overflow: auto;
}
.ops-mod-list { flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ops-label-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.ops-label-row span:first-child { color: var(--ops-mute); }
.ops-stat {
    border: 1px solid var(--ops-border);
    background: var(--ops-surface-2);
    border-radius: 4px;
    padding: 8px;
}
.ops-stat-label { font-size: 10px; text-transform: uppercase; color: var(--ops-mute); }
.ops-stat-value { font-size: 16px; font-weight: 700; }
.ops-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-warn {
    font-size: 11px;
    color: var(--ops-stress);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 4px;
    padding: 6px 8px;
}
.ops-meta-grid {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 4px 8px;
    font-size: 12px;
}
.ops-meta-k { color: var(--ops-mute); font-weight: 600; }
.ops-drawer-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 12px;
    min-height: 0;
    height: calc(85vh - 8rem);
}
.ops-binary-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
    min-height: 0;
    flex: 1;
}

.ops-overlay-center {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 12px;
}

.ops-ticket-sheet {
    width: min(90vw, 1400px);
    height: 90vh;
    background: var(--ops-surface);
    border: 1px solid var(--ops-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ops-ticket-sheet-head,
.ops-ticket-sheet-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    flex-shrink: 0;
}

.ops-ticket-sheet-head { border-bottom: 1px solid var(--ops-border); }
.ops-ticket-sheet-foot {
    border-top: 1px solid var(--ops-border);
    background: var(--ops-surface-2);
}

.ops-ticket-sheet-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 8px 12px;
}

.ops-split {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.ops-split-top {
    display: flex;
    height: 40%;
    min-height: 140px;
    border-bottom: 1px solid var(--ops-border);
}

.ops-split-left {
    width: 25%;
    border-right: 1px solid var(--ops-border);
    overflow: auto;
}

.ops-split-right {
    width: 75%;
    overflow: auto;
}

.ops-split-bottom {
    height: 60%;
    overflow: auto;
}

.ops-sql {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    white-space: pre-wrap;
    background: var(--ops-term);
    padding: 8px;
    border-radius: 4px;
    max-height: 240px;
    overflow: auto;
}

.ops-comment-html p { margin: 0; }

.ops-kind-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    padding: 12px;
    border: 1px solid var(--ops-border);
    border-radius: 6px;
    background: var(--ops-surface-2);
    cursor: pointer;
    width: 100%;
    color: inherit;
}

.ops-kind-card.is-on {
    border-color: var(--ops-brand);
    box-shadow: 0 0 0 1px var(--ops-brand);
}

.ops-details-grid {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr) 9rem minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
}

.ops-details-span { grid-column: 2 / 5; }

.ql-container { font-size: 12px; }
.ql-toolbar.ql-snow { border-color: var(--ops-border); background: var(--ops-surface-2); }
.ql-container.ql-snow { border-color: var(--ops-border); }

.ops-rel-split {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.ops-rel-top {
    height: 42%;
    min-height: 140px;
    overflow: auto;
    border-bottom: 1px solid var(--ops-border);
    display: flex;
    flex-direction: column;
}
.ops-rel-bottom {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ops-rel-tabs { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ops-rel-tabs .mud-tabs-panels { flex: 1; min-height: 0; overflow: hidden; }
