@font-face {
  font-family: "Fira Sans";
  src: url("/fonts/fira-sans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/fonts/fira-sans-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/fonts/fira-sans-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("/fonts/fira-code-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #101319;
  --surface: #171c24;
  --raised: #202631;
  --border: #303947;
  --strong: #556173;
  --text: #edf1f6;
  --muted: #9da8b8;
  --accent: #f16f32;
  --primary: #b64216;
  --green: #55c28b;
  --red: #f07878;
  --control: 32px;
  font-family: "Fira Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 8px 12px;
  color: var(--bg);
  background: var(--accent);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  width: min(100% - 32px, 1320px);
  margin: auto;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  margin-right: auto;
  color: var(--text);
  font:
    500 16px/1 "Fira Code",
    monospace;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.wordmark span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.identity {
  color: var(--muted);
  font:
    11px "Fira Code",
    monospace;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control);
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
}
.button-primary {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--accent);
}
.button-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--strong);
}
.button:hover:not(:disabled) {
  border-color: var(--accent);
  filter: brightness(1.15);
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.customer-page main {
  width: min(100% - 32px, 1320px);
  margin: auto;
  padding-block: 28px 60px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 620px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.auth-art {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(32px, 6vw, 76px);
  background:
    linear-gradient(145deg, #11151bf2, #11151bb8),
    url("/hero-netxus-v2.webp") center/cover,
    var(--bg);
}
.auth-art h1 {
  max-width: 540px;
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.auth-art > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
}
.auth-panel {
  display: flex;
  align-items: center;
  padding: clamp(26px, 6vw, 76px);
}
.auth-card {
  width: min(100%, 440px);
  margin: auto;
}
.auth-card h2 {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 600;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font:
    500 10px/1.2 "Fira Code",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.form {
  margin-top: 22px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.field > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.field small {
  font-weight: 400;
}
.field :is(input, select, textarea) {
  width: 100%;
  min-height: var(--control);
  padding: 4px 10px;
  color: var(--text);
  font:
    400 13px/1.5 "Fira Sans",
    system-ui,
    sans-serif;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.field textarea {
  min-height: 112px;
  resize: vertical;
}
.form-status {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--muted);
}
.form-status[data-state="error"] {
  color: var(--red);
}
.form-status[data-state="success"] {
  color: var(--green);
}
.secret-box {
  padding: 14px;
  overflow-wrap: anywhere;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  font:
    500 13px "Fira Code",
    monospace;
}
.shell {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  min-height: calc(100dvh - 92px);
  margin-inline: calc((min(100vw - 32px, 1320px) - 100vw) / 2);
  width: 100vw;
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 64px);
  padding: 0 12px 20px;
  background: #141920;
  border-right: 1px solid var(--border);
}
.sidebar-company {
  display: grid;
  gap: 5px;
  margin: 0 -12px 18px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-company strong {
  overflow-wrap: anywhere;
}
.sidebar-company small {
  color: var(--muted);
  font:
    11px "Fira Code",
    monospace;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  color: var(--muted);
  border-left: 3px solid transparent;
  border-radius: 4px;
  text-decoration: none;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--text);
  background: var(--raised);
  border-left-color: var(--accent);
}
.content {
  min-width: 0;
  padding: 0 26px 40px;
}
.mobile-nav {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
}
.page {
  padding-top: 24px;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
h2 {
  margin: 6px 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.metric-card,
.card {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.metric-card {
  display: grid;
  gap: 5px;
}
.metric-card span {
  color: var(--muted);
}
.metric-card strong {
  font-size: 28px;
  font-weight: 500;
}
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.facts {
  display: grid;
  grid-template-columns: minmax(110px, 0.5fr) minmax(0, 1fr);
  gap: 8px 18px;
  margin: 0;
}
.facts dt {
  color: var(--muted);
  font:
    11px "Fira Code",
    monospace;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.stack {
  display: grid;
  gap: 10px;
}
.item {
  padding: 13px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.item strong {
  display: block;
}
.item small,
.item p {
  color: var(--muted);
}
.item p {
  margin: 5px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.unavailable {
  border-left: 3px solid var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.pagination span {
  margin-right: auto;
}
.support-layout {
  align-items: start;
}
.case-item {
  width: 100%;
  text-align: left;
}
.case-item.active {
  border-color: var(--accent);
}
.case-message {
  border-left: 2px solid var(--accent);
}
.narrow {
  max-width: 440px;
}
.customer-page dialog {
  width: min(560px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  padding: 20px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--strong);
  border-radius: 8px;
}
.customer-page dialog::backdrop {
  background: #000b;
}
.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
@media (any-pointer: coarse) {
  :root {
    --control: 44px;
  }
  .button,
  .sidebar nav a {
    min-height: 44px;
  }
}
@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-art {
    min-height: 230px;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    z-index: 4;
    top: 64px;
    left: 0;
    width: 260px;
    height: calc(100dvh - 64px);
    transform: translateX(-105%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: none;
  }
  .mobile-nav {
    display: flex;
  }
  .content {
    padding-inline: 14px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .customer-page main {
    width: 100%;
    padding-top: 16px;
  }
  .shell {
    margin-inline: 0;
  }
  .topbar {
    width: calc(100% - 32px);
  }
  .identity {
    display: none;
  }
  .auth-layout {
    border-radius: 0;
    border-inline: 0;
  }
  .auth-art {
    min-height: 180px;
    padding: 24px;
  }
  .auth-art h1 {
    font-size: 32px;
    margin-bottom: 0;
  }
  .auth-art > p:not(.eyebrow) {
    display: none;
  }
  .auth-panel {
    padding: 38px 24px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
  }
  .item-actions .button {
    width: 100%;
  }
}
.profile-form > .grid-two {
  align-items: start;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
}
.banner {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--raised);
  border: 1px solid var(--strong);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
.banner[data-level="urgent"] {
  border-color: var(--red);
  border-left-color: var(--red);
}
.banner p {
  margin: 0;
}
.banner p + p {
  margin-top: 4px;
}
.banner a {
  font-weight: 600;
}
#passkeys-card {
  margin-top: 14px;
}
.print-only {
  display: none;
}
@media print {
  html,
  body.printing-receipt {
    color: #000;
    background: #fff;
  }
  body.printing-receipt > :not(#receipt-print) {
    display: none !important;
  }
  body.printing-receipt #receipt-print {
    display: block;
    padding: 0;
  }
  .receipt-sheet {
    margin: 0 0 24px;
    padding: 20px;
    color: #000;
    background: #fff;
    border: 1px solid #000;
    break-inside: avoid;
  }
  .receipt-sheet h2 {
    margin: 0 0 14px;
    font-size: 20px;
    letter-spacing: 0;
  }
  .receipt-sheet .facts dt {
    color: #333;
  }
  .receipt-sheet p {
    margin: 14px 0 0;
    color: #333;
    font-size: 12px;
  }
}
a.item {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.item:hover,
a.item.active {
  border-color: var(--accent);
}
.search-form {
  margin-top: 0;
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}
.search-form .field {
  flex: 1 1 180px;
  margin-bottom: 0;
}
.qr-box {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}
.qr-box svg {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}
#password-card {
  margin-top: 14px;
}
