/* AVLAB Cloud visual system — based on the supplied Signal Bay design package. */
:root {
  --bg: #0a0c0f;
  --surface: #15181d;
  --surface-2: #1b2026;
  --line: #282e36;
  --line-soft: #1c2128;
  --text: #eae7df;
  --text-dim: #8d949d;
  --text-faint: #565d66;
  --accent: #f5c518;
  --accent-soft: rgba(245, 197, 24, .14);
  --accent-glow: rgba(245, 197, 24, .38);
  --good: #57cd8f;
  --good-soft: rgba(87, 205, 143, .14);
  --bad: #ef5b46;
  --bad-soft: rgba(239, 91, 70, .14);
  --radius: 6px;
  --radius-lg: 10px;
  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --shadow-panel: 0 30px 60px -25px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .03);
}

body { background: var(--bg); color: var(--text); font-family: var(--display); }
h1, h2, h3, h4 { letter-spacing: -.01em; }
a { color: var(--accent); }
.brand, .eyebrow { font-family: var(--mono); color: var(--accent); }
.language-menu { position: relative; }
.language-menu > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary.language-trigger { width: 44px; min-width: 44px; min-height: 44px; padding: 0; justify-content: center; gap: 0; }
.language-menu > summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.language-menu[open] > summary { border-color: rgba(245,197,24,.72); background: var(--accent-soft); color: var(--accent); }
.language-popover { position: absolute; top: calc(100% + 9px); right: 0; z-index: 20; width: 218px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, #1b2026, #13171c); box-shadow: var(--shadow-panel), 0 18px 40px rgba(0,0,0,.45); }
.language-menu-label { display: block; margin: 2px 6px 9px; color: var(--text-faint); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.language-option { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 10px 11px; border: 1px solid transparent; border-radius: var(--radius); color: var(--text-dim); text-decoration: none; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.language-option + .language-option { margin-top: 4px; }
.language-option strong { color: inherit; font-size: 14px; }
.language-option small { color: var(--text-faint); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.language-option:hover, .language-option:focus-visible { border-color: var(--line); background: rgba(255,255,255,.035); color: var(--text); outline: none; }
.language-option[aria-current="true"] { border-color: rgba(245,197,24,.55); background: var(--accent-soft); color: var(--accent); }
.language-option[aria-current="true"] small { color: var(--accent); }
.language-menu-float { position: fixed; top: 20px; right: 24px; z-index: 8; }
.muted { color: var(--text-dim); }
.top { border-color: var(--line); }
.hero, .card { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-color: var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-panel); }
.hero { padding: 32px; }
.card { padding: 24px; }
.field label { color: var(--text-dim); }
.field input, .field select {
  height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); font-family: var(--mono); font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 16px -4px var(--accent-glow); }
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  caret-color: var(--accent);
  transition: background-color 9999s ease-out 0s;
}
.button {
  min-height: 44px; border-radius: var(--radius); background: var(--accent); color: #1b1503; font-family: var(--display);
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1), box-shadow 180ms ease, background 180ms ease;
  box-shadow: 0 10px 24px -10px var(--accent-glow);
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px var(--accent-glow); }
.button:active { transform: scale(.97); }
.button.secondary { background: transparent; color: var(--text-dim); border-color: var(--line); box-shadow: none; }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); background: transparent; }
.rack { border-color: var(--line); background: rgba(27, 32, 38, .35); transition: border-color 180ms ease, background 180ms ease, transform 180ms cubic-bezier(.23, 1, .32, 1); }
.rack:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); }
.detail-list li, .event-table th, .event-table td { border-color: var(--line-soft); }
.status { color: var(--good); font-family: var(--mono); letter-spacing: .04em; }
.badge { border-radius: 999px; font-family: var(--mono); letter-spacing: .06em; }
.filters .button { align-self: end; }
.error { border-color: rgba(239, 91, 70, .65); background: rgba(239, 91, 70, .12); color: #ffb1a7; }
.notice { border-color: rgba(87, 205, 143, .65); background: rgba(87, 205, 143, .12); color: #a2f0c0; }

/* Secure six-digit Rack Manager activation. */
.activation-hero { width: min(680px, 100%); margin: 42px auto 18px; text-align: center; }
.activation-hero h2 { margin: 8px 0 10px; font-size: clamp(28px, 5vw, 38px); }
.activation-shell { width: min(620px, 100%); margin: 0 auto 30px; }
.activation-panel { position: relative; overflow: hidden; }
.activation-panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(245,197,24,.07), transparent 35%); }
.activation-panel > * { position: relative; }
.activation-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.activation-panel-head h2 { margin: 7px 0 0; }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.card--hardware .rivet { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a5058, #101316 70%); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.rivet-tl { top: 10px; left: 10px; }.rivet-tr { top: 10px; right: 10px; }.rivet-bl { bottom: 10px; left: 10px; }.rivet-br { bottom: 10px; right: 10px; }
.otp-field { margin: 0 0 20px; }
.otp-field > label { display: block; margin-bottom: 10px; color: var(--text-dim); font-size: 13px; }
.otp-slots { display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 440px; }
.otp-input { width: 52px; height: 60px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font-family: var(--mono); font-size: 27px; font-weight: 700; text-align: center; caret-color: var(--accent); transition: border-color 160ms ease, box-shadow 160ms ease, transform 140ms cubic-bezier(.23, 1, .32, 1); }
.otp-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px -6px var(--accent-glow); transform: translateY(-1px); }
.otp-separator { width: 12px; height: 2px; margin: 0 1px; background: var(--text-faint); border-radius: 999px; }
.hint { margin: 10px 0 0; color: var(--text-faint); font-family: var(--mono); font-size: 10.5px; line-height: 1.5; }

@media (max-width: 540px) {
  .activation-hero { margin-top: 30px; text-align: left; }
  .activation-panel { padding: 20px; }
  .otp-slots { gap: 5px; }
  .otp-input { width: min(13vw, 46px); height: 54px; font-size: 23px; }
  .otp-separator { width: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; }
}

/* Full Signal Bay OTP console.  Scoped to the RM-1 activation page only. */
body.otp-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 20px; position: relative; overflow-x: hidden; background: radial-gradient(ellipse 70% 55% at 50% 8%, rgba(245,197,24,.05), transparent 60%), var(--bg); }
.otp-page .wrap { width: 100%; max-width: none; margin: 0; }
.otp-page .rails { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.otp-page .rail { position: absolute; top: 0; bottom: 0; width: 1px; background: repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 26px); opacity: .7; }
.otp-page .rail-left { left: 6%; }.otp-page .rail-right { right: 6%; }
.otp-page .scan { position: absolute; left: 0; right: 0; height: 160px; background: linear-gradient(to bottom, transparent, rgba(245,197,24,.05), transparent); animation: scan-drift 9s linear infinite; }
@keyframes scan-drift { 0% { transform: translateY(-200px); } 100% { transform: translateY(110vh); } }
.otp-page .otp-stage { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; }
.otp-page .otp-panel.card { width: 100%; max-width: 400px; padding: 30px 30px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--shadow-panel), 0 0 0 1px rgba(0,0,0,.4); animation: panel-in .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.otp-page .mark { display: flex; flex-direction: column; gap: 5px; width: 120px; margin: 4px 0 22px; }
.otp-page .mark-row { display: flex; align-items: center; gap: 6px; height: 15px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); padding: 0 6px; }
.otp-page .mark-led { width: 6px; height: 6px; border-radius: 1px; background: var(--text-faint); flex: none; }.otp-page .mark-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); flex: none; margin-left: auto; }.otp-page .mark-bars { display: flex; flex-direction: column; gap: 2px; flex: 1; }.otp-page .mark-bars span { display: block; height: 2px; border-radius: 1px; background: var(--line); }.otp-page .mark-bars span:first-child { width: 70%; }.otp-page .mark-bars span:last-child { width: 45%; }
.otp-page .otp-panel[data-state="idle"] .mark-row[data-row="0"] { animation: breathe 2.6s ease-in-out infinite; }.otp-page .otp-panel[data-state="idle"] .mark-row[data-row="0"] .mark-led { animation: breathe-led 2.6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { background: var(--surface-2); border-color: var(--line); } 50% { background: var(--accent-soft); border-color: rgba(245,197,24,.4); } } @keyframes breathe-led { 0%,100% { background: var(--text-faint); box-shadow: none; } 50% { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); } }
.otp-page .otp-panel[data-state="verifying"] .mark-row { animation: think-row .7s ease-in-out infinite; }.otp-page .otp-panel[data-state="verifying"] .mark-led { animation: think-led .7s ease-in-out infinite; }.otp-page .otp-panel[data-state="verifying"] .mark-dot { animation: think-dot .7s ease-in-out infinite; }.otp-page .otp-panel[data-state="verifying"] .mark-bars span { animation: think-bar .7s ease-in-out infinite; }
.otp-page .otp-panel[data-state="verifying"] .mark-row[data-row="1"],.otp-page .otp-panel[data-state="verifying"] .mark-row[data-row="1"] * { animation-delay: .16s; }.otp-page .otp-panel[data-state="verifying"] .mark-row[data-row="2"],.otp-page .otp-panel[data-state="verifying"] .mark-row[data-row="2"] * { animation-delay: .32s; }
@keyframes think-row { 0%,100% { background: var(--surface-2); border-color: var(--line); } 50% { background: rgba(245,197,24,.4); border-color: var(--accent); box-shadow: 0 0 16px -2px var(--accent-glow); } } @keyframes think-led { 0%,100% { background: var(--text-faint); } 50% { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); } } @keyframes think-dot { 0%,100% { background: var(--text-faint); } 50% { background: var(--accent); } } @keyframes think-bar { 0%,100% { background: var(--line); } 50% { background: var(--accent); } }
.otp-page .otp-panel[data-state="error"] .mark-row { background: var(--bad-soft); border-color: rgba(239,91,70,.5); }.otp-page .otp-panel[data-state="error"] .mark-led,.otp-page .otp-panel[data-state="error"] .mark-dot { background: var(--bad); box-shadow: 0 0 8px rgba(239,91,70,.45); }
.otp-page .eyebrow .sep { color: var(--text-faint); margin: 0 4px; }.otp-page .elapsed { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--text-faint); margin-top: 4px; }.otp-page .headline { font-size: 24px; margin-top: 16px; }.otp-page .subcopy { font-size: 13.5px; line-height: 1.55; color: var(--text-dim); margin-top: 10px; max-width: 30ch; }.otp-page .subcopy span { color: var(--text); font-family: var(--mono); }
.otp-page .otp { display: flex; align-items: center; gap: 10px; margin-top: 24px; }.otp-page .otp-group { display: flex; gap: 7px; }.otp-page .otp-dash { width: 10px; height: 2px; background: var(--text-faint); border-radius: 1px; }.otp-page .otp-digit { width: 38px; height: 48px; padding: 0; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-family: var(--mono); font-size: 20px; font-weight: 600; text-align: center; caret-color: var(--accent); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease; }.otp-page .otp-digit:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 16px -4px var(--accent-glow); background: var(--surface); }.otp-page .otp-digit.is-filled { border-color: rgba(245,197,24,.45); background: var(--surface); }
.otp-page .otp-panel[data-state="error"] .otp { animation: shake .42s ease; }.otp-page .otp-panel[data-state="error"] .otp-digit { border-color: var(--bad); background: var(--bad-soft); } @keyframes shake { 10%,90% { transform: translateX(-1px); } 20%,80% { transform: translateX(3px); } 30%,50%,70% { transform: translateX(-7px); } 40%,60% { transform: translateX(7px); } }
.otp-page .feedback { min-height: 16px; margin-top: 14px; color: var(--bad); font-family: var(--mono); font-size: 12px; }.otp-page .activation-name,.otp-page .activation-site { width: 100%; text-align: left; margin: 14px 0 0; }.otp-page .activation-name label,.otp-page .activation-site label { display: flex; justify-content: space-between; align-items: baseline; color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .1em; }.otp-page .activation-name label .muted,.otp-page .activation-site label .muted { color: var(--text-dim); font-family: inherit; font-size: 9px; font-weight: 600; letter-spacing: .04em; }.otp-page .activation-name input,.otp-page .activation-site input { border-color: rgba(245,197,24,.28); color: var(--text); font-size: 14px; font-weight: 600; }.otp-page .activation-name input::placeholder,.otp-page .activation-site input::placeholder { color: var(--text-dim); opacity: 1; }.otp-page .activation-name input:focus,.otp-page .activation-site input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 16px -5px var(--accent-glow); }.otp-page .verify-btn { width: 100%; margin-top: 16px; }.otp-page .btn-loader { display: none; align-items: center; gap: 4px; }.otp-page .btn-loader span { width: 5px; height: 5px; border-radius: 50%; background: #1b1503; animation: dot-bounce 1s ease-in-out infinite; }.otp-page .btn-loader span:nth-child(2) { animation-delay: .15s; }.otp-page .btn-loader span:nth-child(3) { animation-delay: .3s; }.otp-page .otp-panel[data-state="verifying"] .btn-loader { display: flex; }.otp-page .otp-panel[data-state="verifying"] .btn-label { display: none; } @keyframes dot-bounce { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-3px); opacity: 1; } }
.otp-page .hint { margin-top: 16px; }.otp-page .back { margin-top: 18px; }
@media (max-width: 720px) { .otp-page .rail-left { left: 3%; }.otp-page .rail-right { right: 3%; } }
@media (max-width: 420px) { body.otp-page { padding: 24px 14px; }.otp-page .otp-panel.card { padding: 26px 18px 22px; }.otp-page .otp-digit { width: 15.5vw; max-width: 38px; } }
@media (prefers-reduced-motion: reduce) { .otp-page .scan,.otp-page .otp-panel.card,.otp-page .mark-row,.otp-page .mark-led,.otp-page .mark-dot,.otp-page .mark-bars span,.otp-page .otp { animation: none !important; } }

/* Account-security control centre. */
.security-page { background: radial-gradient(ellipse 58% 34% at 50% 17%, rgba(245,197,24,.055), transparent 72%), var(--bg); }
.security-page .top { position: relative; z-index: 2; }
.security-console { position: relative; overflow: hidden; margin: 30px 0 18px; padding: 30px; display: grid; grid-template-columns: 122px minmax(0, 1fr) auto; gap: 26px; align-items: center; }
.security-console::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(245,197,24,.09), transparent 38%), repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.012) 31px 32px); }
.security-console > * { position: relative; }
.security-mark { display: grid; gap: 6px; width: 122px; }
.security-mark-row { height: 17px; display: flex; align-items: center; gap: 7px; padding: 0 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-2); }
.security-mark-led { width: 6px; height: 6px; border-radius: 1px; background: var(--good); box-shadow: 0 0 10px rgba(87,205,143,.4); }
.security-mark-bars { flex: 1; height: 3px; background: linear-gradient(90deg, rgba(87,205,143,.75) 0 58%, var(--line) 58%); border-radius: 999px; }
.security-mark-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--good); }
.security-console .brand { margin-bottom: 7px; }
.security-console h2 { margin: 0; font-size: clamp(26px, 4vw, 34px); }
.security-console p { max-width: 580px; margin: 9px 0 0; }
.security-posture { display: grid; justify-items: end; gap: 5px; font-family: var(--mono); text-align: right; }
.security-posture span { color: var(--text-faint); font-size: 10px; letter-spacing: .13em; }
.security-posture strong { display: inline-flex; align-items: center; gap: 8px; color: var(--good); font-size: 12px; letter-spacing: .08em; }
.security-posture strong::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px rgba(87,205,143,.6); }
.security-posture strong.needs-action { color: var(--accent); }
.security-posture strong.needs-action::before { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.security-panel,.security-log-panel { position: relative; overflow: hidden; }
.security-panel::before,.security-log-panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(245,197,24,.045), transparent 32%); }
.security-panel > *,.security-log-panel > * { position: relative; }
.security-panel { border-top-color: rgba(245,197,24,.45); }
.security-log-panel { margin-top: 18px; }
.security-log-panel .event-table td:first-child { color: var(--text-dim); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.security-log-panel .event-table td:nth-child(2) { color: var(--text); font-weight: 700; }
.security-log-panel .event-table td:nth-child(3) { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.security-policy { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10,12,15,.55); color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.security-policy::before { content: '◈'; color: var(--accent); font-family: var(--mono); }
@media (max-width: 760px) { .security-console { grid-template-columns: 1fr; gap: 18px; }.security-mark { width: 122px; }.security-posture { justify-items: start; text-align: left; }.security-log-panel { overflow-x: auto; }.security-log-panel .event-table { min-width: 690px; } }

/* Fleet home screen. */
.home-page { background: radial-gradient(ellipse 58% 34% at 50% 17%, rgba(245,197,24,.05), transparent 72%), var(--bg); }
.home-console { position: relative; overflow: hidden; margin: 30px 0 24px; padding: 30px; display: grid; grid-template-columns: 122px minmax(0, 1fr) auto; gap: 26px; align-items: center; }
.home-console::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(245,197,24,.09), transparent 38%), repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.012) 31px 32px); }
.home-console > * { position: relative; }
.home-console .security-mark-led,.home-console .security-mark-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.home-console .security-mark-bars { background: linear-gradient(90deg, rgba(245,197,24,.78) 0 58%, var(--line) 58%); }
.home-console .brand { margin-bottom: 7px; }
.home-console h2 { margin: 0; font-size: clamp(26px, 4vw, 34px); }
.home-console p { margin: 9px 0 0; }
.home-console-action { display: grid; justify-items: end; gap: 10px; }
.home-console-action span { color: var(--text-faint); font-family: var(--mono); font-size: 10px; letter-spacing: .13em; }
.home-console-action .button { white-space: nowrap; }
.home-page .fleet-overview { gap: 14px; }
.home-page .fleet-stat { min-height: 132px; border-radius: var(--radius-lg); box-shadow: var(--shadow-panel); }
.home-page .fleet-models { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; overflow: visible; padding: 0; background: transparent; }
.home-page .fleet-model { min-height: 122px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg,var(--surface),var(--surface-2)); box-shadow: var(--shadow-panel); }
.home-page .fleet-model + .fleet-model { border-left: 1px solid var(--line); }
.home-page .fleet-model:hover { border-color: rgba(245,197,24,.52); transform: translateY(-1px); transition: border-color 180ms ease, transform 180ms cubic-bezier(.23,1,.32,1); }
@media (max-width: 760px) { .home-console { grid-template-columns: 1fr; gap: 18px; }.home-console-action { justify-items: start; }.home-page .fleet-models { grid-template-columns: 1fr; }.home-page .fleet-model + .fleet-model { border-left: 1px solid var(--line); } }

/* Fleet and optional site-location preview. */
.home-page .devices-card { margin-top: 22px; }
.devices-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.devices-heading h2 { margin: 4px 0 0; }
.devices-heading > span { color: var(--text-faint); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.devices-list { display: grid; gap: 12px; align-content: start; }
.rack-row { display: grid; grid-template-columns: minmax(0, 1fr) 276px; min-height: 108px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-panel); }
.rack-row .rack { display: grid; align-content: center; gap: 4px; margin: 0; padding: 18px; border: 0; border-radius: 0; background: transparent; }
.rack-location-preview { position: relative; display: grid; align-content: end; gap: 3px; overflow: hidden; min-width: 0; padding: 14px 16px; border-left: 1px solid rgba(245,197,24,.38); background: linear-gradient(145deg, rgba(245,197,24,.12), rgba(15,19,23,.98) 54%); color: var(--text); text-decoration: none; isolation: isolate; }
.rack-location-preview::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 72% 30%, rgba(245,197,24,.16), transparent 28%), radial-gradient(circle at 22% 83%, rgba(78,226,145,.11), transparent 31%); transition: opacity 180ms ease; }
@media (hover: hover) and (pointer: fine) { .rack-row:has(.rack-device:hover) { border-color: rgba(245,197,24,.54); }.rack-row .rack:hover { background: rgba(255,255,255,.018); }.rack-location-preview:hover { background-color: rgba(245,197,24,.08); }.rack-location-preview:hover::after { opacity: .72; } }
.map-grid { position: absolute; inset: 0; z-index: -2; opacity: .7; background-image: linear-gradient(rgba(123,145,165,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(123,145,165,.15) 1px, transparent 1px), linear-gradient(31deg, transparent 48%, rgba(245,197,24,.22) 49%, rgba(245,197,24,.22) 51%, transparent 52%), linear-gradient(112deg, transparent 47%, rgba(78,226,145,.2) 48%, rgba(78,226,145,.2) 50%, transparent 51%); background-size: 30px 30px, 30px 30px, 100% 100%, 100% 100%; }
.map-pin { position: absolute; top: 22px; right: 29px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(245,197,24,.7); border-radius: 50% 50% 50% 4px; background: var(--accent); box-shadow: 0 0 0 7px rgba(245,197,24,.08), 0 0 18px rgba(245,197,24,.32); color: #15120a; font-size: 12px; font-weight: 900; transform: rotate(-45deg); }
.rack-location-label { color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.rack-location-preview strong { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.rack-location-address { overflow: hidden; color: var(--text-muted); font-size: 10px; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.rack-location-empty { border-left-color: var(--line); background: linear-gradient(145deg, rgba(123,145,165,.08), rgba(15,19,23,.98) 54%); }
.rack-location-empty .map-pin { border-radius: 50%; background: var(--surface-2); color: var(--accent); }
.location-panel { margin-top: 22px; }
.location-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.location-form .field { flex: 1 1 360px; margin: 0; }
@media (max-width: 760px) { .devices-heading { align-items: flex-start; flex-direction: column; }.rack-row { grid-template-columns: minmax(0, 1fr) 156px; }.rack-location-preview { padding: 13px; }.map-pin { right: 20px; }.location-form { align-items: stretch; }.location-form .button { width: 100%; text-align: center; } }
@media (max-width: 480px) { .rack-row { grid-template-columns: 1fr; }.rack-location-preview { min-height: 96px; border-top: 1px solid rgba(245,197,24,.38); border-left: 0; }.rack-location-empty { border-top-color: var(--line); }.map-pin { top: 24px; right: 28px; } }
