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

:root {
  color-scheme: dark;
  --page: #111a30;
  --page-soft: #17213a;
  --shell: rgba(23, 33, 58, .92);
  --surface: rgba(31, 43, 73, .82);
  --surface-strong: #202c4a;
  --control: rgba(9, 15, 31, .62);
  --text: rgba(255, 255, 255, .94);
  --body: rgba(231, 238, 255, .68);
  --muted: rgba(228, 236, 255, .46);
  --border: rgba(198, 216, 255, .14);
  --border-strong: rgba(198, 216, 255, .24);
  --mint: #8ff7e9;
  --mint-strong: #70edc5;
  --violet: #7767f8;
  --gold: #f2bd69;
  --danger: #ff718b;
  --shadow: 0 24px 70px rgba(3, 8, 23, .38);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(73, 112, 174, .17), transparent 32rem),
    linear-gradient(145deg, #10182c 0%, #17213a 52%, #121b32 100%);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
code {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .9em;
  color: rgba(218, 255, 249, .82);
}
.hidden { display: none !important; }
.ambient { position: fixed; pointer-events: none; filter: blur(1px); opacity: .6; z-index: -1; }
.ambient-one { width: 34rem; height: 34rem; right: -12rem; top: -14rem; background: radial-gradient(circle, rgba(119, 103, 248, .24), transparent 65%); }
.ambient-two { width: 28rem; height: 28rem; left: 18%; bottom: -18rem; background: radial-gradient(circle, rgba(80, 211, 196, .15), transparent 65%); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-mark, .account-monogram {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 13px;
  color: #10182c; font-weight: 800;
  background: linear-gradient(145deg, var(--mint), #9ab4ff 62%, var(--violet));
  box-shadow: inset 0 1px rgba(255,255,255,.65), 0 8px 22px rgba(88, 231, 213, .16);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.brand-large .brand-mark { width: 48px; height: 48px; border-radius: 16px; font-size: 20px; }
.brand-large strong { font-size: 18px; }

.eyebrow { margin: 0 0 8px; color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.muted { color: var(--body); }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--mint-strong); box-shadow: 0 0 0 5px rgba(112, 237, 197, .09), 0 0 15px rgba(112, 237, 197, .5); }

.login-view { width: min(1180px, calc(100% - 40px)); min-height: 100vh; margin: auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(350px, .65fr); align-items: center; gap: 34px; padding: 40px 0; }
.login-story { position: relative; min-height: 660px; overflow: hidden; padding: 42px; border: 1px solid var(--border); border-radius: 30px; background: linear-gradient(145deg, rgba(30, 44, 78, .82), rgba(20, 29, 52, .9)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.06); }
.login-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 52%, rgba(143, 247, 233, .035)); pointer-events: none; }
.login-copy { position: relative; z-index: 2; width: min(620px, 90%); margin-top: 116px; }
.login-copy h1 { margin: 0; max-width: 640px; font-size: clamp(38px, 5vw, 66px); line-height: 1.03; letter-spacing: -.055em; }
.login-copy > p:not(.eyebrow) { max-width: 620px; margin: 25px 0; color: var(--body); font-size: 16px; line-height: 1.75; }
.login-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.login-facts span { padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(13, 21, 40, .38); color: rgba(238,244,255,.74); font-size: 12px; }
.signal-preview { position: absolute; right: -18px; bottom: -56px; width: 330px; height: 330px; }
.signal-core, .signal-node, .signal-ring { position: absolute; border-radius: 50%; }
.signal-core { left: 125px; top: 125px; z-index: 2; display: grid; place-items: center; width: 80px; height: 80px; color: #111a30; font-size: 26px; font-weight: 800; background: linear-gradient(145deg, var(--mint), #a6b9ff); box-shadow: 0 0 55px rgba(143,247,233,.25); }
.signal-ring { border: 1px solid rgba(143,247,233,.16); }
.ring-one { inset: 72px; }
.ring-two { inset: 14px; }
.signal-node { z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-strong); background: #273452; color: var(--mint); font-size: 11px; font-weight: 800; box-shadow: 0 14px 30px rgba(1,7,20,.3); }
.node-one { left: 34px; top: 88px; }.node-two { right: 28px; top: 132px; }.node-three { left: 105px; bottom: 20px; }
.login-panel { padding: 38px; border: 1px solid var(--border); border-radius: 24px; background: rgba(27, 38, 66, .8); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.07); backdrop-filter: blur(20px) saturate(120%); }
.login-panel h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.03em; }
.login-panel > div > p:last-child { margin: 0; font-size: 14px; }
.login-note { margin: 22px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.form-stack { display: grid; gap: 18px; margin-top: 30px; }
label { display: grid; gap: 8px; color: rgba(242,246,255,.78); font-size: 12px; font-weight: 700; }
input, textarea, select {
  width: 100%; min-height: 44px; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--control); color: var(--text); font-size: 14px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: rgba(220,229,249,.28); }
input:hover, textarea:hover, select:hover { border-color: var(--border-strong); }
input:focus, textarea:focus, select:focus { border-color: rgba(143,247,233,.55); background: rgba(9,15,31,.8); box-shadow: 0 0 0 3px rgba(143,247,233,.08); outline: none; }
.form-error { min-height: 18px; margin: 0; color: #ff9aac; font-size: 12px; }
.button { min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 750; font-size: 13px; transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease), opacity 160ms; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0) scale(.985); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.button.primary { color: #10182c; background: linear-gradient(135deg, var(--mint), #a4eadf); box-shadow: inset 0 1px rgba(255,255,255,.6), 0 10px 24px rgba(99,232,214,.14); }
.button.secondary { border-color: var(--border); background: rgba(255,255,255,.055); }
.button.secondary:hover { border-color: rgba(143,247,233,.34); background: rgba(143,247,233,.08); }
.button.ghost { border-color: transparent; background: transparent; color: var(--body); }
.button.danger { border-color: rgba(255,113,139,.3); background: rgba(255,113,139,.1); color: #ff9aac; }
.button.compact { min-height: 36px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.button.wide { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.text-button { padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--mint); font-size: 12px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.045); cursor: pointer; }
.icon-button:hover { border-color: var(--border-strong); background: rgba(255,255,255,.08); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 244px; padding: 24px 16px 18px; border-right: 1px solid var(--border); background: rgba(17, 26, 48, .86); backdrop-filter: blur(22px) saturate(120%); box-shadow: 20px 0 50px rgba(2,7,20,.12); }
.sidebar > .brand { padding: 4px 9px 26px; }
.nav-list { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--body); cursor: pointer; font-size: 13px; font-weight: 650; text-align: left; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.045); }
.nav-item.active { color: var(--text); border-color: rgba(143,247,233,.16); background: linear-gradient(90deg, rgba(143,247,233,.12), rgba(119,103,248,.06)); box-shadow: inset 3px 0 var(--mint); }
.nav-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--mint); background: rgba(143,247,233,.07); font-size: 17px; }
.sidebar-status { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: rgba(8,14,28,.34); }
.sidebar-status strong, .sidebar-status small { display: block; }
.sidebar-status strong { font-size: 12px; }.sidebar-status small { margin-top: 3px; max-width: 145px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-orb { width: 10px; height: 10px; border-radius: 50%; background: var(--mint-strong); box-shadow: 0 0 18px rgba(112,237,197,.7); }
.workspace { min-height: 100vh; margin-left: 244px; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: 74px; display: flex; align-items: center; gap: 18px; padding: 12px clamp(20px, 3vw, 42px); border-bottom: 1px solid var(--border); background: rgba(17,26,48,.74); backdrop-filter: blur(20px) saturate(140%); box-shadow: 0 12px 35px rgba(3,8,23,.12); }
.workspace-title { min-width: 0; margin-right: auto; }
.workspace-title span, .workspace-title strong { display: block; }
.workspace-title span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.workspace-title strong { max-width: 350px; margin-top: 3px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.tenant-switcher { position: relative; }
.tenant-trigger { min-width: 235px; height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 5px 11px 5px 6px; border: 1px solid var(--border); border-radius: 14px; background: rgba(9,15,31,.5); cursor: pointer; text-align: left; }
.tenant-trigger:hover { border-color: var(--border-strong); }
.account-monogram { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
.tenant-trigger small, .tenant-trigger strong { display: block; }
.tenant-trigger small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tenant-trigger strong { max-width: 145px; margin-top: 2px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tenant-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 300px; max-height: 350px; overflow: auto; padding: 8px; border: 1px solid var(--border-strong); border-radius: 15px; background: #202b49; box-shadow: 0 22px 60px rgba(2,7,20,.5), inset 0 1px rgba(255,255,255,.06); animation: menu-in 140ms var(--ease); }
.tenant-option { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; }
.tenant-option:hover, .tenant-option.selected { background: rgba(143,247,233,.08); }
.tenant-option > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(143,247,233,.1); color: var(--mint); font-weight: 800; }
.tenant-option strong, .tenant-option small { display: block; }.tenant-option strong { font-size: 12px; }.tenant-option small { margin-top: 3px; color: var(--muted); font-size: 10px; }.tenant-option b { color: var(--mint); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; }
.user-chip > span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(119,103,248,.28); border-radius: 11px; background: rgba(119,103,248,.13); color: #c9c4ff; font-size: 12px; font-weight: 800; }
.user-chip strong, .user-chip small { display: block; }.user-chip strong { font-size: 12px; }.user-chip small { margin-top: 2px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.topbar-password { min-height: 40px; padding: 0 13px; }
.menu-button { display: none; }
.mobile-backdrop { display: none; }

.main-content { width: min(1540px, 100%); margin: 0 auto; padding: clamp(22px, 3vw, 44px); }
.view { display: none; animation: surface-in 220ms var(--ease); }
.view.active-view { display: block; }
.command-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: 34px; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--border); border-radius: 26px; background: linear-gradient(130deg, rgba(34,50,86,.9), rgba(25,35,62,.88) 62%, rgba(44,42,91,.72)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.07); }
.command-hero::before { content: ""; position: absolute; width: 480px; height: 480px; right: -190px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(143,247,233,.16), transparent 66%); }
.hero-copy { position: relative; z-index: 1; align-self: center; }
.hero-copy h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.04; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 20px 0 0; color: var(--body); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pairing-panel { position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 24px; border: 1px solid rgba(198,216,255,.18); border-radius: 20px; background: rgba(10,17,34,.46); box-shadow: inset 0 1px rgba(255,255,255,.06); }
.pairing-label { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.pairing-panel > strong { margin: 18px 0 10px; color: var(--mint); font-family: "DM Mono", monospace; font-size: clamp(26px, 3vw, 40px); letter-spacing: .08em; text-shadow: 0 0 28px rgba(143,247,233,.18); }
.pairing-panel > p { margin: 0 0 22px; color: var(--body); font-size: 12px; line-height: 1.6; }
.pairing-panel > div { display: flex; gap: 8px; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0; border: 1px solid var(--border); border-radius: 18px; background: rgba(25,36,64,.66); box-shadow: inset 0 1px rgba(255,255,255,.045); }
.metric-strip article { padding: 20px 22px; border-right: 1px solid var(--border); }
.metric-strip article:last-child { border: 0; }
.metric-strip span, .metric-strip strong, .metric-strip small { display: block; }.metric-strip span { color: var(--body); font-size: 11px; font-weight: 700; }.metric-strip strong { margin: 8px 0 4px; font-family: "DM Mono", monospace; font-size: 25px; }.metric-strip small { color: var(--muted); font-size: 10px; }
.overview-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.surface { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 1px rgba(255,255,255,.045), 0 16px 40px rgba(2,7,20,.12); }
.compact-surface { padding: 22px; }
.section-heading, .page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading { align-items: center; margin-bottom: 16px; }
.section-heading h2, .page-heading h1 { margin: 0; letter-spacing: -.035em; }
.section-heading h2 { font-size: 18px; }.section-heading .eyebrow { margin-bottom: 4px; }
.page-heading { margin-bottom: 26px; }
.page-heading h1 { font-size: clamp(30px, 4vw, 46px); }
.page-heading > div > p:last-child { max-width: 700px; margin: 10px 0 0; color: var(--body); line-height: 1.6; }
.page-badge { display: flex; align-items: center; min-height: 42px; padding: 0 15px; border: 1px solid rgba(112,237,197,.17); border-radius: 999px; background: rgba(112,237,197,.07); white-space: nowrap; }
.page-badge strong { font-size: 12px; }
.recent-list { display: grid; gap: 8px; }
.recent-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(9,15,31,.28); }
.recent-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 11px; color: var(--mint); background: rgba(143,247,233,.07); font-size: 11px; font-weight: 800; }
.recent-item strong, .recent-item small { display: block; }.recent-item strong { font-size: 12px; }.recent-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }.recent-item time { color: var(--body); font-size: 10px; }
.setup-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.setup-list li { display: flex; gap: 13px; align-items: flex-start; padding: 10px 0; }
.setup-list li > span { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 9px; color: var(--mint); background: rgba(143,247,233,.07); font-family: "DM Mono", monospace; font-size: 11px; }
.setup-list strong { font-size: 12px; }.setup-list p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 13px; background: rgba(9,15,31,.38); }
.tab { min-height: 36px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--body); cursor: pointer; font-size: 12px; font-weight: 700; }
.tab span { margin-left: 5px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.tab.active { color: var(--text); background: rgba(143,247,233,.1); box-shadow: inset 0 0 0 1px rgba(143,247,233,.14); }
.tab.active span { color: var(--mint); }
.search { position: relative; display: flex; align-items: center; width: min(360px, 45%); }
.search > span { position: absolute; left: 13px; z-index: 1; color: var(--muted); font-size: 17px; }
.search input { padding-left: 38px; }
.device-grid, .profile-grid, .reseller-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.device-card, .profile-card, .reseller-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--border); border-radius: 17px; background: rgba(29,41,70,.76); box-shadow: inset 0 1px rgba(255,255,255,.045), 0 16px 36px rgba(2,7,20,.1); transition: transform 170ms var(--ease), border-color 170ms var(--ease); }
.device-card:hover, .profile-card:hover, .reseller-card:hover { transform: translateY(-2px); border-color: rgba(198,216,255,.22); }
.device-card.online::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--mint), rgba(143,247,233,.08)); }
.card-top { display: flex; align-items: flex-start; gap: 12px; }
.device-avatar, .profile-avatar, .reseller-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border: 1px solid var(--border); border-radius: 13px; background: rgba(143,247,233,.07); color: var(--mint); font-size: 12px; font-weight: 800; }
.card-identity { min-width: 0; flex: 1; }
.card-identity strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.card-identity small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.status-pill.online, .status-pill.applied { color: var(--mint-strong); background: rgba(112,237,197,.1); }
.status-pill.offline { color: var(--muted); background: rgba(255,255,255,.055); }
.status-pill.pending { color: var(--gold); background: rgba(242,189,105,.1); }
.status-pill.failed, .status-pill.expired { color: #ff9aac; background: rgba(255,113,139,.1); }
.device-meta, .profile-meta, .reseller-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 17px 0; }
.meta-block { min-width: 0; padding: 10px; border-radius: 11px; background: rgba(9,15,31,.26); }
.meta-block span, .meta-block strong { display: block; }.meta-block span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.meta-block strong { margin-top: 5px; overflow: hidden; font-family: "DM Mono", monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.dispatch-row select { min-width: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.card-actions .button { min-height: 36px; padding: 0 11px; border-radius: 9px; font-size: 12px; }
.profile-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(119,103,248,.16), transparent 68%); }
.credential-row { display: flex; gap: 7px; margin: 13px 0; }
.credential-chip { flex: 1; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--body); background: rgba(9,15,31,.22); font-size: 12px; }
.credential-chip b { color: var(--mint); }
.pairing-code { margin: 16px 0; padding: 14px; border: 1px dashed rgba(143,247,233,.28); border-radius: 12px; color: var(--mint); background: rgba(143,247,233,.05); font-family: "DM Mono", monospace; font-size: 20px; text-align: center; letter-spacing: .08em; }
.empty-state { grid-column: 1 / -1; min-height: 250px; display: grid; place-items: center; padding: 34px; border: 1px dashed var(--border-strong); border-radius: 18px; background: rgba(24,35,62,.45); text-align: center; }
.empty-state > div { max-width: 420px; }.empty-symbol { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 16px; border: 1px solid var(--border); border-radius: 17px; color: var(--mint); background: rgba(143,247,233,.07); font-size: 22px; }.empty-state h3 { margin: 0; font-size: 18px; }.empty-state p { margin: 9px 0 18px; color: var(--body); font-size: 12px; line-height: 1.6; }

.release-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 26px; }
.release-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px; color: #111a30; background: linear-gradient(145deg, var(--mint), #a6b9ff); font-size: 24px; font-weight: 800; }
.release-copy h2 { margin: 0; font-size: 20px; }.release-copy > p { margin: 7px 0 14px; color: var(--body); font-size: 12px; }.release-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 11px; }.release-facts code { font-size: 11px; }.release-actions { text-align: right; }.release-actions .button { text-decoration: none; display: inline-flex; align-items: center; }.release-actions small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }
.release-policy { grid-column: 1/-1; display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--border); }
.release-policy > span { color: var(--body); font-size: 12px; font-weight: 750; }.release-policy > div { display: flex; gap: 7px; }.release-policy > small { margin-left: auto; color: var(--muted); font-size: 10px; }
.skeleton { overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.06); }
.skeleton::after { content: ""; display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer 1.4s infinite; }
.release-skeleton { grid-column: 1/-1; height: 95px; }

.importer-page-heading { align-items: center; }
.memory-pill { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 14px; border: 1px solid rgba(112,237,197,.18); border-radius: 14px; background: rgba(112,237,197,.065); }
.memory-pill .live-dot { margin: 0; }.memory-pill strong, .memory-pill small { display: block; }.memory-pill strong { font-size: 12px; }.memory-pill small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.importer-layout { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(330px, .72fr); gap: 18px; align-items: start; }
.importer-source { min-width: 0; overflow: hidden; }
.importer-heading { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.importer-heading h2, .review-heading h2, .review-empty h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.importer-heading > div > small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.flow-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.flow-line span.active { color: var(--mint); }.flow-line i { width: 26px; height: 1px; background: var(--border-strong); }
.provider-tabs { display: flex; gap: 8px; padding: 15px 22px 0; }
.provider-tab { min-height: 46px; padding: 0 15px; border: 1px solid var(--border); border-radius: 12px; background: rgba(9,15,31,.28); color: var(--body); cursor: pointer; font-size: 12px; font-weight: 750; }
.provider-tab small { margin-left: 7px; color: var(--muted); font-size: 10px; }.provider-tab.active { border-color: rgba(143,247,233,.3); background: rgba(143,247,233,.1); color: var(--text); }.provider-tab.active small { color: var(--mint); }
.processor-form { padding: 16px 22px 22px; }
.processor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.segmented-control { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: rgba(9,15,31,.34); }
.segmented-control button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--body); cursor: pointer; font-size: 11px; font-weight: 750; }.segmented-control button.active { background: rgba(143,247,233,.11); color: var(--mint); }
.processor-toolbar > code { padding: 7px 9px; border-radius: 8px; background: rgba(9,15,31,.32); font-size: 11px; }
.capture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.capture-field textarea { min-height: 330px; font-family: "DM Mono", ui-monospace, monospace; font-size: 12px; }
.capture-label { display: flex; justify-content: space-between; gap: 12px; }.capture-label strong { font-size: 12px; }.capture-label small { color: var(--muted); font-size: 10px; font-weight: 600; }.capture-label small.ready { color: var(--mint-strong); }
.manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.optional-label { color: var(--muted); font-size: 10px; font-weight: 500; }
.inline-alert { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(255,113,139,.28); border-radius: 11px; background: rgba(255,113,139,.08); color: #ff9aac; font-size: 12px; line-height: 1.5; }
.processor-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--border); }
.review-panel { min-height: 590px; padding: 22px; position: sticky; top: 94px; }
.review-empty { min-height: 540px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }.review-empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 17px; background: rgba(143,247,233,.07); color: var(--mint); font-size: 22px; }.review-empty > p:last-child { margin: 12px 0 0; color: var(--body); font-size: 12px; line-height: 1.65; }
.review-form { display: grid; gap: 15px; }.review-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.verified-badge { padding: 6px 8px; border-radius: 999px; background: rgba(112,237,197,.1); color: var(--mint-strong); font-size: 9px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.review-field-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; }
.secret-review { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(9,15,31,.28); }.secret-review span, .secret-review code { display: block; }.secret-review span { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }.secret-review code { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.result-copy { width: 36px; height: 36px; }.reveal-button { justify-self: start; min-height: 36px; }
.diagnostic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }.diagnostic-grid > div { min-width: 0; padding: 10px; border-radius: 10px; background: rgba(9,15,31,.25); }.diagnostic-grid dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }.diagnostic-grid dd { margin: 5px 0 0; overflow: hidden; font-family: "DM Mono", monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.create-import-button { margin-top: 2px; }

.modal { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 36px); overflow: auto; padding: 0; border: 1px solid var(--border-strong); border-radius: 21px; background: #202b49; color: var(--text); box-shadow: 0 28px 90px rgba(1,5,16,.65), inset 0 1px rgba(255,255,255,.06); }
.modal::backdrop { background: rgba(3,7,18,.72); backdrop-filter: blur(6px); }
.modal form { padding: 24px; }
.small-modal { width: min(460px, calc(100% - 28px)); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.modal-heading h2 { margin: 0; font-size: 22px; }.modal-heading .eyebrow { margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }.wide-field { grid-column: 1/-1; }
.input-action { display: grid; grid-template-columns: 1fr auto; }.input-action input { border-radius: 12px 0 0 12px; }.input-action button { padding: 0 12px; border: 1px solid var(--border); border-left: 0; border-radius: 0 12px 12px 0; background: rgba(143,247,233,.08); color: var(--mint); cursor: pointer; font-size: 12px; font-weight: 800; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.small-copy { margin: 8px 0 0; font-size: 11px; }
.modal-copy { margin: -10px 0 20px; line-height: 1.55; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; width: min(360px, calc(100% - 40px)); }
.toast { padding: 13px 15px; border: 1px solid var(--border-strong); border-radius: 13px; background: #263451; box-shadow: 0 18px 44px rgba(2,7,20,.38); color: var(--text); font-size: 12px; animation: toast-in 180ms var(--ease); }.toast.error { border-color: rgba(255,113,139,.3); }.toast.success { border-color: rgba(112,237,197,.3); }

@keyframes surface-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes shimmer { from { transform: translateX(-120%); } to { transform: translateX(350%); } }

@media (max-width: 1180px) {
  .device-grid, .profile-grid, .reseller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-hero { grid-template-columns: 1fr 330px; }
  .importer-layout { grid-template-columns: 1fr; }.review-panel { min-height: 0; position: static; }.review-empty { min-height: 250px; }
  .user-chip > div { display: none; }
}

@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr; padding: 24px 0; }
  .login-story { min-height: 500px; }.login-copy { margin-top: 80px; }.signal-preview { opacity: .55; }
  .sidebar { transform: translateX(-102%); transition: transform 220ms var(--ease); }.sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }.menu-button { display: grid; }
  .mobile-backdrop { position: fixed; inset: 0; z-index: 19; border: 0; background: rgba(2,6,16,.62); }.mobile-backdrop.show { display: block; }
  .command-hero { grid-template-columns: 1fr; }.overview-grid { grid-template-columns: 1fr; }
  .tenant-trigger { min-width: 190px; }.user-chip { display: none; }.topbar-password { width: 40px; padding: 0; }.topbar-password span { display: none; }.topbar-password::after { content: "••"; letter-spacing: 2px; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  .login-view { width: min(100% - 24px, 540px); }.login-story { min-height: 440px; padding: 26px; border-radius: 22px; }.login-copy { width: 100%; margin-top: 62px; }.login-copy h1 { font-size: 37px; }.login-facts span:nth-child(3) { display: none; }.signal-preview { right: -110px; bottom: -110px; }.login-panel { padding: 26px; }
  .topbar { gap: 10px; padding: 10px 13px; }.workspace-title { display: none; }.topbar-actions { margin-left: auto; }.tenant-trigger { min-width: 0; width: min(200px, calc(100vw - 194px)); }.tenant-trigger strong { max-width: 120px; }.tenant-menu { right: 0; width: min(300px, calc(100vw - 28px)); }
  .main-content { padding: 20px 13px 32px; }.command-hero { padding: 24px 20px; border-radius: 20px; }.hero-copy h1 { font-size: 36px; }.pairing-panel { padding: 19px; }.pairing-panel > strong { font-size: 28px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }.metric-strip article:nth-child(2) { border-right: 0; }.metric-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .page-heading { align-items: stretch; flex-direction: column; }.page-heading .button { align-self: flex-start; }.page-badge { align-self: flex-start; }.toolbar { align-items: stretch; flex-direction: column; }.tabs { width: 100%; }.tab { flex: 1; padding: 0 7px; }.search { width: 100%; }
  .device-grid, .profile-grid, .reseller-grid { grid-template-columns: 1fr; }.device-card, .profile-card, .reseller-card { padding: 16px; }
  .release-card { grid-template-columns: auto 1fr; }.release-actions { grid-column: 1/-1; text-align: left; }.release-policy { align-items: flex-start; flex-direction: column; }.release-policy > small { margin-left: 0; }.form-grid { grid-template-columns: 1fr; }.wide-field { grid-column: auto; }
  .importer-page-heading { align-items: flex-start; }.memory-pill { align-self: flex-start; }.importer-heading { align-items: flex-start; flex-direction: column; padding: 18px 16px; }.flow-line { width: 100%; }.flow-line i { flex: 1; }.provider-tabs { padding: 14px 16px 0; }.provider-tab { flex: 1; padding: 0 8px; }.processor-form { padding: 14px 16px 18px; }.processor-toolbar { align-items: flex-start; flex-direction: column; }.capture-grid, .manual-grid, .review-field-row { grid-template-columns: 1fr; }.capture-field textarea { min-height: 220px; }.review-panel { padding: 17px; }.diagnostic-grid { grid-template-columns: 1fr 1fr; }
}

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