@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f5f7fb;
    color-scheme: light;
}

/* Orbit design system */
:root {
    --orbit-navy: #062d2b;
    --orbit-navy-raised: #104542;
    --orbit-teal: #087f68;
    --orbit-teal-hover: #066854;
    --orbit-mint: #42d6ae;
    --orbit-mint-soft: #e7faf4;
    --orbit-canvas: #f3faf8;
    --orbit-surface: #ffffff;
    --orbit-ink: #123633;
    --orbit-muted: #5f7c78;
    --orbit-subtle: #829b97;
    --orbit-line: #dbeae6;
    --orbit-line-soft: #edf5f3;
    --orbit-success: #11845b;
    --orbit-warning: #a45c06;
    --orbit-danger: #b4233d;
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
    color: var(--orbit-ink);
    background: var(--orbit-canvas);
}

body { background: var(--orbit-canvas); color: var(--orbit-ink); }
button, input, textarea { font-family: inherit; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.orbit-frame { min-height: 100vh; display: flex; flex-direction: column; }
.orbit-app .orbit-frame { margin-left: 238px; }
.shell { width: min(1320px, calc(100% - 76px)); }

.orbit-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 238px; padding: 28px 20px 20px; color: #d8f2ec; background: var(--orbit-navy); display: flex; flex-direction: column; }
.orbit-brand { color: white; gap: 11px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--orbit-teal); box-shadow: 0 8px 20px rgba(8,127,104,.34); }
.brand-copy { display: flex; flex-direction: column; font-size: .98rem; line-height: 1.1; }
.brand-copy small { margin-top: 5px; color: #74a7a0; font-size: .55rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-caption { margin: 42px 12px 12px; color: #64948e; font-size: .61rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.orbit-nav { display: grid; gap: 6px; }
.orbit-nav-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: #90b8b2; font-size: .79rem; font-weight: 700; transition: color .15s ease, background .15s ease; }
.orbit-nav-link:hover { color: white; background: rgba(255,255,255,.045); }
.orbit-nav-link.active { color: white; background: var(--orbit-navy-raised); box-shadow: inset 3px 0 var(--orbit-mint); }
.nav-counter { margin-left: auto; padding: 2px 7px; border-radius: 99px; background: var(--orbit-teal); color: white; font-size: .62rem; font-weight: 800; line-height: 1.2; box-shadow: 0 2px 6px rgba(8,127,104,.4); }
.orbit-profile { margin-top: auto; padding: 13px; border: 1px solid #1f5752; border-radius: 14px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 26px; align-items: center; gap: 9px; }
.profile-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #c8eee6; background: #174d49; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.profile-avatar.small { width: 32px; height: 32px; color: white; background: var(--orbit-teal); }
.profile-copy { min-width: 0; }
.profile-copy strong, .profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { color: white; font-size: .68rem; }
.profile-copy small { margin-top: 4px; color: #74a7a0; font-size: .58rem; }
.profile-logout { width: 26px; height: 30px; padding: 0; display: grid; place-items: center; color: #74a7a0; border: 0; background: transparent; }
.profile-logout:hover { color: white; }

.topbar { position: sticky; top: 0; z-index: 20; min-height: 74px; padding: 0 38px; color: var(--orbit-ink); border-bottom: 1px solid var(--orbit-line); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-context { display: flex; align-items: center; gap: 10px; color: var(--orbit-subtle); font-size: .7rem; }
.topbar-context span::after { content: "/"; margin-left: 10px; color: #bfd2ce; }
.topbar-context strong { color: var(--orbit-ink); font-size: .73rem; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.system-status { display: flex; align-items: center; gap: 7px; color: var(--orbit-success); font-size: .66rem; font-weight: 800; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(17,132,91,.09); }
.topbar-divider { width: 1px; height: 24px; background: var(--orbit-line); }
.topbar-identity { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--orbit-muted); font-size: .68rem; white-space: nowrap; }

.notif-widget { position: relative; }
.notif-toggle { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--orbit-line); border-radius: 10px; background: white; color: var(--orbit-muted); transition: color .15s ease, border-color .15s ease; }
.notif-toggle:hover { color: var(--orbit-teal); border-color: #b7d0ca; }
.notif-badge { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; background: var(--orbit-teal); color: white; font-size: .56rem; font-weight: 800; }
.notif-badge.empty { display: none; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: min(380px, calc(100vw - 32px)); border: 1px solid var(--orbit-line); border-radius: 14px; background: white; box-shadow: 0 18px 46px rgba(6,45,43,.16); overflow: hidden; }
.notif-panel[hidden] { display: none; }
.notif-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--orbit-line); }
.notif-head strong { font-size: .78rem; }
.notif-markall { border: 0; background: transparent; color: var(--orbit-teal); font-size: .66rem; font-weight: 800; }
.notif-markall:disabled { color: var(--orbit-subtle); cursor: default; }
.notif-items { max-height: 340px; overflow-y: auto; }
.notif-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--orbit-line-soft); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: linear-gradient(90deg, rgba(8,127,104,.07), transparent); }
.notif-item > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.notif-item strong { color: var(--orbit-ink); font-size: .71rem; }
.notif-item span { color: var(--orbit-muted); font-size: .67rem; line-height: 1.45; overflow-wrap: anywhere; }
.notif-item small { color: var(--orbit-subtle); font-size: .58rem; }
.notif-item-read { border: 0; background: transparent; color: var(--orbit-teal); font-size: .64rem; font-weight: 800; white-space: nowrap; }
.notif-empty { padding: 22px 16px; color: var(--orbit-subtle); font-size: .72rem; text-align: center; }
.modal-card { max-height: calc(100vh - 40px); overflow-y: auto; }
.mobile-brand { display: none; align-items: center; gap: 9px; font-size: .82rem; }
.orbit-public .mobile-brand { display: flex; }
.orbit-public .topbar { padding-inline: max(24px, calc((100% - 1244px) / 2)); }
.orbit-public .topbar-context { margin-left: auto; }

.page { flex: 1; padding-top: 34px; padding-bottom: 48px; }
.page-heading { align-items: center; margin-bottom: 26px; }
.page-heading h1 { margin: 7px 0 8px; color: var(--orbit-ink); font-size: clamp(2rem, 3.3vw, 2.85rem); font-weight: 800; letter-spacing: -.052em; }
.page-heading p { color: var(--orbit-muted); font-size: .85rem; }
.eyebrow { color: var(--orbit-teal); font-size: .62rem; letter-spacing: .15em; }
.identity-pill { color: #3f625d; border-color: var(--orbit-line); background: var(--orbit-surface); box-shadow: 0 4px 14px rgba(6,45,43,.05); }

.card { border-color: var(--orbit-line); border-radius: 16px; box-shadow: 0 6px 24px rgba(6,45,43,.05); }
.stats-grid { gap: 14px; margin-bottom: 18px; }
.stat-card { min-height: 132px; padding: 20px; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: 18px; top: 20px; width: 30px; height: 18px; border-top: 2px solid #a9ddd0; border-right: 2px solid #a9ddd0; transform: skewY(-25deg); }
.stat-card .label { color: var(--orbit-muted); font-size: .72rem; font-weight: 700; }
.stat-card strong { margin-top: 10px; color: var(--orbit-ink); font-size: 1.72rem; letter-spacing: -.04em; }
.stat-card small { margin-top: auto; color: var(--orbit-subtle); font-size: .66rem; }
.stat-card strong.bad { color: var(--orbit-danger); }

.inventory-card, .panel, .action-panel, .danger-zone { background: var(--orbit-surface); }
.inventory-toolbar { min-height: 82px; padding: 19px 22px; border-color: var(--orbit-line); }
.inventory-toolbar h2, .panel h2, .action-panel h2, .danger-zone h2 { color: var(--orbit-ink); font-size: 1.05rem; }
.panel { padding: 23px; }
.panel-heading { margin-bottom: 20px; }
.content-grid, .details-grid, .portal-grid, .two-column { gap: 18px; }

input[type="text"], input[type="search"], input:not([type]), input[type="email"], input[type="password"], textarea { min-height: 43px; color: var(--orbit-ink); border-color: #c8ddd8; border-radius: 10px; background: #fbfefd; }
input::placeholder, textarea::placeholder { color: #91a9a5; }
select { min-height: 43px; color: var(--orbit-ink); border: 1px solid #c8ddd8; border-radius: 10px; background: #fbfefd; padding: 0 12px; font: inherit; }
select:focus { outline: 3px solid rgba(8,127,104,.13); border-color: #35b99a; background: white; }
input:focus, textarea:focus { outline: 3px solid rgba(8,127,104,.13); border-color: #35b99a; background: white; }
.field > label { color: #344164; font-size: .78rem; }
.field small { color: var(--orbit-muted); }
.domain-input { border-color: #c8ddd8; border-radius: 10px; background: #fbfefd; }
.domain-input:focus-within { outline: 3px solid rgba(8,127,104,.13); border-color: #35b99a; background: white; }
.domain-input input:focus { outline: 0; }
.domain-input span { color: var(--orbit-muted); border-color: var(--orbit-line); }
.switch-row, .delete-choice { border-color: var(--orbit-line); border-radius: 12px; background: #f8faff; }
.check-line input, .switch-row input, .delete-choice input { accent-color: var(--orbit-teal); }

.button { min-height: 40px; padding: 0 15px; border-radius: 10px; font-size: .75rem; box-shadow: none; }
.button.primary { background: var(--orbit-teal); box-shadow: 0 8px 18px rgba(8,127,104,.18); }
.button.primary:hover { background: var(--orbit-teal-hover); }
.button.secondary { color: #3f625d; border-color: var(--orbit-line); background: white; }
.button.secondary:hover { color: var(--orbit-ink); border-color: #b7d0ca; background: #f6fbfa; }
.button.ghost { color: var(--orbit-muted); }
.button.small { min-height: 33px; border-radius: 8px; font-size: .69rem; }
.button.danger { background: var(--orbit-danger); }
.button.danger-outline { color: var(--orbit-danger); border-color: #e7b9c2; background: #fffafb; }

.data-table th { padding: 12px 16px; color: var(--orbit-subtle); border-color: var(--orbit-line); background: #fafbff; font-size: .62rem; letter-spacing: .09em; }
.data-table td { padding: 14px 16px; color: #315651; border-color: var(--orbit-line-soft); font-size: .78rem; }
.data-table tbody tr:hover { background: #fafbff; }
.host-cell strong { color: var(--orbit-ink); font-size: .8rem; }
.host-cell span, .dns-cell span:last-child { color: var(--orbit-subtle); font-size: .68rem; }
code { color: #205e55; background: var(--orbit-mint-soft); }

.status { padding: 5px 9px; font-size: .64rem; }
.status.success { color: var(--orbit-success); background: #e9f9f2; }
.status.warning { color: var(--orbit-warning); background: #fff5dc; }
.status.danger { color: var(--orbit-danger); background: #fff0f3; }
.status.neutral { color: #55736f; background: #eef5f3; }
.mini-state.good { color: var(--orbit-success); background: #e9f9f2; }
.mini-state.muted { color: var(--orbit-muted); background: #eef5f3; }

.service-list, .notification-list, .credential-grid { border-color: var(--orbit-line); }
.service-row, .notification-item, .credential-grid > div, .detail-list > div { border-color: var(--orbit-line); }
.notification-item.unread { background: linear-gradient(90deg, rgba(8,127,104,.07), transparent); }
.text-button, .breadcrumb a { color: var(--orbit-teal); }
.resource-card { border-color: var(--orbit-line); border-radius: 13px; background: #fafbff; }
.resource-card h3, .request-row strong { color: var(--orbit-ink); }
.request-row { border-color: var(--orbit-line); }
.note { color: #734c13; border-color: #f2d593; background: #fff9e9; }

.auth-shell { min-height: calc(100vh - 190px); }
.auth-card { position: relative; overflow: hidden; padding: 34px; border-color: var(--orbit-line); box-shadow: 0 24px 70px rgba(22,40,90,.11); }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--orbit-teal), var(--orbit-mint)); }
.auth-card h1 { color: var(--orbit-ink); font-size: 2.15rem; }
.auth-card > p { color: var(--orbit-muted); }
.large-mark { width: 48px; height: 48px; box-shadow: 0 10px 24px rgba(8,127,104,.25); }

.alert { border-radius: 11px; font-size: .78rem; }
.alert.success { color: var(--orbit-success); border-color: #a8dfca; background: #effbf6; }
.alert.warning { color: var(--orbit-warning); border-color: #f2d593; background: #fff9e9; }
.alert.error { color: var(--orbit-danger); border-color: #efc3cb; background: #fff4f6; }
.credential-banner { border-color: #a9ddd0; background: #eefbf7; }
.modal-backdrop { background: rgba(10,18,46,.68); backdrop-filter: blur(4px); }
.modal-card { position: relative; box-shadow: 0 30px 80px rgba(10,18,46,.28); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--orbit-muted); border-radius: 8px; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease; }
.modal-close:hover { background: var(--orbit-line-soft); color: var(--orbit-ink); }
.button.copied { background: #11845b !important; color: #ffffff !important; border-color: #11845b !important; transform: scale(1.02); }
.button.copied::before { content: "✓ "; }

.spinner-ring { border-color: var(--orbit-line); border-top-color: var(--orbit-teal); }
.progress-bar { background: var(--orbit-teal); }
.progress-steps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 24px; }
.progress-steps span { color: var(--orbit-subtle); background: #eef5f3; text-align: center; font-size: .67rem; padding: 7px 4px; border-radius: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.availability.checking { color: var(--orbit-teal); }
.progress-steps span.active { color: var(--orbit-teal); background: var(--orbit-mint-soft); font-weight: 800; }

.toast { position: relative; border-color: var(--orbit-line); border-radius: 13px; box-shadow: 0 18px 46px rgba(16,24,64,.16); padding-right: 36px; pointer-events: auto; }
.toast-close { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; color: var(--orbit-subtle); cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.toast-close:hover { color: var(--orbit-ink); background: var(--orbit-line-soft); }

/* Interactive queue filter tabs & badges */
.queue-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.queue-tabs { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; background: #e8f3f0; padding: 4px; border-radius: 12px; border: 1px solid var(--orbit-line); }
.queue-tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; color: var(--orbit-muted); font-size: .78rem; font-weight: 750; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.queue-tab:hover { color: var(--orbit-ink); background: rgba(255,255,255,.5); }
.queue-tab.active { background: #ffffff; color: var(--orbit-ink); box-shadow: 0 2px 8px rgba(6,45,43,.08); }
.queue-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #dceae7; color: var(--orbit-ink); font-size: .67rem; font-weight: 800; }
.queue-tab.active .queue-badge { background: var(--orbit-mint-soft); color: var(--orbit-teal); }
.status-filter-pills { display: flex; align-items: center; gap: 6px; }
.status-pill-btn { border: 1px solid var(--orbit-line); background: #ffffff; padding: 6px 13px; border-radius: 99px; font-size: .74rem; font-weight: 700; color: var(--orbit-muted); cursor: pointer; transition: all .15s ease; }
.status-pill-btn:hover { border-color: #b7d0ca; color: var(--orbit-ink); }
.status-pill-btn.active { background: var(--orbit-navy); color: #ffffff; border-color: var(--orbit-navy); }

.confirm-delete-box { margin: 18px 0; padding: 14px 16px; border-radius: 10px; background: #fff5f6; border: 1px solid #ffd0d6; }
.confirm-delete-box label { display: block; font-size: .8rem; font-weight: 750; color: var(--orbit-danger); margin-bottom: 6px; }
.confirm-delete-box input { border-color: #f7aab7; }

/* Help bubbles & resource service groupings */
.help-bubble { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #dbeae6; color: var(--orbit-teal); font-size: .6rem; font-weight: 800; cursor: help; margin-left: 4px; vertical-align: middle; }
.resource-services { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: #edf5f3; border: 1px solid var(--orbit-line-soft); font-size: .74rem; }
.resource-service-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.resource-service-item span { color: var(--orbit-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 65%; }

/* Portal Workspace Navigation Tabs */
.portal-nav-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--orbit-line); padding-bottom: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.portal-tab-btn { border: 0; background: transparent; padding: 11px 17px; border-radius: 10px 10px 0 0; font-size: .81rem; font-weight: 750; color: var(--orbit-muted); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; position: relative; transition: all .15s ease; white-space: nowrap; }
.portal-tab-btn:hover { color: var(--orbit-ink); background: rgba(8,127,104,.05); }
.portal-tab-btn.active { color: var(--orbit-teal); background: white; border: 1px solid var(--orbit-line); border-bottom-color: white; margin-bottom: -1px; box-shadow: 0 -2px 8px rgba(6,45,43,.04); }
.portal-tab-btn .tab-badge { padding: 2px 7px; border-radius: 99px; font-size: .65rem; font-weight: 800; background: #fff5dc; color: #a45c06; border: 1px solid #f2d593; }
.deployment-controls { padding: 18px; border-bottom: 1px solid var(--orbit-line); }
.deployment-controls .panel { border: 1px solid var(--orbit-line); box-shadow: none; }
.deployment-controls h3 { margin: 5px 0 8px; }
.deployment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.deployment-guardrail { background: linear-gradient(145deg, var(--orbit-navy), #12544f); color: #d8f2ec; }
.deployment-guardrail h3 { color: white; }
.deployment-guardrail .eyebrow { color: var(--orbit-mint); }
.deployment-guardrail ol { margin: 22px 0 0; padding-left: 22px; display: grid; gap: 15px; font-size: .78rem; line-height: 1.55; }
.deployment-empty { padding: 22px; }
.deployment-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.deployment-message { display: block; margin-top: 10px; }
.deployment-run-list { display: grid; border-top: 1px solid var(--orbit-line); }
.deployment-run-list > div { padding: 9px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--orbit-line-soft); font-size: .72rem; }
.deployment-run-list > div:last-child { border-bottom: 0; }
.deployment-settings { padding-top: 2px; }
.deployment-settings > summary { cursor: pointer; width: fit-content; }
.deployment-settings form { margin-top: 12px; padding: 14px; border: 1px solid var(--orbit-line); border-radius: 10px; background: white; }
.deployment-settings .field { margin-bottom: 11px; }
.deployment-admin-alert { margin: 16px 22px 0; }

.footer { width: min(1320px, calc(100% - 76px)); padding: 4px 0 28px; display: flex; justify-content: space-between; color: #97a0ba; border-top: 1px solid var(--orbit-line); padding-top: 18px; font-size: .64rem; }

@media (max-width: 960px) {
    .shell, .footer { width: min(100% - 40px, 1320px); }
    .topbar { padding-inline: 24px; }
}

@media (max-width: 720px) {
    .orbit-sidebar { position: sticky; inset: 0; width: 100%; height: 58px; padding: 0 12px; flex-direction: row; align-items: center; gap: 10px; z-index: 50; }
    .orbit-brand { flex: 0 0 auto; }
    .orbit-brand .brand-copy, .nav-caption, .profile-copy, .orbit-profile > .profile-avatar { display: none; }
    .orbit-nav { min-width: 0; display: flex; margin-left: auto; gap: 4px; }
    .orbit-nav-link { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .orbit-nav-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .orbit-profile { width: 36px; margin: 0; padding: 0; border: 0; display: block; }
    .profile-logout { width: 36px; height: 40px; color: #90b8b2; }
    .orbit-app .orbit-frame { margin-left: 0; }
    .orbit-app .topbar { position: static; min-height: 44px; padding: 0 16px; justify-content: flex-end; border-bottom: 0; background: transparent; }
    .orbit-app .topbar .mobile-brand, .orbit-app .topbar-context, .orbit-app .system-status, .orbit-app .topbar-divider, .orbit-app .topbar-identity, .orbit-app .profile-avatar.small { display: none; }
    .orbit-public .topbar { min-height: 58px; padding-inline: 16px; }
    .orbit-public .topbar-context span { display: none; }
    .orbit-public .topbar-context span::after { content: none; }
    .shell, .footer { width: min(100% - 24px, 1320px); }
    .page { padding-top: 18px; }
    .page-heading h1 { font-size: 1.85rem; }
    .footer { gap: 14px; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .deployment-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 116px; }
    .auth-card { padding: 28px 22px; }
}

@layer legacy-components {
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100%; background: #f5f7fb; color: #172033; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(16, 24, 40, .97); color: white; border-bottom: 1px solid #27344a; backdrop-filter: blur(12px); }
.topbar-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #155eef; font-size: .75rem; letter-spacing: .02em; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { color: #e4e7ec; font-weight: 700; font-size: .92rem; }
.topbar-note { color: #98a2b3; font-size: .85rem; }

.page { padding-top: 38px; padding-bottom: 56px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin: 5px 0 7px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; line-height: 1.02; }
.page-heading p { margin: 0; color: #667085; max-width: 760px; line-height: 1.6; }
.compact-heading { align-items: center; }
.heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 850; color: #667085; }
.danger-label { color: #b42318; }

.card { background: #fff; border: 1px solid #e4e7ec; border-radius: 16px; box-shadow: 0 2px 9px rgba(16, 24, 40, .035); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { padding: 19px; display: flex; flex-direction: column; gap: 5px; min-height: 122px; }
.stat-card .label, .stat-card small { color: #667085; }
.stat-card strong { margin-top: 7px; font-size: 1.45rem; line-height: 1.1; overflow-wrap: anywhere; }
.ok { color: #067647; }
.bad { color: #b42318; }
.warn-text { color: #b54708; }

.inventory-card { margin-bottom: 16px; overflow: hidden; }
.inventory-toolbar { min-height: 86px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #eaecf0; }
.inventory-toolbar h2, .panel h2, .action-panel h2, .danger-zone h2 { margin: 4px 0 0; font-size: 1.25rem; letter-spacing: -.018em; }
.search-form { display: flex; gap: 8px; align-items: center; min-width: min(100%, 470px); }
.search-form input { width: min(310px, 100%); }
input[type="text"], input[type="search"], input:not([type]) { min-height: 42px; border: 1px solid #d0d5dd; border-radius: 9px; padding: 0 11px; background: #fff; color: #172033; }
input:focus { outline: 3px solid rgba(46, 144, 250, .13); border-color: #2e90fa; }
input:disabled { background: #f2f4f7; color: #98a2b3; cursor: not-allowed; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.data-table th { padding: 11px 16px; text-align: left; color: #667085; background: #f9fafb; font-size: .72rem; text-transform: uppercase; letter-spacing: .065em; font-weight: 800; border-bottom: 1px solid #eaecf0; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid #f0f1f3; vertical-align: middle; font-size: .9rem; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfcfd; }
.host-cell { display: flex; flex-direction: column; gap: 4px; min-width: 240px; }
.host-cell strong { font-size: .94rem; }
.host-cell span, .dns-cell span:last-child { color: #667085; font-size: .8rem; }
.dns-cell { display: flex; align-items: center; gap: 7px; }
.actions-cell { text-align: right; }
.muted-text { color: #98a2b3; }

.status { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.status.success { background: #ecfdf3; color: #067647; }
.status.warning { background: #fffaeb; color: #b54708; }
.status.danger { background: #fef3f2; color: #b42318; }
.status.neutral { background: #f2f4f7; color: #475467; }
.mini-state { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 6px; font-size: .73rem; font-weight: 750; }
.mini-state.good { background: #ecfdf3; color: #067647; }
.mini-state.muted { background: #f2f4f7; color: #667085; }

.empty-state { min-height: 180px; display: grid; place-content: center; text-align: center; padding: 34px; color: #667085; gap: 7px; }
.empty-state strong { color: #344054; font-size: 1.05rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 16px; }
.lower-grid { margin-top: 16px; }
.panel { padding: 24px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.field { margin-bottom: 19px; }
.field > label { display: block; margin-bottom: 7px; font-weight: 750; font-size: .91rem; }
.field input { width: 100%; }
.field small { display: block; color: #667085; margin-top: 7px; line-height: 1.45; }
.password-input-group { position: relative; display: flex; align-items: center; width: 100%; }
.password-input-group input { padding-right: 42px; width: 100%; }
.password-toggle-btn { position: absolute; right: 8px; background: transparent; border: none; cursor: pointer; font-size: 1rem; padding: 4px 6px; color: #667085; border-radius: 6px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.password-toggle-btn:hover { color: #1d2939; background: #eaecf0; }
.domain-input { display: grid; grid-template-columns: minmax(120px, 1fr) auto; align-items: center; border: 1px solid #d0d5dd; border-radius: 9px; overflow: hidden; }
.domain-input input { border: 0; border-radius: 0; }
.domain-input span { padding: 0 12px; color: #667085; border-left: 1px solid #e4e7ec; }
.switch-row, .delete-choice { display: flex; align-items: flex-start; gap: 12px; padding: 15px; background: #f9fafb; border: 1px solid #eaecf0; border-radius: 11px; margin-bottom: 18px; }
.switch-row input, .delete-choice input { flex: 0 0 auto; margin-top: 3px; width: 18px; height: 18px; }
.switch-row span, .delete-choice span { display: flex; flex-direction: column; gap: 3px; }
.switch-row small, .delete-choice small { color: #667085; line-height: 1.45; }
.disabled-row { opacity: .62; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent; font-size: .86rem; font-weight: 800; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: #155eef; color: #fff; }
.button.primary:hover { background: #004eeb; }
.button.secondary { background: #fff; border-color: #d0d5dd; color: #344054; }
.button.secondary:hover { background: #f9fafb; border-color: #98a2b3; }
.button.ghost { background: transparent; color: #667085; }
.button.small { min-height: 34px; padding: 0 11px; font-size: .79rem; }
.button.danger { background: #d92d20; color: #fff; }
.button.danger:hover { background: #b42318; }
.button.danger-outline { background: #fff; border-color: #fda29b; color: #b42318; }
.button.danger-outline:hover { background: #fef3f2; }

.config-panel p { color: #667085; line-height: 1.6; }
.service-list { margin: 18px 0; border-top: 1px solid #eaecf0; }
.service-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid #eaecf0; }
.service-row > div { display: flex; flex-direction: column; gap: 4px; }
.service-row span:not(.status) { color: #667085; font-size: .82rem; }
.note { background: #fffaeb; border: 1px solid #fedf89; border-radius: 11px; padding: 13px; color: #7a2e0e; line-height: 1.55; font-size: .86rem; }

.alert { padding: 13px 15px; border-radius: 11px; margin-bottom: 14px; border: 1px solid; line-height: 1.5; overflow-wrap: anywhere; }
.alert.success { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.alert.warning { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.alert.error { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.validation { color: #b42318; font-size: .82rem; margin-top: 6px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; color: #667085; font-size: .84rem; margin-bottom: 20px; }
.breadcrumb a { color: #155eef; font-weight: 700; }
.details-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; margin-bottom: 16px; }
.detail-list { margin: 18px 0 0; }
.detail-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid #eaecf0; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: #667085; font-size: .84rem; }
.detail-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-copy { display: inline-flex; align-items: center; justify-content: center; background: #f8fafc; border: 1px solid #d0d5dd; border-radius: 6px; padding: 2px 7px; font-size: 0.72rem; font-weight: 600; cursor: pointer; color: #475467; transition: all 0.15s ease; font-family: inherit; }
.mini-copy:hover { background: #eef4ff; border-color: #98a2b3; color: #1d2939; }
.mini-copy.copied { background: #ecfdf3; border-color: #6ce9a6; color: #027a48; }
.action-panel, .danger-zone { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 16px; }
.action-panel p, .danger-zone p { margin: 6px 0 0; color: #667085; line-height: 1.5; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.danger-zone { border-color: #fecdca; }

.delete-shell { display: grid; place-items: center; min-height: 55vh; }
.delete-card { width: min(700px, 100%); padding: 28px; }
.delete-card h1 { margin: 7px 0 10px; font-size: 1.8rem; letter-spacing: -.03em; }
.delete-card > p { color: #667085; line-height: 1.6; margin: 0 0 22px; }
.delete-choice { margin-bottom: 11px; }
.delete-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

.footer { padding: 4px 0 38px; color: #98a2b3; font-size: .8rem; }
code { background: #f2f4f7; padding: 2px 6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84em; overflow-wrap: anywhere; }

@media (max-width: 960px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid, .details-grid { grid-template-columns: 1fr; }
    .page-heading { align-items: flex-start; }
    .inventory-toolbar { align-items: flex-start; flex-direction: column; }
    .search-form { width: 100%; }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 24px, 1240px); }
    .page { padding-top: 26px; }
    .stats-grid { grid-template-columns: 1fr; }
    .page-heading { flex-direction: column; align-items: stretch; }
    .heading-actions { justify-content: flex-start; }
    .topbar-note { display: none; }
    .search-form { flex-wrap: wrap; }
    .search-form input { width: 100%; }
    .domain-input { grid-template-columns: 1fr; }
    .domain-input span { border-left: 0; border-top: 1px solid #e4e7ec; padding: 9px 11px; }
    .detail-list > div { grid-template-columns: 1fr; gap: 4px; }
    .action-panel, .danger-zone { align-items: stretch; flex-direction: column; }
    .action-buttons { justify-content: flex-start; }
    .delete-actions { flex-direction: column-reverse; }
    .delete-actions .button { width: 100%; }
}

/* Portal / workflow additions */
.inline-form { display: inline; margin: 0; }
.nav-button { border: 0; background: transparent; color: #e4e7ec; font: inherit; font-weight: 700; font-size: .92rem; padding: 0; }
.nav-button:hover { color: #fff; }
.identity-pill { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid #d0d5dd; background: #fff; border-radius: 999px; color: #475467; font-size: .83rem; font-weight: 700; }
.muted-copy { color: #667085; line-height: 1.6; }
.error-copy { color: #b42318 !important; }
textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 9px; padding: 10px 11px; background: #fff; color: #172033; font: inherit; resize: vertical; }
textarea:focus { outline: 3px solid rgba(46,144,250,.13); border-color: #2e90fa; }
input[type="email"], input[type="password"] { min-height: 42px; border: 1px solid #d0d5dd; border-radius: 9px; padding: 0 11px; background: #fff; color: #172033; width: 100%; }
.wide { width: 100%; }
.check-line { display: flex; gap: 9px; align-items: center; color: #475467; margin: -4px 0 18px; font-size: .9rem; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }

.auth-shell { min-height: 68vh; display: grid; place-items: center; }
.auth-shell.align-top { align-items: start; padding-top: 34px; }
.auth-card { width: min(460px, 100%); padding: 32px; }
.auth-card.wide-card { width: min(680px, 100%); }
.auth-card h1 { margin: 8px 0 10px; font-size: 2rem; letter-spacing: -.035em; }
.auth-card > p { color: #667085; line-height: 1.6; margin: 0 0 24px; }
.large-mark { width: 46px; height: 46px; margin-bottom: 20px; }

.portal-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 16px; }
.request-card h2, .create-user-panel h2 { margin: 4px 0 8px; }
.availability { margin-top: 8px; min-height: 22px; font-size: .82rem; font-weight: 700; }
.availability.neutral { color: #667085; }
.availability.checking { color: #175cd3; }
.availability.available { color: #067647; }
.availability.unavailable { color: #b42318; }
.notification-list { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid #eaecf0; }
.notification-item { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eaecf0; }
.notification-item.unread { background: linear-gradient(90deg, rgba(21,94,239,.045), transparent); }
.notification-item > div { display: flex; flex-direction: column; gap: 4px; }
.notification-item span { color: #475467; font-size: .86rem; line-height: 1.45; }
.notification-item small { color: #98a2b3; }
.text-button { border: 0; background: transparent; color: #155eef; font-weight: 750; white-space: nowrap; }
.empty-mini { color: #98a2b3; padding: 18px 0; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; padding: 18px; }
.resource-card { border: 1px solid #eaecf0; border-radius: 13px; padding: 18px; background: #fcfcfd; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.resource-card h3 { margin: 11px 0 7px; font-size: 1.05rem; }
.resource-actions, .row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.request-list { display: grid; }
.github-controls { padding: 18px; border-bottom: 1px solid #eaecf0; }
.github-controls .panel { border: 1px solid #eaecf0; box-shadow: none; }
.github-controls h3 { margin: 4px 0 8px; }
.github-warning { padding: 14px 22px; color: var(--orbit-danger); border-bottom: 1px solid #eaecf0; }
.github-repo-grid { border-bottom: 1px solid #eaecf0; }
.github-history:empty { display: none; }
.request-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 20px; border-top: 1px solid #eaecf0; }
.request-row:first-child { border-top: 0; }
.request-row > div:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.request-row span:not(.status), .request-row small { color: #667085; font-size: .8rem; overflow-wrap: anywhere; }
.ftp-row { align-items: flex-start; }

.toast-stack { position: fixed; right: 22px; top: 82px; width: min(390px, calc(100% - 32px)); display: grid; gap: 10px; z-index: 100; pointer-events: none; }
.toast { transform: translateY(-10px); opacity: 0; transition: .22s ease; border: 1px solid #d0d5dd; background: #fff; border-radius: 12px; box-shadow: 0 18px 46px rgba(16,24,40,.15); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast strong { font-size: .9rem; }
.toast span { color: #667085; font-size: .84rem; line-height: 1.45; }
.toast.success { border-color: #abefc6; }
.toast.warning { border-color: #fedf89; }
.toast.error { border-color: #fecdca; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(16,24,40,.58); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal-card { width: min(560px, 100%); padding: 28px; box-shadow: 0 30px 80px rgba(16,24,40,.26); }
.modal-card h2 { margin: 7px 0 8px; font-size: 1.5rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.credential-grid { margin: 18px 0; display: grid; gap: 0; border-top: 1px solid #eaecf0; }
.credential-grid > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eaecf0; }
.credential-grid dt { color: #667085; }
.credential-grid dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }

.stack-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.request-table .notes-cell { max-width: 320px; color: #667085; overflow-wrap: anywhere; line-height: 1.4; }
.reject-pop { position: relative; }
.reject-pop summary { list-style: none; cursor: pointer; }
.reject-pop summary::-webkit-details-marker { display: none; }
.reject-pop[open] form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 280px; padding: 12px; border: 1px solid #d0d5dd; border-radius: 11px; background: #fff; box-shadow: 0 16px 40px rgba(16,24,40,.14); display: grid; gap: 8px; }
.reject-pop form input { width: 100%; }
.ftp-approve-form { display: flex; align-items: center; gap: 7px; min-width: 245px; }
.compact-input { width: 135px !important; min-height: 34px !important; }

.progress-card { text-align: center; width: min(620px, 100%); padding: 36px; }
.spinner-ring { width: 58px; height: 58px; border: 5px solid #e4e7ec; border-top-color: #155eef; border-radius: 50%; margin: 0 auto 18px; animation: spin 1s linear infinite; }
.spinner-ring.done { border-color: #12b76a; animation: none; position: relative; }
.spinner-ring.failed { border-color: #f04438; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-card p { color: #667085; min-height: 24px; }
.progress-track { width: 100%; height: 10px; background: #eaecf0; border-radius: 999px; overflow: hidden; margin: 22px 0 8px; }
.progress-bar { height: 100%; background: #155eef; border-radius: inherit; transition: width .35s ease; }
.progress-meta { display: flex; justify-content: space-between; color: #667085; font-size: .8rem; text-transform: capitalize; }
.progress-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 24px; }
.progress-steps span { padding: 8px 4px; border-radius: 8px; background: #f2f4f7; color: #98a2b3; font-size: .7rem; font-weight: 800; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-steps span.active { background: #eff4ff; color: #155eef; }

.credential-banner { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; border-color: #b2ccff; background: #f5f8ff; }
.credential-banner h2 { margin: 4px 0 5px; font-size: 1.15rem; }
.credential-banner p { margin: 0; color: #475467; line-height: 1.5; }
.generated-secret { display: flex; gap: 9px; align-items: center; }
.generated-secret code { padding: 10px 12px; background: #fff; border: 1px solid #d0d5dd; font-size: .94rem; }
.users-table-wrap .data-table { min-width: 760px; }

@media (max-width: 960px) {
    .portal-grid, .two-column { grid-template-columns: 1fr; }
    .topnav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
    .credential-banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    .topbar-inner { align-items: flex-start; padding: 14px 0; }
    .topnav { justify-content: flex-end; }
    .request-row { align-items: flex-start; flex-direction: column; }
    .resource-grid { grid-template-columns: 1fr; padding: 12px; }
    .progress-steps { grid-template-columns: repeat(4, 1fr); gap: 4px; }
    .progress-steps span { font-size: .62rem; padding: 6px 2px; }
    .generated-secret { width: 100%; align-items: stretch; flex-direction: column; }
    .modal-actions, .form-actions { flex-direction: column-reverse; align-items: stretch; }
}

.status.info { color: #3538cd; background: #eef2ff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; padding: 14px 16px; background: var(--orbit-surface); border: 1px solid var(--orbit-line); border-radius: 14px; }
.filter-bar input[type="search"] { flex: 1 1 240px; min-width: 180px; }
.filter-bar select { min-width: 150px; }
.role-form { display: inline-flex; align-items: center; margin: 0; }
.role-select { padding: 4px 8px; font-size: 0.82rem; font-weight: 600; border-radius: 7px; border: 1px solid #d0d5dd; background: #ffffff; cursor: pointer; color: #344054; transition: border-color 0.15s ease; }
.role-select:hover { border-color: #98a2b3; }
.user-identity-cell { display: flex; align-items: center; gap: 13px; min-width: 240px; }
.user-avatar-badge { width: 38px; height: 38px; border-radius: 50%; background: #eef4ff; color: #155eef; font-weight: 750; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #d1e0ff; }
.user-meta { display: flex; flex-direction: column; gap: 2px; }
.user-name-line { display: flex; align-items: center; gap: 6px; }
.user-name-line strong { font-size: 0.94rem; color: var(--orbit-ink); }
.user-email { font-size: 0.82rem; color: #475467; }
.user-submeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; font-size: 0.76rem; }
.github-badge { display: inline-flex; align-items: center; color: #344054; background: #f2f4f7; padding: 2px 7px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 1px solid #eaecf0; transition: background 0.15s ease; }
.github-badge:hover { background: #e4e7ec; color: #101828; }
.badge-you { background: #ecfdf3; color: #027a48; border: 1px solid #a6f4c5; font-size: 0.68rem; font-weight: 700; border-radius: 12px; padding: 1px 7px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-role { display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge-role.admin { background: #f0fdf9; color: #087f68; border: 1px solid #a3e3d4; }
.status-stack { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.row-actions-group { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.users-table-wrap .data-table { min-width: 820px; }
.users-table-wrap .data-table th, .users-table-wrap .data-table td { padding: 14px 16px; vertical-align: middle; }
.admin-audit-section { margin-top: 24px; }
.credential-banner.card { border-left: 4px solid #12b76a; background: #f6fef9; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--orbit-line); }
.page-label { color: var(--orbit-muted); font-size: .78rem; font-weight: 700; }
@media (max-width: 720px) {
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar select, .filter-bar input[type="search"] { width: 100%; }
    .pagination { flex-direction: column; }
}

.log-message { padding: 14px 16px; border: 1px solid #d0d5dd; border-radius: 10px; background: #f8fafb; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; white-space: pre-wrap; overflow-wrap: anywhere; color: #344054; margin: 0 18px 18px; }
