@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/inter-regular.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/inter-medium.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/inter-semi-bold.woff2") format("woff2");
}

/* Doczilla's Inter, pink accent and neutral surfaces, sized for this portal. */
:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #323232;
  background: #f6f8f9;
  --ink: #323232;
  --muted: #646b75;
  --line: #e1e5e9;
  --accent: #ff3366;
  --accent-ink: #ce1947;
  --accent-wash: #fbe6ec;
  --surface: #fff;
  --soft: #f1f3f4;
  --success: #317253;
  --success-wash: #edf6f0;
  --danger: #ab304f;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; }
button, input, a, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-ink); }
[hidden] { display: none !important; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent-wash); }

.page-shell { width: min(1184px, calc(100% - 80px)); min-height: 100svh; margin: auto; display: flex; flex-direction: column; }
.site-header { min-height: 88px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 600; letter-spacing: -.8px; }
.brand-mark { object-fit: contain; }
.brand-dot, .title-dot { color: var(--accent); }
.header-caption { border-left: 1px solid var(--line); padding-left: 24px; color: var(--muted); font-size: 13px; }
.steps { margin-left: auto; }
.steps ol { padding: 0; margin: 0; list-style: none; display: flex; align-items: center; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.step-number { width: 26px; height: 26px; border: 1px solid #cbd1d8; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.steps li[aria-current] { color: var(--ink); font-weight: 500; }
.steps li[aria-current] .step-number { border-color: var(--ink); background: var(--ink); color: white; }
.steps li.is-complete .step-number { border-color: #efbecb; color: var(--accent-ink); background: var(--accent-wash); }
.step-divider { width: 24px; height: 1px; background: var(--line); }
main { padding: 46px 0 64px; flex: 1; outline: none; }
.page-heading { margin-bottom: 30px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.heading-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 500; }
.eyebrow-mark { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(-12deg); }
.title-line { display: flex; align-items: center; gap: 14px; }
h1 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.25; font-weight: 600; letter-spacing: -1.2px; margin: 0; outline: none; overflow-wrap: anywhere; }
.page-description { max-width: 600px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.count-badge, .group-count { display: inline-grid; place-items: center; padding: 2px 7px; min-width: 25px; min-height: 23px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--soft); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.title-count { min-height: 29px; min-width: 30px; background: transparent; font-size: 14px; }
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.primary-button, .secondary-button, .text-button, .icon-button, .filter-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-size: 13px; line-height: 1.45; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
.primary-button { padding: 10px 17px; border: 1px solid var(--ink); background: var(--ink); color: white; }
.primary-button:not(:disabled):hover { background: #171717; border-color: #171717; }
.secondary-button { padding: 10px 15px; border: 1px solid #d6dce2; background: white; color: var(--ink); }
.secondary-button:not(:disabled):hover { border-color: #bfc6cf; background: #f6f8f9; }
.text-button { padding: 8px 10px; border: 0; background: transparent; color: var(--muted); }
.text-button:not(:disabled):hover { color: var(--ink); background: #edf0f2; }
.icon-button { min-width: 40px; padding: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); }
.icon-button:not(:disabled):hover { color: var(--ink); background: var(--soft); border-color: var(--line); }
.primary-button:disabled, .secondary-button:disabled, .text-button:disabled, .icon-button:disabled { opacity: .5; }
.primary-button svg, .secondary-button svg, .text-button svg, .icon-button svg, .add-button svg { width: 17px; height: 17px; flex-shrink: 0; }
.add-button { white-space: nowrap; }
.label-compact { display: none; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source-filters { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #eceff1; }
.filter-button { padding: 7px 14px; min-height: 34px; border: 1px solid transparent; border-radius: 7px; white-space: nowrap; background: transparent; color: var(--muted); }
.filter-button:hover { color: var(--ink); background: #f6f8f9; }
.filter-button[aria-pressed="true"] { color: var(--ink); background: white; border-color: #dce1e6; box-shadow: 0 1px 3px #20252c08; }
.search-field { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 430px; flex: 1; padding: 0 13px; min-height: 42px; border: 1px solid #cbd2da; border-radius: 8px; background: white; color: var(--muted); }
.search-field:focus-within { border-color: var(--accent-ink); outline: 2px solid var(--accent-wash); outline-offset: 1px; }
.search-field svg { width: 18px; height: 18px; flex-shrink: 0; }
.search-field input { padding: 10px 0; width: 100%; min-width: 0; border: 0; border-radius: 2px; color: var(--ink); background: transparent; font-size: 13px; line-height: 1.6; outline: none; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field kbd { width: 22px; height: 23px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #f6f8f9; font: 12px Inter, sans-serif; color: var(--muted); }
.environment-search-field { max-width: 310px; }
.catalog-results { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; margin: 4px 0 12px; color: var(--muted); font-size: 12px; }
.catalog-results .text-button { min-height: 32px; padding: 4px 8px; font-size: 12px; }
.environment-group + .environment-group { margin-top: 28px; }
.environment-group-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.environment-group-heading h2 { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 500; letter-spacing: -.2px; }
.group-description { margin: 0 0 0 auto; color: var(--muted); font-size: 12px; line-height: 1.5; }
.environment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.environment-entry { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .18s, box-shadow .18s; }
.environment-entry:has(.environment-card:not(:disabled)):hover { border-color: #d3a1ae; box-shadow: 0 4px 16px #24283109; }
.environment-entry:focus-within { border-color: var(--accent-ink); }
.environment-card { position: relative; width: 100%; min-height: 212px; flex: 1; display: flex; flex-direction: column; padding: 20px 22px 16px; border: 0; border-radius: var(--radius); background: transparent; text-align: left; }
.environment-card:focus-visible { outline-offset: -3px; }
.environment-card:disabled { color: var(--muted); background: #fafbfc; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.environment-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #e8dce1; border-radius: 10px; background: #fff5f8; color: var(--accent-ink); flex-shrink: 0; }
.environment-icon svg { width: 21px; height: 21px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 5px; font-size: 11px; line-height: 1.5; font-weight: 500; color: var(--success); background: var(--success-wash); white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-unavailable { color: var(--muted); background: var(--soft); }
.source-label { color: var(--muted); margin-bottom: 7px; font-size: 11px; }
.environment-name { margin: 0; font-size: 23px; line-height: 1.3; font-weight: 500; letter-spacing: -.6px; overflow-wrap: anywhere; }
.environment-address { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.environment-detail { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.environment-detail svg { width: 14px; height: 14px; flex-shrink: 0; }
.environment-message { margin-top: 8px; color: #94601d; font-size: 12px; line-height: 1.6; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 19px; }
.card-footer-label, .environment-path { font-size: 12px; line-height: 1.5; color: var(--muted); }
.card-arrow { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--soft); color: var(--muted); transition: color .18s, background .18s; }
.card-arrow svg { width: 16px; height: 16px; }
.environment-card:not(:disabled):hover .card-arrow { color: var(--accent-ink); background: var(--accent-wash); }
.environment-card:not(:disabled):hover .card-footer-label { color: var(--accent-ink); }
.card-management { display: flex; justify-content: flex-end; margin: 0 16px; padding: 3px 0; border-top: 1px solid #edf0f2; }
.card-management .text-button { min-height: 36px; font-size: 12px; }
.discovery-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 25px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.small-orbit { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #9ba4b0; }
#last-updated { margin-left: auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--muted); font-size: 13px; margin: -12px 0 24px; }
.back-link:hover { color: var(--accent-ink); }
.back-link svg { width: 17px; height: 17px; }
.user-heading { margin-bottom: 24px; }
.selected-environment { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: white; margin-bottom: 24px; font-size: 13px; }
.selected-name { font-weight: 500; }
.selected-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--accent-ink); background: #fff5f8; flex-shrink: 0; }
.selected-icon svg { width: 20px; height: 20px; }
.selected-context { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.selected-dot { color: #b5bcc5; }
.selected-detail { min-width: 0; color: var(--muted); overflow-wrap: anywhere; line-height: 1.6; }
.selected-environment .status { margin-left: auto; }
.selected-environment > svg { width: 19px; height: 19px; color: var(--accent-ink); flex-shrink: 0; }
.remote-environment-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.remote-caption { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.remote-caption svg { width: 17px; height: 17px; flex-shrink: 0; }
.remote-environment-actions .toolbar-actions { flex-wrap: wrap; gap: 6px; }
.user-panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.user-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.user-count { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.user-list { list-style: none; padding: 0; margin: 0; }
.user-item + .user-item { border-top: 1px solid #edf0f2; }
.user-item:last-child > :first-child { border-radius: 0 0 var(--radius) var(--radius); }
.user-row { width: 100%; display: grid; grid-template-columns: 40px minmax(120px, 1.2fr) minmax(100px, 1fr) auto; align-items: center; gap: 14px; border: 0; padding: 21px 22px; background: transparent; text-align: left; transition: background .15s; }
.user-row:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.user-row:not(:disabled):hover, .remote-user-row:hover { background: #fafbfc; }
.user-row:disabled { color: var(--muted); }
.user-avatar { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #e1e5e9; border-radius: 12px; background: var(--soft); color: #525c68; font-size: 13px; font-weight: 500; }
.user-identity { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.user-login { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.user-email, .user-display-name { color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.account-display-name { color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.user-notice { display: block; color: #94601d; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.user-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; min-width: 94px; padding: 8px 12px; border: 1px solid #d6dce2; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 500; }
.user-action svg { width: 16px; height: 16px; }
.user-row:not(:disabled):hover .user-action { background: var(--ink); border-color: var(--ink); color: white; }
.user-row.is-signing-in, .remote-user-row.is-signing-in { background: #fff5f8; }
.user-row.is-signing-in .user-action { border-color: #eeb6c5; color: var(--accent-ink); }
.user-row:disabled:not(.is-signing-in) .user-action { color: var(--muted); border-color: var(--line); }
.remote-account-main { display: grid; grid-template-columns: minmax(190px, 1.3fr) minmax(160px, 1fr) minmax(160px, .9fr) auto; align-items: center; gap: 22px; padding: 24px 22px; }
.account-identity { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.account-role-column { min-width: 0; }
.account-column-label { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-bottom: 7px; }
.account-roles { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.role-chip { display: inline-block; max-width: 100%; padding: 4px 8px; border: 1px solid #e7eaee; border-radius: 5px; background: #f3f5f6; color: #525c68; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.role-disclosure { position: relative; display: inline-flex; flex: 0 0 auto; }
.role-more { min-height: 28px; cursor: pointer; color: var(--accent-ink); background: #fff5f8; border-color: #f0c8d3; text-decoration: underline; text-underline-offset: 3px; }
.role-more:hover, .role-more[aria-expanded="true"] { background: var(--accent-wash); border-color: #e69caf; }
.role-popover { position: absolute; z-index: 4; top: calc(100% + 8px); left: 0; width: max-content; min-width: 220px; max-width: min(360px, calc(100vw - 64px)); padding: 12px; border: 1px solid #d9dfe5; border-radius: 10px; background: white; box-shadow: 0 12px 32px #252b3517; }
.role-popover-title { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.role-popover-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.roles-unknown { align-self: center; font-size: 12px; line-height: 1.6; color: var(--muted); }
.account-verification { display: flex; flex-direction: column; gap: 5px; }
.account-check { display: inline-flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.account-check::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.account-check-verified { color: var(--success); }
.account-check-invalid { color: var(--danger); }
.account-check-action { color: #94601d; }
.checked-time { padding-left: 13px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.account-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.account-login { min-width: 110px; }
.account-tools { display: flex; align-items: center; gap: 6px; }
.notice { border: 1px solid #ead7b4; border-radius: 10px; background: #fffaf1; color: #805d25; padding: 14px 17px; margin: 0 0 20px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.notice-error { border-color: #efc5cf; background: #fff4f6; color: var(--danger); }
.state-panel { display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px dashed #ccd3da; border-radius: var(--radius); background: #ffffff99; padding: 44px 24px; }
.state-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); background: white; border-radius: 13px; color: var(--muted); margin-bottom: 18px; }
.state-icon svg { width: 24px; height: 24px; }
.state-title { margin: 0; font-weight: 500; font-size: 18px; letter-spacing: -.3px; line-height: 1.5; }
.state-description { margin: 9px 0 0; max-width: 420px; color: var(--muted); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.state-panel .secondary-button { margin-top: 20px; }
.user-panel .state-panel { border: 0; background: white; border-radius: 0 0 var(--radius) var(--radius); }
.manager-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 40px); border: 1px solid var(--line); border-radius: 18px; padding: 0; color: var(--ink); background: white; box-shadow: 0 24px 80px #18223530; }
.manager-dialog::backdrop { background: #20262e55; backdrop-filter: blur(3px); }
.manager-form { padding: 28px; }
.dialog-heading { position: relative; margin-bottom: 28px; padding-right: 22px; }
.dialog-heading .eyebrow { margin-bottom: 10px; }
.dialog-heading .icon-button { position: absolute; right: -12px; top: -12px; }
.dialog-heading h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.7px; overflow-wrap: anywhere; }
.dialog-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.manager-fields { display: flex; flex-direction: column; gap: 22px; }
.field-label { display: block; margin-bottom: 8px; font-size: 13px; line-height: 1.5; font-weight: 500; }
.field-input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #b9c2cc; border-radius: 8px; color: var(--ink); background: white; font-size: 14px; line-height: 1.5; outline-offset: 2px; }
.field-input::placeholder { color: var(--muted); }
.field-input:disabled { background: #f6f8f9; }
.field-input[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.field-error { margin: 8px 0 0; font-size: 12px; line-height: 1.65; color: var(--danger); }
.password-control { position: relative; }
.password-control .field-input { padding-right: 100px; }
.password-reveal { position: absolute; top: 3px; right: 3px; min-width: 88px; height: calc(100% - 6px); border: 0; border-left: 1px solid var(--line); border-radius: 0 5px 5px 0; padding: 0 12px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
.password-reveal:not(:disabled):hover { color: var(--ink); background: var(--soft); }
.password-reveal:disabled { opacity: .5; cursor: not-allowed; }
.manager-form .notice { margin: 22px 0 0; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.dialog-submit-actions { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.danger-text { color: var(--danger); }
.danger-text:not(:disabled):hover { color: #84213c; background: #fff0f4; }
.danger-button { border-color: var(--danger); background: var(--danger); }
.danger-button:not(:disabled):hover { border-color: #84213c; background: #84213c; }
.skeleton { position: relative; overflow: hidden; background: #eaeef1; border-radius: 5px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, #ffffffb3, transparent); animation: shimmer 1.6s infinite; }
.skeleton-card { min-height: 212px; border: 1px solid var(--line); background: white; }
.skeleton-icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 18px; }
.skeleton-title { width: 42%; height: 23px; margin-bottom: 12px; }
.skeleton-text { width: 68%; height: 13px; }
.skeleton-footer { width: 60%; height: 12px; margin-top: auto; }
.skeleton-user { display: flex; align-items: center; gap: 14px; padding: 22px; }
.skeleton-user + .skeleton-user { border-top: 1px solid var(--line); }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 12px; }
.skeleton-identity { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.skeleton-login { width: 28%; height: 13px; }
.skeleton-email { width: 43%; height: 11px; }
.spinner { width: 15px; height: 15px; display: inline-block; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.footer-wordmark { color: var(--ink); letter-spacing: -.4px; font-size: 15px; font-weight: 600; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px 16px; background: white; border: 1px solid var(--accent); border-radius: 8px; }
.skip-link:focus { top: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript-message { position: fixed; bottom: 20px; left: 20px; right: 20px; padding: 20px; border: 1px solid #efc5cf; background: #fff4f6; border-radius: 10px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1050px) {
  .catalog-heading { align-items: flex-start; }
  .catalog-heading > .toolbar-actions { padding-top: 28px; }
  .refresh-button > span { display: none; }
  .refresh-button { min-width: 42px; padding: 10px; }
  .remote-account-main { grid-template-columns: minmax(180px, 1fr) minmax(150px, .8fr) auto; gap: 16px 22px; }
  .account-role-column { grid-column: 1; grid-row: 2; padding-left: 54px; }
  .account-actions { grid-column: 3; grid-row: 1 / span 2; }
  .account-verification { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 850px) {
  .page-shell { width: calc(100% - 48px); }
  .header-caption { display: none; }
  .environment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar { gap: 16px; }
  .environment-search-field { max-width: 250px; }
  .filter-button { padding: 7px 10px; }
  .group-description { width: 100%; margin: -3px 0 0; }
  .remote-environment-actions .toolbar-actions { width: 100%; justify-content: flex-start; }
  .remote-environment-actions .add-button { margin-left: auto; }
}
@media (max-width: 640px) {
  .page-shell { width: calc(100% - 32px); }
  .site-header { min-height: 76px; gap: 16px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand-mark { width: 28px; height: 26px; }
  .steps ol { gap: 8px; }
  .steps li { gap: 6px; font-size: 11px; }
  .step-divider { width: 12px; }
  main { padding: 32px 0 44px; }
  .catalog-heading { flex-direction: column; gap: 22px; }
  .catalog-heading > .toolbar-actions { padding-top: 0; }
  .page-heading { margin-bottom: 24px; }
  h1 { letter-spacing: -.9px; }
  .page-description { font-size: 13px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .source-filters { align-self: flex-start; }
  .filter-button { padding: 8px 13px; }
  .environment-search-field { max-width: none; }
  .environment-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .environment-card { min-height: 198px; padding: 18px 20px 15px; }
  .card-top { margin-bottom: 15px; }
  .environment-name { font-size: 22px; }
  .card-footer { padding-top: 16px; }
  .refresh-button > span { display: inline; }
  .refresh-button { padding: 10px 15px; }
  .group-description { font-size: 12px; }
  .discovery-caption { font-size: 11px; }
  #last-updated { width: 100%; margin-left: 16px; }
  .selected-environment { padding: 14px 16px; gap: 10px; }
  .selected-detail { width: 100%; order: 4; font-size: 12px; }
  .selected-dot { display: none; }
  .back-link { margin: -8px 0 20px; }
  .remote-environment-actions .toolbar-actions { gap: 6px; }
  .remote-environment-actions .text-button { font-size: 12px; padding-inline: 8px; }
  .remote-environment-actions .add-button { margin-left: 0; }
  .remote-environment-actions .label-full { display: none; }
  .remote-environment-actions .label-compact { display: inline; }
  .remote-environment-actions .add-button { padding-inline: 12px; font-size: 12px; }
  .user-toolbar { align-items: stretch; flex-direction: column; gap: 10px; padding: 16px; }
  .user-toolbar .search-field { max-width: none; }
  .search-field kbd { display: none; }
  .search-field input, .field-input { font-size: 16px; }
  .user-count { padding-left: 2px; }
  .user-row { padding: 18px 16px; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
  .user-avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
  .user-display-name { grid-column: 2; grid-row: 2; }
  .user-display-name:empty { display: none; }
  .user-action { grid-column: 3; grid-row: 1; min-width: 78px; padding: 8px 10px; gap: 6px; }
  .user-email { font-size: 12px; }
  .remote-account-main { grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 20px 16px; gap: 18px; }
  .account-identity { gap: 10px; }
  .account-role-column { grid-column: 1; grid-row: 2; padding-left: 0; }
  .role-popover { width: min(320px, calc(100vw - 64px)); min-width: 0; }
  .account-verification { grid-column: 1; grid-row: 3; }
  .account-actions { grid-column: 2; grid-row: 1 / span 3; }
  .account-login { min-width: 100px; }
  .account-tool span { display: none; }
  .account-tool { min-width: 44px; }
  .icon-button, .primary-button, .secondary-button, .text-button { min-height: 44px; }
  .icon-button { min-width: 44px; }
  .manager-dialog { max-height: calc(100svh - 24px); }
  .manager-form { padding: 24px 20px; }
  .dialog-heading h2 { font-size: 23px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-submit-actions { gap: 8px; }
  .site-footer { min-height: 68px; font-size: 11px; gap: 12px; }
}
@media (max-width: 390px) {
  .steps li > span:not(.step-number) { display: none; }
  .steps li[aria-current] > span:not(.step-number) { display: inline; }
  .step-divider { display: none !important; }
}
@media (max-width: 350px) {
  .remote-account-main { grid-template-columns: minmax(0, 1fr); }
  .account-actions { grid-column: 1; grid-row: 4; flex-direction: row; justify-content: space-between; align-items: center; }
  .account-login { min-width: 110px; }
  .user-row { gap: 8px; }
  .user-action { min-width: 68px; font-size: 12px; padding-inline: 8px; }
  .dialog-submit-actions { width: 100%; flex-direction: column-reverse; }
  .dialog-submit-actions > button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
