@font-face {
  font-family: "Switzer";
  src: url(/fonts/switzer-300.woff2) format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url(/fonts/switzer-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url(/fonts/switzer-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  --ink: #1c1c1c;
  --paper: #f6f5f3;
  --surface: #ffffff;
  --accent: #f4501e;
  --accent-hover: #d9451a;
  --muted: rgba(28, 28, 28, 0.55);
  --muted-2: rgba(28, 28, 28, 0.6);
  --faint: rgba(28, 28, 28, 0.45);
  --soft: rgba(28, 28, 28, 0.7);
  --line: rgba(28, 28, 28, 0.12);
  --line-soft: rgba(28, 28, 28, 0.08);
  --row: rgba(28, 28, 28, 0.06);
  --field: rgba(28, 28, 28, 0.25);
  --bad: #b42318;
  --bad-soft: #fdecea;
  --font: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --r-control: 6px;
  --r-card: 10px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
}
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select {
  font-family: var(--font);
}
a {
  color: var(--ink);
  text-decoration: none;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.num {
  font-variant-numeric: tabular-nums;
}
.pn {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* controls */
.btn {
  border-radius: var(--r-control);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 20px;
  transition:
    background 220ms var(--ease),
    border-color 220ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 0;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-primary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--field);
  padding: 11px 18px;
}
.btn-secondary:hover {
  border-color: var(--ink);
}
.btn-quiet {
  background: transparent;
  color: var(--muted-2);
  border: 1px solid var(--field);
  font-weight: 400;
  padding: 11px 18px;
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 16px;
}
.lbl {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.input {
  width: 100%;
  border: 1px solid var(--field);
  border-radius: var(--r-control);
  padding: 12px 14px;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
}
.input-lg {
  padding: 14px 16px;
  font-size: 16px;
}
.err {
  display: block;
  color: var(--bad);
  font-size: 13px;
  margin-top: 8px;
}
.banner {
  border-radius: var(--r-control);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
  background: var(--paper);
}
.banner.bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.banner b {
  font-weight: 500;
  display: block;
}
.hint {
  display: block;
  color: var(--faint);
  font-size: 13px;
  font-weight: 300;
  margin-top: 6px;
}
.textlink {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}
.textlink:hover {
  color: var(--accent);
}
.textlink.accent {
  color: var(--accent);
  font-weight: 400;
}
.back {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.back:hover {
  color: var(--accent);
}

/* sign in */
.signin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.signin .dark {
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
}
.signin .dark img {
  height: 44px;
  width: auto;
  display: block;
  align-self: flex-start;
}
.signin .big {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 14em;
}
.signin .lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 34em;
}
.signin .tagline {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}
.signin .formside {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.signin .form {
  width: 100%;
  max-width: 400px;
}
.signin h1 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px;
}
.signin .intro {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted-2);
  margin: 0 0 32px;
}
.signin .intro b {
  font-weight: 500;
  color: var(--ink);
}
.signin .help {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(28, 28, 28, 0.5);
  margin: 28px 0 0;
}

/* portal shell */
.portal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top {
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.top .logo {
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.top .logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
}
.nav button {
  background: none;
  border: 0;
  padding: 0 0 4px;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 2px solid transparent;
}
.nav button:hover {
  color: var(--accent);
}
.nav button[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--accent);
}
.me {
  display: flex;
  align-items: center;
  gap: 16px;
}
.me .who {
  text-align: right;
}
.me .name {
  font-size: 15px;
  font-weight: 500;
}
.me .firm {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}
.me .initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
}
main {
  flex: 1;
  padding: 44px 48px 64px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 300;
  color: var(--faint);
}
.h-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.title {
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.2;
}
.sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  margin: 0;
}
.note {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--faint);
  margin: 20px 0 0;
}

/* tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 220ms var(--ease);
}
.tile:hover {
  border-color: var(--accent);
}
.tile .bar {
  width: 40px;
  height: 4px;
  background: var(--accent);
}
.tile .t {
  font-size: 20px;
  font-weight: 500;
  margin-top: 12px;
}
.tile .d {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted-2);
}
.tile .go {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  margin-top: 8px;
}

/* tables */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.tw {
  overflow-x: auto;
}
table.t {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
table.t th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.5);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
table.t td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--row);
  vertical-align: middle;
}
table.t th:first-child,
table.t td:first-child {
  padding-left: 24px;
}
table.t th:last-child,
table.t td:last-child {
  padding-right: 24px;
}
table.t tr:last-child td {
  border-bottom: 0;
}
table.t .r {
  text-align: right;
}
table.t td.r,
table.t td.num,
table.t td.pn {
  white-space: nowrap;
}
table.t .l3 {
  font-weight: 300;
  color: var(--soft);
}
table.t .strong {
  font-weight: 500;
}
.st-open {
  color: var(--accent);
  font-weight: 500;
}
.st-other {
  color: var(--muted);
  font-weight: 300;
}

/* states */
.searchcard {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.searchcard .grow {
  flex: 1 1 360px;
  position: relative;
}
.searchcard .grow .err {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
}
.searchcard:has(.err) {
  padding-bottom: 40px;
}
.lflcard {
  margin-bottom: 16px;
}
.lflhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.lflhead .t {
  font-size: 18px;
  font-weight: 500;
}
.empty {
  padding: 40px 28px;
  display: grid;
  gap: 10px;
  justify-items: start;
  max-width: 640px;
}
.empty h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}
.empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted-2);
}
.empty.bad {
  border-left: 3px solid var(--bad);
}
.loading {
  padding: 16px 24px 24px;
  display: grid;
  gap: 14px;
}
.loading p {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted-2);
}
.skel {
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--row) 0, rgba(28, 28, 28, 0.02) 50%, var(--row) 100%);
  background-size: 200% 100%;
  animation: sk 1.2s linear infinite;
}
@keyframes sk {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.nil {
  padding: 22px 24px;
  font-size: 15px;
  font-weight: 500;
}
.nil span {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: var(--faint);
  margin-top: 4px;
}

/* overlays */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.55);
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 24px;
  overflow: auto;
}
.modal {
  background: var(--surface);
  border-radius: var(--r-card);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  display: grid;
  gap: 14px;
}
.modal h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}
.modal p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted-2);
}
.modal .small {
  font-size: 13px;
  color: var(--faint);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .signin {
    grid-template-columns: 1fr;
  }
  .signin .dark {
    display: none;
  }
  .top,
  .foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  main {
    padding: 32px 16px 48px;
  }
  .me .who {
    display: none;
  }
}

.lflhead .t.pn {
  font-weight: 500;
}
.small {
  font-size: 13px;
  font-weight: 300;
  color: var(--faint);
}
.btn-secondary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.code {
  font-size: 24px;
  letter-spacing: 0.3em;
  text-align: center;
}
/* Two full-width buttons stacked (S13's Try again, then Sign out). */
.signin .btn-block + .btn-block {
  margin-top: 12px;
}
.signing h1 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.spinner {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.signin .pair {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-control);
  z-index: 60;
  max-width: min(560px, calc(100% - 32px));
  font-size: 14px;
  font-weight: 300;
}
