@font-face {
  font-family: Archivo;
  src: url(archivo.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(inter.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #08090a;
  --panel: #111315;
  --raised: #1b1d20;
  --line: #2b2d30;
  --text: #f2f3f3;
  --muted: #a2a5a8;
  --accent: #63d7e5;
  --warn: #eec777;
  --bad: #ff9d94;
  --side: 218px;
  font:
    15px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}
button {
  padding: 0.65rem 1rem;
}
button:hover:not(:disabled) {
  border-color: #90969b;
}
input,
select,
textarea {
  padding: 12px;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 84px;
}
label {
  display: block;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -90px;
  left: 10px;
  z-index: 20;
}
.skip:focus {
  top: 8px;
  background: black;
  padding: 12px;
}
.brandword {
  font:
    900 18px/1 Archivo,
    sans-serif;
  letter-spacing: -0.065em;
}
.brandword b {
  color: var(--accent);
  font-size: 0.7em;
  letter-spacing: 0.08em;
  margin-left: 6px;
}
.auth {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(350px, 0.95fr);
}
.auth-photo {
  position: relative;
  background: #101416 url(sign-in-bay.jpg) center/cover no-repeat;
  display: flex;
  align-items: flex-start;
  padding: 36px;
}
.auth-photo:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0008, transparent 45%, #060809ba);
}
.auth-photo > * {
  position: relative;
}
.auth-body {
  padding: clamp(32px, 6vw, 100px);
  align-self: center;
  width: 100%;
  max-width: 680px;
}
.eyebrow,
.label,
.cap {
  font:
    750 11px/1.4 Archivo,
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: '';
  width: 23px;
  height: 2px;
  background: currentColor;
}
.auth h1,
.hero h1,
.pagetitle {
  font:
    900 clamp(35px, 4vw, 60px)/0.98 Archivo,
    sans-serif;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 15px 0 14px;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1.3px var(--text);
}
.lede {
  color: var(--muted);
  margin: 0 0 28px;
}
.field {
  margin: 18px 0;
}
.field span {
  display: block;
  margin-bottom: 6px;
}
.primary,
.primary:visited {
  background: #eef9fa;
  color: #08090a;
  font-weight: 800;
  border: 1px solid #e2f2f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 7px;
}
.auth .primary {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-footer,
.quiet {
  color: var(--muted);
}
.auth-footer {
  display: flex;
  gap: 17px;
  font-size: 0.83em;
  margin-top: 24px;
}
.subbutton {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 9px 0;
}
.field select {
  appearance: auto;
}
.loading,
.problem {
  padding: 20px;
}
.problem,
.error {
  color: var(--bad);
}
.error:empty {
  display: none;
}
.loading {
  color: var(--muted);
}
.status-note {
  color: var(--warn);
}
.helpbox {
  border-left: 2px solid var(--warn);
  padding: 8px 12px;
  color: var(--warn);
  margin: 12px 0;
}
.shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  padding: 28px 16px;
  background: #0c0e10;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.sidebar .brandword {
  padding: 4px 12px 34px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.navitem {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 7px 12px;
  color: var(--muted);
  border-radius: 7px;
  font-weight: 600;
}
.navitem:hover,
.navitem.active {
  background: #1a1e20;
  text-decoration: none;
  color: var(--text);
}
.navitem.active .symbol {
  color: var(--accent);
}
.symbol {
  width: 21px;
  height: 21px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar .staff {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.staff strong {
  display: block;
  color: var(--text);
}
.maincol {
  grid-column: 2;
  min-width: 0;
}
.bar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(18px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pill,
.round {
  border-radius: 100px;
  background: #1b1e20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pill {
  font:
    800 12px Archivo,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 84%;
  min-height: 40px;
}
.dot {
  height: 8px;
  width: 8px;
  background: var(--accent);
  border-radius: 100%;
  flex-shrink: 0;
}
.round {
  padding: 11px;
}
.workspace {
  max-width: 1300px;
  margin: 0 auto;
  padding: 38px clamp(18px, 4vw, 60px) 70px;
}
.hero {
  padding: 6px 0 18px;
}
.hero h1 {
  margin-bottom: 12px;
}
.hero .outline {
  display: block;
}
.hero p,
.subtitle {
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin: 12px 0 26px;
}
.stat {
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  display: block;
}
.stat:first-child {
  padding-left: 0;
}
.stat:last-child {
  border-right: 0;
}
.stat strong,
.num {
  font:
    760 clamp(21px, 3vw, 34px) Archivo,
    sans-serif;
  letter-spacing: -0.025em;
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat small {
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
}
.pane {
  min-width: 0;
  margin: 0 0 24px;
}
.pane h2,
.sectionhead {
  font:
    750 12px/1.5 Archivo,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--muted);
}
.rowlink,
.entry {
  border-bottom: 1px solid var(--line);
  padding: 13px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.rowlink:hover {
  color: var(--accent);
  text-decoration: none;
}
.rowlink > span,
.entry > span {
  min-width: 0;
}
.entry small,
.rowlink small {
  color: var(--muted);
  display: block;
}
.chev {
  color: var(--muted);
  font-size: 1.35em;
}
.tilepair,
.actions,
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.tilepair {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin: 8px 0 26px;
}
.tilepair > div {
  flex: 1;
  min-width: 110px;
}
.buttonlink,
.action {
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 7px;
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sectiontop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.sectiontop .pagetitle {
  font-size: clamp(30px, 4vw, 48px);
}
.bottom {
  display: none;
}
.tag {
  font-size: 0.77rem;
  color: var(--accent);
}
.card {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
}
.searchbox {
  display: flex;
  gap: 8px;
  margin: 10px 0 16px;
}
.searchbox input {
  flex: 1;
}
.msg {
  margin: 8px 0;
  padding: 12px 14px;
  background: var(--panel);
  border-radius: 10px;
  max-width: 85%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.out {
  background: #163137;
  margin-left: auto;
}
.msg small {
  display: block;
  color: var(--muted);
  font-size: 0.72em;
  margin-top: 5px;
}
.entry strong,
.rowlink strong {
  overflow-wrap: anywhere;
}
.note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.moneylink {
  color: var(--accent);
}
.empty {
  color: var(--muted);
  padding: 10px 0;
}
.sheet {
  width: min(460px, 94vw);
  background: #111416;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  padding: 20px;
  max-height: 85svh;
}
.sheet::backdrop {
  background: #000a;
}
.sheet .sectiontop h2 {
  margin: 0;
}
.sheet .rowlink {
  width: 100%;
}
#notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 19;
  max-width: min(600px, 90%);
  font-size: 0.9rem;
}
#notice:not(:empty) {
  padding: 12px 18px;
  border-radius: 7px;
  background: #262d30;
  box-shadow: 0 4px 20px #0009;
}
@media (max-width: 760px) {
  .auth {
    display: block;
  }
  .auth-photo {
    height: clamp(145px, 24svh, 225px);
    padding: 22px;
    background-position: center 48%;
  }
  .auth-photo:before {
    background: linear-gradient(180deg, #0005 0%, transparent 40%, var(--bg));
  }
  .auth-body {
    padding: 8px 20px 28px;
  }
  .auth h1 {
    font-size: 42px;
  }
  .auth .lede {
    margin-bottom: 18px;
  }
  .auth-footer {
    margin-top: 18px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .bar {
    padding: 0 17px;
    height: 66px;
    border-bottom: none;
  }
  .workspace {
    padding: 12px 18px 100px;
  }
  .hero h1 {
    font-size: clamp(31px, 8vw, 48px);
  }
  .split {
    display: block;
  }
  .stats {
    margin: 7px 0 22px;
  }
  .stat {
    padding: 9px 6px;
  }
  .stat small {
    font-size: 0.77rem;
  }
  .bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    align-items: center;
    justify-content: space-around;
    gap: 3px;
    padding: 7px 6px max(8px, env(safe-area-inset-bottom));
    background: #111315f5;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .bottom a,
  .bottom button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 40px;
    padding: 2px 4px;
    font-size: 10px;
    color: var(--muted);
    background: none;
    border: 0;
  }
  .bottom .active {
    color: #efffff;
  }
  .bottom .active .symbol {
    color: var(--accent);
  }
  .bottom .plus {
    border: 1px solid #82898d;
    border-radius: 5px;
    padding: 6px 10px;
    color: var(--text);
  }
  .pane {
    margin-bottom: 22px;
  }
  #notice {
    bottom: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.lead-intake-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(102px, 1fr));
  gap: 7px;
  margin: 12px 0 18px;
}
.lead-intake-stages:empty {
  display: none;
}
.lead-intake-stages button {
  min-height: 66px;
  text-align: left;
  padding: 8px 10px;
}
.lead-intake-stages button span {
  display: block;
  color: var(--muted);
  font-size: 0.81rem;
}
.lead-intake-stages strong {
  font:
    700 22px Archivo,
    sans-serif;
}
.lead-intake-stages button[aria-pressed='true'] {
  border-color: var(--accent);
  background: #17282b;
}
.searchbox select {
  width: auto;
  min-width: 0;
  max-width: 55%;
}
@media (max-width: 500px) {
  .lead-intake-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .searchbox {
    flex-wrap: wrap;
  }
  .searchbox input {
    min-width: 120px;
  }
}
.ro-mobile-home {
  display: none;
}
@media (max-width: 760px) {
  .bar {
    gap: 10px;
  }
  .ro-mobile-home {
    display: block;
    flex: none;
    margin-right: auto;
  }
  .bar .pill {
    max-width: 60%;
    overflow: hidden;
  }
  .bar .round {
    flex: none;
  }
}
