@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #222b37;
  --paper: #f5f4f2;
  --ink: #202a37;
  --muted: #535f70;
  --line: #dde3e9;
  --blue: #355a80;
  --focus: #37648f;
  --radius: 15px;
  --brand-accent: #8db6e2;
  --brand-green: #207b26;
  --surface-shadow: 0 1px 2px #1726300a;
  scroll-padding-block: 80px 88px;
}
.workspace { grid-template-columns: 232px minmax(0, 1fr); }
.rail { --brand-accent: #86d693; padding: 25px 13px 14px; background: var(--navy); border-right: 1px solid #354254; }
.rail .wordmark { margin-left: 8px; font-weight: 730; }
.rail nav { margin: 23px 0 14px; scrollbar-width: thin; scrollbar-color: #415569 transparent; }
.nav-group { margin-bottom: 12px; }
.nav-group:last-child { margin-bottom: 0; }
.rail .nav-label { margin: 0 10px 4px; font-size: .66rem; color: #9aacb8; letter-spacing: .09em; text-transform: uppercase; }
.rail nav a { min-height: 36px; padding: 6px 10px; color: #d5e0e8; gap: 9px; font-size: .83rem; font-weight: 590; }
.nav-icon, .crumb-icon, .search-icon { display: inline-block; width: 17px; height: 17px; flex: 0 0 17px; vertical-align: middle; }
.rail nav a .nav-icon { color: #a5bdcd; }
.rail nav a:hover { background: #1f3342; }
.rail nav a[aria-current] { background: #34485d; color: #f1f7fd; box-shadow: inset 3px 0 var(--brand-accent); }
.rail nav a[aria-current] .nav-icon { color: #c6ddf4; }
.account { border-top-color: #30424c; }
.account .icon-button:hover { background: #263d4b; }
.avatar { background: #dfeaf6; color: #345476; }
.top { border-color: var(--line); background: #fff; min-height: 63px; }
.crumb { align-items: center; min-width: 0; gap: 8px; }
.crumb strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 680; }
.crumb-icon { color: #718591; width: 13px; height: 13px; flex-basis: 13px; }
.top-actions { width: auto; }
.device-link { padding-inline: 10px; min-height: 37px; }
.device-link .nav-icon { width: 15px; height: 15px; flex-basis: 15px; }
#search { width: clamp(155px, 20vw, 270px); }
#search input { padding-left: 34px; background: #f6f8fa; }
.search-icon { position: absolute; left: 10px; top: 10px; color: #526b7d; pointer-events: none; width: 16px; height: 16px; }
#search kbd { color: #5a6f7f; }
#main { max-width: 1580px; }
:focus-visible { outline-color: var(--focus); }
.rail a:focus-visible, .rail button:focus-visible { outline-color: #b8d8fa; outline-offset: -2px; }
.titlebar h1 { font-weight: 760; }
.panel, .metrics { box-shadow: var(--surface-shadow); }
.hero, .crm-intro { background: #25384f; }
.hero .eyebrow, .crm-intro .eyebrow { color: #c2ddf6; }
.hero::before { opacity: .55; }
.primary { background: var(--blue); border-color: var(--blue); }
.primary:hover { background: #14435e; border-color: #14435e; }
.access-panel .primary { background: var(--brand-green); border-color: var(--brand-green); }
.access-panel .primary:hover { background: #18651e; border-color: #18651e; }
.primary:active, .button:active { box-shadow: inset 0 1px 3px #13293635; }
button:disabled { cursor: not-allowed; }
.modal-head { align-items: center; }
dialog { border-radius: 17px; }
dialog :focus-visible { scroll-margin-block: 76px 48px; }
.form-section { border-color: var(--line); }
.form-sticky { z-index: 1; }
.workspace-form-fields :is(input,select,textarea,button,a):focus-visible { scroll-margin-block-end: 100px; }
.table-wrap th { text-wrap: nowrap; }
.project-schedule { margin-block-start: 16px; }
.project-schedule .project-schedule-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 8px; }
.project-schedule-header .actions { margin: 0; justify-content: start; }
.project-schedule-list { list-style: none; padding: 0; margin-block: 8px 0; }
.project-schedule-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; column-gap: 10px; border-bottom: 1px solid #eaf0f3; padding: 8px 0; overflow-wrap: anywhere; }
.project-schedule-list li:last-child { border-bottom: 0; }
.project-schedule-list li strong { display: block; }
.project-schedule-list time { color: var(--muted); font-size: .82rem; white-space: nowrap; }
@media (max-width: 850px) {
  .workspace { grid-template-columns: 203px minmax(0,1fr); }
}
@media (max-width: 760px) {
  .rail { padding: 13px 11px 2px; }
  .rail .wordmark { margin-left: 0; }
  .rail nav { margin: 10px 0 1px; padding-bottom: 4px; scrollbar-width: none; }
  .nav-group { display: contents; }
  .nav-group .nav-label { display: none; }
  .rail nav a { font-size: .76rem; min-height: 35px; gap: 5px; }
  .rail nav a .nav-icon { display: inline-block; width: 14px; height: 14px; flex-basis: 14px; }
  .rail nav a[aria-current] { box-shadow: inset 0 -2px var(--brand-accent); }
  .device-link .nav-icon { display: none; }
  .crumb-icon { display: none; }
}
@media (max-width: 475px) {
  .top { padding-inline: 12px; gap: 5px; }
  .top-actions { gap: 5px; }
  .device-link { font-size: .74rem; padding-inline: 7px; }
  #search { width: 118px; }
  #search input { padding-left: 27px; padding-right: 8px; font-size: .75rem; }
  .search-icon { width: 14px; left: 8px; }
  #search kbd { display: none; }
  .form-sticky { position: static; }
  .project-schedule-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
.nav-new { margin-left: auto; padding: 1px 5px; border-radius: 4px; font-size: .62rem; font-weight: 650; color: #b9f5d2; background: #2b4845; }
@media (max-width: 760px) { .nav-new { display: none; } }
.ticket-card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: .75rem; }
.ticket-card-grid .ticket-card { margin: 0; align-content: start; }
.ticket-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem; }
.ticket-card .item-title, .ticket-card .hint { overflow-wrap: anywhere; }

.collection {
  min-width: 0;
  position: relative;
  margin-block: .65rem 1rem;
  color: var(--ink);
}
.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  min-height: 2.65rem;
  padding-bottom: .48rem;
  color: var(--muted);
  font-size: .78rem;
}
.collection-toolbar > span:empty { display: none; }
.collection-mode {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  border: 1px solid #d4dde6;
  border-radius: .58rem;
  background: #eef1f5;
}
.collection-mode button {
  color: #47586c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: .38rem;
  min-height: 1.95rem;
  padding: .24rem .54rem;
  font-size: .77rem;
  font-weight: 660;
}
.collection-mode button:hover { background: #e3ebf4; color: #294766; }
.collection-mode button[aria-pressed=true] { color: #284b70; border-color: #c6d5e4; background: #fff; }
.collection-mode button:focus-visible { position: relative; }
.collection-body { min-width: 0; }
.collection .table-wrap { position: relative; overflow-x: auto; overscroll-behavior-inline: contain; }
.collection .table-wrap td { overflow-wrap: anywhere; }
.collection-card, .collection-lane, .collection-card-head > div { min-width: 0; }
.collection-cards, .collection-lane > ul { list-style: none; padding: 0; margin: 0; }
.collection-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,15.5rem),1fr));
  align-items: stretch;
  gap: .66rem;
}
.collection-card {
  display: grid;
  align-content: start;
  gap: .55rem;
  height: 100%;
  padding: .74rem;
  border: 1px solid #dbe3eb;
  border-radius: .64rem;
  background: #fff;
  box-shadow: 0 2px 4px #20334907;
  overflow-wrap: anywhere;
}
.collection-card:hover { border-color: #aabcd0; }
.collection-card-head { display: flex; align-items: start; justify-content: space-between; gap: .42rem; }
.collection-card-head .badge { flex-shrink: 0; max-width: 54%; white-space: normal; }
.collection-card-head p { color: var(--muted); font-size: .78rem; line-height: 1.44; margin-top: .14rem; }
.collection-card dl {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .34rem .6rem;
  margin: 0;
  padding: .46rem 0 0;
  border-top: 1px solid #e8edf2;
  font-size: .76rem;
}
.collection-card dt { color: #5a6575; font-size: .7rem; }
.collection-card dd { margin: 0; font-weight: 590; color: #334c66; }
.collection-actions { display: flex; align-items: start; flex-wrap: wrap; gap: .34rem; }
.collection-actions p { color: var(--muted); font-size: .76rem; }
.collection-board {
  display: grid;
  gap: .58rem;
  min-width: 0;
  border: 1px solid #dce3eb;
  border-radius: .72rem;
  background: #fafaf9;
  padding: .57rem;
}
.collection-picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .38rem; min-width: 0; color: var(--muted); font-size: .74rem; font-weight: 640; }
.collection-picker select { min-width: 9rem; max-width: min(100%,22rem); }
.collection-lanes { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(12rem,24vw,15.1rem); gap: .52rem; min-width: 0; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; padding: 2px 2px .48rem; scrollbar-width: thin; }
.collection-lane { border: 1px solid #dde4eb; border-radius: .62rem; background: #f0f2f5; scroll-snap-align: start; min-height: 9.25rem; }
.collection-lane-head { display: flex; justify-content: space-between; align-items: start; gap: .4rem; padding: .53rem .63rem; background: #e8eef6; color: #3b5674; border-radius: .58rem .58rem 0 0; }
.collection-lane-head h3 { margin: 0; font-size: .79rem; font-weight: 700; overflow-wrap: anywhere; }
.collection-lane-head span { display: grid; justify-items: center; min-width: 1.35rem; padding: 1px .22rem; border-radius: .24rem; background: #fcfdfe; font-size: .71rem; font-variant-numeric: tabular-nums; }
.collection-lane > ul { display: grid; gap: .44rem; padding: .38rem; }
.collection-lane-empty { padding: .64rem; color: var(--muted); font-size: .76rem; }
[data-success-visit]:focus-visible { outline: 2px solid var(--focus); }
@media (max-width: 760px) {
  .collection-lanes { display: block; padding: 0; }
  .collection-lane:not([data-selected]) { display: none; }
  .collection-picker { justify-content: start; }
  .collection-picker select { flex: 1 1 auto; }
  .collection-toolbar { align-items: flex-start; }
  .collection-mode button { min-height: 2.3rem; }
}
.success-visit-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }
