:root {
    color-scheme: dark;
    --black-1: #080a0d;
    --black-2: #0d1013;
    --surface-1: #0b0e12;
    --surface-2: #12161b;
    --surface-3: #1a1f26;
    --surface-4: #222832;
    --border-1: rgba(255, 255, 255, .075);
    --border-2: rgba(255, 255, 255, .14);
    --text-1: #f2f4f7;
    --text-2: #9aa3ae;
    --text-3: #606a77;
    --green: #2fbf78;
    --green-soft: #7fe3ab;
    --green-deep: #156e46;
    --blue: #4c86ff;
    --blue-soft: #8fb4ff;
    --orange: #e0923a;
    --red: #e05a4a;
    --teal: #2fb8b0;
    --radius-sm: 8px;
    --radius-md: 13px;
    --radius-lg: 19px;
    --font-body: Inter, "Segoe UI", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--black-1);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

:focus-visible {
    outline: 2px solid var(--blue-soft);
    outline-offset: 2px;
}

h1:focus-visible { outline: none; }

::selection { background: var(--green-deep); color: white; }

.mono { font-family: var(--font-mono); letter-spacing: -.015em; }
.muted { color: var(--text-3); }
.text-danger { color: var(--red); }
.text-warning { color: var(--orange); }
.text-success { color: var(--green-soft); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.global-header {
    position: sticky;
    top: 0;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 22px;
    background: rgba(10, 13, 16, .96);
    border-bottom: 1px solid var(--border-1);
    backdrop-filter: blur(16px);
    z-index: 80;
}

.brand, .login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text-1);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.035em;
}

.brand { flex: 0 0 auto; padding: 0; }
.brand strong, .login-brand strong { font-weight: 500; color: var(--text-2); }
.brand-mark { width: 31px; height: 31px; flex: 0 0 auto; }

.nav-list { min-width: 0; display: flex; align-items: center; gap: 3px; }
.nav-section-label {
    padding: 0 7px 0 2px;
    color: var(--text-3);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nav-separator { width: 1px; height: 24px; margin: 0 8px; background: var(--border-1); }
.nav-item {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border-radius: 9px;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 140ms ease, background 140ms ease;
}
.nav-item:hover { color: var(--text-1); background: rgba(255,255,255,.035); }
.nav-item.active { color: var(--text-1); background: var(--surface-3); }
.nav-icon { width: 15px; color: var(--text-3); font-family: var(--font-mono); text-align: center; }
.nav-item.active .nav-icon { color: var(--green-soft); }
.nav-item-disabled { opacity: .38; cursor: not-allowed; }
.nav-item-disabled:hover { color: var(--text-2); background: transparent; }

.global-identity {
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 11px;
}
.session-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 10px; }
.session-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47,191,120,.08); }
.identity-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.identity-copy strong { font-size: 11px; }
.identity-login { max-width: 190px; overflow: hidden; color: var(--text-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { width: 34px; height: 34px; border: 1px solid var(--border-1); border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; }
.logout-button:hover { border-color: var(--border-2); background: var(--surface-3); color: var(--text-1); }
.text-button {
    padding: 5px 0 0;
    border: 0;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    font-size: 12px;
}
.text-button:hover { color: var(--text-1); }

.app-content { min-width: 0; min-height: calc(100vh - 62px); }
.eyebrow {
    color: var(--text-3);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    background: transparent;
    color: var(--text-1);
    font-weight: 650;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.button:hover:not(:disabled) { border-color: rgba(255,255,255,.25); background: var(--surface-3); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .38; cursor: not-allowed; }
.button-primary { border-color: var(--green); background: var(--green); color: #07110c; }
.button-primary:hover:not(:disabled) { border-color: var(--green-soft); background: var(--green-soft); }
.button-danger { border-color: color-mix(in srgb, var(--red) 60%, transparent); color: #ffb5ae; }
.button-danger:hover:not(:disabled) { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.button-ghost { border-color: transparent; color: var(--text-2); }
.button-small { min-height: 32px; padding: 0 12px; font-size: 12px; }
.button-large { min-height: 48px; width: 100%; border-radius: 11px; }

.icon-button {
    width: 34px; height: 34px;
    display: inline-grid; place-items: center;
    border: 1px solid var(--border-1);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--text-2);
    cursor: pointer;
}
.icon-button:hover { color: var(--text-1); border-color: var(--border-2); }

.login-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 32px 20px;
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        var(--black-1);
    background-size: 52px 52px;
}
.login-ambient { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(100px); opacity: .09; }
.login-ambient-one { top: -240px; left: 12%; background: var(--blue); }
.login-ambient-two { bottom: -300px; right: 9%; background: var(--green); }
.login-card {
    position: relative;
    width: min(430px, 100%);
    padding: 30px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface-2) 92%, transparent);
    box-shadow: 0 28px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.025);
    backdrop-filter: blur(18px);
}
.login-brand { margin-bottom: 38px; }
.login-copy h1 { margin: 7px 0 9px; font-size: 31px; letter-spacing: -.045em; }
.login-copy p { margin: 0; color: var(--text-2); line-height: 1.6; }
.login-form { display: flex; flex-direction: column; gap: 16px; margin-top: 27px; }
.login-form label { display: flex; flex-direction: column; gap: 7px; color: var(--text-2); font-size: 12px; font-weight: 600; }
.login-form input, .field-input, .search-input, .field-select, .json-editor {
    width: 100%;
    border: 1px solid var(--border-2);
    border-radius: 10px;
    background: var(--surface-1);
    color: var(--text-1);
}
.login-form input { height: 46px; padding: 0 13px; }
.login-form input:focus, .field-input:focus, .search-input:focus, .field-select:focus, .json-editor:focus { border-color: var(--blue); outline: 3px solid color-mix(in srgb, var(--blue) 14%, transparent); }
.login-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(600px, 73vw, 1000px);
    max-width: none;
    opacity: .2;
    transform: translate(-18%, -47%) rotate(-7deg);
    filter: saturate(.9) drop-shadow(0 0 24px rgba(48, 165, 173, .12));
    pointer-events: none;
    user-select: none;
}
.login-card { z-index: 1; }

@media (max-width: 720px) {
    .login-watermark { width: 640px; opacity: .085; transform: translate(-46%, -45%) rotate(-7deg); }
}

.alert { display: flex; gap: 10px; padding: 12px 13px; margin-top: 18px; border: 1px solid var(--border-2); border-radius: 10px; }
.alert > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.alert > div { display: flex; flex-direction: column; gap: 3px; }
.alert small { color: var(--text-2); }
.alert-danger { border-color: color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red) 8%, transparent); }
.alert-danger > span { background: var(--red); color: white; }
.alert-warning { border-color: color-mix(in srgb, var(--orange) 40%, transparent); background: color-mix(in srgb, var(--orange) 8%, transparent); }
.alert-info { border-color: color-mix(in srgb, var(--teal) 40%, transparent); background: color-mix(in srgb, var(--teal) 7%, transparent); }

.page-header {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border-1);
    background: rgba(13,16,19,.82);
    backdrop-filter: blur(16px);
}
.page-header h1 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.035em; }
.page-header-copy { display: flex; flex-direction: column; }
.page-actions { display: flex; align-items: center; gap: 9px; }

.empty-state {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    max-width: 520px;
    margin: auto;
    padding: 30px;
}
.empty-state h1 { margin: 0; font-size: 30px; }
.empty-state p { margin: 0 0 8px; color: var(--text-2); line-height: 1.6; }

.loading-block { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.spinner {
    width: 16px; height: 16px;
    border: 2px solid var(--border-2);
    border-top-color: var(--green-soft);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.card {
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    background: var(--surface-1);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--border-1);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.status-good { color: var(--green-soft); }
.status-good::before { background: var(--green); box-shadow: 0 0 8px rgba(47,191,120,.35); }
.status-info { color: var(--blue-soft); }
.status-info::before { background: var(--blue); }
.status-warning { color: #f0b56f; }
.status-warning::before { background: var(--orange); }
.status-danger { color: #f09a90; }
.status-danger::before { background: var(--red); }

.error-boundary { padding: 20px; color: var(--red); }

.runtime-console-shell {
    min-height: calc(100vh - 62px);
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
}
.runtime-explorer {
    position: sticky;
    top: 62px;
    height: calc(100vh - 62px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-right: 1px solid var(--border-1);
    background: #0d1014;
}
.explorer-tools { padding: 18px 16px 14px; border-bottom: 1px solid var(--border-1); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box > span { position: absolute; left: 13px; z-index: 1; color: var(--text-3); font: 18px var(--font-mono); }
.search-input { height: 44px; padding: 0 12px 0 39px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.filter-pill {
    min-height: 27px;
    padding: 0 10px;
    border: 1px solid var(--border-1);
    border-radius: 999px;
    background: transparent;
    color: var(--text-3);
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
}
.filter-pill:hover, .filter-pill.active { border-color: var(--border-2); color: var(--text-1); background: var(--surface-2); }
.explorer-list { min-height: 0; overflow-y: auto; }
.explorer-host { border-bottom: 1px solid var(--border-1); }
.host-row {
    width: 100%; min-height: 47px;
    display: grid; grid-template-columns: 15px minmax(0, 1fr) auto 8px; align-items: center; gap: 8px;
    padding: 0 15px;
    border: 0; background: transparent; color: var(--text-1); cursor: pointer; text-align: left;
}
.host-row:hover { background: rgba(255,255,255,.018); }
.host-chevron { color: var(--text-3); font-size: 10px; }
.host-name { overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.host-count { color: var(--text-3); font-size: 10px; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.connection-dot.online { background: var(--green); box-shadow: 0 0 8px rgba(47,191,120,.45); }
.host-slots { display: flex; flex-direction: column; }
.slot-row {
    position: relative;
    min-height: 69px;
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    padding: 10px 15px 10px 44px;
    border: 0; border-top: 1px solid var(--border-1);
    background: transparent; color: var(--text-1); text-align: left; cursor: pointer;
}
.slot-row:hover { background: rgba(255,255,255,.024); }
.slot-row.selected { background: var(--surface-3); }
.slot-row.selected::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--green); }
.slot-row-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slot-row-main strong { flex-shrink: 0; font-size: 13px; }
.slot-status { color: var(--text-3); font-size: 10px; font-weight: 700; text-align: right; }
.slot-status.good { color: var(--green-soft); }
.slot-status.info { color: var(--blue-soft); }
.slot-status.warning { color: var(--orange); }
.slot-status.danger { color: var(--red); }
.slot-row-meta { overflow: hidden; color: var(--text-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.host-empty, .explorer-empty { padding: 18px; color: var(--text-3); font-size: 11px; }
.explorer-empty { display: flex; flex-direction: column; gap: 5px; align-items: center; text-align: center; }
.explorer-empty strong { color: var(--text-2); }
.explorer-footer { padding: 13px 16px; border-top: 1px solid var(--border-1); color: var(--text-3); font-size: 10px; line-height: 1.5; }

.runtime-workspace { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - 62px); }
.runtime-header { position: sticky; top: 62px; z-index: 10; border-bottom: 1px solid var(--border-1); background: rgba(13,16,20,.92); backdrop-filter: blur(15px); }
.runtime-title-row { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 27px; }
.runtime-breadcrumb { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--text-3); }
.runtime-breadcrumb h1 { margin: 0; color: var(--text-1); font-size: 19px; white-space: nowrap; }
.copy-id { max-width: 260px; overflow: hidden; padding: 4px 0; border: 0; background: transparent; color: var(--text-2); cursor: pointer; text-overflow: ellipsis; white-space: nowrap; }
.copy-id:hover:not(:disabled) { color: var(--text-1); }
.copy-id:disabled { cursor: default; }
.status-strip { display: flex; gap: 7px; padding: 0 27px 13px; overflow-x: auto; }
.workspace-alert { margin: 14px 25px 0; }
.workspace-tabs { display: flex; gap: 28px; min-height: 55px; padding: 0 27px; border-bottom: 1px solid var(--border-1); }
.workspace-tabs button, .inspector-tabs button, .drawer-tabs button {
    position: relative; padding: 0; border: 0; background: transparent; color: var(--text-3); font-weight: 650; cursor: pointer;
}
.workspace-tabs button.active, .inspector-tabs button.active, .drawer-tabs button.active { color: var(--text-1); }
.workspace-tabs button.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--green); }
.workspace-content { flex: 1; min-width: 0; padding: 24px 26px 38px; }
.workspace-content.targets-active { padding: 0; }
.workspace-empty { min-height: 430px; }
.console-loading { min-height: 100vh; display: grid; place-items: center; }

.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1420px; }
.overview-card { padding: 20px; }
.overview-grid .property-list > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-source { color: var(--text-3); font-size: 10px; }
.property-list { display: flex; flex-direction: column; gap: 15px; margin: 21px 0 0; }
.property-list > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr); align-items: baseline; gap: 14px; }
.property-list dt { color: var(--text-3); }
.property-list dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-weight: 550; }
.inline-empty { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; padding: 22px; color: var(--text-2); }
.inline-empty strong { color: var(--text-1); }
.inline-empty span { max-width: 550px; color: var(--text-3); line-height: 1.6; }
.inline-empty.large { min-height: 300px; align-items: center; text-align: center; }
.activity-summary { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.activity-summary > div { display: flex; align-items: center; justify-content: space-between; }
.activity-summary > span { color: var(--text-3); font-size: 11px; }
.safe-problem { padding: 9px; border-radius: 8px; background: color-mix(in srgb, var(--red) 8%, transparent); color: #f09a90 !important; }
.overview-alert, .overview-diagnostics { grid-column: 1 / -1; }
.overview-diagnostics { padding: 16px 20px; }
.overview-diagnostics > summary { color: var(--text-2); font-size: 12px; cursor: pointer; }
.overview-diagnostics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.targets-browser { min-height: calc(100vh - 255px); display: grid; grid-template-columns: 260px minmax(0, 1fr); background: #090c0f; }
.targets-browser.catalog-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.targets-browser.catalog-collapsed .target-list-panel { visibility: hidden; overflow: hidden; }
.targets-browser.focus-mode { position: fixed; inset: 62px 0 0; z-index: 70; min-height: 0; grid-template-columns: 0 minmax(0, 1fr); background: var(--black-1); }
.targets-browser.focus-mode .target-list-panel { visibility: hidden; overflow: hidden; }
.target-list-panel { display: grid; grid-template-rows: auto minmax(0,1fr) auto; border-right: 1px solid var(--border-1); background: var(--surface-1); }
.target-search { padding: 16px; border-bottom: 1px solid var(--border-1); }
.target-search > span { display: block; margin-top: 10px; color: var(--text-3); font-size: 10px; line-height: 1.45; }
.target-list { min-height: 0; overflow-y: auto; }
.target-row { width: 100%; min-height: 82px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 14px 17px; border: 0; border-bottom: 1px solid var(--border-1); background: transparent; color: var(--text-1); text-align: left; cursor: pointer; }
.target-row:hover { background: rgba(255,255,255,.022); }
.target-row.selected { background: var(--surface-3); box-shadow: inset 3px 0 var(--green); }
.target-row-all { min-height: 72px; }
.target-id { font-weight: 650; }
.operation-count { color: var(--text-3); font-size: 10px; }
.target-row.selected .operation-count { color: var(--green-soft); }
.target-meta { grid-column: 1 / -1; color: var(--text-3); font-size: 10px; }
.target-list-panel > footer { padding: 13px 16px; border-top: 1px solid var(--border-1); color: var(--text-3); font-size: 10px; line-height: 1.5; }
.target-workspace { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.target-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 22px; border-bottom: 1px solid var(--border-1); background: var(--surface-1); }
.target-header h2 { margin: 0 0 7px; font-size: 19px; }
.target-revision { color: var(--text-3); font-size: 10px; }
.target-header-actions { display: flex; align-items: center; gap: 8px; }
.all-targets-header { background: var(--surface-1); }
.all-target-tree { min-height: 390px; flex: 1; overflow: auto; padding: 14px 22px 30px; background: #090c0f; }
.all-target-state { overflow: hidden; border-bottom: 1px solid var(--border-1); background: transparent; }
.all-target-state:first-of-type { border-top: 1px solid var(--border-1); }
.all-target-state[open] { background: rgba(255,255,255,.012); }
.all-target-state > summary { min-height: 54px; display: flex; align-items: center; gap: 13px; padding: 9px 12px; cursor: pointer; list-style-position: inside; }
.all-target-state > summary:hover { background: rgba(255,255,255,.022); }
.all-target-summary-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.all-target-summary-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-target-summary-main span { color: var(--text-3); font-size: 10px; }
.all-target-state-body { min-height: 70px; padding: 9px 12px 17px 28px; border-top: 1px solid var(--border-1); background: var(--black-1); }
.all-target-state-body > .json-tree-root { overflow-x: auto; }
.inspector-tabs { min-height: 45px; display: flex; align-items: center; gap: 27px; padding: 0 22px; border-bottom: 1px solid var(--border-1); }
.snapshot-inspector { min-height: 390px; flex: 1; overflow: auto; padding: 14px 22px 24px; border-bottom: 1px solid var(--border-1); background: #090c0f; }
.json-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 36px; margin-bottom: 8px; color: var(--text-3); font-size: 10px; }
.tree-inspector-toolbar { position: sticky; top: -14px; z-index: 4; min-height: 51px; padding: 7px 0; background: rgba(9,12,15,.96); backdrop-filter: blur(10px); }
.all-target-tree > .tree-inspector-toolbar { top: -14px; }
.tree-search { width: min(520px, 55%); }
.tree-search .search-input { height: 38px; }
.target-state-toolbar { min-height: 30px; margin-bottom: 4px; }
.json-tree-root, .raw-json { font-size: 12px; line-height: 1.45; }
.raw-json { max-height: 540px; margin: 0; overflow: auto; padding: 15px; border: 1px solid var(--border-1); border-radius: 10px; background: var(--black-1); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.json-tree-root { min-width: 0; padding: 5px 0 14px; }
.json-tree-children { position: relative; }
.json-tree-branch > .json-tree-children::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--json-depth, 0) * 20px + 12px); width: 1px; background: var(--border-1); }
.json-tree-node { --node-indent: calc(var(--json-depth, 0) * 20px); min-width: max-content; }
.json-tree-row { min-height: 29px; display: grid; grid-template-columns: 22px minmax(90px, auto) minmax(0, 1fr) auto auto; align-items: center; column-gap: 7px; padding: 2px 5px 2px var(--node-indent); border-radius: 5px; }
.json-tree-row:hover { background: rgba(255,255,255,.028); }
.json-tree-toggle, .json-tree-key, .json-tree-value, .json-tree-copy { min-height: 25px; padding: 2px 4px; border: 0; border-radius: 4px; background: transparent; font: inherit; text-align: left; }
.json-tree-toggle { position: relative; z-index: 1; color: var(--text-3); cursor: pointer; text-align: center; }
.json-tree-toggle:hover { background: var(--surface-3); color: var(--text-1); }
.json-tree-key { color: #bdc6d1; cursor: copy; }
.json-tree-key:hover, .json-tree-value:hover { background: var(--surface-3); color: var(--text-1); }
.json-tree-count { color: var(--text-3); font-size: 10px; }
.json-tree-leaf-spacer { width: 22px; }
.json-tree-value { max-width: min(760px, 58vw); overflow: hidden; color: var(--text-2); cursor: copy; text-overflow: ellipsis; white-space: nowrap; }
.json-tree-copy { opacity: 0; color: var(--text-3); cursor: pointer; font-size: 9px; }
.json-tree-row:hover .json-tree-copy, .json-tree-copy:focus-visible { opacity: 1; }
.json-tree-copy:hover { color: var(--green-soft); }
.json-string { color: var(--green-soft); }
.json-number { color: var(--blue-soft); }
.json-true, .json-false { color: #d6a8ff; }
.json-null, .json-undefined { color: var(--text-3); font-style: italic; }
.json-tree-limit { margin-left: calc(var(--json-depth, 0) * 20px + 28px); padding: 7px; color: var(--orange); font-size: 10px; }
.target-operations { flex: 0 0 auto; padding: 17px 22px 24px; }
.section-heading h3 { margin: 5px 0 0; font-size: 18px; }
.no-operations { padding: 16px; border: 1px dashed var(--border-2); border-radius: 9px; color: var(--text-3); }
.operation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 11px; margin-top: 16px; }
.operation-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; border: 1px solid var(--border-1); border-radius: 10px; background: var(--surface-2); }
.operation-card > div { display: flex; flex-direction: column; gap: 6px; }
.operation-card span { color: var(--text-3); font-size: 10px; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.58); backdrop-filter: blur(2px); }
.command-drawer { position: fixed; inset: 0 0 0 auto; z-index: 101; width: min(520px, 100vw); display: flex; flex-direction: column; border-left: 1px solid var(--border-2); background: var(--surface-2); box-shadow: -30px 0 80px rgba(0,0,0,.45); }
.drawer-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border-1); }
.drawer-header h2 { margin: 4px 0 1px; font-size: 20px; }
.drawer-target { color: var(--text-3); font-size: 11px; }
.command-address { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px 20px; border-bottom: 1px solid var(--border-1); background: var(--surface-1); }
.command-address div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.command-address span { color: var(--text-3); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.command-address strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.command-alert { margin: 12px 16px 0; }
.drawer-tabs { min-height: 47px; display: flex; align-items: center; gap: 22px; padding: 0 20px; border-bottom: 1px solid var(--border-1); }
.drawer-tabs button:disabled { opacity: .35; cursor: not-allowed; }
.schema-label { margin-left: auto; color: var(--text-3); font-size: 9px; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 19px 20px; }
.composer-body { display: flex; flex-direction: column; gap: 14px; }
.drawer-footer { display: flex; flex-direction: column; gap: 11px; padding: 14px 20px 17px; border-top: 1px solid var(--border-1); background: var(--surface-1); }
.drawer-actions { display: flex; gap: 8px; }
.drawer-actions-row { flex-direction: row; }
.json-preview, .json-review { max-height: 150px; overflow: auto; margin: 7px 0 0; padding: 10px; border: 1px solid var(--border-1); border-radius: 8px; background: var(--black-1); color: var(--green-soft); font: 10px/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.one-shot-note { color: var(--text-3); font-size: 10px; }
.schema-field { display: flex; flex-direction: column; gap: 7px; }
.schema-field-label { display: flex; align-items: center; gap: 7px; color: var(--text-1); font-size: 11px; font-weight: 650; }
.schema-field-label strong { color: var(--orange); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.schema-field-label small { color: var(--text-3); font-size: 9px; font-weight: 400; }
.field-description { color: var(--text-3); font-size: 10px; line-height: 1.45; }
.field-input, .field-select { min-height: 39px; padding: 0 11px; }
.schema-object, .schema-array-editor { display: flex; flex-direction: column; gap: 12px; }
.schema-property, .schema-array-item { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border-1); border-radius: 9px; background: var(--surface-1); }
.schema-field-object > .schema-object { padding-left: 0; }
.remove-field { align-self: flex-start; padding: 0; border: 0; background: transparent; color: var(--text-3); font-size: 9px; cursor: pointer; }
.remove-field:hover { color: var(--red); }
.add-field { display: flex; flex-direction: column; gap: 6px; color: var(--green-soft); font-size: 10px; font-weight: 650; }
.no-parameters { padding: 13px; border: 1px dashed var(--border-2); border-radius: 8px; color: var(--text-2); }
.json-editor-label { display: flex; flex-direction: column; gap: 7px; color: var(--text-2); font-size: 10px; font-weight: 650; }
.json-editor { resize: vertical; padding: 12px; font-size: 11px; line-height: 1.65; }
.review-body h3 { margin: 7px 0; font-size: 21px; }
.review-body p { margin: 0 0 16px; color: var(--text-2); line-height: 1.55; }
.json-review { max-height: 330px; color: var(--text-1); font-size: 11px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; }
.result-heading h3 { margin: 5px 0 0; font-size: 24px; }
.command-timeline { display: flex; align-items: center; gap: 5px; margin: 20px 0; }
.command-timeline span { flex: 1; padding: 7px 4px; border: 1px solid var(--border-1); border-radius: 999px; color: var(--text-3); font-size: 9px; text-align: center; }
.command-timeline span.reached { border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 9%, transparent); color: var(--green-soft); }
.result-identifiers { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.result-identifiers div { display: flex; flex-direction: column; gap: 4px; }
.result-identifiers dt { color: var(--text-3); font-size: 9px; text-transform: uppercase; }
.result-identifiers dd { margin: 0; overflow-wrap: anywhere; font-size: 10px; }
.safe-output { margin-top: 17px; padding: 14px; border: 1px solid var(--border-1); border-radius: 10px; background: var(--black-1); }
.safe-output .json-tree-root { margin-top: 11px; }
.unknown-note { padding: 12px; border-left: 2px solid var(--orange); background: color-mix(in srgb, var(--orange) 7%, transparent); color: var(--text-2); line-height: 1.5; }
.confirm-dialog { position: fixed; top: 50%; left: 50%; z-index: 102; width: min(480px, calc(100vw - 28px)); padding: 24px; transform: translate(-50%,-50%); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.confirm-dialog h2 { margin: 8px 0 10px; }
.confirm-dialog p { color: var(--text-2); line-height: 1.55; }

.registry-page { padding: 22px 26px 40px; }
.operations-panel { max-width: 1100px; }
.operations-stream { display: flex; flex-direction: column; gap: 11px; }
.history-item { padding: 16px; }
.history-item > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.history-item > header > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.history-item > header span { color: var(--text-3); font-size: 10px; }
.history-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; color: var(--text-3); font-size: 11px; overflow-wrap: anywhere; }
.history-configuration { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; color: var(--text-2); font-size: 12px; overflow-wrap: anywhere; }
.history-configuration .mono { color: var(--text-3); font-size: 11px; }
.history-details-toggle, .history-details > summary { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 11px; cursor: pointer; }
.history-details-toggle::before { content: '▸'; margin-right: 6px; }
.history-details-toggle[aria-expanded="true"]::before { content: '▾'; }
.history-identifiers { display: flex; flex-direction: column; gap: 7px; margin: 12px 0; font-size: 11px; }
.history-identifiers > div { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.history-identifiers dt { color: var(--text-3); }
.history-identifiers dd { margin: 0; overflow-wrap: anywhere; }
.history-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; color: var(--text-3); font-size: 11px; }
.history-problem { display: flex; flex-direction: column; gap: 4px; margin-top: 11px; padding: 9px 11px; border-radius: 8px; background: color-mix(in srgb, var(--red) 7%, transparent); color: var(--text-2); font-size: 10px; }
.history-problem .mono { color: #ef9b91; }
.nested-attempts { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0 14px; padding-left: 15px; border-left: 1px solid var(--border-2); }
.attempt-row { padding: 10px 0; }
.attempt-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.attempt-title > span { font-size: 11px; }
.attempt-title > .mono { color: var(--text-3); }
.attempt-title .status-badge { margin-left: auto; }
.system-attempt { opacity: .88; }

.registry-toolbar { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.registry-search { width: min(430px, 100%); }
.registry-toolbar .filter-pills { margin: 0; }
.toolbar-note { margin-left: auto; color: var(--text-3); font-size: 10px; }
.registry-loading { min-height: 350px; justify-content: center; }
.registry-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
.registry-layout.detail-open { grid-template-columns: minmax(0, 1fr) 390px; }
.table-card { min-width: 0; overflow: hidden; }
.data-table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th { padding: 11px 13px; border-bottom: 1px solid var(--border-2); color: var(--text-3); font-size: 9px; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px; border-bottom: 1px solid var(--border-1); color: var(--text-2); vertical-align: top; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover, .data-table tbody tr.selected { background: var(--surface-3); }
.data-table td small { display: block; margin-top: 5px; color: var(--text-3); font-size: 9px; }
.data-table td strong { color: var(--text-1); }
.table-footnote { padding: 11px 14px; color: var(--text-3); font-size: 9px; line-height: 1.5; }
.host-detail { position: sticky; top: 15px; align-self: start; max-height: calc(100vh - 30px); overflow-y: auto; padding: 18px; }
.host-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.host-detail h2 { margin: 6px 0 0; font-size: 16px; }
.host-detail-status { display: flex; gap: 7px; margin-top: 15px; }
.detail-properties { padding: 15px 0; border-bottom: 1px solid var(--border-1); }
.detail-properties > div { grid-template-columns: 1fr; gap: 4px; }
.detail-properties dd { text-align: left; }
.host-detail-slots { margin-top: 19px; }
.host-slot-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-1); }
.host-slot-link:hover strong { color: var(--green-soft); }
.host-slot-link > div { display: flex; flex-direction: column; gap: 5px; }
.host-slot-link .mono { color: var(--text-3); font-size: 9px; }
.enrollment-key-card { display: flex; flex-direction: column; gap: 14px; margin-bottom: 15px; padding: 18px; border-color: color-mix(in srgb, var(--green) 33%, var(--border-1)); background: linear-gradient(115deg, color-mix(in srgb, var(--green) 7%, var(--surface-2)), var(--surface-2) 55%); }
.enrollment-key-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.enrollment-key-heading h2 { margin: 5px 0 0; font-size: 18px; }
.enrollment-key-card > p { max-width: 830px; margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.55; }
.enrollment-key-value { display: flex; align-items: center; gap: 10px; padding: 10px 11px 10px 14px; border: 1px solid var(--border-2); border-radius: 9px; background: var(--black-1); }
.enrollment-key-value code { min-width: 0; flex: 1; overflow-x: auto; color: var(--green-soft); font-size: 12px; white-space: nowrap; }
.enrollment-key-value .button { flex: 0 0 auto; }
.enrollment-key-command { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; color: var(--text-3); font-size: 9px; }
.enrollment-key-command > span { color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.enrollment-key-command code { min-width: 0; overflow: hidden; color: var(--text-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.enrollment-key-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 3px; color: var(--text-3); font-size: 9px; }

.configurations-page { padding: 22px 26px 40px; }
.configuration-page-header { align-items: center; }
.bookmaker-catalog { margin-bottom: 17px; padding: 17px; }
.bookmaker-catalog h2 { margin: 5px 0 0; font-size: 18px; }
.bookmaker-catalog-content { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 17px; }
.bookmaker-tags { display: flex; flex: 1; flex-wrap: wrap; gap: 7px; align-items: center; }
.bookmaker-tag { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 10px; border: 1px solid var(--border-1); border-radius: 8px; background: var(--surface-1); font-size: 11px; }
.bookmaker-tag > span { color: var(--text-3); font-size: 9px; }
.bookmaker-create { display: grid; flex: 0 1 540px; grid-template-columns: minmax(105px, .7fr) minmax(150px, 1fr) auto; gap: 8px; }
.configurations-loading { min-height: 380px; justify-content: center; }
.configurations-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; gap: 17px; }
.configuration-list { position: sticky; top: 15px; min-width: 0; max-height: calc(100vh - 30px); overflow: hidden; }
.configuration-list-toolbar { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border-1); }
.configuration-list-toolbar > span { color: var(--text-3); font-size: 10px; }
.configuration-list-items { max-height: calc(100vh - 168px); overflow-y: auto; }
.configuration-list-item { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 14px; border: 0; border-bottom: 1px solid var(--border-1); background: transparent; color: var(--text-1); text-align: left; cursor: pointer; }
.configuration-list-item:hover { background: rgba(255,255,255,.022); }
.configuration-list-item.selected { background: var(--surface-3); box-shadow: inset 3px 0 var(--green); }
.configuration-list-item-main { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.configuration-list-item-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.configuration-list-item-main span { overflow: hidden; color: var(--text-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.configuration-list-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.configuration-list-item-meta > .mono, .configuration-list-item small { color: var(--text-3); font-size: 9px; }
.configuration-list-item small { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.configuration-list-empty { min-height: 280px; }
.configuration-editor { min-width: 0; overflow: hidden; }
.configuration-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid var(--border-1); }
.configuration-editor-header h2 { margin: 5px 0 6px; font-size: 21px; }
.configuration-editor-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.configuration-id { color: var(--text-3); font-size: 9px; }
.editor-loading { min-height: 500px; justify-content: center; }
.configuration-editor-body { display: flex; flex-direction: column; }
.configuration-section { padding: 20px; border-bottom: 1px solid var(--border-1); }
.configuration-section h3 { margin: 5px 0 0; font-size: 16px; }
.configuration-section .section-heading { margin-bottom: 16px; }
.editor-fields { display: grid; gap: 13px; }
.editor-fields-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editor-fields-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-fields label { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: var(--text-3); font-size: 10px; }
.section-note { margin: 13px 0 0; color: var(--text-3); font-size: 10px; line-height: 1.55; }
.section-note strong { color: var(--text-2); }
.field-validation-error { color: var(--red); }
.configuration-json { min-height: 430px; }
.protected-document-note { display: flex; align-items: flex-start; gap: 8px; }
.protected-document-note > span:first-child { color: var(--green-soft); }
.configuration-editor-compact { border: 0; border-radius: 0; }
.configuration-editor-compact .configuration-editor-header { padding-inline: 22px; }
.configuration-editor-compact .configuration-section { padding: 20px 22px; }
.configuration-editor-compact .configuration-editor-footer { position: sticky; bottom: 0; z-index: 3; border-top: 1px solid var(--border-1); }
.assignment-section { background: rgba(47,191,120,.025); }
.configuration-editor-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 15px 20px; background: var(--surface-1); }
.configuration-editor-footer .button-danger { margin-right: auto; }
.footer-note { margin-right: auto; color: var(--text-3); font-size: 10px; }
.page-alert { margin-bottom: 17px; }

.slots-page, .system-page { padding: 22px 26px 40px; }
.slots-loading { min-height: 420px; justify-content: center; }
.slots-empty { min-height: 58vh; }
.operator-workspace { max-width: none; }
.operator-page-heading { min-height: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.operator-page-heading h1 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.035em; }
.operator-summary { display: flex; gap: 7px; }
.operator-slot-worklist { width: min(1120px, 100%); min-width: 0; margin: 0 auto; overflow: hidden; border: 1px solid var(--border-1); border-radius: var(--radius-md); background: var(--surface-1); }
.slot-card-viewport { height: max(360px, calc(100vh - 236px)); min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.slot-work-card { position: relative; min-height: 142px; padding: 13px 15px 12px; border-bottom: 1px solid var(--border-1); cursor: pointer; transition: background 120ms ease, box-shadow 120ms ease; }
.slot-work-card:hover { background: rgba(255,255,255,.025); }
.slot-work-card.selected { background: var(--surface-3); box-shadow: inset 3px 0 var(--green); }
.slot-work-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.slot-card-heading { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.slot-card-identity { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.slot-card-identity:focus-visible { border-radius: 4px; outline-offset: 3px; }
.slot-card-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-card-identity strong { color: var(--text-1); font-size: 13px; }
.slot-account-summary { min-width: 0; display: flex; align-items: center; gap: 7px; outline: none; }
.slot-account-name, .slot-account-empty { max-width: 500px; overflow: hidden; color: var(--text-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.slot-account-summary:hover .slot-account-name, .slot-account-summary:focus-visible .slot-account-name { color: var(--text-1); }
.slot-account-summary:focus-visible { border-radius: 4px; outline: 1px solid var(--green); outline-offset: 3px; }
.slot-account-summary > .status-badge { min-height: 20px; padding-inline: 7px; font-size: 9px; }
.slot-account-summary > .status-badge::before { width: 5px; height: 5px; }
.slot-account-popover { position: absolute; top: 51px; right: 14px; z-index: 30; width: 320px; padding: 4px 14px 7px; border: 1px solid color-mix(in srgb, var(--green) 18%, var(--border-2)); border-radius: 11px; background: color-mix(in srgb, var(--surface-2) 94%, var(--black-1)); box-shadow: 0 18px 55px rgba(0,0,0,.48); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px) scale(.985); transform-origin: top right; transition: opacity 100ms ease, transform 100ms ease, visibility 100ms ease; }
.slot-account-summary:not([data-tooltip-dismissed]):is(:hover, :focus-visible) .slot-account-popover { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.slot-account-popover-title { display: block; padding: 9px 0 8px; color: var(--text-3); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.slot-account-metric { min-height: 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border-top: 1px solid var(--border-1); color: var(--text-2); font-size: 10px; }
.slot-account-metric > strong, .slot-account-metric-value > strong { color: var(--text-1); font-size: 11px; font-weight: 700; text-align: right; }
.slot-account-metric-value { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; }
.slot-account-metric-value small { padding-left: 8px; border-left: 1px solid var(--border-2); color: var(--text-3); font-size: 9px; }
.slot-card-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.slot-work-card-body { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 13px; }
.slot-runtime-control, .slot-betting-control { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 32px; }
.slot-betting-control { padding-left: 20px; border-left: 1px solid var(--border-1); }
.slot-control-label { color: var(--text-3); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.slot-betting-action { margin-left: 2px; }
.slot-card-error { display: flex; align-items: baseline; gap: 9px; margin-top: 10px; padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--red) 35%, transparent); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--red) 7%, transparent); color: var(--text-2); font-size: 10px; }
.slot-card-error strong { color: #f09a90; }
.slot-toolbar { min-height: 65px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-bottom: 1px solid var(--border-1); background: rgba(18,22,27,.82); }
.slot-search { width: min(380px, 34vw); flex: 0 1 380px; }
.slot-search .search-input { height: 40px; }
.slot-status-filters { margin: 0; flex-wrap: nowrap; }
.slot-status-filters button { min-height: 29px; padding: 0 10px; border: 1px solid var(--border-1); border-radius: 999px; background: transparent; color: var(--text-3); font-size: 10px; font-weight: 650; cursor: pointer; }
.slot-status-filters button:hover, .slot-status-filters button.active { border-color: var(--border-2); background: var(--surface-3); color: var(--text-1); }
.bookmaker-filter { width: 180px; margin-left: auto; }
.bookmaker-filter .field-select { min-height: 36px; font-size: 11px; }
.clear-filters { padding: 8px; }
.state-toggle { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--text-2); font-size: 11px; font-weight: 650; cursor: pointer; }
.state-toggle:disabled { opacity: .45; cursor: not-allowed; }
.toggle-track { width: 31px; height: 18px; display: flex; align-items: center; padding: 2px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface-3); transition: background 140ms ease, border-color 140ms ease; }
.toggle-track i { width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); transition: transform 140ms ease, background 140ms ease; }
.state-toggle.on .toggle-track { border-color: color-mix(in srgb, var(--green) 70%, transparent); background: color-mix(in srgb, var(--green) 22%, var(--surface-3)); }
.state-toggle.on .toggle-track i { transform: translateX(13px); background: var(--green-soft); }
.state-toggle.on { color: var(--green-soft); }
.problem-indicator { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--red) 42%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--red) 8%, transparent); color: #f09a90; font-weight: 800; cursor: pointer; }
.slot-filter-empty { min-height: 300px; }
.slot-drawer { position: fixed; inset: 62px 0 0 auto; z-index: 101; width: min(800px, 55vw); min-width: 620px; display: grid; grid-template-rows: auto auto minmax(0, 1fr); border-left: 1px solid var(--border-2); background: var(--surface-1); box-shadow: -30px 0 90px rgba(0,0,0,.5); }
.slot-drawer-backdrop { top: 62px; }
.slot-drawer-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--border-1); background: var(--surface-1); }
.slot-drawer-header h2 { margin: 4px 0 0; font-size: 20px; }
.slot-drawer-heading-actions { display: flex; align-items: center; gap: 9px; }
.slot-drawer-heading-actions .status-badge { white-space: normal; }
.slot-drawer-heading-actions .icon-button { flex-shrink: 0; }
.slot-drawer-tabs { padding-inline: 22px; }
.slot-drawer-body { min-height: 0; overflow-y: auto; }
.slot-drawer-overview { padding: 22px; }
.slot-overview-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-bottom: 20px; }
.slot-overview-summary h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.slot-overview-betting { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.slot-diagnostics { margin-top: 20px; border-top: 1px solid var(--border-1); }
.slot-diagnostics > summary { padding-block: 14px; color: var(--text-2); font-size: 12px; cursor: pointer; }
.slot-diagnostics .detail-properties { gap: 10px; margin-top: 0; font-size: 12px; }
.slot-diagnostics .detail-properties > div { grid-template-columns: minmax(100px, .8fr) minmax(0, 1fr); gap: 14px; }
.slot-drawer-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px; border-top: 1px solid var(--border-1); background: rgba(18,22,27,.96); }

.bookmaker-admin-layout { display: grid; grid-template-columns: minmax(280px, 410px) minmax(0, 1fr); align-items: start; gap: 17px; }
.bookmaker-admin-create, .bookmaker-admin-catalog { padding: 19px; }
.bookmaker-admin-create h2, .bookmaker-admin-catalog h2 { margin: 5px 0 0; font-size: 18px; }
.bookmaker-admin-form { display: grid; gap: 13px; margin-top: 19px; }
.bookmaker-admin-form label { display: flex; flex-direction: column; gap: 7px; color: var(--text-3); font-size: 10px; }
.bookmaker-admin-form .button { justify-self: start; margin-top: 4px; }
.catalog-loading, .bookmaker-empty { min-height: 240px; justify-content: center; }
.bookmaker-admin-list { margin-top: 14px; border-top: 1px solid var(--border-1); }
.bookmaker-admin-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 2px; border-bottom: 1px solid var(--border-1); }
.bookmaker-admin-row > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bookmaker-admin-row .mono { color: var(--text-3); font-size: 10px; }

@media (max-width: 1380px) {
    .global-header { gap: 12px; padding-inline: 16px; }
    .nav-item { padding-inline: 9px; }
    .nav-section-label { display: none; }
    .nav-separator { margin-inline: 4px; }
    .runtime-console-shell { grid-template-columns: 280px minmax(0, 1fr); }
    .registry-layout.detail-open { grid-template-columns: minmax(0, 1fr); }
    .host-detail { position: static; max-height: none; }
    .configurations-layout { grid-template-columns: 270px minmax(0, 1fr); }
    .editor-fields-three { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
    .brand > span, .nav-item > span:last-child, .identity-copy, .session-indicator { display: none; }
    .nav-item { justify-content: center; padding: 0; }
    .nav-icon { width: 38px; }
    .global-identity { gap: 5px; }
    .runtime-console-shell { grid-template-columns: 250px minmax(0, 1fr); }
    .overview-grid { grid-template-columns: 1fr; }
    .overview-diagnostics-grid { grid-template-columns: 1fr; gap: 0; }
    .targets-browser { grid-template-columns: 220px minmax(0, 1fr); }
    .registry-toolbar { align-items: flex-start; flex-wrap: wrap; }
    .toolbar-note { width: 100%; margin-left: 0; }
    .enrollment-key-command { grid-template-columns: auto minmax(0, 1fr); }
    .enrollment-key-command .copy-id { grid-column: 2; justify-self: start; }
    .bookmaker-admin-layout { grid-template-columns: 1fr; }
    .slot-toolbar { flex-wrap: wrap; }
    .slot-search { width: min(420px, 100%); flex: 1 1 360px; }
    .bookmaker-filter { margin-left: 0; }
    .slot-drawer { width: min(760px, 72vw); min-width: 580px; }
}

@media (max-width: 720px) {
    .global-header { height: 58px; padding: 0 12px; gap: 8px; }
    .brand-mark { width: 29px; height: 29px; }
    .nav-list { flex: 1; overflow-x: auto; }
    .nav-item { min-width: 36px; min-height: 36px; }
    .nav-separator { margin-inline: 2px; }
    .global-identity { flex: 0 0 auto; gap: 4px; }
    .app-content { min-height: calc(100vh - 58px); }
    .page-header { padding-inline: 17px; }
    .enrollment-key-value, .enrollment-key-card > footer { align-items: flex-start; flex-direction: column; }
    .enrollment-key-value .button { align-self: stretch; }
    .enrollment-key-command { grid-template-columns: 1fr; gap: 5px; }
    .enrollment-key-command .copy-id { grid-column: auto; }
    .login-card { padding: 24px; }
    .runtime-console-shell { display: block; }
    .runtime-explorer { position: static; height: auto; max-height: 42vh; }
    .runtime-workspace { min-height: calc(100vh - 58px); }
    .runtime-header { top: 58px; }
    .runtime-title-row { align-items: flex-start; padding-inline: 17px; }
    .runtime-title-row, .page-actions { flex-wrap: wrap; }
    .status-strip, .workspace-tabs { padding-inline: 17px; }
    .workspace-content { padding: 17px; }
    .targets-browser { display: block; }
    .targets-browser.focus-mode { inset: 58px 0 0; display: block; }
    .target-list-panel { max-height: 320px; }
    .all-target-tree { padding: 14px 16px 24px; }
    .tree-search { width: 100%; }
    .tree-inspector-toolbar { align-items: stretch; flex-direction: column; }
    .command-address { grid-template-columns: 1fr; }
    .registry-page { padding: 16px; }
    .registry-layout.detail-open { display: block; }
    .configurations-page { padding: 16px; }
    .slots-page, .system-page { padding: 16px; }
    .operator-page-heading { align-items: flex-start; flex-direction: column; }
    .slot-status-filters { width: 100%; overflow-x: auto; }
    .slot-work-card { min-height: 0; padding: 13px; }
    .slot-account-popover { top: 57px; right: 13px; left: 13px; width: auto; transform-origin: top left; }
    .slot-work-card-header { align-items: stretch; flex-direction: column; }
    .slot-card-actions { justify-content: space-between; }
    .slot-card-actions .button { flex: 1; }
    .slot-work-card-body { align-items: flex-start; flex-direction: column; gap: 10px; }
    .slot-betting-control { width: 100%; min-width: 0; padding: 10px 0 0; border-top: 1px solid var(--border-1); border-left: 0; }
    .slot-betting-action { margin-left: auto; }
    .slot-drawer { inset: 58px 0 0; width: 100%; min-width: 0; }
    .slot-drawer-backdrop { top: 58px; }
    .bookmaker-catalog-content { align-items: stretch; flex-direction: column; }
    .bookmaker-create { flex-basis: auto; }
    .configurations-layout { display: block; }
    .configuration-list { position: static; max-height: none; margin-bottom: 15px; }
    .configuration-list-items { max-height: 310px; }
    .editor-fields-two { grid-template-columns: 1fr; }
}
