/* RelayWay Signal Lab workspace — presentation only, applied to the
   authenticated app shell without replacing its React controls or routes. */
html[data-rw-console] {
  color-scheme:dark;
  --rw-ink:#edf2ff;
  --rw-soft:#a8b6cb;
  --rw-faint:#8494ae;
  --rw-surface:#111823;
  --rw-lowered:#0b111b;
  --rw-line:#303d52;
  --rw-hairline:#222e40;
  --rw-blue:#90adff;
  --rw-mint:#9fe4c9;
  --rw-amber:#f2cc91;
  --rw-header:#0b111b;
  --rw-backdrop-glow:#172b463b;
  --rw-banner-grid:#5b77a719;
  --rw-banner-glow:#234477a0;
  --rw-banner-start:#101926;
  --rw-banner-end:#122646;
  --rw-profile-start:#151f31;
  --rw-profile-border:#344765;
  --rw-stat-surface:#0d1521;
  --rw-stat-line:#2b3a51;
  --rw-stat-value:#c3d3ff;
  --rw-active-line:#42659c63;
  --rw-mono:"Cascadia Mono","SFMono-Regular",Consolas,monospace;
  --background:#0a1019;
  --foreground:var(--rw-ink);
  --card:var(--rw-surface);
  --card-foreground:var(--rw-ink);
  --popover:#161f2d;
  --popover-foreground:var(--rw-ink);
  --primary:#94afff;
  --primary-foreground:#101e38;
  --secondary:#1c2840;
  --secondary-foreground:#dce6ff;
  --muted:#1a2432;
  --muted-foreground:var(--rw-soft);
  --accent:#202e4b;
  --accent-foreground:#dce6ff;
  --destructive:#ffa9b2;
  --destructive-foreground:#35161c;
  --success:#9fe4c9;
  --success-foreground:#0a281e;
  --info:#9ab6ff;
  --info-foreground:#111e35;
  --warning:#f2cc91;
  --warning-foreground:#302015;
  --neutral:#b4c2d5;
  --neutral-foreground:#1c2536;
  --border:var(--rw-hairline);
  --input:#516380;
  --ring:#a2b8ff;
  --sidebar:#0c131e;
  --sidebar-foreground:#d9e3f4;
  --sidebar-primary:#3657c9;
  --sidebar-primary-foreground:#fff;
  --sidebar-accent:#1c2c49;
  --sidebar-accent-foreground:#d9e6ff;
  --sidebar-border:var(--rw-hairline);
  --sidebar-ring:#a2b8ff;
  --skeleton-base:#1b2636;
  --skeleton-highlight:#2b3951;
  --table-row:#101823;
  --table-header:#1a2537;
  --table-header-hover:#223451;
  --table-disabled:#192231;
  --table-disabled-hover:#202d40;
  --table-disabled-border:#3f4e66;
  --chart-1:#8caaff;
  --chart-2:#65c9e2;
  --chart-3:#ad9ef2;
  --chart-4:#f38cbc;
  --chart-5:#84dab6;
  --radius:.625rem;
  background:var(--background);
}
html[data-rw-console][data-rw-console-theme="light"] {
  color-scheme:light;
  --rw-ink:#182945;
  --rw-soft:#435978;
  --rw-faint:#536885;
  --rw-surface:#fff;
  --rw-lowered:#f8faff;
  --rw-line:#bac8da;
  --rw-hairline:#d6dfeb;
  --rw-blue:#3158ac;
  --rw-mint:#146548;
  --rw-header:#fff;
  --rw-backdrop-glow:#d9e7ffad;
  --rw-banner-grid:#3868bf15;
  --rw-banner-glow:#bdd5ffb5;
  --rw-banner-start:#f0f5ff;
  --rw-banner-end:#e3edff;
  --rw-profile-start:#e9f0ff;
  --rw-profile-border:#acbfdb;
  --rw-stat-surface:#f0f5fd;
  --rw-stat-line:#c7d5e8;
  --rw-stat-value:#204585;
  --rw-active-line:#5477a756;
  --background:#f4f7fc;
  --popover:#fff;
  --primary:#3158bb;
  --primary-foreground:#fff;
  --secondary:#e0eaff;
  --secondary-foreground:#203861;
  --muted:#e9eff8;
  --accent:#e0eaff;
  --accent-foreground:#203861;
  --destructive:#9d363d;
  --destructive-foreground:#fff;
  --success:#297858;
  --success-foreground:#fff;
  --info:#3158ac;
  --info-foreground:#fff;
  --warning:#845116;
  --warning-foreground:#fff;
  --neutral:#526784;
  --neutral-foreground:#fff;
  --input:#798aa6;
  --ring:#355ec4;
  --sidebar:#edf2fa;
  --sidebar-foreground:#25375a;
  --sidebar-accent:#dbe8fb;
  --sidebar-accent-foreground:#203859;
  --sidebar-ring:#355ec4;
  --skeleton-base:#e0e8f4;
  --skeleton-highlight:#eef3fa;
  --table-row:#fff;
  --table-header:#e8f0fb;
  --table-header-hover:#d6e6fc;
  --table-disabled:#edf1f8;
  --table-disabled-hover:#dfe7f2;
  --table-disabled-border:#a1b0c6;
  --chart-1:#4867ce;
  --chart-2:#16768e;
  --chart-3:#7357b7;
  --chart-4:#a33570;
  --chart-5:#217657;
}
html[data-rw-console] body { background:var(--background); color:var(--foreground); }

html[data-rw-console] [data-slot="sidebar-wrapper"] > header {
  background:var(--rw-header);
  border-block-end:1px solid var(--rw-hairline);
}
html[data-rw-console] :is([data-slot="sidebar-inner"],[data-sidebar="sidebar"]) {
  background:var(--sidebar);
}
html[data-rw-console] [data-slot="sidebar-inset"] {
  background:
    radial-gradient(ellipse at 84% 0%,var(--rw-backdrop-glow),transparent 48%),
    var(--background);
}
html[data-rw-console] [data-slot="sidebar-group-label"] {
  color:var(--rw-faint);
  font-weight:650;
  letter-spacing:.045em;
}
html[data-rw-console] :is([data-sidebar="menu-button"],[data-sidebar="menu-sub-button"])[data-active]:not([data-active="false"]) {
  color:var(--sidebar-accent-foreground);
  background:var(--sidebar-accent);
  box-shadow:inset 0 0 0 1px var(--rw-active-line);
}
/* This exact signed-in anchor exists before the JS skin or logo has mounted.
   The native children never paint, regardless of PNG fetch timing. */
#root [data-slot="sidebar-wrapper"] > header [class~="@container/system-brand"] > a[href="/"] {
  --rw-brand-width:clamp(84px,13vw,128px);
  min-width:0;
  border-radius:6px;
}
#root [data-slot="sidebar-wrapper"] > header [class~="@container/system-brand"] > a[href="/"] > :not([data-rw-brand-img]),
#root [data-slot="sidebar-wrapper"] > header [class~="@container/system-brand"] > a[href="/"]:not([data-rw-brand-ready]) > [data-rw-brand-img] {
  display:none;
}
#root [data-slot="sidebar-wrapper"] > header [class~="@container/system-brand"] > a[href="/"]:not([data-rw-brand-ready])::before {
  content:"RelayWay";
  display:block;
  inline-size:var(--rw-brand-width);
  max-inline-size:100%;
  color:var(--rw-ink,currentColor);
  font-weight:750;
  letter-spacing:-.03em;
}
#root [data-slot="sidebar-wrapper"] > header [class~="@container/system-brand"] > a[href="/"][data-rw-brand-ready] > [data-rw-brand-img] {
  display:block;
  width:var(--rw-brand-width);
  max-width:100%;
  height:auto;
  max-height:24px;
  object-fit:contain;
  object-position:center;
}
html[data-rw-console][data-rw-console-theme="light"] [data-rw-brand-img] {
  filter:brightness(.52) saturate(1.55);
}

html[data-rw-console] [data-slot="card"] {
  border-color:var(--rw-card-edge,var(--rw-line));
  box-shadow:0 0 0 1px var(--rw-card-edge,var(--rw-line)),0 3px 16px #03081026;
}
html[data-rw-console] [data-slot="card-title"] { color:var(--rw-ink); }
html[data-rw-console] [data-slot="card-description"] { color:var(--rw-soft); }
html[data-rw-console] [data-slot="table-head"] {
  color:var(--foreground);
  font-weight:650;
}
html[data-rw-console] :is(input[data-slot="input"],textarea[data-slot="textarea"],input[data-slot="form-control"]):not([type="checkbox"]):not([type="radio"]) {
  background-color:var(--rw-lowered);
  color:var(--rw-ink);
}
html[data-rw-console] :is(input[data-slot="input"],textarea[data-slot="textarea"],input[data-slot="form-control"])::placeholder {
  color:var(--rw-faint);
  opacity:1;
}
html[data-rw-console] [aria-invalid="true"] { --input:#da7c87; }
html[data-rw-console] :is([data-slot="form-message"],[data-invalid] [data-slot="form-description"]) { color:#f4a2aa; }
html[data-rw-console][data-rw-console-theme="light"] :is([data-slot="form-message"],[data-invalid] [data-slot="form-description"]) { color:#a13c48; }

html[data-rw-console="security"] :is(section,aside)[aria-labelledby^="security-"] h3[id^="security-"] {
  color:var(--rw-blue);
  padding-inline-start:10px;
  border-inline-start:2px solid var(--rw-blue);
  margin-block-end:10px;
  line-height:1.55;
}

html[data-rw-console] :where(a,button,input,textarea,select,[role="tab"],[role="menuitem"]):focus-visible {
  outline:2px solid var(--ring);
  outline-offset:2px;
}

/* Profile: keep the original identity h1/settings semantics. The branded
   banner is an h2 plus eyebrow; no stats, values, or roles are duplicated. */
html[data-rw-console="profile"] [data-rw-profile-wrap] {
  min-width:0;
  max-width:1264px;
}
[data-rw-profile-wrap] .rw-account-heading {
  position:relative;
  display:grid;
  align-content:center;
  gap:8px;
  min-height:145px;
  overflow:hidden;
  padding:clamp(16px,3vw,38px);
  border:1px solid var(--rw-line);
  border-radius:12px;
  background:
    linear-gradient(var(--rw-banner-grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--rw-banner-grid) 1px,transparent 1px),
    radial-gradient(ellipse at 88% 8%,var(--rw-banner-glow) 0%,transparent 58%),
    linear-gradient(119deg,var(--rw-banner-start) 0%,var(--rw-surface) 55%,var(--rw-banner-end) 100%);
  background-size:34px 34px,34px 34px,auto,auto;
}
[data-rw-profile-wrap] .rw-account-heading::after {
  content:"";
  pointer-events:none;
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:linear-gradient(90deg,#678afb00,#90adff70 71%,#678afb00);
}
[data-rw-profile-wrap] .rw-account-heading :is(h1,h2,p) { margin:0; }
[data-rw-profile-wrap] .rw-account-heading :is(h1,h2) {
  color:var(--rw-ink);
  font-size:clamp(1.55rem,3vw,2.18rem);
  line-height:1.2;
  letter-spacing:-.025em;
  font-weight:650;
  overflow-wrap:anywhere;
}
[data-rw-profile-wrap] .rw-account-heading > p:not(.rw-account-kicker) {
  color:var(--rw-soft);
  max-width:58ch;
  font-size:.875rem;
  line-height:1.6;
}
[data-rw-profile-wrap] .rw-account-heading .rw-account-kicker {
  color:var(--rw-blue);
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font:600 .68rem/1.5 var(--rw-mono);
  letter-spacing:.14em;
}
[data-rw-profile-wrap] .rw-account-kicker::before {
  content:"";
  flex:0 0 auto;
  width:7px;
  height:7px;
  background:#8fafef;
  box-shadow:0 0 12px #618fff76;
}
[data-rw-profile-hero] {
  --rw-card-edge:var(--rw-profile-border);
  background:linear-gradient(114deg,var(--rw-profile-start),var(--rw-surface) 58%);
}
[data-rw-profile-hero] > [data-slot="card-content"] {
  padding:clamp(14px,2vw,24px);
}
[data-rw-profile-hero] > [data-slot="card-content"] > :first-child { text-align:start; }
[data-rw-profile-hero] h1 {
  color:var(--rw-ink);
  font-size:clamp(1.15rem,2vw,1.55rem);
  letter-spacing:-.025em;
}
[data-rw-profile-hero] :has(> h1) {
  flex-wrap:wrap;
}
[data-rw-profile-hero] h1 {
  min-width:0;
  overflow-wrap:anywhere;
  white-space:normal;
}
[data-rw-profile-hero] [data-slot="status-badge"] {
  max-width:100%;
}
[data-rw-profile-stats] {
  border-block-start:1px solid var(--rw-hairline);
  background:var(--rw-stat-surface);
  --border:var(--rw-stat-line);
}
[data-rw-profile-stats] > .grid > * { min-width:0; }
[data-rw-profile-stats] .font-mono {
  font-family:var(--rw-mono);
  color:var(--rw-stat-value);
  text-overflow:clip;
  overflow-wrap:anywhere;
  white-space:normal;
}
[data-rw-profile-stats] > .grid > :first-child .font-mono { color:var(--rw-mint); }
[data-rw-profile-stats] .uppercase {
  text-transform:none;
  letter-spacing:.03em;
  color:var(--rw-soft);
  white-space:normal;
}
[data-rw-profile-wrap] > * { min-width:0; }
[data-rw-profile-wrap] [data-slot="card-content"] > * { min-width:0; }
[data-rw-profile-wrap] [data-slot="card-header"] { border-color:var(--rw-hairline); }

@media (max-width:767px) {
  [data-rw-profile-wrap] .rw-account-heading { min-height:128px; }
  [data-rw-profile-stats] > .grid { grid-template-columns:minmax(0,1fr); }
  [data-rw-profile-stats] > .grid > * { border:0; }
  [data-rw-profile-stats] > .grid > * + * { border-block-start:1px solid var(--rw-stat-line); }
  [data-rw-profile-stats] > .grid > :has(> .font-mono) {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,auto);
    align-items:center;
    column-gap:12px;
    row-gap:3px;
  }
  [data-rw-profile-stats] > .grid > * > :first-child { min-width:0; }
  [data-rw-profile-stats] .font-mono + :last-child {
    display:block;
    grid-column:1 / -1;
    margin:0;
    color:var(--rw-faint);
  }
  [data-rw-profile-stats] .font-mono {
    margin:0;
    text-align:end;
    min-width:0;
  }
}
@media (forced-colors:active) {
  [data-rw-profile-wrap] .rw-account-kicker::before { background:CanvasText; }
  html[data-rw-console] :where(a,button,input,textarea,select,[role="tab"],[role="menuitem"]):focus-visible {
    outline-color:Highlight;
  }
}
