/* The Tech portals share the Data Portal shell dimensions and Sonco wordmark. */
[data-product] {
  --rail-width: 264px;
  --bar-height: 70px;
  --ink: #1c2b36;
  --muted: #607482;
  --line: #dfe7ec;
  --canvas: #f2f6f8;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  margin: 0;
}
[data-product="agentic"] {
  --brand: #a4470d;
  --rail-top: #aa4a12;
  --rail-base: #55260f;
  --accent: #ffb474;
  --glow: rgba(242,151,78,.26);
  --tint: #fbefe4;
  --navy: var(--brand);
  --navy-dark: var(--rail-base);
  --cl-accent: var(--brand);
  --cl-tint: var(--tint);
}
[data-product="messages"] {
  --brand: #a52e3b;
  --rail-top: #942d39;
  --rail-base: #541723;
  --accent: #ffabb1;
  --glow: rgba(240,124,132,.23);
  --tint: #fbecef;
}
[data-product] *, [data-product] *::before, [data-product] *::after { box-sizing: border-box; }
.tech-rail, .tech-rail.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--rail-width);
  display: flex; flex-direction: column; padding: 0; overflow-y: auto; overscroll-behavior: contain;
  border: 0; color: white; scrollbar-width: thin;
  background: radial-gradient(circle at 18% 12%, var(--glow), transparent 36%), linear-gradient(180deg,var(--rail-top),var(--rail-base));
}
.tech-brand { flex: 0 0 var(--bar-height); display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid #ffffff24; }
.tech-brand a { display: grid; place-items: center; width: 126px; height: 38px; background: #fff; border-radius: 9px; }
.tech-brand img { display: block; width: 106px; height: auto; }
.tech-brand span,.tech-label { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; }
.tech-brand span { color: #ffffffcd; }
.tech-label { display: block; margin: 19px 22px 8px; color: #ffffffad; }
.tech-rail-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tech-nav { display: grid; gap: 3px; padding: 0 12px; }
.tech-rail .tech-link {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px;
  padding: 7px 13px; border: 0; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600;
  text-align: left; text-decoration: none; color: #ffffffe0; background: transparent; cursor: pointer;
}
.tech-rail .tech-link:hover { background: #ffffff12; color: #fff; }
.tech-rail .tech-link[aria-current="page"] { background: #ffffff20; color: #fff; }
.tech-rail .tech-link[aria-current="page"]::before { content: ""; position: absolute; inset: 8px auto 8px -12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.tech-glyph { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 7px; background: #ffffff15; color: var(--accent); }
.tech-glyph svg { display: block; width: 16px; height: 16px; }
.tech-portals { flex: 0 0 auto; margin-top: auto; padding: 14px 12px 18px; }
.tech-portals .tech-label { margin: 0 10px 6px; border-top: 1px solid #ffffff26; padding-top: 14px; }
.tech-portals a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; color: #ffffffe0; border-radius: 7px; text-decoration: none; font-size: 13px; font-weight: 600; }
.tech-portals a:hover { color: #fff; background: #ffffff12; }
.tech-portals a span { color: var(--accent); }
.tech-workspace { margin-left: var(--rail-width); min-width: 0; min-height: 100vh; }
.tech-topbar { position: sticky; top: 0; z-index: 30; height: var(--bar-height); display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 0 28px; background: #fffffff7; border-bottom: 1px solid var(--line); }
.tech-crumb,.tech-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tech-crumb { color: var(--muted); font-size: 13px; }
.tech-crumb strong,.tech-user strong { color: var(--ink); }
.tech-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--brand); font-size: 12px; font-weight: 750; }
.tech-user strong,.tech-user small { display: block; font-size: 12px; }
.tech-user small { color: var(--muted); font-size: 11px; }
.tech-icon-btn { display: inline-grid; place-items: center; height: 38px; width: 38px; padding: 0; border-radius: 9px; border: 1px solid var(--line); color: var(--ink); background: white; cursor: pointer; }
.tech-icon-btn svg { width: 18px; height: 18px; }
.tech-icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.tech-menu,.tech-overlay { display: none; }
.tech-rail :focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tech-auth { display: grid; min-height: 100vh; grid-template-columns: minmax(460px,1.12fr) minmax(420px,.88fr); }
.tech-story { position: relative; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; padding: 42px 54px; color: white; background: radial-gradient(circle at 78% 20%,var(--glow),transparent 32%),linear-gradient(145deg,var(--rail-base),var(--rail-top)); }
.tech-story::after { content: ""; position: absolute; right: -120px; bottom: -140px; width: 430px; height: 430px; border: 1px solid #ffffff19; border-radius: 50%; box-shadow: 0 0 0 64px #ffffff07,0 0 0 128px #ffffff05; pointer-events: none; }
.tech-story > * { position: relative; z-index: 1; }
.tech-auth-brand { display: flex; align-items: center; gap: 15px; }
.tech-auth-brand img { width: 130px; padding: 8px 11px; border-radius: 9px; background: white; }
.tech-auth-brand span { padding-left: 15px; border-left: 1px solid #ffffff40; font-size: 13px; font-weight: 700; color: #ffffffdc; }
.tech-story-copy { margin: auto 0; max-width: 620px; }
.tech-kicker { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tech-story h1 { margin: 16px 0 20px; font-size: clamp(38px,4.4vw,64px); letter-spacing: -.045em; line-height: 1.03; color: white; }
.tech-story-copy p { margin: 0; color: #ffffffcf; font-size: 16px; line-height: 1.65; }
.tech-story footer { color: #ffffffaa; font-size: 11px; }
.tech-auth-panel { display: grid; place-items: center; min-width: 0; padding: 42px; background: linear-gradient(140deg,#fff,#f7f9fa); }
.tech-auth-card { width: min(430px,100%); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 24px 60px #0e30461f; }
.tech-auth-card .tech-kicker { color: var(--brand); }
.tech-auth-card h2 { margin: 10px 0 7px; font-size: 34px; line-height: 1.15; letter-spacing: -.035em; color: var(--ink); }
.tech-auth-card p { color: var(--muted); line-height: 1.5; font-size: 13px; }
.tech-auth-card form { display: grid; gap: 14px; margin-top: 25px; }
.tech-auth-card label { display: grid; gap: 7px; font-weight: 650; font-size: 13px; }
.tech-auth-card input, .tech-auth-card select { width: 100%; min-height: 43px; padding: 9px 12px; font: inherit; color: var(--ink); border: 1px solid #cbd7df; border-radius: 9px; background: #fff; }
.tech-auth-card button[type="submit"] { width: 100%; min-height: 46px; margin-top: 5px; border: 0; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 700; background: var(--brand); color: white; cursor: pointer; }
.tech-auth-card :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tech-auth-card [role="alert"] { padding: 10px 12px; border-radius: 8px; background: #fff0f1; color: #96232d; }
.tech-auth-card code { display: block; overflow-wrap: anywhere; padding: 10px 13px; border-radius: 6px; background: var(--tint); }
@media(max-width: 900px) {
  .tech-rail,.tech-rail.sidebar { visibility: hidden; transform: translateX(-100%); width: min(var(--rail-width),85vw); }
  .tech-menu-open .tech-rail { visibility: visible; transform: none; }
  .tech-menu { display: inline-grid; }
  .tech-menu-open .tech-overlay { display: block; position: fixed; inset: 0; z-index: 35; border: 0; background: #14212f6b; }
  .tech-workspace { margin-left: 0; }
  .tech-topbar { padding: 0 16px; }
  .tech-auth { grid-template-columns: 1fr; }
  .tech-story { min-height: 35vh; padding: 28px 32px; gap: 24px; }
  .tech-auth-panel { min-height: 50vh; padding: 30px 24px; }
}
@media(max-width: 560px) {
  .tech-user .tech-user-name { display: none; }
  .tech-story { min-height: auto; padding: 22px 20px; gap: 18px; }
  .tech-story h1 { font-size: 34px; margin: 10px 0; }
  .tech-story-copy p { font-size: 14px; }
  .tech-auth-panel { min-height: auto; padding: 22px 14px; }
  .tech-auth-card { padding: 28px 22px; }
}
