:root {
  --ink: #17213f;
  --ink-strong: #10162f;
  --muted: #68728f;
  --navy: #101836;
  --teal: #00a88f;
  --teal-dark: #007f70;
  --violet: #7254e8;
  --line: #dfe5f1;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --soft: #f5f7fc;
  --danger: #c44356;
  --success: #087c69;
  --input-bg: #f9fafd;
  --input-border: #d8dfeb;
  --card-shadow: 0 20px 55px #27345212;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #f1f4fa;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8fafc;
  --ink-strong: #ffffff;
  --muted: #94a3b8;
  --navy: #0b1120;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --violet: #8b5cf6;
  --line: #1e293b;
  --surface: rgba(17, 24, 39, 0.92);
  --surface-solid: #111827;
  --soft: #141e30;
  --danger: #f87171;
  --success: #10b981;
  --input-bg: #141d2e;
  --input-border: #28374f;
  --card-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  background: #090d16;
}

* { box-sizing: border-box; }
html { min-height: 100%; transition: background-color .2s ease, color .2s ease; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 15% 10%, #e0fbf6 0, transparent 32%), radial-gradient(circle at 90% 18%, #eee8ff 0, transparent 34%), linear-gradient(145deg, #f7f9fd 0%, #edf1f8 100%); }
[data-theme="dark"] body { background: radial-gradient(circle at 15% 10%, rgba(20, 184, 166, 0.12) 0, transparent 35%), radial-gradient(circle at 90% 18%, rgba(139, 92, 246, 0.12) 0, transparent 35%), linear-gradient(145deg, #090d16 0%, #0d1322 100%); }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.ambient { position: fixed; border-radius: 999px; filter: blur(2px); opacity: .5; pointer-events: none; }
.ambient-one { width: 420px; height: 420px; left: -180px; top: 40%; background: linear-gradient(145deg, #96ead9, transparent 70%); }
.ambient-two { width: 360px; height: 360px; right: -130px; top: 8%; background: linear-gradient(145deg, #c6b8ff, transparent 72%); }
[data-theme="dark"] .ambient-one { opacity: .2; background: linear-gradient(145deg, #14b8a6, transparent 70%); }
[data-theme="dark"] .ambient-two { opacity: .2; background: linear-gradient(145deg, #8b5cf6, transparent 72%); }

.page-shell { position: relative; z-index: 1; width: min(1480px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; padding: 14px 0 20px; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 6px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: transparent; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.brand-mark svg { display: block; width: 42px; height: 42px; border-radius: 12px; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 18px; letter-spacing: -.3px; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 1px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  transition: all .2s ease;
}
.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
[data-theme="dark"] .theme-toggle {
  background: rgba(30, 41, 59, .7);
  border-color: #334155;
  color: #f1f5f9;
}
[data-theme="dark"] .theme-toggle:hover {
  background: #1e293b;
  border-color: var(--teal);
}
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

.environment { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-width: max-content; padding: 9px 13px; border: 1px solid #dce3ef; border-radius: 999px; color: #58627d; background: rgba(255,255,255,.65); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
[data-theme="dark"] .environment { border-color: rgba(255,255,255,.12); color: #cbd5e1; background: rgba(30,41,59,.6); }
.environment .environment-dot { display: block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #18b593; box-shadow: 0 0 0 4px #18b5931c; }
.ghost-button { border: 1px solid #d6ddeb; border-radius: 12px; padding: 10px 15px; color: #38425f; background: rgba(255,255,255,.7); font-weight: 700; }
.ghost-button:hover { border-color: #9ba8c0; background: white; }
[data-theme="dark"] .ghost-button { border-color: #334155; color: #e2e8f0; background: rgba(30,41,59,.7); }
[data-theme="dark"] .ghost-button:hover { border-color: #475569; background: #1e293b; }

.login-view { min-height: calc(100vh - 98px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .72fr); gap: clamp(34px, 5vw, 80px); align-items: center; padding: 12px clamp(8px, 3vw, 48px) 24px; }
.login-story { max-width: 780px; }
.eyebrow { margin: 0 0 10px; color: #79839d; font-size: 11px; font-weight: 900; letter-spacing: 1.8px; }
.eyebrow.accent { color: var(--teal-dark); }
[data-theme="dark"] .eyebrow.accent { color: var(--teal); }
.login-story h1, .console-hero h1 { margin: 0; color: var(--ink-strong); font-size: clamp(42px, 4.5vw, 66px); line-height: 1; letter-spacing: -2.8px; }
.login-story .lead { max-width: 710px; margin: 18px 0 24px; color: #59647f; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; }
[data-theme="dark"] .login-story .lead { color: var(--muted); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.capability-grid article { padding: 15px 16px; border: 1px solid #dce3ef; border-radius: 16px; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
[data-theme="dark"] .capability-grid article { border-color: var(--line); background: rgba(255,255,255,.04); }
.capability-grid span { display: block; color: var(--teal-dark); font-size: 11px; font-weight: 900; }
[data-theme="dark"] .capability-grid span { color: var(--teal); }
.capability-grid strong { display: block; margin-top: 6px; font-size: 14px; color: var(--ink); }
.capability-grid p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.trust-strip span { padding: 8px 12px; border-radius: 999px; color: #46605e; background: #e3f6f1; font-size: 11px; font-weight: 800; }
[data-theme="dark"] .trust-strip span { color: #5eead4; background: rgba(20,184,166,.15); border: 1px solid rgba(20,184,166,.25); }

.login-card { position: relative; padding: 31px 34px 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 25px; background: var(--surface); box-shadow: var(--card-shadow), inset 0 1px rgba(255,255,255,.2); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
[data-theme="dark"] .login-card { border-color: rgba(255,255,255,.1); box-shadow: var(--card-shadow); }
.login-card::before { content: ""; position: absolute; width: 170px; height: 170px; right: -65px; top: -75px; border-radius: 50%; background: linear-gradient(145deg, #b8f2e6, #d9cfff); opacity: .75; }
[data-theme="dark"] .login-card::before { opacity: .18; background: linear-gradient(145deg, #14b8a6, #8b5cf6); }
.card-icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 15px; color: var(--teal-dark); background: linear-gradient(145deg, #e0faf4, #f0edff); box-shadow: inset 0 0 0 1px #d9eee9; }
[data-theme="dark"] .card-icon { color: var(--teal); background: linear-gradient(145deg, rgba(20,184,166,.2), rgba(139,92,246,.2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.card-lock-icon { display: block; width: 25px; height: 25px; overflow: visible; }
.login-card h2 { margin: 0; color: var(--ink-strong); font-size: 29px; letter-spacing: -1px; }
.card-copy { margin: 7px 0 19px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.login-card label, .tenant-form label { display: block; margin: 13px 0 7px; color: var(--ink); font-size: 11px; font-weight: 800; }
.input-shell { position: relative; display: flex; align-items: center; }
.input-shell input { width: 100%; height: 50px; padding: 0 58px 0 44px; border: 1px solid var(--input-border); border-radius: 13px; outline: none; color: var(--ink); background: var(--input-bg); transition: .18s ease; }
.input-shell input:focus, .tenant-input-wrap:focus-within { border-color: #1aa68f; box-shadow: 0 0 0 4px #18a68f15; background: var(--surface-solid); }
input::placeholder { color: #9aa7b7; font-weight: 400; opacity: 0.85; }
[data-theme="dark"] input::placeholder { color: #64748b; font-weight: 400; opacity: 0.85; }
.input-symbol { position: absolute; z-index: 1; left: 15px; display: grid; place-items: center; width: 20px; height: 20px; color: #77839d; pointer-events: none; }
.input-symbol svg { display: block; width: 20px; height: 20px; }
.input-action { position: absolute; right: 8px; border: 0; padding: 9px; color: var(--teal-dark); background: transparent; font-size: 11px; font-weight: 900; }
[data-theme="dark"] .input-action { color: var(--teal); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; border: 0; border-radius: 14px; padding: 0 20px; color: white; background: linear-gradient(135deg, #00a990, #087aa5); box-shadow: 0 12px 28px #008d8040; font-weight: 800; transition: transform .18s, box-shadow .18s; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 32px #008d8050; }
.primary-button:disabled { opacity: .65; cursor: wait; }
.login-card > .primary-button { width: 100%; margin-top: 20px; }
.form-message { min-height: 16px; margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.form-message.error { color: var(--danger); font-weight: 700; }
.form-message.success { color: var(--success); font-weight: 700; }
.local-notice { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 10px 12px; border-radius: 11px; color: #66708b; background: #f1f4fa; font-size: 10px; line-height: 1.4; }
[data-theme="dark"] .local-notice { color: #94a3b8; background: #141e30; border: 1px solid #1e293b; }
.local-notice > span { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: white; background: #75819a; font-weight: 900; }

.console-view { padding: 38px 6px 30px; }
.console-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; padding: 0 4px; }
.console-hero h1 { font-size: clamp(38px, 4vw, 58px); letter-spacing: -2.4px; color: var(--ink-strong); }
.console-hero > div:first-child > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.operator-chip { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.operator-chip .avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--violet), #9b72ee); font-weight: 900; }
.operator-chip > span:nth-child(2) { display: grid; }
.operator-chip small { color: var(--muted); font-size: 10px; }
.operator-chip strong { font-size: 13px; color: var(--ink); }
.operator-chip i { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #17b693; box-shadow: 0 0 0 4px #17b6931b; }
.console-grid { display: grid; grid-template-columns: minmax(0, 1fr) 365px; gap: 22px; align-items: start; }
.main-column, .side-column { display: grid; gap: 22px; }
.panel { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow), inset 0 1px rgba(255,255,255,.1); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.onboarding-panel, .handoff-panel { padding: 30px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading > div:first-child { display: flex; align-items: center; gap: 14px; }
.panel-heading h2 { margin: 0; color: var(--ink-strong); font-size: 24px; letter-spacing: -.7px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.step-number { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; color: white; background: linear-gradient(145deg, #6f56df, #9877ec); font-size: 13px; font-weight: 900; box-shadow: 0 9px 20px #7358da35; }
.step-number.success { background: linear-gradient(145deg, #00aa8e, #058172); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.ready, .status-pill.created { color: #087c69; background: #e1f7f1; }
[data-theme="dark"] .status-pill.ready, [data-theme="dark"] .status-pill.created { color: #5eead4; background: rgba(20,184,166,.2); }
.status-pill.existing { color: #6952c8; background: #eeeaff; }
[data-theme="dark"] .status-pill.existing { color: #c4b5fd; background: rgba(139,92,246,.2); }
.panel-intro { max-width: 730px; margin: 20px 0 24px; color: var(--muted); line-height: 1.65; }
.tenant-entry { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 12px; }
.tenant-input-wrap { display: flex; align-items: center; height: 54px; overflow: hidden; border: 1px solid var(--input-border); border-radius: 14px; background: var(--input-bg); transition: .18s; }
.tenant-prefix { align-self: stretch; display: flex; align-items: center; padding: 0 14px; border-right: 1px solid var(--line); color: var(--muted); background: var(--soft); font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.tenant-input-wrap input { width: 100%; height: 100%; border: 0; outline: 0; padding: 0 15px; color: var(--ink); background: transparent; font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.tenant-input-wrap input::placeholder { color: #9aa7b7; font-weight: 400; opacity: 0.75; }
[data-theme="dark"] .tenant-input-wrap input::placeholder { color: #64748b; font-weight: 400; opacity: 0.75; }
.field-hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; }

.handoff-panel { background: linear-gradient(150deg, var(--surface), var(--surface)); }
.handoff-header-actions { display: flex; align-items: center; gap: 9px; }
.close-handoff { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); font-size: 21px; line-height: 1; }
.close-handoff:hover { border-color: var(--teal); color: var(--ink); background: var(--surface-solid); }
.handoff-banner { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; padding: 18px; border: 1px solid #d9e8e4; border-radius: 18px; background: linear-gradient(120deg, #eafaf6, #f2efff); }
[data-theme="dark"] .handoff-banner { border-color: rgba(20,184,166,.25); background: linear-gradient(120deg, rgba(20,184,166,.12), rgba(139,92,246,.12)); }
.client-monogram { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto; border-radius: 15px; color: white; background: linear-gradient(145deg, #00a68d, #197db0); font-size: 20px; font-weight: 900; box-shadow: 0 10px 22px #098a7b35; }
.handoff-banner > div:nth-child(2) { display: grid; }
.handoff-banner small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.handoff-banner strong { margin-top: 2px; color: var(--ink-strong); font-size: 20px; text-transform: uppercase; }
.handoff-banner p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.handoff-banner .secondary-button { margin-left: auto; }
.secondary-button { min-height: 38px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 800; }
.secondary-button:hover { border-color: var(--teal); background: var(--surface-solid); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.result-card.wide { grid-column: 1 / -1; }
.result-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.result-heading > div { display: grid; }
.result-heading small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.result-heading strong { margin-top: 2px; font-size: 13px; color: var(--ink); }
.result-icon { position: relative; display: block; width: 30px; height: 30px; border-radius: 9px; background: #e6f6f2; }
[data-theme="dark"] .result-icon { background: rgba(20,184,166,.15); }
.result-icon::before { content: ""; position: absolute; inset: 9px; border: 2px solid #098875; border-radius: 3px; }
[data-theme="dark"] .result-icon::before { border-color: #14b8a6; }
.shield-icon { background: #eeeaff; }.shield-icon::before { border-color: #7056ce; border-radius: 8px 8px 10px 10px; }
[data-theme="dark"] .shield-icon { background: rgba(139,92,246,.15); } [data-theme="dark"] .shield-icon::before { border-color: #a78bfa; }
.api-icon { background: #e8f2ff; }.api-icon::before { border-color: #3471b7; border-radius: 50%; }
[data-theme="dark"] .api-icon { background: rgba(59,130,246,.15); } [data-theme="dark"] .api-icon::before { border-color: #60a5fa; }
.route-icon { background: #fff0e7; }.route-icon::before { border-color: #b96836; transform: rotate(45deg); }
[data-theme="dark"] .route-icon { background: rgba(249,115,22,.15); } [data-theme="dark"] .route-icon::before { border-color: #fb923c; }
.value-row, .secret-row { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 7px 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); }
.value-row code, .secret-row code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
[data-theme="dark"] .value-row code, [data-theme="dark"] .secret-row code { color: #38bdf8; }
.secret-value.masked { filter: blur(5px); -webkit-user-select: none; user-select: none; }
.value-row button, .secret-row button { flex: 0 0 auto; border: 0; border-radius: 7px; padding: 6px 8px; color: var(--teal-dark); background: #eaf8f5; font-size: 9px; font-weight: 900; }
[data-theme="dark"] .value-row button, [data-theme="dark"] .secret-row button { color: #5eead4; background: rgba(20,184,166,.2); }
.open-button { margin-top: 10px; border: 0; padding: 0; color: var(--teal-dark); background: transparent; font-size: 11px; font-weight: 900; }
[data-theme="dark"] .open-button { color: var(--teal); }
.handoff-guidance { margin-top: 16px; padding: 14px 16px; border-left: 3px solid #8a6ce2; border-radius: 0 12px 12px 0; background: #f4f1ff; }
[data-theme="dark"] .handoff-guidance { background: rgba(139,92,246,.12); }
.handoff-guidance strong { font-size: 12px; color: var(--ink); }
.handoff-guidance p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.side-column .panel { padding: 22px; }
.panel-heading.compact h2 { font-size: 18px; }
.panel-heading.compact .step-number { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, #00aa8e, #078575); }
.token-panel > p { margin: 16px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.platform-token { padding: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.platform-token code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--ink); }
[data-theme="dark"] .platform-token code { color: #38bdf8; }
.token-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.security-note { display: flex; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 12px; color: #765b27; background: #fff7df; }
[data-theme="dark"] .security-note { color: #fde047; background: rgba(234,179,8,.12); border: 1px solid rgba(234,179,8,.2); }
.security-note > span { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; color: white; background: #d49a2e; font-size: 11px; font-weight: 900; }
.security-note p { display: grid; margin: 0; font-size: 10px; line-height: 1.5; }
.journey-panel > .eyebrow { margin-bottom: 17px; }
.journey-panel ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.journey-panel li { position: relative; display: flex; gap: 11px; min-height: 63px; }
.journey-panel li:not(:last-child)::after { content: ""; position: absolute; width: 1px; height: 27px; left: 14px; top: 32px; background: var(--line); }
.journey-panel li > span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface-solid); font-size: 10px; font-weight: 900; }
.journey-panel li.complete > span { border-color: transparent; color: white; background: #0c9c84; }
.journey-panel li.active > span { border-color: #7960dc; color: #7057ce; background: #f0ecff; }
.journey-panel li div { display: grid; align-content: start; padding-top: 2px; }
.journey-panel strong { font-size: 12px; color: var(--ink); }
.journey-panel small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.toast { position: fixed; z-index: 10; right: 26px; bottom: 24px; max-width: 380px; padding: 13px 17px; border-radius: 13px; color: white; background: #1f2947; box-shadow: 0 18px 45px #17213f48; font-size: 12px; font-weight: 800; }
.toast.success { background: #087c69; }.toast.error { background: #b64054; }

.decommission-dialog { width: min(490px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 24px; padding: 30px; color: var(--ink); background: var(--surface-solid); box-shadow: 0 32px 100px rgba(0,0,0,.5); }
.decommission-dialog::backdrop { background: rgba(16,24,54,.58); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.decommission-dialog .decommission-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 18px; border-radius: 14px; color: white; background: linear-gradient(145deg, #d85a68, #a83c51); box-shadow: 0 10px 24px #b33f5140; font-weight: 900; }
.decommission-dialog h2 { margin: 0; color: var(--ink-strong); font-size: 27px; letter-spacing: -.8px; }
.decommission-dialog > p:not(.eyebrow):not(.form-message) { margin: 11px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.decommission-target { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #eadde0; border-radius: 12px; color: #7b6670; background: #fff7f8; font-size: 11px; }
[data-theme="dark"] .decommission-target { border-color: rgba(239,68,68,.3); color: #fca5a5; background: rgba(239,68,68,.1); }
.decommission-target strong { margin-left: 5px; color: #9d3448; font-family: ui-monospace, Consolas, monospace; }
[data-theme="dark"] .decommission-target strong { color: #f87171; }
.decommission-dialog label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 11px; font-weight: 800; }
.decommission-dialog input { width: 100%; height: 48px; border: 1px solid var(--input-border); border-radius: 12px; padding: 0 14px; outline: none; color: var(--ink); background: var(--input-bg); font-family: ui-monospace, Consolas, monospace; }
.decommission-dialog input:focus { border-color: #c54b5f; box-shadow: 0 0 0 4px #c54b5f12; background: var(--surface-solid); }
.decommission-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.danger-button { min-height: 42px; border: 0; border-radius: 11px; color: white; background: linear-gradient(135deg, #c94b5e, #9d344a); font-size: 10px; font-weight: 850; }
.danger-button:disabled { opacity: .42; cursor: not-allowed; }

.reactivate-dialog { border-color: var(--line); }
.reactivate-dialog .reactivate-icon { background: linear-gradient(145deg, #0ba38c, #087c69); box-shadow: 0 10px 24px #087c6933; font-size: 20px; }
.reactivate-dialog .reactivate-target { border-color: #d2ebe4; color: #436d64; background: #f0faf7; }
[data-theme="dark"] .reactivate-dialog .reactivate-target { border-color: rgba(20,184,166,.3); color: #5eead4; background: rgba(20,184,166,.1); }
.reactivate-dialog .reactivate-target strong { color: #087c69; }
[data-theme="dark"] .reactivate-dialog .reactivate-target strong { color: #2dd4bf; }
.reactivate-dialog input:focus { border-color: #0ba38c; box-shadow: 0 0 0 4px #0ba38c15; }
.reactivate-confirm-button { min-height: 42px; border: 0; border-radius: 11px; color: white; background: linear-gradient(135deg, #0ba38c, #087c69); font-size: 10px; font-weight: 850; cursor: pointer; }
.reactivate-confirm-button:disabled { opacity: .42; cursor: not-allowed; }

@media (max-width: 1050px) {
  .login-view { grid-template-columns: 1fr; padding-top: 50px; }
  .login-card { max-width: 600px; }
  .console-grid { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 24px, 1480px); padding-top: 10px; }
  .environment { display: none; }
  .login-view { padding: 35px 2px 60px; }
  .login-story h1 { font-size: 45px; letter-spacing: -2px; }
  .capability-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 22px; }
  .console-hero { align-items: flex-start; flex-direction: column; }
  .console-hero h1 { font-size: 40px; }
  .operator-chip { width: 100%; }
  .onboarding-panel, .handoff-panel { padding: 22px 17px; }
  .tenant-entry { grid-template-columns: 1fr; }
  .tenant-entry .primary-button { width: 100%; }
  .panel-heading { align-items: flex-start; }
  .status-pill { display: none; }
  .handoff-banner { align-items: flex-start; flex-wrap: wrap; }
  .handoff-banner .secondary-button { width: 100%; margin-left: 0; }
  .result-grid, .side-column { grid-template-columns: 1fr; }
  .result-card.wide { grid-column: auto; }
  .decommission-dialog { padding: 24px 19px; }
  .decommission-actions { grid-template-columns: 1fr; }
}
