/* Signal Fox v1.1: Manrope + Open Sans typography. */
@font-face { font-family: Manrope; src: url("/brand/fonts/Manrope-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("/brand/fonts/Manrope-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/brand/fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/brand/fonts/OpenSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/brand/fonts/OpenSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  color-scheme: light;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 400;
  color: #111518;
  background: #f4f6f5;
  --sf-void: #111518;
  --sf-graphite: #20272c;
  --sf-slate: #526069;
  --sf-snow: #f4f6f5;
  --sf-mist: #e5eae7;
  --sf-orange: #ff6b2c;
  --sf-ink-orange: #b94012;
  --sf-surface: #fff;
  --sf-selection: #fff0e7;
  /* Existing components keep their variable names and behaviour. */
  --navy: var(--sf-void);
  --muted: var(--sf-slate);
  --line: #cbd5d0;
  --accent: var(--sf-orange);
  --blue: var(--sf-ink-orange);
}
body { font-size: 14px; line-height: 1.55; }
h1, h2, h3, .stat-number, .product-price, .catalogue-price strong, .product-sell > strong {
  font-family: Manrope, "Open Sans", sans-serif;
  font-weight: 700;
}
h1 { font-size: 36px; line-height: 1.18; letter-spacing: -.04em; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 17px; line-height: 1.35; }
.mono, .eyebrow, .sidebar-label, .stat-label, th, .num, code {
  font-family: "Open Sans", Arial, sans-serif;
}
.num { font-size: 12px; }
.eyebrow { color: var(--sf-ink-orange); font-weight: 400; letter-spacing: .08em; }
button, input, select, textarea { border-radius: 4px; }
button { font-weight: 600; border-color: var(--line); min-height: 38px; }
button:hover { background: var(--sf-mist); }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sf-orange);
  outline-offset: 4px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--sf-orange);
  outline-offset: 2px;
  border-color: var(--sf-ink-orange);
}
input, select, textarea { color: var(--sf-void); border-color: var(--line); background: var(--sf-surface); }
label { color: var(--sf-slate); font-weight: 600; font-size: 12px; }
.primary, .accent { background: var(--sf-orange); border-color: var(--sf-orange); color: var(--sf-void); font-weight: 700; }
.primary:hover, .accent:hover { background: #ff884f; border-color: #ff884f; }
.danger { color: #b3313d; }
.quiet:hover { background: var(--sf-mist); }
.sidebar {
  width: 222px;
  background: var(--sf-surface);
  color: var(--sf-void);
  border-right: 1px solid var(--line);
  padding: 30px 18px 22px;
}
.shell { grid-template-columns: 222px minmax(0, 1fr); }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; color: var(--sf-void); letter-spacing: normal; padding: 0 11px; }
.brand img { display: block; width: 161px; max-width: 100%; height: auto; }
.brand small { margin: 0; font: 10px "Open Sans", Arial, sans-serif; letter-spacing: .15em; color: var(--sf-slate); }
.sidebar-label { color: var(--sf-slate); letter-spacing: .08em; margin: 38px 12px 15px; font-size: 10px; }
.nav button { position: relative; color: var(--sf-slate); border-radius: 5px; padding: 12px; font-size: 13px; }
.nav button:hover { background: var(--sf-mist); color: var(--sf-void); }
.nav button.active { background: var(--sf-selection); color: var(--sf-ink-orange); }
.nav button.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--sf-orange); }
.sidebar-foot { color: var(--sf-slate); border-color: var(--line); padding: 20px 11px 0; }
.sidebar-foot strong { color: var(--sf-void); }
.topbar { height: 75px; padding: 0 35px; background: var(--sf-surface); border-color: var(--line); }
.avatar { border-radius: 5px; background: var(--sf-mist); color: var(--sf-slate); font-family: "Open Sans", Arial, sans-serif; }
.main { padding: 30px 35px 36px; }
.page-heading { margin-bottom: 27px; }
.stats { gap: 18px; margin-bottom: 22px; }
.stat, .panel, .product { border-radius: 8px; border-color: var(--line); background: var(--sf-surface); }
.stat { padding: 20px 22px; }
.stat-label { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.stat-number { font-size: 42px; line-height: 1.3; letter-spacing: -.04em; margin: 9px 0 5px; }
.stat-note { font-size: 12px; }
.toolbar { padding: 20px 22px; }
.search input, th { background: var(--sf-snow); }
table { min-width: 720px; }
th { color: var(--sf-slate); font-weight: 400; font-size: 10px; letter-spacing: .08em; padding: 13px 22px; border-bottom: 1px solid var(--line); }
td { border-color: var(--sf-mist); font-size: 13px; padding: 17px 22px; }
tr:hover td { background: #f8faf8; }
.model-button { color: var(--sf-void); font-weight: 600; }
.model-button:hover { color: var(--sf-ink-orange); }
.chip { border-radius: 4px; background: var(--sf-mist); color: var(--sf-slate); font-weight: 600; font-size: 11px; }
.chip.current, .price-validity.valid { color: #176449; background: #e4f3eb; }
.chip.expired, .chip.review, .chip.incomplete, .price-validity.invalid { color: #7b5600; background: #fff4d6; }
.notice, .issues { color: #7b5600; background: #fff4d6; border: 1px solid #e7d4a1; border-radius: 5px; }
.error { color: #b3313d; background: #fde9eb; border-color: #e7bec3; border-radius: 4px; }
.server-icon { border-color: var(--line); border-radius: 5px; background: var(--sf-snow); color: var(--sf-slate); }
.product-price { font-size: 26px; }
.login-story { background: var(--sf-snow); color: var(--sf-void); border-right: 1px solid var(--line); }
.login-story .brand { padding: 0; }
.login-story .brand img { width: 205px; }
.login-story h1 { font-size: clamp(38px,4vw,58px); font-weight: 700; line-height: 1.15; letter-spacing: -.04em; }
.login-story h1::after { content: ""; display: block; width: 42px; height: 3px; background: var(--sf-orange); margin-top: 25px; }
.login-story p, .login-note { color: var(--sf-slate); }
.login-form-wrap { background: var(--sf-surface); }
.login-form { width: 360px; max-width: 100%; }
.login-form h2 { font-size: 30px; }
dialog { border-color: var(--line); border-radius: 8px; background: var(--sf-surface); box-shadow: 0 10px 40px #18201926; }
dialog::backdrop { background: #11151888; backdrop-filter: none; }
.dialog-head, .dialog-footer { border-color: var(--line); }
.dialog-footer, .pricing-box { background: var(--sf-snow); }
.pricing-box { border-radius: 5px; }
.price-pair.total { border-color: var(--line); font-family: Manrope, sans-serif; font-weight: 700; }
code { background: var(--sf-mist); color: var(--sf-void); }
#toast { background: var(--sf-void); color: var(--sf-snow); border-radius: 5px; font-size: 12px; }
.catalogue-title { font-size: 24px; font-weight: 600; color: var(--sf-void); }
.catalogue-toolbar { padding: 0; }
.catalogue-table th:first-child { background: var(--sf-snow); }
.product-row:hover td:first-child, .product-row:focus-within td:first-child { background: #f8faf8; }
.catalogue-table .catalogue-code { font-family: Manrope, sans-serif; font-weight: 700; font-size: 17px; }
.validity-tooltip { background: var(--sf-void); color: var(--sf-snow); border-radius: 4px; }
@media (min-width: 1550px) { .main { padding-top: 43px; } }
@media (max-width: 1100px) {
  .sidebar { width: 200px; padding-left: 12px; padding-right: 12px; }
  .shell { grid-template-columns: 200px minmax(0,1fr); }
  .main, .topbar { padding-left: 25px; padding-right: 25px; }
  .stat { padding: 17px; }
  td, th { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; width: auto; padding: 20px 18px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { flex-direction: row; align-items: center; justify-content: space-between; padding: 0; }
  .sidebar .brand img { width: 148px; }
  .nav { gap: 6px; margin-top: 18px; }
  .nav button { font-size: 12px; padding: 10px 12px; }
  .nav button.active::before { top: auto; bottom: 0; left: 12px; right: 12px; width: auto; height: 2px; }
  .topbar { min-height: 62px; height: auto; padding: 13px 18px; gap: 12px; flex-wrap: wrap; }
  .account { gap: 7px; max-width: 100%; }
  .account button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .main { padding: 24px 18px; }
  h1 { font-size: 32px; }
  .stat-number { font-size: 34px; }
  .stats { gap: 12px; }
  .login-story { padding: 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-story .brand { gap: 12px; }
  .login-story .brand img { width: 161px; }
  .login-form-wrap { padding: 38px 25px; min-height: calc(100vh - 130px); }
  .catalogue-topbar .catalogue-title { font-size: 21px; }
  .toolbar { padding: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a, input, select, textarea { transition: background-color 160ms, color 160ms, border-color 160ms; }
}

/* Align figures without introducing a separate monospaced family. */
.num, .mono, .stat-number, .catalogue-price, .product-sell, .price-pair { font-variant-numeric: tabular-nums; }
.eyebrow, .sidebar-label, .stat-label, th, .brand small { font-weight: 600; }
h1 { letter-spacing: -.025em; }
